support: Delete temporary files in LIFO order
[platform/upstream/glibc.git] / ChangeLog
1 2017-05-08  Florian Weimer  <fweimer@redhat.com>
2
3         Delete temporary files in LIFO order.
4         * support/temp_file.c (struct temp_name_list): Replace q member
5         with next.
6         (add_temp_file): Add new file to front of linked list.
7         (support_delete_temp_files): Use next member.
8         (support_print_temp_files): Likewise.
9
10 2017-05-08  Florian Weimer  <fweimer@redhat.com>
11
12         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
13         sys/ultrasound.h.
14         * sysdeps/unix/sysv/linux/sys/ultrasound.h: Remove file.
15
16 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
17
18         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
19         Remove.
20         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
21         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
22         (arch_minimum_kernel): Remove.
23         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
24         * README: Update statement about Linux kernel requirements.
25
26 2017-05-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27
28         * manual/llio.texi: Add preadv and pwritev documentation.
29
30 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
31
32         [BZ #21455]
33         * bits/stdint-intn.h: New file.
34         * bits/stdint-uintn.h: Likewise.
35         * stdlib/Makefile (headers): Add bits/stdint-intn.h and
36         bits/stdint-uintn.h.
37         * inet/netinet/in.h: Include <bits/stdint-uintn.h> instead of
38         <stdint.h>.
39         * posix/sys/types.h: Include <bits/stdint-intn.h>.
40         (__int8_t_defined): Do not define here.
41         (int8_t): Likewise.
42         (int16_t): Likewise.
43         (int32_t): Likewise.
44         (int64_t): Likewise.
45         [__GNUC_PREREQ (2, 7)] (__intN_t): Likewise.
46         * resolv/netdb.h: Include <bits/stdint-uintn.h> instead of
47         <stdint.h>.
48         * include/netdb.h [_ISOMAC]: Do not include <stdint.h>.
49         * sysdeps/generic/stdint.h: Include <bits/stdint-intn.h> and
50         <bits/stdint-uintn.h>.
51         (int8_t): Do not define here.
52         (int16_t): Likewise.
53         (int32_t): Likewise.
54         (int64_t): Likewise.
55         (uint8_t): Likewise.
56         (uint16_t): Likewise.
57         (uint32_t): Likewise.
58         (uint64_t): Likewise.
59         * conform/Makefile (test-xfail-XPG42/arpa/inet.h/conform): Remove
60         variable.
61         (test-xfail-XPG42/netdb.h/conform): Likewise.
62         (test-xfail-XPG42/netinet/in.h/conform): Likewise.
63         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
64         (test-xfail-UNIX98/netdb.h/conform): Likewise.
65         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
66
67 2017-05-04  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
68
69         * sysdeps/generic/math_private.h (mathx_hidden_def): New macro.
70         * sysdeps/ieee754/ldbl-128/s_finitel.c: Replace hidden_def with
71         the above.
72         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
73         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
74
75 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
76
77         [BZ #21445]
78         * signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.
79
80         [BZ #21457]
81         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
82         [_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to
83         __glibc_reserved1.
84         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
85         (struct _fpx_sw_bytes): Rename field padding to __glibc_reserved1.
86         (struct _fpxreg): Likewise.
87         [!__x86_64__] (struct _fpstate): Rename field reserved to
88         __glibc_reserved1.  Rename field padding to __glibc_reserved2.
89         [__x86_64__] (struct _fpstate): Rename field padding to
90         __glibc_reserved1.
91         (struct _xsave_hdr): Rename field reserved1 to __glibc_reserved1.
92         Rename field reserved2 to __glibc_reserved2.
93         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h
94         [__x86_64__] (struct _libc_fpxreg): Rename field padding to
95         __glibc_reserved1.
96         [__x86_64__] (struct _libc_fpstate): Rename field padding to
97         __glibc_reserved1.
98
99 2017-05-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
100
101         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
102         variable name.
103
104 2017-05-03  H.J. Lu  <hongjiu.lu@intel.com>
105
106         [BZ #21391]
107         * sysdeps/i386/dl-machine.h (dl_platform_init) [IS_IN (rtld)]:
108         Only call init_cpu_features.
109         [!IS_IN (rtld)]: Only set GLRO(dl_platform) to NULL if needed.
110         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
111         * sysdeps/i386/dl-procinfo.h: Removed.
112         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Don't include
113         <sysdeps/i386/dl-procinfo.h> nor <ldsodefs.h>.  Include
114         <sysdeps/x86/dl-procinfo.h>.
115         (_dl_procinfo): Replace _DL_HWCAP_COUNT with 32.
116         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h [!IS_IN (ldconfig)]:
117         Include <sysdeps/x86/dl-procinfo.h> instead of
118          <sysdeps/generic/dl-procinfo.h>.
119         * sysdeps/x86/cpu-features.c: Include <dl-hwcap.h>.
120         (init_cpu_features): Set dl_platform, dl_hwcap and dl_hwcap_mask.
121         * sysdeps/x86/cpu-features.h (bit_cpu_LZCNT): New.
122         (bit_cpu_MOVBE): Likewise.
123         (bit_cpu_BMI1): Likewise.
124         (bit_cpu_BMI2): Likewise.
125         (index_cpu_BMI1): Likewise.
126         (index_cpu_BMI2): Likewise.
127         (index_cpu_LZCNT): Likewise.
128         (index_cpu_MOVBE): Likewise.
129         (index_cpu_POPCNT): Likewise.
130         (reg_BMI1): Likewise.
131         (reg_BMI2): Likewise.
132         (reg_LZCNT): Likewise.
133         (reg_MOVBE): Likewise.
134         (reg_POPCNT): Likewise.
135         * sysdeps/x86/dl-hwcap.h: New file.
136         * sysdeps/x86/dl-procinfo.h: Likewise.
137         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): New.
138         (_dl_x86_platforms): Likewise.
139
140 2017-05-03  DJ Delorie  <dj@redhat.com>
141
142         [BZ #21411]
143         * malloc/malloc.c: Tweak realloc/MREMAP comment to be more accurate.
144
145 2017-05-03  Phil Blundell  <pb@pbcl.net>
146
147         * inet/netinet/in.h (struct ip_mreq_source): Correct misplaced
148         comments.
149
150 2017-05-03  Carlos O'Donell  <carlos@redhat.com>
151
152         [BZ #20116]
153         * nptl/pthread_create.c: Expand comments to describe
154         semaphore-like and mutex-like uses of PD->lock.
155
156 2017-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
157
158         * sysdeps/unix/sysv/linux/epoll_wait.c: New file.
159         * sysdeps/unix/sysv/linux/generic/epoll_wait.c: Remove file.
160         * sysdeps/unix/sysv/linux/syscalls.list: Remove epoll_wait from
161         auto-generation list.
162         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
163         epoll_wait.
164         * sysdeps/unix/sysv/linux/generic/Makefile (sysdep_routines):
165         Remove epoll_wait.
166
167         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Add
168         osf_select.
169         * sysdeps/unix/sysv/linux/alpha/select.c: New file.
170         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove select and
171         osf_select from auto-generation list.
172         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
173         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
174         * sysdeps/unix/sysv/linux/generic/select.c: Remove file.
175         * sysdeps/unix/sysv/linux/select.c: New file.
176
177         * sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
178         * sysdeps/unix/sysv/linux/poll.c: New file.
179         * sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
180         auto-generation list.
181
182 2017-05-03  Joseph Myers  <joseph@codesourcery.com>
183
184         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDRDM):
185         New macro.
186
187 2017-05-02  Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
188
189         [BZ #21179]
190         * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
191         R_SPARC_REGISTER relocations.
192
193 2017-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
194
195         * include/unistd.h (__pread): Add libc_hidden_proto.
196         (__pread64): Likewise.
197         (__pwrite): Likewise.
198         * sysdeps/unix/sysv/linux/microblaze/localplt.data [libc.so]
199         (__pread64): Remove.
200         * sysdeps/unix/sysv/linux/pread.c (__pread64): Add libc_hidden_weak.
201         * sysdeps/unix/sysv/linux/pread64.c (__pread64): Likewise.
202         * sysdeps/unix/sysv/linux/pwrite.c (__pwrite): Likewise.
203
204 2017-05-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
205
206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
207
208 2017-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
209
210         * nptl/tst-cancel4-common.c: Use libsupport.
211         * nptl/tst-cancel4-common.h: Likewise.
212         * nptl/tst-cancel4.c (tf_read): Likewise.
213         (tf_readv): Likewise.
214         (tf_write): Likewise.
215         (tf_writev): Likewise.
216         (tf_sleep): Likewise.
217         (tf_usleep): Likewise.
218         (tf_nanosleep): Likewise.
219         (tf_select): Likewise.
220         (tf_pselect): Likewise.
221         (tf_poll): Likewise.
222         (tf_ppoll): Likewise.
223         (tf_wait): Likewise.
224         (tf_waitpid): Likewise.
225         (tf_waitid): Likewise.
226         (tf_sigpause): Likewise.
227         (tf_sigsuspend): Likewise.
228         (tf_sigwait): Likewise.
229         (tf_sigwaitinfo): Likewise.
230         (tf_sigtimedwait): Likewise.
231         (tf_pause): Likewise.
232         (tf_accept): Likewise.
233         (tf_send): Likewise.
234         (tf_recv): Likewise.
235         (tf_recvfrom): Likewise.
236         (tf_recvmsg): Likewise.
237         (tf_open): Likewise.
238         (tf_close): Likewise.
239         (tf_pread): Likewise.
240         (tf_pwrite): Likewise.
241         (tf_preadv): Likewise.
242         (tf_pwritev): Likewise.
243         (tf_fsync): Likewise.
244         (tf_fdatasync): Likewise.
245         (tf_msync): Likewise.
246         (tf_sendto): Likewise.
247         (tf_sendmsg): Likewise.
248         (tf_creat): Likewise.
249         (tf_connect): Likewise.
250         (tf_tcdrain): Likewise.
251         (tf_msgrcv): Likewise.
252         (tf_msgsnd): Likewise.
253         * nptl/tst-cancel4_1.c (tf_sendmmsg): Likewise.
254         * nptl/tst-cancel4_2.c (tf_recvmmsg): Likewise.
255
256         * misc/tst-preadvwritev-common.c (do_prepare): Use libsupport
257         expected arguments.
258         (do_test): Adapt to use libsupport.
259
260 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
261
262         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
263
264         * sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
265         (PF_MAX): Set to 44.
266         (AF_SMC): New macro.
267
268         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
269         kernel version to 4.11.
270
271 2017-04-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
272
273         [BZ #21280]
274         * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the
275         signal of subnormals and adjust the exponent of power of 2 down
276         when low part has opposite sign.
277
278 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
279
280         * sysdeps/powerpc/powerpc64le/Implies: New file.
281         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
282         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
283         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
284         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
285         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
286         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
287         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
288         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
289         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
290         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
291         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
292         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
293         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
294         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
295         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
296         * sysdeps/powerpc/preconfigure: New file.
297         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
298         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
299
300 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
301
302         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
303         inclusion.
304         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
305         Remove.
306
307 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
308
309         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
310         (XPG3): Rename standard to XPG4.
311         * conform/Makefile: Likewise.
312         * conform/list-header-symbols.pl: Likewise.
313         * conform/data/aio.h-data: Likewise.
314         * conform/data/arpa/inet.h-data: Likewise.
315         * conform/data/complex.h-data: Likewise.
316         * conform/data/ctype.h-data: Likewise.
317         * conform/data/dlfcn.h-data: Likewise.
318         * conform/data/fcntl.h-data: Likewise.
319         * conform/data/fenv.h-data: Likewise.
320         * conform/data/float.h-data: Likewise.
321         * conform/data/fmtmsg.h-data: Likewise.
322         * conform/data/ftw.h-data: Likewise.
323         * conform/data/grp.h-data: Likewise.
324         * conform/data/inttypes.h-data: Likewise.
325         * conform/data/iso646.h-data: Likewise.
326         * conform/data/langinfo.h-data: Likewise.
327         * conform/data/libgen.h-data: Likewise.
328         * conform/data/limits.h-data: Likewise.
329         * conform/data/locale.h-data: Likewise.
330         * conform/data/math.h-data: Likewise.
331         * conform/data/mqueue.h-data: Likewise.
332         * conform/data/ndbm.h-data: Likewise.
333         * conform/data/net/if.h-data: Likewise.
334         * conform/data/netdb.h-data: Likewise.
335         * conform/data/netinet/in.h-data: Likewise.
336         * conform/data/poll.h-data: Likewise.
337         * conform/data/pthread.h-data: Likewise.
338         * conform/data/pwd.h-data: Likewise.
339         * conform/data/sched.h-data: Likewise.
340         * conform/data/search.h-data: Likewise.
341         * conform/data/semaphore.h-data: Likewise.
342         * conform/data/signal.h-data: Likewise.
343         * conform/data/spawn.h-data: Likewise.
344         * conform/data/stdbool.h-data: Likewise.
345         * conform/data/stdint.h-data: Likewise.
346         * conform/data/stdio.h-data: Likewise.
347         * conform/data/stdlib.h-data: Likewise.
348         * conform/data/string.h-data: Likewise.
349         * conform/data/strings.h-data: Likewise.
350         * conform/data/stropts.h-data: Likewise.
351         * conform/data/sys/mman.h-data: Likewise.
352         * conform/data/sys/resource.h-data: Likewise.
353         * conform/data/sys/select.h-data: Likewise.
354         * conform/data/sys/socket.h-data: Likewise.
355         * conform/data/sys/stat.h-data: Likewise.
356         * conform/data/sys/statvfs.h-data: Likewise.
357         * conform/data/sys/time.h-data: Likewise.
358         * conform/data/sys/timeb.h-data: Likewise.
359         * conform/data/sys/types.h-data: Likewise.
360         * conform/data/sys/uio.h-data: Likewise.
361         * conform/data/sys/un.h-data: Likewise.
362         * conform/data/sys/wait.h-data: Likewise.
363         * conform/data/syslog.h-data: Likewise.
364         * conform/data/termios.h-data: Likewise.
365         * conform/data/tgmath.h-data: Likewise.
366         * conform/data/time.h-data: Likewise.
367         * conform/data/ucontext.h-data: Likewise.
368         * conform/data/unistd.h-data: Likewise.
369         * conform/data/utmpx.h-data: Likewise.
370         * conform/data/varargs.h-data: Likewise.
371         * conform/data/wchar.h-data: Likewise.
372         * conform/data/wctype.h-data: Likewise.
373
374 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
375
376         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
377         version to 7 branch.
378
379 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
380
381         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
382         earlyclobber to output operand of sqrt insn.
383         (__ieee754_sqrtf): Ditto.
384
385 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
386
387         [BZ #21426]
388         * misc/bits/types/struct_iovec.h: New file.
389         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
390         * include/bits/types/struct_iovec.h: New file.
391         * bits/uio.h (struct iovec): Replace by inclusion of
392         <bits/types/struct_iovec.h>.
393         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
394         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
395         of <sys/uio.h>.
396         * nptl/tst-cancel4.c: Include <sys/uio.h>
397         * posix/test-errno.c: Likewise.
398         * support/resolv_test.c: Likewise.
399         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
400         Remove.
401         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
402         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
403         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
404
405         * conform/data/sys/socket.h-data (*_t): Allow.
406
407 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
408
409         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
410         assignment.
411
412 2017-04-24  Daurnimator  <quae@daurnimator.com>
413             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
414
415         [BZ #21340]
416         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
417         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
418         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
419         valid flags.
420         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
421         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
422         POSIX_SPAWN_SETSID.
423         * sysdeps/posix/spawni.c (__spawni): Likewise.
424         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
425         * NEWS: Add note about POSIX_SPAWN_SETSID support.
426
427 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
428
429         * sysdeps/generic/math_private.h: Move the declaration of many
430         functions to sysdeps/generic/math_private_calls.h.
431         * sysdeps/generic/math_private_calls.h: New file with the
432         declarations of the functions removed from math_private.h
433         macroized by floating-point type.
434
435 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
436
437         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
438         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
439         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
440         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
441         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
442         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
443
444 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
445
446         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
447         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
448         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
449         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
450         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
451         New Define.
452
453 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
454
455         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
456         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
457         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
458         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
459         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
460         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
461
462 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
463
464         * sysdeps/s390/multiarch/ifunc-resolve.h
465         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
466         * sysdeps/s390/multiarch/8bit-generic.c
467         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
468         define ifunc resolvers.
469
470 2017-04-21  Florian Weimer  <fweimer@redhat.com>
471
472         [BZ #20424]
473         * manual/memory.texi (Replacing malloc): New section.
474         (Allocating Storage For Program Data): Reference it.
475         (The GNU Allocator): Likewise.
476
477 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
478
479         * stdlib/Versions (__strtod_internal): List explicitly, not as
480         wildcard.
481         (__strtof_internal): Likewise.
482         (__strtold_internal): Likewise.
483         (__strtol_internal): Likewise.
484         (__strtoll_internal): Likewise.
485         (__strtoul_internal): Likewise.
486         (__strtoull_internal): Likewise.
487         (__strtoq_internal): Likewise.
488         (__strtouq_internal): Likewise.
489         * wcsmbs/Versions (__wcstod_internal): Likewise.
490         (__wcstof_internal): Likewise.
491         (__wcstold_internal): Likewise.
492         (__wcstol_internal): Likewise.
493         (__wcstoll_internal): Likewise.
494         (__wcstoul_internal): Likewise.
495         (__wcstoull_internal): Likewise.
496
497 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
498
499         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
500         struct timespec definition.
501
502 2017-04-19  Florian Weimer  <fweimer@redhat.com>
503
504         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
505
506 2017-04-19  Florian Weimer  <fweimer@redhat.com>
507
508         * inet/rcmd.c (rresvport_af): Fix typo in comment.
509         * inet/rexec.c (rexec_af): Likewise.
510
511 2017-04-19  Zack Weinberg  <zackw@panix.com>
512
513         * posix/tst-mmap-offset.c: Include stdint.h.
514         * resolv/tst-ns_name_compress.c: Include string.h.
515         * resolv/tst-resolv-edns.c: Include resolv.h.
516
517 2017-04-19  Florian Weimer  <fweimer@redhat.com>
518
519         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
520         with __glibc_likely.
521         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
522         Replace __builtin_expect with __glibc_unlikely.
523         * resolv/res_init.c (__res_vinit): Likewise.
524         * resolv/res_query.c (__libc_res_nquery): Likewise.
525         * resolv/res_send.c (__libc_res_nsend): Likewise.
526
527 2017-04-19  Florian Weimer  <fweimer@redhat.com>
528
529         [BZ #15722]
530         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
531         with SOCK_CLOEXEC.
532         * resolv/res_send.c (send_vc, reopen): Likewise.
533         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
534         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
535         Likewise.
536         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
537         * inet/rexec.c (rexec_af): Add comment.
538         * inet/rcmd.c (rresvport_af): Likewise.
539
540 2017-04-19  Florian Weimer  <fweimer@redhat.com>
541
542         * nscd/connections.c (have_accept4): Removed definition.
543         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
544         accept4 works.
545         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
546         ia64 because that was the first version with accept4 support.
547         * support/Makefile (libsupport-routines): Add xaccept4.
548         * support/xsocket.h (xaccept4): Declare.
549         * support/xaccept4.c: New file.
550         * socket/tst-accept4.c: New file.
551         * socket/Makefile (tests): Add tst-accept4.
552         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
553         definition.
554         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
555         comment.
556         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
557         implementation is available.
558         (accept4): Use the system call if available, otherwise use the
559         socket call.
560         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
561         Set to 3.2.18.
562         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
563         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
564         accept4 is unconditionally available in later 3.2 stable kernels.
565         (__ASSUME_ACCEPT4_SYSCALL): Define.
566         * sysdeps/unix/sysv/linux/kernel-features.h
567         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
568         definitions.
569         * sysdeps/unix/sysv/linux/i386/kernel-features.h
570         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
571
572 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
573
574         * conform/Makefile (tests-special): Do not make addition of
575         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
576         (generated): Do not make addition of $(conformtest-header-base)
577         conditional on [$(cross-compiling) = no].
578
579         [BZ #21267]
580         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
581         if defined by <asm/socket.h> and not previously defined.
582         (IOCSIZE_SHIFT): Likewise.
583         (IOC_IN): Likewise.
584         (IOC_INOUT): Likewise.
585         (IOC_OUT): Likewise.
586
587 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
588
589         [BZ #21396]
590         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
591         Prefer_No_AVX512 if AVX512ER isn't available.
592         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
593         (index_arch_Prefer_No_AVX512): Likewise.
594         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
595         AVX512 version if Prefer_No_AVX512 is set.
596         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
597         Likewise.
598         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
599         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
600         Likewise.
601         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
602         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
603         Likewise.
604         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
605         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
606         Likewise.
607
608 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
609
610         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
611         Prefer_No_VZEROUPPER if AVX512ER is available.
612         * sysdeps/x86/cpu-features.h
613         (bit_cpu_AVX512PF): New.
614         (bit_cpu_AVX512ER): Likewise.
615         (bit_cpu_AVX512CD): Likewise.
616         (bit_cpu_AVX512BW): Likewise.
617         (bit_cpu_AVX512VL): Likewise.
618         (index_cpu_AVX512PF): Likewise.
619         (index_cpu_AVX512ER): Likewise.
620         (index_cpu_AVX512CD): Likewise.
621         (index_cpu_AVX512BW): Likewise.
622         (index_cpu_AVX512VL): Likewise.
623         (reg_AVX512PF): Likewise.
624         (reg_AVX512ER): Likewise.
625         (reg_AVX512CD): Likewise.
626         (reg_AVX512BW): Likewise.
627         (reg_AVX512VL): Likewise.
628
629 2017-04-18  Florian Weimer  <fweimer@redhat.com>
630
631         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
632         O_CLOEXEC is defined.
633         * include/fcntl.h (__have_o_cloexec): Remove declaration.
634         * io/Makefile (aux): Remove.
635         * io/have_o_cloexec.c: Remove file.
636         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
637         defined and works.
638         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
639         defined.
640         * login/utmp_file.c (O_flags): Remove definition.
641         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
642         O_CLOEXEC works.
643         (pututline_file): Likewise.
644         * malloc/mtrace.c: Assume that O_CLOEXEC works.
645         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
646         definition.
647         (internal_setgrent): Assume that O_CLOEXEC works.
648         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
649         Remove definition.
650         (internal_setgrent): Assume that O_CLOEXEC works.
651         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
652         definition.
653         (internal_setpwent): Assume that O_CLOEXEC works.
654         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
655         definition.
656         (internal_setspent): Assume that O_CLOEXEC works.
657         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
658         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
659         O_CLOEXEC is defined and works.
660         * nss/Makefile (libnss_files-routines): Remove
661         files-have_o_cloexec.
662         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
663         defined.
664         * nss/nss_files/files-XXX.c (internal_setent): Assume that
665         O_CLOEXEC is defined and works.
666         * nss/nss_files/files-alias.c (internal_setent): Likewise.
667         * nss/nss_files/files-have_o_cloexec.c: Remove.
668         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
669         defined.
670         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
671         and works.
672         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
673         definition.
674         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
675         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
676         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
677         (__opendirat, __opendir): Adjust opendir_oflags call.
678         (check_have_o_cloexec): Remove.
679         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
680         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
681         defined.
682         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
683         Remove definition.
684
685 2017-04-18  Florian Weimer  <fweimer@redhat.com>
686
687         * include/unistd.h (__have_dup3): Remove declaration.
688         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
689         dup3 is available.
690         * libio/freopen64.c (freopen64): Likewise.
691         * socket/Makefile (aux): Remove have_sock_cloexec.
692         * socket/have_sock_cloexec.c: Remove file.
693         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
694         definition.
695         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
696         Likewise.
697         * sysdeps/nacl/kernel-features.h: Update comment.
698
699 2017-04-18  Florian Weimer  <fweimer@redhat.com>
700
701         * include/unistd.h (__have_pipe2): Remove declaration.
702         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
703         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
704         available.
705         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
706         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
707         Remove definition.
708
709 2017-04-18  Florian Weimer  <fweimer@redhat.com>
710
711         * malloc/malloc.c (cfree): Turn into compat symbol.
712         (__cfree): Remove alias.
713         * stdlib/stdlib.h (cfree): Remove declaration.
714         * malloc/malloc.h (cfree): Likewise.
715         * manual/memory.texi (Freeing after Malloc): Remove cfree.
716         * malloc/Versions (GLIBC_2.26): Add.
717
718 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
719
720         * sysdeps/powerpc/powerpc64/multiarch/Makefile
721         (sysdep_routines): Add strrchr-power8.
722         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
723         (strrchr): Add __strrchr_power8 to list of strrchr functions.
724         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
725         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
726         (strrchr): Add __strrchr_power8 to ifunc list.
727         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
728
729 2017-04-17  Rabin Vincent  <rabinv@axis.com>
730
731         [BZ #21357]
732         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
733         Call free() outside of mutex.
734
735 2017-04-13  Florian Weimer  <fweimer@redhat.com>
736
737         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
738         is defined.
739         * elf/rtld.c (process_envvars): Likewise.
740         * sysdeps/posix/shm_open.c (shm_open): Likewise.
741         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
742         O_NOFOLLOW directly.
743         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
744
745 2017-04-13  Florian Weimer  <fweimer@redhat.com>
746
747         [BZ #21369]
748         Remove EDNS fallback.
749         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
750         handling.
751         * resolv/res_send.c (send_dg): Likewise.
752         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
753         "tcp." prefixes.
754         (do_test): Send a "formerr."-prefixed query in an attempt to
755         trigger EDNS fallback.
756
757 2017-04-13  Florian Weimer  <fweimer@redhat.com>
758
759         [BZ #21361]
760         Limit EDNS buffer size to 1200 bytes.
761         * include/resolv.h (__res_nopt): Remove declaration.
762         * resolv/Makefile (tests): tst-resolv-edns.
763         (tst-resolv-edns): Link with -lresolv, -lpthread.
764         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
765         interval [512, 1200].
766         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
767         we can resize the buffer.
768         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
769         (__res_nopt): Declare.
770         * resolv/tst-resolv-edns.c: New file.
771         * resolv/resolv_test.h (struct resolv_edns_info): Define.
772         (struct resolv_response_context): Add edns member.
773         * resolv/resolv_test.c (struct query_info): Add edns member.
774         (parse_query): Extract EDNS information from the query.
775         (server_thread_udp_process_one): Propagate EDNS data.
776         (server_thread_tcp_client): Likewise.
777
778 2017-04-13  Florian Weimer  <fweimer@redhat.com>
779
780         [BZ #21359]
781         * resolv/ns_name.c (ns_name_pack): Do not require an additional
782         byte in the destination buffer.  Avoid out-of-bounds pointer
783         arithmetic.
784         * resolv/Makefile (tests): Add tst-ns_name_compress.
785         (tst-ns_name_compress): Link with -lresolv.
786         * resolv/tst-ns_name_compress.c: New file.
787         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
788         (response): Recognize LONG_NAME.
789         (do_test): Add LONG_NAME tests.
790         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
791         for ns_name_unpack.  Add tests for ns_name_pton and
792         ns_name_compress.
793
794 2017-04-13  Florian Weimer  <fweimer@redhat.com>
795
796         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
797         (res_nisourserver): Remove definition.
798         (p_section, res_npquery, res_nisourserver): Remove declaration.
799         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
800         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
801         ... here.
802         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
803         <resolv.h>.
804         * resolv/res_query.c: Likewise.
805         * resolv/res_debug.c (p_section): Define as static.
806
807 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
808
809         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
810         strncat-power8.
811         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
812         __strncat_power8 to ifunc list.
813         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
814         (strncat): Add __strncat_power8 to list of strncat functions.
815         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
816
817 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
818
819         [BZ #21270]
820         * posix/tst-mmap-offset.c (do_prepare): New function.
821         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
822         (do_test_bz21270): New function.
823         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
824         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
825         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
826         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
827         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
828         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
829         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
830         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
831         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
832         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
833         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
834         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
835         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
836         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
837         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
838         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
839         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
840         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
841         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
842         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
843         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
844         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
845         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
846         from auto-generation list.
847         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
848         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
849         * sysdeps/unix/sysv/linux/mmap.c: New file.
850         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
851         offsets and support for mmap2 syscall.
852
853         * posix/globtest.sh: Add cleanup routine on trap 0.
854
855 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
856
857         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
858         implementation-specific function name and remove unneeded
859         macros definition.
860         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
861         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
862         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
863         name if not defined and pass as parameter to macros accordingly.
864         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
865         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
866
867         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
868         implementation-specific function name and remove unneeded
869         macros definition.
870         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
871         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
872         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
873         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
874         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
875         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
876         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
877         name if not defined and pass as parameter to macros accordingly.
878         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
879         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
880         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
881         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
882         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
883         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
884
885         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
886         implementation-specific function name and remove unneeded macros
887         definition.
888         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
889         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
890         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
891         function name if not defined and pass as parameter to macros
892         accordingly.
893         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
894         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
895
896         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
897         implementation-specific function name and remove unneeded macros
898         definition.
899         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
900         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
901         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
902         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
903         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
904         not defined and pass as parameter to macros accordingly.
905         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
906         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
907         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
908         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
909
910         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
911         strcasestr implementation name and remove unneeded macros definition.
912         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
913         strstr implementation name and remove unneeded macros definition.
914         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
915         name if not defined and pass as parameter to macros accordingly.
916         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
917
918         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
919         implementation-specific function name and remove unneeded macros
920         definition.
921         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
922         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
923         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
924         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
925         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
926         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
927         function name if not defined and pass as parameter to macros
928         accordingly.
929         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
930         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
931         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
932         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
933
934         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
935         the strlen implementation name and remove unneeded macros definition.
936         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
937         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
938         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
939         the strnlen implementation name and remove unneeded macros definition.
940         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
941         name if not defined and pass as parameter to macros accordingly.
942         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
943         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
944         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
945
946         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
947         the implementation-specific function name and remove unneeded
948         macros definition.
949         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
950         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
951         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
952         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
953         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
954         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
955         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
956         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
957         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
958         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
959         name if not defined and pass as parameter to macros accordingly.
960         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
961         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
962         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
963         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
964         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
965         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
966         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
967         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
968
969         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
970         implementation-specific function name and remove unneeded macros
971         definition.
972         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
973         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
974         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
975         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
976         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
977         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
978         function name if not defined.
979         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
980         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
981
982 2017-04-11  Paul Clarke  <pc@us.ibm.com>
983
984         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
985         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
986         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
987         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
988
989 2017-04-11  Florian Weimer  <fweimer@redhat.com>
990             Zack Weinberg  <zackw@panix.com>
991
992         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
993         readdir64 as thread-safe.  Update warning about readdir_r.
994
995 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
996
997         * sysdeps/unix/sysv/linux/x86/Implies: New file.
998         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
999         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
1000         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
1001         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
1002         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
1003         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
1004
1005 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1006
1007         * sysdeps/i386/dl-procinfo.c: Include
1008         <sysdeps/x86/dl-procinfo.c>.
1009         * sysdeps/x86_64/dl-procinfo.c: Likewise.
1010         * sysdeps/x86/dl-procinfo.c: New file.
1011
1012 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1013
1014         * sysdeps/generic/math_private.h: Remove declarations of
1015         many functions that are already declared in math.h.
1016         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
1017         declaration for __frexpl.
1018         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
1019         the declarations for __scalbnl and fabsl.
1020
1021 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
1022
1023         [BZ #20831]
1024         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
1025         of __mprotect to change protection on the excess portion
1026         to disallow all access.
1027
1028 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1029
1030         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
1031         HAS_CPU_FEATURE to check for SSE.
1032         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1033         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
1034         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
1035         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
1036         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
1037         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
1038         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
1039         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
1040         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
1041         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1042         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
1043         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
1044         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
1045         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
1046         (index_cpu_SSE): Likewise.
1047         (reg_SSE): Likewise.
1048
1049 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
1050
1051         * posix/getopt1.c: Include <config.h>, not "config.h".
1052
1053 2017-04-07  Zack Weinberg  <zackw@panix.com>
1054
1055         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
1056         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
1057         Mention in top-of-file boilerplate that these files are shared
1058         with gnulib.
1059         * posix/getopt.h, posix/bits/getopt_posix.h:
1060         Mention in top-of-file boilerplate that these files are NOT shared
1061         with gnulib, unlike the rest of the getopt implementation.
1062
1063         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
1064         New files, intended to be shared with gnulib.
1065         * posix/bits/getopt_posix.h:
1066         New file, not intended to be shared with gnulib.
1067         * posix/getopt.h: Now just includes features.h,
1068         bits/getopt_core.h, and bits/getopt_ext.h.  Will
1069         no longer be shared with gnulib.
1070         * include/bits/getopt_core.h, include/bits/getopt_ext.h
1071         * include/bits/getopt_posix.h: New wrappers.
1072         * posix/Makefile: Install new headers.
1073         * posix/unistd.h, libio/stdio.h:
1074         Include bits/getopt_posix.h instead of getopt.h.
1075
1076         * include/libc-symbols.h: For gnulib compatibility, define
1077         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
1078         _GL_ATTRIBUTE_CONST.
1079         * posix/getopt.c (_getopt_initialize): Mark argc and argv
1080         parameters with _GL_UNUSED.
1081
1082         * posix/getopt.c: When used standalone, define __libc_use_alloca
1083         as always false and alloca to abort if called.
1084         (process_long_option): Rewrite handling of ambiguous long options
1085         to use a single boolean vector, not a linked list; use
1086         __libc_use_alloca to decide whether to allocate this using alloca.
1087         * posix/tst-getopt_long1.c: Adjust text of expected error message.
1088
1089         * posix/getopt.c (process_long_option): New function split out
1090         from _getopt_internal_r.
1091         (_getopt_internal_r): Replace both copies of the long-option
1092         processing code with calls to process_long_option.
1093         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
1094         (do_test): Differentiate argv[0] in the two subtests.
1095
1096         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
1097         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
1098         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
1099
1100         * posix/getopt.h: Add backup definition of __nonnull for
1101         consistency with gnulib.  Define __getopt_argv_const to const
1102         if not already defined.
1103         (getopt): Update doc comment from gnulib.  Prototype
1104         unconditionally.  Add __nonnull annotation.
1105         (__posix_getopt): Add __nonnull annotation.
1106         (getopt_long, getopt_long_only): Use __getopt_argv_const in
1107         prototypes for consistency with gnulib.  Add __nonnull
1108         annotations.
1109         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
1110         (getopt_internal): Change 'argv' argument to type 'char **'.
1111         Remove now-unnecessary casts.
1112         (getopt, __posix_getopt): Eliminate repetition with a macro.
1113         Cast 'argv' to 'char **' when calling _getopt_internal.
1114         * posix/getopt1.c (getopt_long, getopt_long_only):
1115         Use __getopt_argv_const for consistency with gnulib.
1116         Cast 'argv' to 'char **' when calling _getopt_internal.
1117         (_getopt_long_r, _getopt_long_only_r):
1118         Change 'argv' argument to type 'char **'.
1119         (main): Constify 'long_options'.
1120         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
1121         (_getopt_long_r, _getopt_long_only_r):
1122         Change 'argv' argument to type 'char **'.
1123
1124         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
1125         (locked_vfxprintf): New helper function. Handle arbitrary
1126         multibyte strings, not just ASCII.
1127         * include/stdio.h: Declare __fxprintf_nocancel.
1128         * posix/getopt.c: When _LIBC is defined, define fprintf to
1129         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
1130         to _IO_funlockfile.  When neither _LIBC nor
1131         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
1132         funlockfile as no-ops.
1133         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
1134         the standalone error-printing code can now be used for libc as
1135         well.  Add an flockfile/funlockfile pair around one case where
1136         the error message is printed in several chunks.  Don't use fputc.
1137         * posix/tst-getopt-cancel.c: New test.
1138         * posix/Makefile: Run it.
1139
1140         * posix/getopt.c (_getopt_internal_r): Don't increment
1141         d->optind a second time when reporting ambiguous -W options.
1142
1143         * posix/getopt_int.h: Include getopt.h.
1144         Use impl-namespace names for all arguments to _getopt_internal and
1145         _getopt_internal_r.
1146         Declare __ordering enum outside the struct.
1147         Harmonize comments with gnulib.
1148         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
1149         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
1150         #ifdef TEST block and make unconditional.  Do not define NULL.
1151         * posix/getopt.c: Partial merge from gnulib, covering the
1152         initial includes and global declarations, commentary, and
1153         a couple of semantically-neutral code changes.
1154
1155         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
1156         Use '...' instead of `...' for quotation marks inside
1157         comments and strings.
1158
1159         * config.h.in (USE_NONOPTION_FLAGS): Remove.
1160         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1161         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1162         * posix/getopt_int.h: Likewise.
1163         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1164         __libc_argc and __libc_argv externs, which were only used by
1165         #ifdef USE_NONOPTION_FLAGS blocks.
1166         * posix/getopt_init.c: Remove file.
1167         * posix/Makefile (routines): Remove getopt_init.
1168         * include/getopt.h: Don't declare __getopt_initialize_environment.
1169         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
1170         a comment.
1171
1172 2017-04-07  Florian Weimer  <fweimer@redhat.com>
1173
1174         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
1175
1176 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1177
1178         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
1179         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
1180         to __wrap_.udiv.
1181         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
1182         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
1183
1184         * sysdeps/i386/symbol-hacks.h: New file.
1185         * sysdeps/m68k/symbol-hacks.h: New file.
1186         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
1187         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
1188         * sysdeps/unix/sysv/linux/i386/Makefile
1189         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
1190         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1191         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1192         * sysdeps/unix/sysv/linux/m68k/Makefile
1193         [$(subdir) = csu] (sysdep_routines): Likewise.
1194         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1195         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1197         [$(subdir) = csu] (sysdep_routines): Likewise.
1198         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1199         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1200         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1201         [$(subdir) = csu] (sysdep_routines): Likewise.
1202         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1203         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1204         * sysdeps/wordsize-32/Makefile: Remove file.
1205         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
1206         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
1207
1208 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1209
1210         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
1211         (TEST_FUNCTION_ARGV): New.
1212
1213 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1214
1215         * elf/next.c: Import support/test-driver.c instead of
1216         test-skeleton.c and delete TEST_FUNCTION macro definition.
1217         * elf/nodelete.c: Likewise.
1218         * elf/order2.c: Likewise.
1219         * elf/tst-_dl_addr_inside_object.c: Likewise.
1220         * elf/tst-addr1.c: Likewise.
1221         * elf/tst-align.c: Likewise.
1222         * elf/tst-align2.c: Likewise.
1223         * elf/tst-audit11.c: Likewise.
1224         * elf/tst-audit12.c: Likewise.
1225         * elf/tst-audit2.c: Likewise.
1226         * elf/tst-audit9.c: Likewise.
1227         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
1228         * elf/tst-deep1.c: Likewise.
1229         * elf/tst-dl-iter-static.c: Likewise.
1230         * elf/tst-dlmodcount.c: Likewise.
1231         * elf/tst-dlmopen1.c: Likewise.
1232         * elf/tst-dlmopen2.c: Likewise.
1233         * elf/tst-dlmopen3.c: Likewise.
1234         * elf/tst-dlopen-aout.c: Likewise.
1235         * elf/tst-dlopenrpath.c: Likewise.
1236         * elf/tst-dlsym-error.c: Likewise.
1237         * elf/tst-execstack-needed.c: Likewise.
1238         * elf/tst-execstack-prog.c: Likewise.
1239         * elf/tst-execstack.c: Likewise.
1240         * elf/tst-global1.c: Likewise.
1241         * elf/tst-gnu2-tls1.c: Likewise.
1242         * elf/tst-latepthread.c: Likewise.
1243         * elf/tst-leaks1.c: Likewise.
1244         * elf/tst-linkall-static.c: Likewise.
1245         (do_test): New function.
1246         * elf/tst-nodelete-opened.c: Likewise.
1247         * elf/tst-nodelete.cc: Likewise.
1248         * elf/tst-nodelete2.c: Likewise.
1249         * elf/tst-noload.c: Likewise.
1250         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
1251         * elf/tst-order-main.c: Likewise.
1252         * elf/tst-pathopt.c: Likewise.
1253         * elf/tst-pie2.c: Likewise.
1254         * elf/tst-piemod1.c: Likewise.
1255         * elf/tst-prelink.c: Likewise.
1256         * elf/tst-protected1a.c: Likewise.
1257         * elf/tst-protected1b.c: Likewise.
1258         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
1259         and define _GNU_SOURCE macro.
1260         (cmdline_process_function): New function.
1261         * elf/tst-relsort1.c: Likewise.
1262         * elf/tst-stackguard1.c: Likewise, import getopt.h,
1263         and define _GNU_SOURCE macro.
1264         (cmdline_process_function): New function.
1265         * elf/tst-thrlock.c: Likewise.
1266         * elf/tst-tls-dlinfo.c: Likewise.
1267         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
1268         * elf/tst-tls1.c: Likewise.
1269         * elf/tst-tls10.c: Likewise.
1270         * elf/tst-tls11.c: Likewise.
1271         * elf/tst-tls12.c: Likewise.
1272         * elf/tst-tls13.c: Likewise.
1273         * elf/tst-tls14.c: Likewise.
1274         * elf/tst-tls15.c: Likewise.
1275         * elf/tst-tls16.c: Likewise.
1276         * elf/tst-tls17.c: Likewise.
1277         * elf/tst-tls18.c: Likewise.
1278         * elf/tst-tls19.c: Likewise.
1279         * elf/tst-tls2.c: Likewise.
1280         * elf/tst-tls3.c: Likewise.
1281         * elf/tst-tls4.c: Likewise.
1282         * elf/tst-tls5.c: Likewise.
1283         * elf/tst-tls6.c: Likewise.
1284         * elf/tst-tls7.c: Likewise.
1285         * elf/tst-tls8.c: Likewise.
1286         * elf/tst-tls9.c: Likewise.
1287         * elf/tst-tlsalign-extern.c: Likewise.
1288         * elf/tst-tlsalign.c: Likewise.
1289         * elf/tst-unique1.c: Likewise.
1290         * elf/tst-unique2.c: Likewise.
1291         * elf/vismain.c: Likewise.
1292
1293 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1294
1295         * string/test-strnlen.c (do_page_tests): New function
1296         to check length of strings ending at the page boundary.
1297         (test_main): Added call to the do_page_tests function.
1298
1299 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1300             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1301
1302         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1303         (sysdep_routines): Add strnlen-power8.
1304         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1305         (strnlen): Add __strnlen_power8 to list of strnlen functions.
1306         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
1307         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
1308         (__strnlen): Add __strnlen_power8 to ifunc list.
1309         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
1310
1311 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1312
1313         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
1314         the TEST_FUNCTION macro definition.
1315         * wcsmbs/tst-mbrtowc2.c: Likewise.
1316         * wcsmbs/tst-mbsrtowcs.c: Likewise.
1317         * wcsmbs/tst-wchar-h.c: Likewise.
1318         * wcsmbs/tst-wcpncpy.c: Likewise.
1319         * wcsmbs/tst-wcrtomb.c: Likewise.
1320         * wcsmbs/tst-wcsnlen.c: Likewise.
1321         * wcsmbs/tst-wcstof.c: Likewise.
1322
1323 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1324
1325         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
1326         CALL_THREAD_FCT macro usage.
1327         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
1328         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
1329         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
1330
1331         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
1332         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1333         (__ASSUME_REQUEUE_PI): Likewise.
1334         * sysdeps/unix/sysv/linux/kernel-features.h
1335         (__ASSUME_REQUEUE_PI): Likewise.
1336         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1337         (__ASSUME_REQUEUE_PI): Likewise.
1338         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1339         (__ASSUME_REQUEUE_PI): Likewise.
1340         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1341         (__ASSUME_REQUEUE_PI): Likewise.
1342
1343 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1344
1345         * resolv/tst-resolv-canonname.c: New file.
1346         * resolv/Makefile (tests): Add tst-resolv-canonname.
1347         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
1348
1349 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1350
1351         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
1352         Declare.
1353         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
1354         (NS_MAXCDNAME): Remove definition.
1355         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1356         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
1357         (NS_MAXCDNAME): Remove definition.
1358         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1359
1360 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1361
1362         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
1363         call whose result is not used.
1364
1365 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1366
1367         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
1368         * resolv/Makefile (tests): Add tst-ns_name.
1369         (tst-ns_name): Link with -lresolv.
1370         (tst-ns_name.out): Depend on the input data file.
1371
1372 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1373
1374         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
1375         Clobber also r14.
1376
1377 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
1378
1379         [BZ #21253]
1380         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
1381         slack space by 32KiB.
1382
1383 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
1384
1385         [BZ #21338]
1386         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
1387         instead of incorrect do_set_arena_test
1388
1389 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1390
1391         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
1392         * math/bits/math-finite.h: Likewise.
1393
1394 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
1395
1396         [BZ #21289]
1397         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
1398
1399 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1400
1401         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
1402         non expected inotify_add_watch and quotactl return.
1403
1404 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1405
1406         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
1407         to int32_t.
1408         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
1409         as returning int32_t.
1410
1411 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1412
1413         * math/math.h: Include bits/math-finite.h once per
1414         floating-point type.
1415         * math/bits/math-finite.h: Macroize all declarations by
1416         floating-point type.
1417
1418 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1419
1420         [BZ #21182]
1421         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
1422         near end of a page.
1423         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
1424         overflow calculation.
1425
1426 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1427
1428         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
1429         (IMPL) Call with 1 instead of 0 as argument.
1430
1431 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1432
1433         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1434         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1435         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1436         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1437         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1438         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1439         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1440         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1441         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1442         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1443         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1444         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1445         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1446         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1447         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1448         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1449         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1450         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1451         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1452         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1453         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1454         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1455         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1456         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1457         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1458         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1459         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1460         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1461         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1462         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1463         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1464         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1465         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1466         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1467         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1468         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1469         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1470         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1471         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1472         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1473         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1474         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1475         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1476         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1477         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1478         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1479         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1480         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1481         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1482         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1483         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1484         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1485         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1486         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1487         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1488         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1489         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1490         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1491         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1492         defined.
1493         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1494         __NR_setgroups32 if defined.
1495         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1496         if defined.
1497         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1498         __NR_setresgid32 is defined.
1499         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1500         __NR_setresuid32 if defined.
1501         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1502         __NR_setreuid32 if defined.
1503         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1504         defined.
1505         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1506         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1507         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1508         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1509         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1510         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1511         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1512         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1513         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1514         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1515         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1516         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1517         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1518         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1519         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1520         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1521         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1522         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1523         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1524         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1525         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1526         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1527         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1528         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1529         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1530         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1531         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1532         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1533         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1534         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1535         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1536         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1537         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1538         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1539         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1540         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1541         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1542         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1543         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1544         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1545         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1546         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1547         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1548         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1549         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1550         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1551         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1552         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1553         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1554         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1555         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1556         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1557         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1558         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1559         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1560         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1561         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1562         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1563         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1564         defined.
1565         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1566         __NR_setgroups32 if defined.
1567         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1568         if defined.
1569         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1570         __NR_setresgid32 is defined.
1571         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1572         __NR_setresuid32 if defined.
1573         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1574         __NR_setreuid32 if defined.
1575         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1576         defined.
1577
1578 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
1579
1580         [BZ #21277]
1581         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
1582         unconditionally.
1583         (IMAXBEL): Likewise.
1584         (IUTF8): Likewise.
1585
1586 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1587
1588         * sysdeps/aarch64/libm-test-ulps: Update.
1589
1590 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
1591
1592         * README.tunables: Updated descriptions.
1593         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
1594         * scripts/gen-tunables.awk: Updated the code related to the
1595         commit.
1596
1597 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
1598
1599         * benchtests/Makefile (string-benchset): Add memcpy-random.
1600         * benchtests/bench-memcpy-random.c: New file.
1601
1602 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1603
1604         * stdio-common/printf.h (register_printf_modifier): Change the
1605         order of __wur and __THROW.
1606         (register_printf_type): Likewise.
1607
1608 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1609
1610         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
1611         test_main ().
1612         (CMDLINE_PROCESS): Use function instead of defined macro.
1613         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
1614         <suppport/support.h> to use set_fortify_handler().
1615         * string/bug-envz1.c: Import support/test-driver.c instead of
1616         test-skeleton.c.
1617         * string/bug-strcoll2.c: Likewise.
1618         * string/bug-strtok1.c: Likewise.
1619         * string/stratcliff.c: Likewise.
1620         * string/test-ffs.c: Likewise.
1621         * string/test-memccpy.c: Likewise.
1622         * string/test-memchr.c: Likewise.
1623         * string/test-memcmp.c: Likewise.
1624         * string/test-memcpy.c: Likewise.
1625         * string/test-memmem.c: Likewise.
1626         * string/test-memmove.c: Likewise.
1627         * string/test-memrchr.c: Likewise.
1628         * string/test-memset.c: Likewise.
1629         * string/test-rawmemchr.c: Likewise.
1630         * string/test-strcasecmp.c: Likewise.
1631         * string/test-strcasestr.c: Likewise.
1632         * string/test-strcat.c: Likewise.
1633         * string/test-strchr.c: Likewise.
1634         * string/test-strcmp.c: Likewise.
1635         * string/test-strcpy.c: Likewise.
1636         * string/test-string.h: Likewise.
1637         * string/test-strlen.c: Likewise.
1638         * string/test-strncasecmp.c: Likewise.
1639         * string/test-strncat.c: Likewise.
1640         * string/test-strncmp.c: Likewise.
1641         * string/test-strncpy.c: Likewise.
1642         * string/test-strnlen.c: Likewise.
1643         * string/test-strpbrk.c: Likewise.
1644         * string/test-strrchr.c: Likewise.
1645         * string/test-strspn.c: Likewise.
1646         * string/test-strstr.c: Likewise.
1647         * string/tst-bswap.c: Likewise.
1648         * string/tst-cmp.c: Likewise.
1649         * string/tst-endian.c: Likewise.
1650         * string/tst-inlcall.c: Likewise.
1651         * string/tst-strcoll-overflow.c: Likewise.
1652         * string/tst-strfry.c: Likewise.
1653         * string/tst-strlen.c: Likewise.
1654         * string/tst-strtok.c: Likewise.
1655         * string/tst-strtok_r.c: Likewise.
1656         * string/tst-strxfrm.c: Likewise.
1657         * string/tst-strxfrm2.c: Likewise.
1658         * string/tst-svc.c: Likewise.
1659         * string/tst-svc2.c: Likewise.
1660
1661 2017-03-22  Zack Weinberg  <zackw@panix.com>
1662
1663         * stdio-common/bug25.c: Include stdlib.h.
1664         * support/tst-support_format_dns_packet.c: Include stdio.h,
1665         stdlib.h, and string.h.
1666         * support/tst-support_record_failure.c: Include string.h.
1667         * support/tst-support_record_failure-2.sh: Adjust line number
1668         expectations and correct a typo in an error message.
1669
1670 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1671
1672         [BZ #21258]
1673         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
1674         Define only if _dl_runtime_resolve is defined to
1675         _dl_runtime_resolve_sse_vex.
1676         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
1677         Fallthrough to _dl_runtime_resolve_sse_vex.
1678
1679 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
1680
1681         * INSTALL: Regenerated.
1682
1683 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
1684
1685         * config.h.in: Add LINK_OBSOLETE_NSL.
1686         * config.make.in: Add build-obsolete-nsl.
1687         * configure.ac: Add obsolete-nsl option.
1688         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
1689         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
1690         * include/rpcsvc/nislib.h: Likewise.
1691         * include/rpcsvc/ypclnt.h: Likewise.
1692         * manual/install.texi: Document --enable-obsolete-nsl.
1693         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
1694         * nis/nis_add.c: Replace libnsl_hidden_def with
1695         libnsl_hidden_nolink_def.
1696         * nis/nis_addmember.c: Likewise.
1697         * nis/nis_call.c: Likewise.
1698         * nis/nis_clone_obj.c: Likewise.
1699         * nis/nis_defaults.c: Likeise.
1700         * nis/nis_domain_of_r.c: Likewise.
1701         * nis/nis_error.c: Likewise.
1702         * nis/nis_file.c: Likewise.
1703         * nis/nis_free.c: Likewise.
1704         * nis_local_names.c: Likewise.
1705         * nis/nis_lookup.c: Likewise.
1706         * nis/nis_modify.c: Likewise.
1707         * nis/nis_print.c: Likewise.
1708         * nis/nis_remove.c: Likewise.
1709         * nis/nis_table.c: Likewise.
1710         * nis/nis_util.c: Likewise.
1711         * nis/nis_xdr.c: Likewise.
1712         * nis/yp_xdr.c: Likewise.
1713         * nis/ypclnt.c: Likewise.
1714         * nis/ypupdate_xdr.c: Likewise.
1715         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
1716         * nis/nis_clone_dir.c: Likewise.
1717         * nis/nis_clone_res.c: Likewise.
1718         * nis/nis_creategroup.c: Likewise.
1719         * nis/nis_destroygroup.c: Likewise.
1720         * nis/nis_domain_of.c: Likewise.
1721         * nis/nis_getservlist.c: Likewise.
1722         * nis/nis_ismember.c: Likewise.
1723         * nis/nis_mkdir.c: Likewise.
1724         * nis/nis_ping.c: Likewise.
1725         * nis/nis_print_group_entry.c: Likewise.
1726         * nis/nis_removemember.c: Likewise.
1727         * nis/nis_rmdir.c: Likewise.
1728         * nis/nis_server.c: Likewise.
1729         * nis/nis_subr.c: Likewise.
1730         * nis/nis_verifygroup.c: Likewise.
1731
1732 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
1733
1734         * malloc/tst-interpose-aux.c (check_for_allocations):
1735         Move compiler barrier before free.
1736
1737 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
1738
1739         [BZ #21279]
1740         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1741         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1742         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
1743         x86_64-x32-linux.
1744         (mq_attr.mq_maxmsg): Likewise.
1745         (mq_attr.mq_msgsize): Likewise.
1746         (mq_attr.mq_curmsgs): Likewise.
1747
1748         [BZ #21278]
1749         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
1750         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1751         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
1752         mips-o32-linux.
1753
1754         [BZ #21268]
1755         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
1756         if [__USE_MISC]
1757         (NL3): Likewise.
1758
1759 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
1760
1761         [BZ #21275]
1762         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
1763         __stack to __stackbase.
1764         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
1765         checks so we can include defined(__ia64__) first.
1766
1767 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
1768
1769         * sysdeps/unix/sysv/linux/ttyname.h: New file.
1770         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
1771         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
1772         Call is_pty when the link does not exist or does not match, fail
1773         with ENODEV when it returns true.
1774         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
1775         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
1776         Call is_pty when the link does not exist or does not match, fail
1777         with ENODEV when it returns true.
1778
1779 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
1780
1781         [BZ #16437]
1782         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1783         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1784         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
1785         x86_64-x32-linux.
1786         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
1787         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
1788         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
1789
1790         [BZ #21261]
1791         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
1792         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
1793         names for all fields.
1794         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
1795         for jmp_buf field renaming.
1796         (_JMPBUF_UNWINDS_ADJ): Likewise.
1797
1798         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
1799         with allow-header.
1800
1801 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
1802
1803         * malloc/malloc.c (unlink): Add consistency check between size and
1804         next->prev->size, to further harden against 1-byte overflows.
1805
1806 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1807
1808         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
1809         CPU_FEATURES_CPU_P.
1810
1811 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
1812
1813         [BZ #21259]
1814         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
1815         unconditionally, not just for [__USE_MISC].
1816
1817         [BZ #17786]
1818         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
1819         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
1820         mips-o32-linux.
1821
1822         [BZ #21260]
1823         * sysdeps/unix/sysv/linux/alpha/Makefile
1824         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1825         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
1826
1827         * conform/conformtest.pl ($cross): New variable.
1828         (--cross): New command-line option.
1829         (runtest): Skip test execution when cross-compiling.
1830         * conform/Makefile (conformtest-cross): New variable.
1831         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
1832         conformtest.pl.
1833
1834         * conform/conformtest.pl ($xfail_str): New variable.
1835         (--xfail=): New command-line option.
1836         (top level): Handle expectations starting xfail[cond]-.
1837         * conform/Makefile (conformtest-xfail): New variable.
1838         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
1839         conformtest.pl.
1840
1841 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1842
1843         * conform/conformtest.pl: Use compilation instead of execution
1844         tests for testing values of constants and usability in #if.
1845
1846 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1847
1848         * math/auto-libm-test-in: Mark some catan and catanh as
1849         xfail-rounding:ibm128-libgcc.
1850         * math/auto-libm-test-out-catan: Regenerate.
1851         * math/auto-libm-test-out-catanh: Likewise.
1852
1853 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1854
1855         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
1856         (__END_NAMESPACE_STD): Likewise.
1857         (__USING_NAMESPACE_STD): Likewise.
1858         (__BEGIN_NAMESPACE_C99): Likewise.
1859         (__END_NAMESPACE_C99): Likewise.
1860         (__USING_NAMESPACE_C99): Likewise.
1861         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
1862         undefine macro.
1863         (_Mdouble_END_NAMESPACE): Likewise.
1864         * ctype/ctype.h: Do not handle C++ namespaces.
1865         * libio/bits/stdio-ldbl.h: Likewise.
1866         * libio/stdio.h: Likewise.
1867         * locale/locale.h: Likewise.
1868         * math/bits/mathcalls.h: Likewise.
1869         * setjmp/setjmp.h: Likewise.
1870         * signal/signal.h: Likewise.
1871         * stdlib/bits/stdlib-float.h: Likewise.
1872         * stdlib/bits/stdlib-ldbl.h: Likewise.
1873         * stdlib/stdlib.h: Likewise.
1874         * string/string.h: Likewise.
1875         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
1876         * time/bits/types/clock_t.h: Likewise.
1877         * time/bits/types/struct_tm.h: Likewise.
1878         * time/bits/types/time_t.h: Likewise.
1879         * time/time.h: Likewise.
1880         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1881         * wcsmbs/uchar.h: Likewise.
1882         * wcsmbs/wchar.h: Likewise.
1883         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
1884         * wctype/wctype.h: Do not handle C++ namespaces.
1885         * scripts/begin-end-check.pl: Remove.
1886         * Makefile (installed-headers): Likewise.
1887         (tests-special): Do not add $(objpfx)begin-end-check.out.
1888         ($(objpfx)begin-end-check.out): Remove.
1889
1890 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
1891             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1892
1893         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
1894         (DL_PLATFORM_INIT): New define.
1895         (dl_platform_init): New function.
1896         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
1897         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
1898         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
1899         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
1900         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
1901
1902 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
1903
1904         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
1905         instead of PIC.
1906
1907 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1908
1909         [BZ #21094]
1910         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
1911         24+24+24-bit pi for wider range of values around pi/2.
1912         * math/auto-libm-test-in: Add more tests of cos and tan.
1913         * math/auto-libm-test-out-cos: Regenerated.
1914         * math/auto-libm-test-out-tan: Likewise.
1915
1916 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
1917
1918         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
1919         (RTLD_START): Don't record stack end address in _dl_start_user.
1920
1921 2017-03-15  Alexey Neyman  <stilor@att.net>
1922
1923         [BZ #21088]
1924         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
1925         around definitions match those around use.
1926
1927 2017-03-15  Alexey Neyman  <stilor@att.net>
1928
1929         * configure.ac: Avoid empty subexpression in grep.
1930         * configure: Regenerate.
1931
1932 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1933
1934         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
1935         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
1936         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
1937         (test_wrp_rv): Fix format.
1938         (test_wrp_rv2): New macro.
1939         (do_test): Handle mlock return on 64 bits kernels with 32 bits
1940         binaries.
1941
1942 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1943
1944         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
1945         Use a union when storing pointers.
1946         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
1947         cast result when passing to INIT_VEC_PTRS_LOOP.
1948         (VECTOR_WRAPPER_fFF_3): Likewise.
1949         (VECTOR_WRAPPER_fFF_4): Likewise.
1950
1951 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1952
1953         * include/bits/mathcalls-helper-functions.h: New file.
1954         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
1955         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
1956         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
1957         math/bits/mathcalls-helper-functions.h.
1958         * math/bits/mathcalls-helper-functions.h: New file.
1959         * math/math.h: Include bits/mathcalls-helper-functions.h for
1960         float, double, and long double.
1961
1962 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1963
1964         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
1965         instead of feraiseexcept.
1966
1967 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1968
1969         [BZ #21243]
1970         * support/temp_file.c (support_delete_temp_files): Add comment
1971         about ignored errors.
1972
1973 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1974
1975         [BZ #21244]
1976         * support/xclose.c: New file.
1977         * support/Makefile (libsupport-routines): Add xclose.
1978         * support/xunistd.h (xclose): Declare.
1979         * support/resolv_test.c (server_thread_tcp_client)
1980         (server_thread_tcp, make_server_sockets, resolv_test_start)
1981         (resolv_test_end): Call xclose instead of close.
1982         * support/support_enter_network_namespace.c
1983         (support_enter_network_namespace): Likewise.
1984         * support/support_run_diff.c (write_to_temp_file): Likewise.
1985
1986 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1987
1988         * support/support_format_dns_packet.c (support_format_dns_packet):
1989         Handle CNAME records in the response.  Extract RDATA names from
1990         rdata, not the whole packet.  Check AAAA record length.
1991         * support/tst-support_format_dns_packet.c: New file.
1992         * support/Makefile (tests): Add tst-support_format_dns_packet.
1993         (tst-support_format_dns_packet): Link against libresolv.
1994
1995 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1996
1997         [BZ #21232]
1998         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
1999         posix_fadvise64 weak_alias for static build.
2000
2001 2017-03-14  Andreas Schwab  <schwab@suse.de>
2002
2003         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
2004         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
2005         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
2006         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
2007         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
2008         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
2009         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
2010         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
2011
2012 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2013
2014         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
2015         posix error code.
2016         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
2017
2018 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2019
2020         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
2021         no_isolate usage for SH.
2022
2023 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
2024
2025         [BZ #15105]
2026         [BZ #19463]
2027         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
2028         * inet/rcmd.c (rcmd_af): Likewise.
2029         * inet/rexec.c   (rexec_af): Likewise.
2030         * intl/dcigettext.c (_LIBC): Likewise.
2031         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
2032         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
2033         * locale/setlocale.c (setlocale): Likewise.
2034         * posix/spawn_faction_addopen.c
2035         (posix_spawn_file_actions_addopen): Likewise.
2036         * stdlib/putenv.c (putenv): Use __strndup.
2037         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
2038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
2039         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
2040         (__Need_M_And_C) Remove define/undef.
2041         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
2042         (__malloc_and_calloc_defined): Remove define.
2043         * string/bits/string2.h (__strdup): Remove define.
2044         (strdup): Likewise.
2045         (__strndup): Likewise.
2046         (strndup): Likewise.
2047
2048 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
2049
2050         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
2051         macro.
2052         (IPV6_ADDR_PREFERENCES): Likewise.
2053         (IPV6_MINHOPCOUNT): Likewise.
2054         (IPV6_ORIGDSTADDR): Likewise.
2055         (IPV6_RECVORIGDSTADDR): Likewise.
2056         (IPV6_TRANSPARENT): Likewise.
2057         (IPV6_UNICAST_IF): Likewise.
2058         (IPV6_RECVFRAGSIZE): Likewise.
2059
2060 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
2061
2062         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
2063
2064 2017-03-12  Alexey Neyman <stilor@att.net>
2065
2066         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
2067         in R_SH_DIR32 case is always false when inlined from
2068         dl-conflict.c. Ifdef out to prevent GCC from insertin an
2069
2070 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
2071
2072         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2073         (__ASSUME_RECV_SYSCALL): Replace duplicate by
2074         __ASSUME_SEND_SYSCALL.
2075
2076 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
2077
2078         * sunrpc/Makefile: don't build and install rpcsvc header
2079         files, rpcgen and librpcsvc.a by default.
2080
2081 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
2082
2083         * math/auto-libm-test-out-catan: Regenerated.
2084         * math/auto-libm-test-out-catanh: Likewise.
2085         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2086
2087 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
2088
2089         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
2090         for long double with corrected test expectations.
2091
2092 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2093
2094         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
2095         Define.
2096         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
2097         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
2098         * sysdeps/unix/sysv/linux/nios2/sysdep.h
2099         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2100         * sysdeps/unix/sysv/linux/tile/sysdep.h
2101         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2102         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2103         (__ASSUME_RECV_SYSCALL): Define.
2104         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2105         (__ASSUME_RECV_SYSCALL): Likewise.
2106         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2107         (__ASSUME_RECV_SYSCALL): Likewise.
2108         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2109         (__ASSUME_RECV_SYSCALL): Likewise.
2110         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2111         (__ASSUME_RECV_SYSCALL): Likewise.
2112         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2113         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
2114         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2115         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2116         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2117         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2118         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
2119         auto-generation list.
2120         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2121         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2122         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
2123         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2124         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2125         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
2126         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
2127         __ASSUME_SENDTO_SYSCALL.
2128         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
2129         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
2130         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
2131
2132         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
2133         auto-generation list.
2134         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2135         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2136         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2137         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2138         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2139         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2140         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2141         * sysdeps/unix/sysv/linux/kernel-features.h
2142         (__ASSUME_SENDTO_SYSCALL): Define by default.
2143         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2144         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
2145         __NR_sendto.
2146         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2147         (__ASSUME_SENDTO_SYSCALL): Likewise.
2148         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2149         (__ASSUME_SENDTO_SYSCALL): Likewise.
2150         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2151         (__ASSUME_SENDTO_SYSCALL): Remove definition.
2152         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2153         (__ASSUME_SENDTO_SYSCALL): Likewise.
2154         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
2155         (__ASSUME_SENDTO_SYSCALL): Likewise.
2156         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
2157
2158         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
2159         auto-generation list.
2160         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2161         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2162         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2163         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2164         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2165         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2166         (__ASSUME_RECV_SYSCALL): New define.
2167         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2168         (__ASSUME_RECV_SYSCALL): Likewise.
2169         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2170         (__ASSUME_RECV_SYSCALL): Likewise.
2171         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2172         (__ASSUME_RECV_SYSCALL): Likewise.
2173         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2174         (__ASSUME_RECV_SYSCALL): Likewise.
2175         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2176         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2177         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2178         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2179         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2180         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2181         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
2182         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
2183         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
2184         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
2185         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
2186         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
2187
2188         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
2189         auto-generation list.
2190         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2191         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2192         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2193         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2194         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2195         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2196         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2197         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2198         (__ASSUME_RECVFROM_SYSCALL): Define by default.
2199         * sysdeps/unix/sysv/linux/kernel-features.h
2200         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
2201         __NR_recvfrom.
2202         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2203         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2204         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2205         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2206         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2207         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
2208         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2209         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2210         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2211         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2212         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2213         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2214         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
2215
2216         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
2217         auto-generation list.
2218         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2219         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2220         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2221         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2222         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2223         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2224         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2225         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
2226         * sysdeps/unix/sysv/linux/kernel-features.h
2227         (__ASSUME_CONNECT_SYSCALL): Define.
2228         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2229         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
2230         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2231         (__ASSUME_CONNECT_SYSCALL): Likewise.
2232         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2233         (__ASSUME_CONNECT_SYSCALL): Likewise.
2234         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2235         (__ASSUME_CONNECT_SYSCALL): Likewise.
2236
2237         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
2238         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
2239         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
2240         auto-generation list.
2241         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2242         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2243         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2244         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2245         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2246         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2247         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2248         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2249         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2250         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2251         * sysdeps/unix/sysv/linux/kernel-features.h
2252         (__ASSUME_ACCEPT_SYSCALL): New define.
2253         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2254         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2255         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
2256         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2257         (__ASSUME_ACCEPT_SYSCALL): Define.
2258         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2259         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2260         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2261         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2262         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2263         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2264         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2265         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2266         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
2267
2268 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
2269             Zack Weinberg  <zackw@panix.com>
2270
2271         * posix/test-errno.c: New file.
2272         * posix/Makefile (tests): Add test-errno.
2273         * sysdeps/unix/sysv/linux/test-errno.c: New file.
2274         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
2275
2276 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
2277
2278         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2279
2280 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2281
2282         * time/tzset.c (compute_offset): Open-code min macro.
2283         (min, max, sign): Remove.
2284
2285 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2286
2287         [BZ #15576]
2288         Remove TZNAME_MAX limit from sysconf.
2289         * include/time.h (__tzname_cur_max, __tzname_max): Remove
2290         declaration.
2291         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
2292         compute_tzname_max.
2293         (compute_tzname_max): Remove.
2294         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
2295         (update_vars): Do not update __tzname_cur_max.
2296         (tzset_internal): Remove argument.
2297         (__tzset): Adjust call to tzset_internal.
2298         (__tz_convert): Likewise.
2299
2300         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
2301         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2302         * manual/conf.texi (Sysconf Definition): Update comment.
2303
2304 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2305
2306         [BZ #21209]
2307         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
2308         AT_SECURE processes.
2309         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
2310         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
2311         (test_child): Likewise.
2312         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
2313
2314 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2315
2316         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
2317
2318 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2319
2320         * sysdeps/s390/atomic-machine.h
2321         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
2322         (__arch_compare_and_exchange_val_8_acq,
2323         __arch_compare_and_exchange_val_16_acq,
2324         __arch_compare_and_exchange_val_32_acq,
2325         __arch_compare_and_exchange_val_64_acq):
2326         Delete macro.
2327         (atomic_compare_and_exchange_val_acq,
2328         atomic_compare_and_exchange_val_rel,
2329         atomic_compare_and_exchange_bool_acq,
2330         catomic_compare_and_exchange_bool_acq,
2331         atomic_exchange_acq, atomic_exchange_rel,
2332         atomic_exchange_and_add_acq,
2333         atomic_exchange_and_add_rel,
2334         catomic_exchange_and_add, atomic_or_val,
2335         atomic_or, catomic_or, atomic_bit_test_set,
2336         atomic_and_val, atomic_and, catomic_and):
2337         Define macros with help of C11 atomic builtins.
2338
2339 2017-03-03  Justus Winter <justus@gnupg.org>
2340
2341         * sysdeps/mach/hurd/ftruncate64.c: New file.
2342         * sysdeps/mach/hurd/truncate64.c: Likewise.
2343
2344 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2345
2346         * time/tzfile.c (NOID): Do not define.
2347         * time/tzset.c (NOID): Likewise.
2348
2349 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2350
2351         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
2352
2353 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2354
2355         * elf/get-dynamic-info.h: Remove header file inclusion guard.
2356
2357 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2358
2359         [BZ #21015]
2360         * manual/install.texi (Configuring and compiling): Document
2361         --enable-bind-now.
2362         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
2363         (build-shlib-helper): Use $(LDFLAGS-lib.so).
2364         (format.lds): Likewise.
2365         [bind-now] (LDFLAGS-c.so): Remove.
2366         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
2367         be R_X86_64_GLOB_DAT.
2368         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
2369         relocation can be R_386_GLOB_DAT.
2370         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
2371         relocaiton can be R_ALPHA_GLOB_DAT.
2372         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
2373
2374 2017-03-01  Zack Weinberg  <zackw@panix.com>
2375
2376         * include/libc-pointer-arith.h: New file.  Define
2377         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
2378         PTR_ALIGN_DOWN here.
2379         * include/libc-internal.h: Definitions of above macros
2380         moved from here.  Don't include libc-diag.h anymore either.
2381         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
2382         Don't include libc-internal.h.
2383
2384         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
2385         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
2386         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
2387         * string/strcoll_l.c, sysdeps/nacl/brk.c
2388         * sysdeps/unix/clock_settime.c
2389         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
2390         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
2391         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
2392         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
2393         Don't include libc-internal.h.
2394
2395         * elf/get-dynamic-info.h, iconv/loop.c
2396         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
2397         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
2398         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
2399         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
2400         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2401         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
2402         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2403         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
2404         * sysdeps/ieee754/ldbl-128/k_tanl.c
2405         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
2406         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
2407         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
2408         Include libc-diag.h instead of libc-internal.h.
2409
2410         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
2411         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
2412         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
2413         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
2414         * sysdeps/unix/sysv/linux/spawni.c
2415         * sysdeps/x86_64/nptl/tls.h:
2416         Include libc-pointer-arith.h instead of libc-internal.h.
2417
2418         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
2419         * sysdeps/x86_64/atomic-machine.h:
2420         Add multiple include guard.
2421
2422         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
2423         * string/strcasestr.c: No need to include config.h.
2424         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2425         sys/auxv.h. Don't include sysdep.h.
2426         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
2427
2428         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
2429         DL_LOOKUP_ADDRESS.
2430         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
2431         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
2432         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
2433         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
2434         of ARTIFICIAL_LIMIT.
2435         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
2436         declaration of __clone2.
2437
2438 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2439
2440         * scripts/backport-support.sh (latest_commit): New file.
2441
2442 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2443
2444         [BZ #20257]
2445         * inet/Makefile (routines): Add deadline.
2446         (tests-static): Add tst-deadline.
2447         * inet/net-internal.h (struct deadline_current_time)
2448         (__deadline_current_time, struct deadline, __deadline_is_infinite)
2449         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
2450         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
2451         * inet/deadline.c: New file.
2452         * inet/tst-deadline.c: Likewise.
2453         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
2454         tst-udp-timeout, tst-udp-garbage.
2455         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
2456         explicitly.
2457         (tst-udp-garbage): Likewise.  Also link against thread library.
2458         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
2459         struct layout is part of the ABI.
2460         (clntudp_call): Rework timeout handling.
2461         * sunrpc/tst-udp-garbage.c: New file.
2462         * sunrpc/tst-udp-nonblocking.c: Likewise.
2463         * sunrpc/tst-udp-timeout.c: Likewise.
2464
2465 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2466
2467         [BZ #5010]
2468         * sunrpc/svc.c (svc_is_mapped): Remove.
2469         (svc_unregister): Obtain mapped status while the service is still
2470         registered.
2471         * sunrpc/Makefile [have-thread-library] (tests): Add
2472         tst-svc_register.
2473         (tst-svc_register): Link against libc.so explicitly and the thread
2474         library.
2475         * sunrpc/tst-svc_register.c: New file.
2476
2477 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2478
2479         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
2480         * sysdeps/pthread/bits/sigthread.h: Likewise.
2481
2482 2017-02-27  Florian Weimer  <fweimer@redhat.com>
2483
2484         [BZ #21115]
2485         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
2486         * sunrpc/Makefile (tests): Add tst-udp-error.
2487         (tst-udp-error): Link against libc.so explicitly.
2488         * sunrpc/tst-udp-error: New file.
2489
2490 2017-02-25  Zack Weinberg  <zackw@panix.com>
2491
2492         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
2493         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
2494
2495         * sysdeps/generic/math_ldbl.h
2496         * sysdeps/ia64/fpu/math_ldbl.h
2497         * sysdeps/ieee754/ldbl-128/math_ldbl.h
2498         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2499         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2500         * sysdeps/powerpc/fpu/math_ldbl.h
2501         * sysdeps/x86_64/fpu/math_ldbl.h:
2502         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
2503         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
2504         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
2505         Add copyright notices.
2506
2507         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
2508         Don't use EXTRACT_WORDS64.
2509
2510         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
2511         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
2512         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
2513         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
2514         Include math_ldbl.h, not math_private.h.
2515
2516 2017-02-25  Zack Weinberg  <zackw@panix.com>
2517
2518         * include/libc-diag.h: New file.  Define ignore_value,
2519         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
2520         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
2521
2522         * include/libc-internal.h: Definitions of above macros moved from
2523         here.  Include libc-diag.h.  Add copyright notice.
2524
2525         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
2526         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
2527         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
2528         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
2529         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
2530         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
2531         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
2532         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
2533         Include libc-diag.h instead of libc-internal.h.
2534
2535         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
2536         call to unsetenv (NULL).
2537         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
2538         call to pthread_mutexattr_destroy (NULL).
2539
2540 2017-02-25  Zack Weinberg  <zackw@panix.com>
2541
2542         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
2543         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
2544         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
2545         gets was removed from C++ in C++14.
2546         * include/stdio.h: Remove redundant declaration of gets.
2547         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
2548         be declared, since we are testing it.
2549         * stdio-common/Makefile (tst-gets.c): Compile with
2550         -Wno-deprecated-declarations.
2551         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
2552         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
2553         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
2554         Compile with -Wno-deprecated-declarations.
2555
2556 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2557
2558         * math/libm-test-support.c (check_ulp): Use LIT() around literal
2559         numbers.
2560
2561 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2562
2563         * resolv/tst-resolv-qtypes.c (domain):
2564         Change type to const pointer to const char.
2565
2566 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
2567
2568         * math/Makefile (libm-tests-generated): Remove variable.
2569         (libm-tests-base-normal): New variable.
2570         (libm-tests-base-finite): Likewise.
2571         (libm-tests-base-inline): Likewise.
2572         (libm-tests-base): Likewise.
2573         (libm-tests-normal): Likewise.
2574         (libm-tests-finite): Likewise.
2575         (libm-tests-inline): Likewise.
2576         (libm-tests-vector): Likewise.
2577         (libm-tests): Define in terms of these new variables.
2578         (libm-tests-for-type): New variable.
2579         (libm-tests.o): Move definition.
2580         (tests): Move addition of $(libm-tests).
2581         (generated): Update for new and removed libm test files.
2582         ($(objpfx)libm-test.c): Remove target.
2583         ($(objpfx)libm-have-vector-test.h): Likewise.
2584         (CFLAGS-test-double-vlen2.c): Remove variable.
2585         (CFLAGS-test-double-vlen4.c): Likewise.
2586         (CFLAGS-test-double-vlen8.c): Likewise.
2587         (CFLAGS-test-float-vlen4.c): Likewise.
2588         (CFLAGS-test-float-vlen8.c): Likewise.
2589         (CFLAGS-test-float-vlen16.c): Likewise.
2590         (CFLAGS-test-float.c): Likewise.
2591         (CFLAGS-test-float-finite.c): Likewise.
2592         (CFLAGS-libm-test-support-float.c): Likewise.
2593         (CFLAGS-test-double.c): Likewise.
2594         (CFLAGS-test-double-finite.c): Likewise.
2595         (CFLAGS-libm-test-support-double.c): Likewise.
2596         (CFLAGS-test-ldouble.c): Likewise.
2597         (CFLAGS-test-ldouble-finite.c): Likewise.
2598         (CFLAGS-libm-test-support-ldouble.c): Likewise.
2599         (libm-test-inline-cflags): New variable.
2600         (CFLAGS-test-ifloat.c): Remove variable.
2601         (CFLAGS-test-idouble.c): Likewise.
2602         (CFLAGS-test-ildouble.c): Likewise.
2603         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
2604         dependencies.
2605         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
2606         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
2607         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
2608         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
2609         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
2610         Likewise.
2611         (dependencies on libm-test-support-*.o): Remove.
2612         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
2613         rules using iterators.
2614         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
2615         Likewise.
2616         ($(objpfx)libm-test-support-$(o).o): Likewise.
2617         ($(addprefix $(objpfx),$(filter-out $(tests-static)
2618         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
2619         instead.
2620         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
2621         define rule instead.
2622         * math/README.libm-test: Update.
2623         * math/libm-test-acos.inc: Include libm-test-driver.c.
2624         (do_test): New function.
2625         * math/libm-test-acosh.inc: Include libm-test-driver.c.
2626         (do_test): New function.
2627         * math/libm-test-asin.inc: Include libm-test-driver.c.
2628         (do_test): New function.
2629         * math/libm-test-asinh.inc: Include libm-test-driver.c.
2630         (do_test): New function.
2631         * math/libm-test-atan.inc: Include libm-test-driver.c.
2632         (do_test): New function.
2633         * math/libm-test-atan2.inc: Include libm-test-driver.c.
2634         (do_test): New function.
2635         * math/libm-test-atanh.inc: Include libm-test-driver.c.
2636         (do_test): New function.
2637         * math/libm-test-cabs.inc: Include libm-test-driver.c.
2638         (do_test): New function.
2639         * math/libm-test-cacos.inc: Include libm-test-driver.c.
2640         (do_test): New function.
2641         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
2642         (do_test): New function.
2643         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
2644         (do_test): New function.
2645         * math/libm-test-carg.inc: Include libm-test-driver.c.
2646         (do_test): New function.
2647         * math/libm-test-casin.inc: Include libm-test-driver.c.
2648         (do_test): New function.
2649         * math/libm-test-casinh.inc: Include libm-test-driver.c.
2650         (do_test): New function.
2651         * math/libm-test-catan.inc: Include libm-test-driver.c.
2652         (do_test): New function.
2653         * math/libm-test-catanh.inc: Include libm-test-driver.c.
2654         (do_test): New function.
2655         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
2656         (do_test): New function.
2657         * math/libm-test-ccos.inc: Include libm-test-driver.c.
2658         (do_test): New function.
2659         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
2660         (do_test): New function.
2661         * math/libm-test-ceil.inc: Include libm-test-driver.c.
2662         (do_test): New function.
2663         * math/libm-test-cexp.inc: Include libm-test-driver.c.
2664         (do_test): New function.
2665         * math/libm-test-cimag.inc: Include libm-test-driver.c.
2666         (do_test): New function.
2667         * math/libm-test-clog.inc: Include libm-test-driver.c.
2668         (do_test): New function.
2669         * math/libm-test-clog10.inc: Include libm-test-driver.c.
2670         (do_test): New function.
2671         * math/libm-test-conj.inc: Include libm-test-driver.c.
2672         (do_test): New function.
2673         * math/libm-test-copysign.inc: Include libm-test-driver.c.
2674         (do_test): New function.
2675         * math/libm-test-cos.inc: Include libm-test-driver.c.
2676         (do_test): New function.
2677         * math/libm-test-cosh.inc: Include libm-test-driver.c.
2678         (do_test): New function.
2679         * math/libm-test-cpow.inc: Include libm-test-driver.c.
2680         (do_test): New function.
2681         * math/libm-test-cproj.inc: Include libm-test-driver.c.
2682         (do_test): New function.
2683         * math/libm-test-creal.inc: Include libm-test-driver.c.
2684         (do_test): New function.
2685         * math/libm-test-csin.inc: Include libm-test-driver.c.
2686         (do_test): New function.
2687         * math/libm-test-csinh.inc: Include libm-test-driver.c.
2688         (do_test): New function.
2689         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
2690         (do_test): New function.
2691         * math/libm-test-ctan.inc: Include libm-test-driver.c.
2692         (do_test): New function.
2693         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
2694         (do_test): New function.
2695         * math/libm-test-erf.inc: Include libm-test-driver.c.
2696         (do_test): New function.
2697         * math/libm-test-erfc.inc: Include libm-test-driver.c.
2698         (do_test): New function.
2699         * math/libm-test-exp.inc: Include libm-test-driver.c.
2700         (do_test): New function.
2701         * math/libm-test-exp10.inc: Include libm-test-driver.c.
2702         (do_test): New function.
2703         * math/libm-test-exp2.inc: Include libm-test-driver.c.
2704         (do_test): New function.
2705         * math/libm-test-expm1.inc: Include libm-test-driver.c.
2706         (do_test): New function.
2707         * math/libm-test-fabs.inc: Include libm-test-driver.c.
2708         (do_test): New function.
2709         * math/libm-test-fdim.inc: Include libm-test-driver.c.
2710         (do_test): New function.
2711         * math/libm-test-floor.inc: Include libm-test-driver.c.
2712         (do_test): New function.
2713         * math/libm-test-fma.inc: Include libm-test-driver.c.
2714         (do_test): New function.
2715         * math/libm-test-fmax.inc: Include libm-test-driver.c.
2716         (do_test): New function.
2717         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
2718         (do_test): New function.
2719         * math/libm-test-fmin.inc: Include libm-test-driver.c.
2720         (do_test): New function.
2721         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
2722         (do_test): New function.
2723         * math/libm-test-fmod.inc: Include libm-test-driver.c.
2724         (do_test): New function.
2725         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
2726         (do_test): New function.
2727         * math/libm-test-frexp.inc: Include libm-test-driver.c.
2728         (do_test): New function.
2729         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
2730         (do_test): New function.
2731         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
2732         (do_test): New function.
2733         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
2734         (do_test): New function.
2735         * math/libm-test-hypot.inc: Include libm-test-driver.c.
2736         (do_test): New function.
2737         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
2738         (do_test): New function.
2739         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
2740         (do_test): New function.
2741         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
2742         (do_test): New function.
2743         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
2744         (do_test): New function.
2745         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
2746         (do_test): New function.
2747         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
2748         (do_test): New function.
2749         * math/libm-test-isinf.inc: Include libm-test-driver.c.
2750         (do_test): New function.
2751         * math/libm-test-isless.inc: Include libm-test-driver.c.
2752         (do_test): New function.
2753         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
2754         (do_test): New function.
2755         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
2756         (do_test): New function.
2757         * math/libm-test-isnan.inc: Include libm-test-driver.c.
2758         (do_test): New function.
2759         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
2760         (do_test): New function.
2761         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
2762         (do_test): New function.
2763         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
2764         (do_test): New function.
2765         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
2766         (do_test): New function.
2767         * math/libm-test-iszero.inc: Include libm-test-driver.c.
2768         (do_test): New function.
2769         * math/libm-test-j0.inc: Include libm-test-driver.c.
2770         (do_test): New function.
2771         * math/libm-test-j1.inc: Include libm-test-driver.c.
2772         (do_test): New function.
2773         * math/libm-test-jn.inc: Include libm-test-driver.c.
2774         (do_test): New function.
2775         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
2776         (do_test): New function.
2777         * math/libm-test-llogb.inc: Include libm-test-driver.c.
2778         (do_test): New function.
2779         * math/libm-test-llrint.inc: Include libm-test-driver.c.
2780         (do_test): New function.
2781         * math/libm-test-llround.inc: Include libm-test-driver.c.
2782         (do_test): New function.
2783         * math/libm-test-log.inc: Include libm-test-driver.c.
2784         (do_test): New function.
2785         * math/libm-test-log10.inc: Include libm-test-driver.c.
2786         (do_test): New function.
2787         * math/libm-test-log1p.inc: Include libm-test-driver.c.
2788         (do_test): New function.
2789         * math/libm-test-log2.inc: Include libm-test-driver.c.
2790         (do_test): New function.
2791         * math/libm-test-logb.inc: Include libm-test-driver.c.
2792         (do_test): New function.
2793         * math/libm-test-lrint.inc: Include libm-test-driver.c.
2794         (do_test): New function.
2795         * math/libm-test-lround.inc: Include libm-test-driver.c.
2796         (do_test): New function.
2797         * math/libm-test-modf.inc: Include libm-test-driver.c.
2798         (do_test): New function.
2799         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
2800         (do_test): New function.
2801         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
2802         (do_test): New function.
2803         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
2804         (do_test): New function.
2805         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
2806         (do_test): New function.
2807         * math/libm-test-nextup.inc: Include libm-test-driver.c.
2808         (do_test): New function.
2809         * math/libm-test-pow.inc: Include libm-test-driver.c.
2810         (do_test): New function.
2811         * math/libm-test-remainder.inc: Include libm-test-driver.c.
2812         (do_test): New function.
2813         * math/libm-test-remquo.inc: Include libm-test-driver.c.
2814         (do_test): New function.
2815         * math/libm-test-rint.inc: Include libm-test-driver.c.
2816         (do_test): New function.
2817         * math/libm-test-round.inc: Include libm-test-driver.c.
2818         (do_test): New function.
2819         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
2820         (do_test): New function.
2821         * math/libm-test-scalb.inc: Include libm-test-driver.c.
2822         (do_test): New function.
2823         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
2824         (do_test): New function.
2825         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
2826         (do_test): New function.
2827         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
2828         (do_test): New function.
2829         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
2830         (do_test): New function.
2831         * math/libm-test-signbit.inc: Include libm-test-driver.c.
2832         (do_test): New function.
2833         * math/libm-test-significand.inc: Include libm-test-driver.c.
2834         (do_test): New function.
2835         * math/libm-test-sin.inc: Include libm-test-driver.c.
2836         (do_test): New function.
2837         * math/libm-test-sincos.inc: Include libm-test-driver.c.
2838         (do_test): New function.
2839         * math/libm-test-sinh.inc: Include libm-test-driver.c.
2840         (do_test): New function.
2841         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
2842         (do_test): New function.
2843         * math/libm-test-tan.inc: Include libm-test-driver.c.
2844         (do_test): New function.
2845         * math/libm-test-tanh.inc: Include libm-test-driver.c.
2846         (do_test): New function.
2847         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
2848         (do_test): New function.
2849         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
2850         (do_test): New function.
2851         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
2852         (do_test): New function.
2853         * math/libm-test-trunc.inc: Include libm-test-driver.c.
2854         (do_test): New function.
2855         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
2856         (do_test): New function.
2857         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
2858         (do_test): New function.
2859         * math/libm-test-y0.inc: Include libm-test-driver.c.
2860         (do_test): New function.
2861         * math/libm-test-y1.inc: Include libm-test-driver.c.
2862         (do_test): New function.
2863         * math/libm-test-yn.inc: Include libm-test-driver.c.
2864         (do_test): New function.
2865         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
2866         (HAVE_VECTOR): Remove macro.
2867         (START): Do not call HAVE_VECTOR.
2868         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
2869         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
2870         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
2871         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
2872         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
2873         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
2874         * math/test-math-vector.h (FUNC_TEST): New macro.
2875         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
2876         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
2877         (double-vlen4-funcs): Likewise.
2878         (double-vlen4-avx2-funcs): Likewise.
2879         (double-vlen8-funcs): Likewise.
2880         (float-vlen4-funcs): Likewise.
2881         (float-vlen8-funcs): Likewise.
2882         (float-vlen8-avx2-funcs): Likewise.
2883         (float-vlen16-funcs): Likewise.
2884         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
2885         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
2886         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
2887         macro.
2888         (TEST_VECTOR_sin): Likewise.
2889         (TEST_VECTOR_sincos): Likewise.
2890         (TEST_VECTOR_log): Likewise.
2891         (TEST_VECTOR_exp): Likewise.
2892         (TEST_VECTOR_pow): Likewise.
2893         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
2894         Likewise.
2895         (TEST_VECTOR_sin): Likewise.
2896         (TEST_VECTOR_sincos): Likewise.
2897         (TEST_VECTOR_log): Likewise.
2898         (TEST_VECTOR_exp): Likewise.
2899         (TEST_VECTOR_pow): Likewise.
2900         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
2901         Likewise.
2902         (TEST_VECTOR_sinf): Likewise.
2903         (TEST_VECTOR_sincosf): Likewise.
2904         (TEST_VECTOR_logf): Likewise.
2905         (TEST_VECTOR_expf): Likewise.
2906         (TEST_VECTOR_powf): Likewise.
2907         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
2908         Likewise.
2909         (TEST_VECTOR_sinf): Likewise.
2910         (TEST_VECTOR_sincosf): Likewise.
2911         (TEST_VECTOR_logf): Likewise.
2912         (TEST_VECTOR_expf): Likewise.
2913         (TEST_VECTOR_powf): Likewise.
2914         * math/gen-libm-have-vector-test.sh: Remove file.
2915         * math/libm-test.inc: Likewise.
2916         * math/libm-test-support-double.c: Likewise.
2917         * math/libm-test-support-float.c: Likewise.
2918         * math/libm-test-support-ldouble.c: Likewise.
2919         * math/test-double-finite.c: Likewise.: Likewise.
2920         * math/test-double.c: Likewise.
2921         * math/test-float-finite.c: Likewise.
2922         * math/test-float.c: Likewise.
2923         * math/test-idouble.c: Likewise.
2924         * math/test-ifloat.c: Likewise.
2925         * math/test-ildouble.c: Likewise.
2926         * math/test-ldouble-finite.c: Likewise.
2927         * math/test-ldouble.c: Likewise.
2928         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
2929         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
2930         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
2931         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
2932         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
2933         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
2934         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
2935         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
2936         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
2937         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
2938
2939 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2940            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2941
2942         * math/Makefile: Add wrappers to gen-libm-calls.
2943         * math/w_acos_template.c: New file.
2944         * math/w_acosh_template.c: Likewise.
2945         * math/w_asin_template.c: Likewise.
2946         * math/w_atan2_template.c: Likewise.
2947         * math/w_atanh_template.c: Likewise.
2948         * math/w_cosh_template.c: Likewise.
2949         * math/w_exp10_template.c: Likewise.
2950         * math/w_exp2_template.c: Likewise.
2951         * math/w_exp_template.c: Likewise.
2952         * math/w_fmod_template.c: Likewise.
2953         * math/w_hypot_template.c: Likewise.
2954         * math/w_j0_template.c: Likewise.
2955         * math/w_j1_template.c: Likewise.
2956         * math/w_jn_template.c: Likewise.
2957         * math/w_lgamma_r_template.c: Likewise.
2958         * math/w_lgamma_template.c: Likewise.
2959         * math/w_log10_template.c: Likewise.
2960         * math/w_log2_template.c: Likewise.
2961         * math/w_log_template.c: Likewise.
2962         * math/w_pow_template.c: Likewise.
2963         * math/w_remainder_template.c: Likewise.
2964         * math/w_sinh_template.c: Likewise.
2965         * math/w_sqrt_template.c: Likewise.
2966         * math/w_tgamma_template.c: Likewise.: Likewise.
2967         * sysdeps/generic/math-type-macros-double.h
2968         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
2969         the new wrappers.
2970         * sysdeps/generic/math-type-macros-float.h: Likewise.
2971         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2972
2973 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
2974
2975         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
2976         New enum constant and macro.
2977
2978         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2979         kernel version to 4.10.
2980
2981 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
2982
2983         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
2984
2985 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2986
2987         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2988
2989 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2990
2991         * sysdeps/powerpc/tst-set_ppr.c: New file.
2992         Implement test cases for __ppc_set_ppr_* functions.
2993         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
2994         in the list of tests.
2995
2996 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2997
2998         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
2999         instead of test-skeleton.c.
3000         (do_test): Replaced pthread_create and pthread_join with
3001         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
3002         Removed unneeded status variable.
3003         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
3004         instead of test-skeleton.c.
3005         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
3006
3007 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
3008
3009         [BZ #20313]
3010         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
3011         201605L, for Unicode 9.
3012
3013 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
3014
3015         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
3016         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3017         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3018         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3019         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3020         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3021
3022 2017-02-19  Zack Weinberg  <zackw@panix.com>
3023
3024         * rt/tst-mqueue4.c: Include stdint.h.
3025
3026 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3027
3028         * sysdeps/arm/libm-test-ulps: Update.
3029         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
3030         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3031         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
3032
3033 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3034
3035         [BZ #21029]
3036         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
3037         * sysdeps/unix/sysv/linux/i386/Makefile
3038         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
3039         (uses-6-syscall-arguments): Remove.
3040         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
3041         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
3042         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
3043         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
3044         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
3045         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
3046         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
3047         [$(subdir) = misc] (cflags-pselect.o): Likewise.
3048         [$(subdir) = misc] (cflags-pselect.os): Likewise.
3049         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
3050         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
3051         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
3052         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
3053         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
3054         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
3055         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
3056         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
3057         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
3058         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
3059         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
3060         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
3061         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
3062         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
3063         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
3064         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
3065         Likewise.
3066         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
3067         Likewise.
3068         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
3069         Likewise.
3070         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
3071         Likewise.
3072         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
3073         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
3074         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
3075         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
3076         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
3077         ebp on inline assembly.
3078         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
3079         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
3080         Set if CAN_USE_REGISTER_ASM_EBP is set.
3081
3082 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3083
3084         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
3085         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
3086
3087 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3088
3089         * math/auto-libm-test-in: Add tests of catan and catanh.
3090         * math/auto-libm-test-out-catan: New generated file.
3091         * math/auto-libm-test-out-catanh: Likewise.
3092         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
3093         Move tests with finite inputs, except divide-by-zero cases, to
3094         auto-libm-test-in.
3095         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
3096         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
3097         (libm-test-funcs-noauto): Remove catan and catanh.
3098         * sysdeps/i386/fpu/libm-test-ulps: Update.
3099         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3101
3102         * math/auto-libm-test-in: Add tests of casin and casinh.
3103         * math/auto-libm-test-out-casin: New generated file.
3104         * math/auto-libm-test-out-casinh: Likewise.
3105         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
3106         Move tests with finite inputs to auto-libm-test-in.
3107         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
3108         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
3109         (libm-test-funcs-noauto): Remove casin and casinh.
3110         * sysdeps/i386/fpu/libm-test-ulps: Update.
3111         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3113
3114         * math/auto-libm-test-in: Add tests of cacos and cacosh.
3115         * math/auto-libm-test-out-cacos: New generated file.
3116         * math/auto-libm-test-out-cacosh: Likewise.
3117         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
3118         Move tests with finite inputs to auto-libm-test-in.
3119         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
3120         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
3121         (libm-test-funcs-noauto): Remove cacos and cacosh.
3122         * sysdeps/i386/fpu/libm-test-ulps: Update.
3123         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3125
3126         Revert:
3127         2017-02-16  Zack Weinberg  <zackw@panix.com>
3128
3129         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3130         Don't include init-arch.h.
3131         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3132         Don't include init-arch.h.
3133
3134 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3135
3136         [BZ #21171]
3137         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
3138         +Inf and raise divide-by-zero when x is negative.
3139         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
3140         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
3141         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
3142         -Inf and raise divide-by-zero when x = +-0.
3143         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3144         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3145         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3146         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3147         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3148         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3149         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3150
3151 2017-02-16  Zack Weinberg  <zackw@panix.com>
3152
3153         * scripts/build-many-glibcs.py (bot_build_mail): If the
3154         bot_config does not contain all of the necessary email-
3155         related settings, just print a warning and continue.
3156
3157 2017-02-16  Zack Weinberg  <zackw@panix.com>
3158
3159         * crypt/md5.h: Test _LIBC with #if defined, not #if.
3160         * dirent/opendir-tst1.c: Include sys/stat.h.
3161         * dirent/tst-fdopendir.c: Include sys/stat.h.
3162         * dirent/tst-fdopendir2.c: Include stdlib.h.
3163         * dirent/tst-scandir.c: Include stdbool.h.
3164         * elf/tst-auditmod1.c: Include link.h and stddef.h.
3165         * elf/tst-tls15.c: Include stdlib.h.
3166         * elf/tst-tls16.c: Include stdlib.h.
3167         * elf/tst-tls17.c: Include stdlib.h.
3168         * elf/tst-tls18.c: Include stdlib.h.
3169         * iconv/tst-iconv6.c: Include endian.h.
3170         * iconvdata/bug-iconv11.c: Include limits.h.
3171         * io/test-utime.c: Include stdint.h.
3172         * io/tst-faccessat.c: Include sys/stat.h.
3173         * io/tst-fchmodat.c: Include sys/stat.h.
3174         * io/tst-fchownat.c: Include sys/stat.h.
3175         * io/tst-fstatat.c: Include sys/stat.h.
3176         * io/tst-futimesat.c: Include sys/stat.h.
3177         * io/tst-linkat.c: Include sys/stat.h.
3178         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
3179         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
3180         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
3181         * io/tst-openat.c: Include stdbool.h.
3182         * io/tst-readlinkat.c: Include sys/stat.h.
3183         * io/tst-renameat.c: Include sys/stat.h.
3184         * io/tst-symlinkat.c: Include sys/stat.h.
3185         * io/tst-unlinkat.c: Include stdbool.h.
3186         * libio/bug-memstream1.c: Include stdlib.h.
3187         * libio/bug-wmemstream1.c: Include stdlib.h.
3188         * libio/tst-fwrite-error.c: Include stdlib.h.
3189         * libio/tst-memstream1.c: Include stdlib.h.
3190         * libio/tst-memstream2.c: Include stdlib.h.
3191         * libio/tst-memstream3.c: Include stdlib.h.
3192         * malloc/tst-interpose-aux.c: Include stdint.h.
3193         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
3194         * nptl/tst-basic7.c: Include limits.h.
3195         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
3196         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
3197         * nptl/tst-cancel4_1.c: Include stddef.h.
3198         * nptl/tst-cancel4_2.c: Include stddef.h.
3199         * nptl/tst-cond16.c: Include limits.h.
3200         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3201         * nptl/tst-cond18.c: Include limits.h.
3202         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3203         * nptl/tst-cond4.c: Include stdint.h.
3204         * nptl/tst-cond6.c: Include stdint.h.
3205         * nptl/tst-stack2.c: Include limits.h.
3206         * nptl/tst-stackguard1.c: Include stddef.h.
3207         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
3208         * nptl/tst-tls4moda.c: Include stddef.h.
3209         Don't include stdio.h, unistd.h, or tls.h.
3210         * nptl/tst-tls4modb.c: Include stddef.h.
3211         Don't include stdio.h, unistd.h, or tls.h.
3212         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
3213         * posix/tst-getaddrinfo2.c: Include stdio.h.
3214         * posix/tst-getaddrinfo5.c: Include stdio.h.
3215         * posix/tst-pathconf.c: Include sys/stat.h.
3216         * posix/tst-posix_fadvise-common.c: Include stdint.h.
3217         * posix/tst-preadwrite-common.c: Include sys/stat.h.
3218         * posix/tst-regex.c: Include stdint.h.
3219         Don't include spawn.h or spawn_int.h.
3220         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
3221         * posix/tst-vfork3.c: Include sys/stat.h.
3222         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
3223         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
3224         * resolv/tst-resolv-search.c: Include stdlib.h.
3225         * stdio-common/tst-fmemopen2.c: Include stdint.h.
3226         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
3227         * stdlib/test-canon.c: Include sys/stat.h.
3228         * stdlib/tst-tls-atexit.c: Include stdbool.h.
3229         * string/test-memchr.c: Include stdint.h.
3230         * string/tst-cmp.c: Include stdint.h.
3231         * sysdeps/pthread/tst-timer.c: Include stdint.h.
3232         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
3233         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
3234         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3235         Don't include init-arch.h.
3236         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3237         Don't include init-arch.h.
3238         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
3239         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
3240         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
3241         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
3242         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
3243         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
3244         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
3245         * time/clocktest.c: Include stdint.h.
3246         * time/tst-posixtz.c: Include stdint.h.
3247         * timezone/tst-timezone.c: Include stdint.h.
3248
3249 2017-02-16  Zack Weinberg  <zackw@panix.com>
3250
3251         * string/string.h [__USE_MISC]: Include strings.h.
3252         (__bzero, bcmp, bcopy, bzero, index, rindex)
3253         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
3254         (ffs, ffsl, ffsll): Don't declare.
3255         * string/strings.h: Do not suppress the file if string.h has
3256         already been included.
3257         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
3258         annotations.
3259         (index, rindex): Define inline forwarders even if
3260         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
3261         (ffs): Use __attribute_const__.
3262         (ffsl, ffsll): Declare here.
3263         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
3264         have now been standardized.
3265         * include/string.h (__bzero): Declare here.
3266
3267         * bits/types.h: Move to posix/bits.
3268         * include/bits/types.h: New wrapper.
3269
3270 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3271
3272         * string/bits/string2.h (strcmp): Remove define.
3273         (__strcmp_cg): Likewise.
3274         (strncmp): Likewise.
3275
3276 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3277
3278         * include/string.h: Add __cplusplus check.
3279
3280 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3281
3282         [BZ #21134]
3283         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
3284         "divide by zero" exception when the input is zero.
3285         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
3286         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3287         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3288         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
3289         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3290
3291 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
3292
3293         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
3294         and include ...
3295         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
3296         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
3297         to, and include ...
3298         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
3299         file.
3300         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
3301         and include ...
3302         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
3303         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
3304         and include ...
3305         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
3306         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
3307         and include ...
3308         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
3309         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
3310         and include ...
3311         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
3312         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
3313         to, and include ...
3314         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
3315         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
3316         and include ...
3317         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
3318
3319 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
3320
3321         * math/libm-test-support.h: Do not include <math-tests-arch.h>
3322         here.
3323         * math/libm-test-support.c (libm_test_init): Do not call
3324         INIT_ARCH_EXT here.
3325         * math/libm-test-driver.c: Include <math-tests-arch.h>.
3326         (main): Call INIT_ARCH_EXT.
3327
3328 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3329
3330         [BZ #21130]
3331         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
3332         with the "invalid" exception raised when x is -Inf.
3333         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3334
3335 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3336
3337         * string/bits/string2.h (strchr): Remove define.
3338
3339 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
3340
3341         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
3342         tst-avx512.
3343         (test-extras): Add tst-avx-aux and tst-avx512-aux.
3344         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
3345         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
3346         ($(objpfx)tst-sse): New rule.
3347         ($(objpfx)tst-avx): Likewise.
3348         ($(objpfx)tst-avx512): Likewise.
3349         (CFLAGS-tst-avx-aux.c): New.
3350         (CFLAGS-tst-avxmod.c): Likewise.
3351         (CFLAGS-tst-avx512-aux.c): Likewise.
3352         (CFLAGS-tst-avx512mod.c): Likewise.
3353         * sysdeps/x86_64/tst-avx-aux.c: New file.
3354         * sysdeps/x86_64/tst-avx.c: Likewise.
3355         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
3356         * sysdeps/x86_64/tst-avx512.c: Likewise.
3357         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
3358         * sysdeps/x86_64/tst-avxmod.c: Likewise.
3359         * sysdeps/x86_64/tst-sse.c: Likewise.
3360         * sysdeps/x86_64/tst-ssemod.c: Likewise.
3361
3362 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3363
3364         * math/auto-libm-test-in: Add more tests of csin and csinh.
3365         * math/auto-libm-test-out-csin: Regenerated.
3366         * math/auto-libm-test-out-csinh: Likewise.
3367         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
3368         auto-libm-test-in.
3369         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
3370
3371 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3372
3373         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
3374         libm-compat-calls-auto.
3375         (libm-compat-calls): Likewise.
3376         (libm-compat-calls-auto): Rename to libm-compat-calls and add
3377         w_lgamma_compatF and k_standardF (merged from the items above).
3378         (libm-routines): Use libm-compat-calls, instead of
3379         libm-compat-calls-auto, with type-foreach.
3380
3381 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3382
3383         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
3384         macro.
3385         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
3386         (CFLAGS-test-ifloat.c): ... this.  Remove
3387         -U__LIBC_INTERNAL_MATH_INLINES.
3388         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
3389         (CFLAGS-test-idouble.c): ... this.  Remove
3390         -U__LIBC_INTERNAL_MATH_INLINES.
3391         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
3392         (CFLAGS-test-ildouble.c): ... this.  Remove
3393         -U__LIBC_INTERNAL_MATH_INLINES.
3394
3395 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
3396
3397         * math/libm-test-support.c: New file.  Content from
3398         math/libm-test-driver.c.
3399         * math/libm-test-support.h: Likewise.
3400         * math/libm-test-support-double.c: New file.
3401         * math/libm-test-support-float.c: Likewise.
3402         * math/libm-test-support-ldouble.c: Likewise.
3403         * math/libm-test-driver.c: Remove main comment and header
3404         includes.  Include libm-test-support.h.
3405         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
3406         (flag_test_errno): Remove static.
3407         (flag_test_exceptions): Likewise.
3408         (flag_test_finite): Likewise.
3409         (flag_test_inline): Likewise.
3410         (flag_test_mathvec): Likewise.
3411         (test_msg): Likewise.
3412         (NO_EXCEPTION): Remove.
3413         (INVALID_EXCEPTION): Likewise.
3414         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3415         (OVERFLOW_EXCEPTION): Likewise.
3416         (UNDERFLOW_EXCEPTION): Likewise.
3417         (INEXACT_EXCEPTION): Likewise.
3418         (INVALID_EXCEPTION_OK): Likewise.
3419         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3420         (OVERFLOW_EXCEPTION_OK): Likewise.
3421         (UNDERFLOW_EXCEPTION_OK): Likewise.
3422         (NO_INEXACT_EXCEPTION): Likewise.
3423         (EXCEPTIONS_OK): Likewise.
3424         (IGNORE_ZERO_INF_SIGN): Likewise.
3425         (TEST_NAN_SIGN): Likewise.
3426         (TEST_NAN_PAYLOAD): Likewise.
3427         (NO_TEST_INLINE): Likewise.
3428         (XFAIL_TEST): Likewise.
3429         (ERRNO_UNCHANGED): Likewise.
3430         (ERRNO_EDOM): Likewise.
3431         (ERRNO_ERANGE): Likewise.
3432         (IGNORE_RESULT): Likewise.
3433         (NON_FINITE): Likewise.
3434         (TEST_SNAN): Likewise.
3435         (NO_TEST_MATHVEC): Likewise.
3436         (__CONCATX): Likewise.
3437         (TYPE_MIN): Likewise.
3438         (TYPE_TRUE_MIN): Likewise.
3439         (TYPE_MAX): Likewise.
3440         (MIN_EXP): Likewise.
3441         (MAX_EXP): Likewise.
3442         (MANT_DIG): Likewise.
3443         (FSTR_MAX): Likewise.
3444         (ulp_idx): Likewise.
3445         (qtype_str): Remove static.
3446         (TEST_COND_binary32): Remove.
3447         (TEST_COND_binary64): Likewise.
3448         (TEST_COND_binary128): Likewise.
3449         (TEST_COND_ibm128): Likewise.
3450         (TEST_COND_intel96): Likewise.
3451         (TEST_COND_m68k96): Likewise.
3452         (TEST_COND_ibm128_libgcc): Likewise.
3453         (XFAIL_IBM128_LIBGCC): Likewise.
3454         (PAYLOAD_DIG): Likewise.
3455         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3456         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3457         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3458         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3459         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3460         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3461         (TEST_COND_long32): Likewise.
3462         (TEST_COND_long64): Likewise.
3463         (TEST_COND_before_rounding): Likewise.
3464         (TEST_COND_after_rounding): Likewise.
3465         (ulps_file_name): Likewise.
3466         (ulps_file): Likewise.
3467         (output_ulps): Likewise.
3468         (output_dir): Likewise.
3469         (noErrors): Likewise.
3470         (noTests): Likewise.
3471         (noExcTests): Likewise.
3472         (noErrnoTests): Likewise.
3473         (verbose): Likewise.
3474         (output_max_error): Likewise.
3475         (output_points): Likewise.
3476         (ignore_max_ulp): Likewise.
3477         (max_error): Likewise.
3478         (real_max_error): Likewise.
3479         (imag_max_error): Likewise.
3480         (prev_max_error): Likewise.
3481         (prev_real_max_error): Likewise.
3482         (prev_imag_max_error): Likewise.
3483         (max_valid_error): Likewise.
3484         (TYPE_DECIMAL_DIG): Likewise.
3485         (TYPE_HEX_DIG): Likewise.
3486         (fmt_ftostr): Likewise.
3487         (compare_ulp_data): Likewise.
3488         (find_ulps): Likewise.
3489         (init_max_error): Likewise.
3490         (set_max_error): Likewise.
3491         (print_float): Likewise.
3492         (print_screen): Likewise.
3493         (print_screen_max_error): Likewise.
3494         (update_stats): Likewise.
3495         (print_function_ulps): Likewise.
3496         (print_complex_function_ulps): Likewise.
3497         (fpstack_test): Likewise.
3498         (print_max_error): Likewise.
3499         (print_complex_max_error): Likewise.
3500         (test_single_exception): Likewise.
3501         (test_exceptions): Likewise.
3502         (test_single_errno): Likewise.
3503         (test_errno): Likewise.
3504         (ULPDIFF): Likewise.
3505         (ulp): Likewise.
3506         (check_float_internal): Likewise.
3507         (check_float): Likewise.
3508         (check_complex): Likewise.
3509         (check_int): Likewise.
3510         (check_long): Likewise.
3511         (check_bool): Likewise.
3512         (check_longlong): Likewise.
3513         (check_intmax_t): Likewise.
3514         (check_uintmax_t): Likewise.
3515         (enable_test): Likewise.
3516         (matherr): Likewise.
3517         (initialize): Likewise.
3518         (options): Likewise.
3519         (doc): Remove static.
3520         (argp): Likewise.
3521         (parse_opt): Remove.
3522         (check_ulp): Likewise.
3523         (libm_test_init): Likewise.
3524         (libm_test_finish): Likewise.
3525         * math/Makefile (libm-test-support): New variable.
3526         (test-extras): Add libm-test-support files.
3527         (extra-test-objs): Likewise.
3528         (CFLAGS-libm-test-support-float.c): New variable.
3529         (CFLAGS-libm-test-support-double.c): Likewise.
3530         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3531         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
3532         libm-test-support objects.
3533
3534 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3535
3536         * math/Makefile (libm-calls): Move w_exp...
3537         (libm-compat-calls-auto): Here.
3538
3539         * math/w_expl.c: Add suffix "_compat" to filename.
3540         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3541         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3542         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3543         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3544         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3545         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3546         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
3547         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3548
3549         * math/w_expl_compat.c: New file, copied from above.
3550         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
3551         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
3552         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
3553         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3554         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3555         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3556         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3557         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3558
3559         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
3560         to filename.
3561         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
3562
3563         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
3564         copied from above and adjusted for the new filenames.
3565         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3566
3567 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3568
3569         * math/Makefile (libm-calls): Move w_lgammaF...
3570         (libm-compat-calls-auto): Here.
3571
3572         * math/w_lgamma.c: Add suffix "_compat2" to filename.
3573         * math/w_lgammaf.c: Likewise.
3574         * math/w_lgammal.c: Likewise.
3575
3576         * math/w_lgamma_compat2.c: New file, copied from above.
3577         * math/w_lgammaf_compat2.c: Likewise.
3578         * math/w_lgammal_compat2.c: Likewise.
3579
3580 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3581
3582         * math/Makefile (libm-calls): Move w_lgammaF_r...
3583         (libm-compat-calls-auto): Here.
3584
3585         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
3586         * math/w_lgammaf_r.c: Likewise.
3587         * math/w_lgammal_r.c: Likewise.
3588         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
3589         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
3590         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
3591
3592         * math/w_lgamma_r_compat.c: New file, copied from above.
3593         * math/w_lgammaf_r_compat.c: Likewise.
3594         * math/w_lgammal_r_compat.c: Likewise.
3595         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
3596         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
3597         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
3598
3599         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
3600         to filename.
3601         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
3602
3603         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
3604         copied from above and adjusted for the new filenames.
3605         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3606
3607 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
3608
3609         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
3610         calculation in SYSCALL_ERROR_HANDLER().
3611
3612 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
3613
3614         * manual/contrib.texi: Fix typo.
3615
3616 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3617
3618         [BZ #21109]
3619         * elf/dl-tunable-types.h (tunable_callback_t): Accept
3620         tunable_val_t as argument.
3621         * elf/dl-tunables.c (__tunable_set_val): Add comment.
3622         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
3623         argument.
3624         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
3625
3626 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
3627
3628         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
3629         Add PTRACE_EVENT_STOP.
3630         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3631         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3632         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3633         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3634         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
3635         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3636
3637 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
3638
3639         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
3640         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
3641         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
3642         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
3643         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
3644         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
3645         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
3646         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
3647         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
3648         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
3649
3650         [BZ #21112]
3651         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
3652         12 bits zero.
3653         (cp_l): Update for new value of cp_h.
3654         * math/auto-libm-test-in: Add another test of pow.
3655         * math/auto-libm-test-out-pow: Regenerated.
3656
3657 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3658
3659         * manual/contrib.texi: Fix typo.
3660
3661 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3662
3663         [BZ #15998]
3664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3665         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
3666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3667
3668 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3669
3670         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
3671         STRCHR as __strchr_power8.
3672         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
3673         strlen as __strlen_power8.
3674
3675 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3676
3677         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
3678         unaligned load for shorter strings.
3679         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
3680
3681 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3682
3683         * math/libm-test-driver.c (flag_test_errno): New variable.
3684         (flag_test_exceptions): Likewise.
3685         (flag_test_finite): Likewise.
3686         (flag_test_inline): Likewise.
3687         (flag_test_mathvec): Likewise.
3688         (test_msg): Likewise.
3689         (ulp_idx): Likewise.
3690         (qtype_str): Likewise.
3691         (ULP_IDX): Remove macro.
3692         (QTYPE_STR): Likewise.
3693         (find_ulps): Use ulp_idx not ULP_IDX.
3694         (print_function_ulps): Use qtype_str, printed with %s, not
3695         QTYPE_STR, printed with concatentation to format string.
3696         (print_complex_function_ulps): Likewise.
3697         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
3698         (test_errno): Use flag_test_errno not TEST_ERRNO.
3699         (enable_test): Use flag_test_inline, flag_test_finite and
3700         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
3701         TEST_MATHVEC.
3702         (libm_test_init): New function.  Factored out of main.
3703         (libm_test_finish): Likewise.
3704         (main): Call libm_test_init and libm_test_finish and move most
3705         code to those functions.
3706
3707         * math/libm-test-driver.c (STRX): New macro.
3708         (STR): Likewise.
3709         (STR_FLOAT): Likewise.
3710         (STR_VEC_LEN): Likewise.
3711         (TEST_MSG): Likewise.  Define here instead of expecting to be
3712         defined by including file.
3713         * math/test-double-finite.c (TEST_MSG): Remove macro.
3714         * math/test-double-vlen2.h (TEST_MSG): Likewise.
3715         * math/test-double-vlen4.h (TEST_MSG): Likewise.
3716         * math/test-double-vlen8.h (TEST_MSG): Likewise.
3717         * math/test-double.c (TEST_MSG): Likewise.
3718         * math/test-float-finite.c (TEST_MSG): Likewise.
3719         * math/test-float-vlen16.h (TEST_MSG): Likewise.
3720         * math/test-float-vlen4.h (TEST_MSG): Likewise.
3721         * math/test-float-vlen8.h (TEST_MSG): Likewise.
3722         * math/test-float.c (TEST_MSG): Likewise.
3723         * math/test-idouble.c (TEST_MSG): Likewise.
3724         * math/test-ifloat.c (TEST_MSG): Likewise.
3725         * math/test-ildouble.c (TEST_MSG): Likewise.
3726         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
3727         * math/test-ldouble.c (TEST_MSG): Likewise.
3728
3729         * math/libm-test.inc: Move all tests of individual functions to
3730         libm-test-*.inc and #include libm-test-*.c files.
3731         (acos_test_data): Remove.
3732         (acos_test): Likewise.
3733         (acosh_test_data): Likewise.
3734         (acosh_test): Likewise.
3735         (asin_test_data): Likewise.
3736         (asin_test): Likewise.
3737         (asinh_test_data): Likewise.
3738         (asinh_test): Likewise.
3739         (atan_test_data): Likewise.
3740         (atan_test): Likewise.
3741         (atanh_test_data): Likewise.
3742         (atanh_test): Likewise.
3743         (atan2_test_data): Likewise.
3744         (atan2_test): Likewise.
3745         (cabs_test_data): Likewise.
3746         (cabs_test): Likewise.
3747         (cacos_test_data): Likewise.
3748         (cacos_test): Likewise.
3749         (cacosh_test_data): Likewise.
3750         (cacosh_test): Likewise.
3751         (canonicalize_test_data): Likewise.
3752         (canonicalize_test): Likewise.
3753         (carg_test_data): Likewise.
3754         (carg_test): Likewise.
3755         (casin_test_data): Likewise.
3756         (casin_test): Likewise.
3757         (casinh_test_data): Likewise.
3758         (casinh_test): Likewise.
3759         (catan_test_data): Likewise.
3760         (catan_test): Likewise.
3761         (catanh_test_data): Likewise.
3762         (catanh_test): Likewise.
3763         (cbrt_test_data): Likewise.
3764         (cbrt_test): Likewise.
3765         (ccos_test_data): Likewise.
3766         (ccos_test): Likewise.
3767         (ccosh_test_data): Likewise.
3768         (ccosh_test): Likewise.
3769         (ceil_test_data): Likewise.
3770         (ceil_test): Likewise.
3771         (cexp_test_data): Likewise.
3772         (cexp_test): Likewise.
3773         (cimag_test_data): Likewise.
3774         (cimag_test): Likewise.
3775         (clog_test_data): Likewise.
3776         (clog_test): Likewise.
3777         (clog10_test_data): Likewise.
3778         (clog10_test): Likewise.
3779         (conj_test_data): Likewise.
3780         (conj_test): Likewise.
3781         (copysign_test_data): Likewise.
3782         (copysign_test): Likewise.
3783         (cos_test_data): Likewise.
3784         (cos_test): Likewise.
3785         (cosh_test_data): Likewise.
3786         (cosh_test): Likewise.
3787         (cpow_test_data): Likewise.
3788         (cpow_test): Likewise.
3789         (cproj_test_data): Likewise.
3790         (cproj_test): Likewise.
3791         (creal_test_data): Likewise.
3792         (creal_test): Likewise.
3793         (csin_test_data): Likewise.
3794         (csin_test): Likewise.
3795         (csinh_test_data): Likewise.
3796         (csinh_test): Likewise.
3797         (csqrt_test_data): Likewise.
3798         (csqrt_test): Likewise.
3799         (ctan_test_data): Likewise.
3800         (ctan_test): Likewise.
3801         (ctanh_test_data): Likewise.
3802         (ctanh_test): Likewise.
3803         (erf_test_data): Likewise.
3804         (erf_test): Likewise.
3805         (erfc_test_data): Likewise.
3806         (erfc_test): Likewise.
3807         (exp_test_data): Likewise.
3808         (exp_test): Likewise.
3809         (exp10_test_data): Likewise.
3810         (exp10_test): Likewise.
3811         (pow10_test): Likewise.
3812         (exp2_test_data): Likewise.
3813         (exp2_test): Likewise.
3814         (expm1_test_data): Likewise.
3815         (expm1_test): Likewise.
3816         (fabs_test_data): Likewise.
3817         (fabs_test): Likewise.
3818         (fdim_test_data): Likewise.
3819         (fdim_test): Likewise.
3820         (floor_test_data): Likewise.
3821         (floor_test): Likewise.
3822         (fma_test_data): Likewise.
3823         (fma_test): Likewise.
3824         (fmax_test_data): Likewise.
3825         (fmax_test): Likewise.
3826         (fmaxmag_test_data): Likewise.
3827         (fmaxmag_test): Likewise.
3828         (fmin_test_data): Likewise.
3829         (fmin_test): Likewise.
3830         (fminmag_test_data): Likewise.
3831         (fminmag_test): Likewise.
3832         (fmod_test_data): Likewise.
3833         (fmod_test): Likewise.
3834         (fpclassify_test_data): Likewise.
3835         (fpclassify_test): Likewise.
3836         (frexp_test_data): Likewise.
3837         (frexp_test): Likewise.
3838         (fromfp_test_data): Likewise.
3839         (fromfp_test): Likewise.
3840         (fromfpx_test_data): Likewise.
3841         (fromfpx_test): Likewise.
3842         (getpayload_test_data): Likewise.
3843         (getpayload_test): Likewise.
3844         (hypot_test_data): Likewise.
3845         (hypot_test): Likewise.
3846         (ilogb_test_data): Likewise.
3847         (ilogb_test): Likewise.
3848         (iscanonical_test_data): Likewise.
3849         (iscanonical_test): Likewise.
3850         (iseqsig_test_data): Likewise.
3851         (iseqsig_test): Likewise.
3852         (isfinite_test_data): Likewise.
3853         (isfinite_test): Likewise.
3854         (finite_test): Likewise.
3855         (isgreater_test_data): Likewise.
3856         (isgreater_test): Likewise.
3857         (isgreaterequal_test_data): Likewise.
3858         (isgreaterequal_test): Likewise.
3859         (isinf_test_data): Likewise.
3860         (isinf_test): Likewise.
3861         (isless_test_data): Likewise.
3862         (isless_test): Likewise.
3863         (islessequal_test_data): Likewise.
3864         (islessequal_test): Likewise.
3865         (islessgreater_test_data): Likewise.
3866         (islessgreater_test): Likewise.
3867         (isnan_test_data): Likewise.
3868         (isnan_test): Likewise.
3869         (isnormal_test_data): Likewise.
3870         (isnormal_test): Likewise.
3871         (issignaling_test_data): Likewise.
3872         (issignaling_test): Likewise.
3873         (issubnormal_test_data): Likewise.
3874         (issubnormal_test): Likewise.
3875         (isunordered_test_data): Likewise.
3876         (isunordered_test): Likewise.
3877         (iszero_test_data): Likewise.
3878         (iszero_test): Likewise.
3879         (j0_test_data): Likewise.
3880         (j0_test): Likewise.
3881         (j1_test_data): Likewise.
3882         (j1_test): Likewise.
3883         (jn_test_data): Likewise.
3884         (jn_test): Likewise.
3885         (lgamma_test_data): Likewise.
3886         (lgamma_test): Likewise.
3887         (gamma_test): Likewise.
3888         (llogb_test_data): Likewise.
3889         (llogb_test): Likewise.
3890         (lrint_test_data): Likewise.
3891         (lrint_test): Likewise.
3892         (llrint_test_data): Likewise.
3893         (llrint_test): Likewise.
3894         (log_test_data): Likewise.
3895         (log_test): Likewise.
3896         (log10_test_data): Likewise.
3897         (log10_test): Likewise.
3898         (log1p_test_data): Likewise.
3899         (log1p_test): Likewise.
3900         (log2_test_data): Likewise.
3901         (log2_test): Likewise.
3902         (logb_test_data): Likewise.
3903         (logb_test): Likewise.
3904         (lround_test_data): Likewise.
3905         (lround_test): Likewise.
3906         (llround_test_data): Likewise.
3907         (llround_test): Likewise.
3908         (modf_test_data): Likewise.
3909         (modf_test): Likewise.
3910         (nearbyint_test_data): Likewise.
3911         (nearbyint_test): Likewise.
3912         (nextafter_test_data): Likewise.
3913         (nextafter_test): Likewise.
3914         (nextup_test_data): Likewise.
3915         (nextup_test): Likewise.
3916         (nextdown_test_data): Likewise.
3917         (nextdown_test): Likewise.
3918         (nexttoward_test_data): Likewise.
3919         (nexttoward_test): Likewise.
3920         (pow_test_data): Likewise.
3921         (pow_test): Likewise.
3922         (remainder_test_data): Likewise.
3923         (remainder_test): Likewise.
3924         (drem_test): Likewise.
3925         (remquo_test_data): Likewise.
3926         (remquo_test): Likewise.
3927         (rint_test_data): Likewise.
3928         (rint_test): Likewise.
3929         (round_test_data): Likewise.
3930         (round_test): Likewise.
3931         (roundeven_test_data): Likewise.
3932         (roundeven_test): Likewise.
3933         (scalb_test_data): Likewise.
3934         (scalb_test): Likewise.
3935         (scalbn_test_data): Likewise.
3936         (scalbn_test): Likewise.
3937         (ldexp_test): Likewise.
3938         (scalbln_test_data): Likewise.
3939         (scalbln_test): Likewise.
3940         (setpayload_test_data): Likewise.
3941         (setpayload_test): Likewise.
3942         (setpayloadsig_test_data): Likewise.
3943         (setpayloadsig_test): Likewise.
3944         (signbit_test_data): Likewise.
3945         (signbit_test): Likewise.
3946         (sin_test_data): Likewise.
3947         (sin_test): Likewise.
3948         (sincos_test_data): Likewise.
3949         (sincos_test): Likewise.
3950         (sinh_test_data): Likewise.
3951         (sinh_test): Likewise.
3952         (sqrt_test_data): Likewise.
3953         (sqrt_test): Likewise.
3954         (tan_test_data): Likewise.
3955         (tan_test): Likewise.
3956         (tanh_test_data): Likewise.
3957         (tanh_test): Likewise.
3958         (tgamma_test_data): Likewise.
3959         (tgamma_test): Likewise.
3960         (totalorder_test_data): Likewise.
3961         (totalorder_test): Likewise.
3962         (totalordermag_test_data): Likewise.
3963         (totalordermag_test): Likewise.
3964         (trunc_test_data): Likewise.
3965         (trunc_test): Likewise.
3966         (ufromfp_test_data): Likewise.
3967         (ufromfp_test): Likewise.
3968         (ufromfpx_test_data): Likewise.
3969         (ufromfpx_test): Likewise.
3970         (y0_test_data): Likewise.
3971         (y0_test): Likewise.
3972         (y1_test_data): Likewise.
3973         (y1_test): Likewise.
3974         (yn_test_data): Likewise.
3975         (yn_test): Likewise.
3976         (significand_test_data): Likewise.
3977         (significand_test): Likewise.
3978         * math/Makefile (auto-libm-test-out-files): Remove variable.
3979         (libm-test-funcs-noauto): New variable.
3980         (libm-test-funcs-all): Likewise.
3981         (libm-test-c-auto): Likewise.
3982         (libm-test-c-noauto): Likewise.
3983         (libm-tests-generated): Add $(libm-test-c-auto) and
3984         $(libm-test-c-noauto).
3985         (generated): Do not add auto-libm-test-out.
3986         (libm-test-c-auto-obj): New variable.
3987         (libm-test-c-noauto-obj): Likewise.
3988         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
3989         ($(libm-test-c-noauto-obj)): New static pattern rule.
3990         ($(libm-test-c-auto-obj)): Likewise.
3991         (libm-test-incs): New variable.
3992         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
3993         and pass it to gen-libm-have-vector-test.sh.
3994         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
3995         be passed on command line.
3996         * math/libm-test-acos.inc: New file.  Content from
3997         math/libm-test.inc.
3998         * math/libm-test-acosh.inc: Likewise.
3999         * math/libm-test-asin.inc: Likewise.
4000         * math/libm-test-asinh.inc: Likewise.
4001         * math/libm-test-atan.inc: Likewise.
4002         * math/libm-test-atan2.inc: Likewise.
4003         * math/libm-test-atanh.inc: Likewise.
4004         * math/libm-test-cabs.inc: Likewise.
4005         * math/libm-test-cacos.inc: Likewise.
4006         * math/libm-test-cacosh.inc: Likewise.
4007         * math/libm-test-canonicalize.inc: Likewise.
4008         * math/libm-test-carg.inc: Likewise.
4009         * math/libm-test-casin.inc: Likewise.
4010         * math/libm-test-casinh.inc: Likewise.
4011         * math/libm-test-catan.inc: Likewise.
4012         * math/libm-test-catanh.inc: Likewise.
4013         * math/libm-test-cbrt.inc: Likewise.
4014         * math/libm-test-ccos.inc: Likewise.
4015         * math/libm-test-ccosh.inc: Likewise.
4016         * math/libm-test-ceil.inc: Likewise.
4017         * math/libm-test-cexp.inc: Likewise.
4018         * math/libm-test-cimag.inc: Likewise.
4019         * math/libm-test-clog.inc: Likewise.
4020         * math/libm-test-clog10.inc: Likewise.
4021         * math/libm-test-conj.inc: Likewise.
4022         * math/libm-test-copysign.inc: Likewise.
4023         * math/libm-test-cos.inc: Likewise.
4024         * math/libm-test-cosh.inc: Likewise.
4025         * math/libm-test-cpow.inc: Likewise.
4026         * math/libm-test-cproj.inc: Likewise.
4027         * math/libm-test-creal.inc: Likewise.
4028         * math/libm-test-csin.inc: Likewise.
4029         * math/libm-test-csinh.inc: Likewise.
4030         * math/libm-test-csqrt.inc: Likewise.
4031         * math/libm-test-ctan.inc: Likewise.
4032         * math/libm-test-ctanh.inc: Likewise.
4033         * math/libm-test-erf.inc: Likewise.
4034         * math/libm-test-erfc.inc: Likewise.
4035         * math/libm-test-exp.inc: Likewise.
4036         * math/libm-test-exp10.inc: Likewise.
4037         * math/libm-test-exp2.inc: Likewise.
4038         * math/libm-test-expm1.inc: Likewise.
4039         * math/libm-test-fabs.inc: Likewise.
4040         * math/libm-test-fdim.inc: Likewise.
4041         * math/libm-test-floor.inc: Likewise.
4042         * math/libm-test-fma.inc: Likewise.
4043         * math/libm-test-fmax.inc: Likewise.
4044         * math/libm-test-fmaxmag.inc: Likewise.
4045         * math/libm-test-fmin.inc: Likewise.
4046         * math/libm-test-fminmag.inc: Likewise.
4047         * math/libm-test-fmod.inc: Likewise.
4048         * math/libm-test-fpclassify.inc: Likewise.
4049         * math/libm-test-frexp.inc: Likewise.
4050         * math/libm-test-fromfp.inc: Likewise.
4051         * math/libm-test-fromfpx.inc: Likewise.
4052         * math/libm-test-getpayload.inc: Likewise.
4053         * math/libm-test-hypot.inc: Likewise.
4054         * math/libm-test-ilogb.inc: Likewise.
4055         * math/libm-test-iscanonical.inc: Likewise.
4056         * math/libm-test-iseqsig.inc: Likewise.
4057         * math/libm-test-isfinite.inc: Likewise.
4058         * math/libm-test-isgreater.inc: Likewise.
4059         * math/libm-test-isgreaterequal.inc: Likewise.
4060         * math/libm-test-isinf.inc: Likewise.
4061         * math/libm-test-isless.inc: Likewise.
4062         * math/libm-test-islessequal.inc: Likewise.
4063         * math/libm-test-islessgreater.inc: Likewise.
4064         * math/libm-test-isnan.inc: Likewise.
4065         * math/libm-test-isnormal.inc: Likewise.
4066         * math/libm-test-issignaling.inc: Likewise.
4067         * math/libm-test-issubnormal.inc: Likewise.
4068         * math/libm-test-isunordered.inc: Likewise.
4069         * math/libm-test-iszero.inc: Likewise.
4070         * math/libm-test-j0.inc: Likewise.
4071         * math/libm-test-j1.inc: Likewise.
4072         * math/libm-test-jn.inc: Likewise.
4073         * math/libm-test-lgamma.inc: Likewise.
4074         * math/libm-test-llogb.inc: Likewise.
4075         * math/libm-test-llrint.inc: Likewise.
4076         * math/libm-test-llround.inc: Likewise.
4077         * math/libm-test-log.inc: Likewise.
4078         * math/libm-test-log10.inc: Likewise.
4079         * math/libm-test-log1p.inc: Likewise.
4080         * math/libm-test-log2.inc: Likewise.
4081         * math/libm-test-logb.inc: Likewise.
4082         * math/libm-test-lrint.inc: Likewise.
4083         * math/libm-test-lround.inc: Likewise.
4084         * math/libm-test-modf.inc: Likewise.
4085         * math/libm-test-nearbyint.inc: Likewise.
4086         * math/libm-test-nextafter.inc: Likewise.
4087         * math/libm-test-nextdown.inc: Likewise.
4088         * math/libm-test-nexttoward.inc: Likewise.
4089         * math/libm-test-nextup.inc: Likewise.
4090         * math/libm-test-pow.inc: Likewise.
4091         * math/libm-test-remainder.inc: Likewise.
4092         * math/libm-test-remquo.inc: Likewise.
4093         * math/libm-test-rint.inc: Likewise.
4094         * math/libm-test-round.inc: Likewise.
4095         * math/libm-test-roundeven.inc: Likewise.
4096         * math/libm-test-scalb.inc: Likewise.
4097         * math/libm-test-scalbln.inc: Likewise.
4098         * math/libm-test-scalbn.inc: Likewise.
4099         * math/libm-test-setpayload.inc: Likewise.
4100         * math/libm-test-setpayloadsig.inc: Likewise.
4101         * math/libm-test-signbit.inc: Likewise.
4102         * math/libm-test-significand.inc: Likewise.
4103         * math/libm-test-sin.inc: Likewise.
4104         * math/libm-test-sincos.inc: Likewise.
4105         * math/libm-test-sinh.inc: Likewise.
4106         * math/libm-test-sqrt.inc: Likewise.
4107         * math/libm-test-tan.inc: Likewise.
4108         * math/libm-test-tanh.inc: Likewise.
4109         * math/libm-test-tgamma.inc: Likewise.
4110         * math/libm-test-totalorder.inc: Likewise.
4111         * math/libm-test-totalordermag.inc: Likewise.
4112         * math/libm-test-trunc.inc: Likewise.
4113         * math/libm-test-ufromfp.inc: Likewise.
4114         * math/libm-test-ufromfpx.inc: Likewise.
4115         * math/libm-test-y0.inc: Likewise.
4116         * math/libm-test-y1.inc: Likewise.
4117         * math/libm-test-yn.inc: Likewise.
4118         * math/README.libm-test: Update.
4119
4120         * math/gen-auto-libm-tests.c: Update comment about use of program.
4121         (generate_output): Add argument FUNCTION.
4122         (main): Require extra argument.  Pass function name to
4123         generate_output.
4124         * math/Makefile (generated): Add auto-libm-test-out.
4125         (libm-test-funcs-auto): New variable.
4126         (auto-libm-test-out-files): New variable.
4127         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
4128         Concatenate those files to form $(objpfx)auto-libm-test-out and
4129         use it as input to gen-libm-test.pl.
4130         * math/README.libm-test: Update.
4131         * math/auto-libm-test-out: Remove.
4132         * math/auto-libm-test-out-acos: New generated file.
4133         * math/auto-libm-test-out-acosh: Likewise.
4134         * math/auto-libm-test-out-asin: Likewise.
4135         * math/auto-libm-test-out-asinh: Likewise.
4136         * math/auto-libm-test-out-atan: Likewise.
4137         * math/auto-libm-test-out-atan2: Likewise.
4138         * math/auto-libm-test-out-atanh: Likewise.
4139         * math/auto-libm-test-out-cabs: Likewise.
4140         * math/auto-libm-test-out-carg: Likewise.
4141         * math/auto-libm-test-out-cbrt: Likewise.
4142         * math/auto-libm-test-out-ccos: Likewise.
4143         * math/auto-libm-test-out-ccosh: Likewise.
4144         * math/auto-libm-test-out-cexp: Likewise.
4145         * math/auto-libm-test-out-clog: Likewise.
4146         * math/auto-libm-test-out-clog10: Likewise.
4147         * math/auto-libm-test-out-cos: Likewise.
4148         * math/auto-libm-test-out-cosh: Likewise.
4149         * math/auto-libm-test-out-cpow: Likewise.
4150         * math/auto-libm-test-out-csin: Likewise.
4151         * math/auto-libm-test-out-csinh: Likewise.
4152         * math/auto-libm-test-out-csqrt: Likewise.
4153         * math/auto-libm-test-out-ctan: Likewise.
4154         * math/auto-libm-test-out-ctanh: Likewise.
4155         * math/auto-libm-test-out-erf: Likewise.
4156         * math/auto-libm-test-out-erfc: Likewise.
4157         * math/auto-libm-test-out-exp: Likewise.
4158         * math/auto-libm-test-out-exp10: Likewise.
4159         * math/auto-libm-test-out-exp2: Likewise.
4160         * math/auto-libm-test-out-expm1: Likewise.
4161         * math/auto-libm-test-out-fma: Likewise.
4162         * math/auto-libm-test-out-hypot: Likewise.
4163         * math/auto-libm-test-out-j0: Likewise.
4164         * math/auto-libm-test-out-j1: Likewise.
4165         * math/auto-libm-test-out-jn: Likewise.
4166         * math/auto-libm-test-out-lgamma: Likewise.
4167         * math/auto-libm-test-out-log: Likewise.
4168         * math/auto-libm-test-out-log10: Likewise.
4169         * math/auto-libm-test-out-log1p: Likewise.
4170         * math/auto-libm-test-out-log2: Likewise.
4171         * math/auto-libm-test-out-pow: Likewise.
4172         * math/auto-libm-test-out-sin: Likewise.
4173         * math/auto-libm-test-out-sincos: Likewise.
4174         * math/auto-libm-test-out-sinh: Likewise.
4175         * math/auto-libm-test-out-sqrt: Likewise.
4176         * math/auto-libm-test-out-tan: Likewise.
4177         * math/auto-libm-test-out-tanh: Likewise.
4178         * math/auto-libm-test-out-tgamma: Likewise.
4179         * math/auto-libm-test-out-y0: Likewise.
4180         * math/auto-libm-test-out-y1: Likewise.
4181         * math/auto-libm-test-out-yn: Likewise.
4182
4183         * math/Makefile (generated): Do not include libm-test.stmp.
4184         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
4185         on $(objpfx)libm-test.stmp.
4186         ($(objpfx)libm-test.stmp): Remove rule.
4187         ($(objpfx)libm-test-ulps.h): New rule.
4188         ($(objpfx)libm-test.c): Likewise.
4189         ($(objpfx)libm-have-vector-test.h): Likewise.
4190         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
4191         individual generated files, not libm-test.stmp.
4192
4193         * math/gen-libm-test.pl ($output_dir): Remove variable.
4194         ($srcdir): Likewise.
4195         ($opt_a): New variable.
4196         ($opt_c): Likewise.
4197         ($opt_C): Likewise.
4198         ($opt_H): Likewise.
4199         (-n): Make option take argument and use it as NewUlps output.
4200         (-a): New option.  Use its argument for auto-libm-test-out input.
4201         (-c): New option.  Use its argument for libm-test.inc input.
4202         (-C): New option.  Use its argument for libm-test.c output.
4203         (-H): New option.  Use its argument for libm-test-ulps.h output.
4204         (top level): Only process inputs needed to generate outputs
4205         specified by command-line options.  Only generate outputs
4206         specified by command-line options.
4207         * math/README.libm-test: Update example gen-libm-test.pl command.
4208         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
4209         commands.
4210         (regen-ulps): Likewise.
4211
4212 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
4213
4214         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
4215         * include/string.h (index): Remove define.
4216         (rindex): Likewise.
4217         * misc/getttyent.c (__getttyent): Rename index to strchr.
4218         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
4219         * sunrpc/rpc_main.c (mkfile_output): Likewise.
4220
4221 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4222
4223         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
4224         * math/libm-test.inc: Move all contents, other than tests of
4225         individual functions, to libm-test-driver.c.
4226         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
4227         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
4228         [!FE_UPWARD] (FE_UPWARD): Likewise.
4229         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
4230         (NO_EXCEPTION): Likewise.
4231         (INVALID_EXCEPTION): Likewise.
4232         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
4233         (OVERFLOW_EXCEPTION): Likewise.
4234         (UNDERFLOW_EXCEPTION): Likewise.
4235         (INEXACT_EXCEPTION): Likewise.
4236         (INVALID_EXCEPTION_OK): Likewise.
4237         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4238         (OVERFLOW_EXCEPTION_OK): Likewise.
4239         (UNDERFLOW_EXCEPTION_OK): Likewise.
4240         (NO_INEXACT_EXCEPTION): Likewise.
4241         (EXCEPTIONS_OK): Likewise.
4242         (IGNORE_ZERO_INF_SIGN): Likewise.
4243         (TEST_NAN_SIGN): Likewise.
4244         (TEST_NAN_PAYLOAD): Likewise.
4245         (NO_TEST_INLINE): Likewise.
4246         (XFAIL_TEST): Likewise.
4247         (ERRNO_UNCHANGED): Likewise.
4248         (ERRNO_EDOM): Likewise.
4249         (ERRNO_ERANGE): Likewise.
4250         (IGNORE_RESULT): Likewise.
4251         (NON_FINITE): Likewise.
4252         (TEST_SNAN): Likewise.
4253         (NO_TEST_MATHVEC): Likewise.
4254         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
4255         (__CONCATX): Likewise.
4256         (TYPE_MIN): Likewise.
4257         (TYPE_TRUE_MIN): Likewise.
4258         (TYPE_MAX): Likewise.
4259         (MIN_EXP): Likewise.
4260         (MAX_EXP): Likewise.
4261         (MANT_DIG): Likewise.
4262         (FSTR_MAX): Likewise.
4263         (ULP_IDX): Likewise.
4264         (QTYPE_STR): Likewise.
4265         (TEST_COND_binary32): Likewise.
4266         (TEST_COND_binary64): Likewise.
4267         (TEST_COND_binary128): Likewise.
4268         (TEST_COND_ibm128): Likewise.
4269         (TEST_COND_intel96): Likewise.
4270         (TEST_COND_m68k96): Likewise.
4271         (TEST_COND_ibm128_libgcc): Likewise.
4272         (XFAIL_IBM128_LIBGCC): Likewise.
4273         (PAYLOAD_DIG): Likewise.
4274         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4275         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4276         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4277         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
4278         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4279         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
4280         (TEST_COND_long32): Likewise.
4281         (TEST_COND_long64): Likewise.
4282         (TEST_COND_before_rounding): Likewise.
4283         (TEST_COND_after_rounding): Likewise.
4284         (lit_pi_3_m_4_d): Likewise.
4285         (lit_pi_3_m_4_ln10_m_d): Likewise.
4286         (lit_pi_2_ln10_m_d): Likewise.
4287         (lit_pi_4_ln10_m_d): Likewise.
4288         (lit_pi_ln10_d): Likewise.
4289         (lit_pi_2_d): Likewise.
4290         (lit_pi_4_d): Likewise.
4291         (lit_pi): Likewise.
4292         (lit_e): Likewise.
4293         (ulps_file_name): Likewise.
4294         (ulps_file): Likewise.
4295         (output_ulps): Likewise.
4296         (output_dir): Likewise.
4297         (noErrors): Likewise.
4298         (noTests): Likewise.
4299         (noExcTests): Likewise.
4300         (noErrnoTests): Likewise.
4301         (verbose): Likewise.
4302         (output_max_error): Likewise.
4303         (output_points): Likewise.
4304         (ignore_max_ulp): Likewise.
4305         (plus_zero): Likewise.
4306         (minus_zero): Likewise.
4307         (plus_infty): Likewise.
4308         (minus_infty): Likewise.
4309         (qnan_value_pl): Likewise.
4310         (qnan_value): Likewise.
4311         (snan_value_pl): Likewise.
4312         (snan_value): Likewise.
4313         (max_value): Likewise.
4314         (min_value): Likewise.
4315         (min_subnorm_value): Likewise.
4316         (snan_value_ld): Likewise.
4317         (max_error): Likewise.
4318         (real_max_error): Likewise.
4319         (imag_max_error): Likewise.
4320         (prev_max_error): Likewise.
4321         (prev_real_max_error): Likewise.
4322         (prev_imag_max_error): Likewise.
4323         (max_valid_error): Likewise.
4324         (TYPE_DECIMAL_DIG): Likewise.
4325         (TYPE_HEX_DIG): Likewise.
4326         (fmt_ftostr): Likewise.
4327         (compare_ulp_data): Likewise.
4328         (find_ulps): Likewise.
4329         (init_max_error): Likewise.
4330         (set_max_error): Likewise.
4331         (print_float): Likewise.
4332         (print_screen): Likewise.
4333         (print_screen_max_error): Likewise.
4334         (update_stats): Likewise.
4335         (print_function_ulps): Likewise.
4336         (print_complex_function_ulps): Likewise.
4337         (fpstack_test): Likewise.
4338         (print_max_error): Likewise.
4339         (print_complex_max_error): Likewise.
4340         (test_single_exception): Likewise.
4341         (test_exceptions): Likewise.
4342         (test_single_errno): Likewise.
4343         (test_errno): Likewise.
4344         (ULPDIFF): Likewise.
4345         (ulp): Likewise.
4346         (check_float_internal): Likewise.
4347         (check_float): Likewise.
4348         (check_complex): Likewise.
4349         (check_int): Likewise.
4350         (check_long): Likewise.
4351         (check_bool): Likewise.
4352         (check_longlong): Likewise.
4353         (check_intmax_t): Likewise.
4354         (check_uintmax_t): Likewise.
4355         (enable_test): Likewise.
4356         (struct test_f_f_data): Likewise.
4357         (struct test_ff_f_data): Likewise.
4358         (struct test_fj_f_data): Likewise.
4359         (struct test_fi_f_data): Likewise.
4360         (struct test_fl_f_data): Likewise.
4361         (struct test_if_f_data): Likewise.
4362         (struct test_fff_f_data): Likewise.
4363         (struct test_fiu_M_data): Likewise.
4364         (struct test_fiu_U_data): Likewise.
4365         (struct test_c_f_data): Likewise.
4366         (struct test_f_f1_data): Likewise.
4367         (struct test_fF_f1_data): Likewise.
4368         (struct test_ffI_f1_data): Likewise.
4369         (struct test_c_c_data): Likewise.
4370         (struct test_cc_c_data): Likewise.
4371         (struct test_f_i_data): Likewise.
4372         (struct test_ff_i_data): Likewise.
4373         (struct test_f_l_data): Likewise.
4374         (struct test_f_L_data): Likewise.
4375         (struct test_fFF_11_data): Likewise.
4376         (struct test_Ff_b1_data): Likewise.
4377         (IF_ROUND_INIT_): Likewise.
4378         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4379         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4380         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4381         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4382         (ROUND_RESTORE_): Likewise.
4383         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4384         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4385         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4386         (ROUND_RESTORE_FE_UPWARD): Likewise.
4387         (RM_): Likewise.
4388         (RM_FE_DOWNWARD): Likewise.
4389         (RM_FE_TONEAREST): Likewise.
4390         (RM_FE_TOWARDZERO): Likewise.
4391         (RM_FE_UPWARD): Likewise.
4392         (COMMON_TEST_SETUP): Likewise.
4393         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4394         (COMMON_TEST_CLEANUP): Likewise.
4395         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4396         (RUN_TEST_f_f): Likewise.
4397         (RUN_TEST_LOOP_f_f): Likewise.
4398         (RUN_TEST_fp_f): Likewise.
4399         (RUN_TEST_LOOP_fp_f): Likewise.
4400         (RUN_TEST_2_f): Likewise.
4401         (RUN_TEST_LOOP_2_f): Likewise.
4402         (RUN_TEST_ff_f): Likewise.
4403         (RUN_TEST_LOOP_ff_f): Likewise.
4404         (RUN_TEST_LOOP_fj_f): Likewise.
4405         (RUN_TEST_fi_f): Likewise.
4406         (RUN_TEST_LOOP_fi_f): Likewise.
4407         (RUN_TEST_fl_f): Likewise.
4408         (RUN_TEST_LOOP_fl_f): Likewise.
4409         (RUN_TEST_if_f): Likewise.
4410         (RUN_TEST_LOOP_if_f): Likewise.
4411         (RUN_TEST_fff_f): Likewise.
4412         (RUN_TEST_LOOP_fff_f): Likewise.
4413         (RUN_TEST_fiu_M): Likewise.
4414         (RUN_TEST_LOOP_fiu_M): Likewise.
4415         (RUN_TEST_fiu_U): Likewise.
4416         (RUN_TEST_LOOP_fiu_U): Likewise.
4417         (RUN_TEST_c_f): Likewise.
4418         (RUN_TEST_LOOP_c_f): Likewise.
4419         (RUN_TEST_f_f1): Likewise.
4420         (RUN_TEST_LOOP_f_f1): Likewise.
4421         (RUN_TEST_fF_f1): Likewise.
4422         (RUN_TEST_LOOP_fF_f1): Likewise.
4423         (RUN_TEST_fI_f1): Likewise.
4424         (RUN_TEST_LOOP_fI_f1): Likewise.
4425         (RUN_TEST_ffI_f1_mod8): Likewise.
4426         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
4427         (RUN_TEST_Ff_b1): Likewise.
4428         (RUN_TEST_LOOP_Ff_b1): Likewise.
4429         (RUN_TEST_Ffp_b1): Likewise.
4430         (RUN_TEST_LOOP_Ffp_b1): Likewise.
4431         (RUN_TEST_c_c): Likewise.
4432         (RUN_TEST_LOOP_c_c): Likewise.
4433         (RUN_TEST_cc_c): Likewise.
4434         (RUN_TEST_LOOP_cc_c): Likewise.
4435         (RUN_TEST_f_i): Likewise.
4436         (RUN_TEST_LOOP_f_i): Likewise.
4437         (RUN_TEST_f_i_tg): Likewise.
4438         (RUN_TEST_LOOP_f_i_tg): Likewise.
4439         (RUN_TEST_ff_b): Likewise.
4440         (RUN_TEST_LOOP_ff_b): Likewise.
4441         (RUN_TEST_ff_i_tg): Likewise.
4442         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4443         (RUN_TEST_f_b): Likewise.
4444         (RUN_TEST_LOOP_f_b): Likewise.
4445         (RUN_TEST_f_b_tg): Likewise.
4446         (RUN_TEST_LOOP_f_b_tg): Likewise.
4447         (RUN_TEST_f_l): Likewise.
4448         (RUN_TEST_LOOP_f_l): Likewise.
4449         (RUN_TEST_f_L): Likewise.
4450         (RUN_TEST_LOOP_f_L): Likewise.
4451         (RUN_TEST_fFF_11): Likewise.
4452         (RUN_TEST_LOOP_fFF_11): Likewise.
4453         (VEC_SUFF): Likewise.
4454         (STR_CONCAT): Likewise.
4455         (STR_CON3): Likewise.
4456         (HAVE_VECTOR): Likewise.
4457         (START): Likewise.
4458         (END): Likewise.
4459         (END_COMPLEX): Likewise.
4460         (ALL_RM_TEST): Likewise.
4461         (matherr): Likewise.
4462         (initialize): Likewise.
4463         (options): Likewise.
4464         (doc): Likewise.
4465         (parse_opt): Likewise.
4466         (argp): Likewise.
4467         (check_ulp): Likewise.
4468         (main): Likewise.
4469         (do_test): New function.  Call tests of individual functions
4470         previously called from main.
4471
4472         * math/libm-test.inc: Remove comment listing functions tested and
4473         not tested.
4474
4475 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4476
4477         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
4478         (allocate_stack): Remove COLORING_INCREMENT usage.
4479         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
4480         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
4481
4482 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4483
4484         * manual/libm-err-tab.pl (@all_functions): Change to
4485         %all_functions.  Initialize as empty.
4486         (parse_ulps): Add to %all_functions based on functions found in
4487         ulps files.  Ignore results for non-default rounding modes and
4488         vector functions.
4489         (print_platforms): Use %all_platforms.
4490         * manual/math.texi (Errors in Math Functions): Document omissions
4491         from the table.
4492
4493         * math/Makefile (before-compile): Remove.
4494
4495 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
4496
4497         [BZ #21075]
4498         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
4499         unused assignment.
4500         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4501
4502 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4503
4504         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
4505         Add __glibc_unlikely hint.
4506
4507 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4508
4509         [BZ #16640]
4510         * sysdeps/i386/i686/strtok.S: Remove file.
4511         * sysdeps/i386/i686/strtok_r.S: Likewise.
4512         * sysdeps/i386/strtok.S: Likewise.
4513         * sysdeps/i386/strtok_r.S: Likewise.
4514         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
4515         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
4516         * sysdeps/x86_64/strtok.S: Likewise.
4517         * sysdeps/x86_64/strtok_r.S: Likewise.
4518
4519         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
4520         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
4521         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4522         (__ASSUME_FADVISE64_AS_64_64): Define.
4523         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
4524         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
4525         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
4526         __ALIGNMENT_ARG usage.
4527         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
4528         __NR_fadvise64_64 if it is not defined.
4529
4530 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4531
4532         * version.h (RELEASE): Set to "development"
4533         (VERSION): Set to 2.25.90.
4534         * NEWS: Add 2.26 section.
4535
4536         * version.h (RELEASE): Set to "stable"
4537         (VERSION): Set to 2.25.
4538         * include/features.h (__GLIBC_MINOR__): Set to 25.
4539
4540         * manual/contrib.texi: Add more contributors from this release
4541         and past releases.
4542
4543         * NEWS (2.25): Add list of bugs fixed.
4544
4545         * NEWS: Add missing news items.
4546
4547 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4548
4549         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
4550         parent if child exited in that manner.  Print WEXITSTATUS
4551         instead of the raw status.
4552         (do_test_prep): Rename to do_test.
4553         (do_test): Return the result of run_executable_sgid.
4554         (TEST_FUNCTION_ARGV): Adjust.
4555
4556 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
4557             Florian Weimer  <fweimer@redhat.com>
4558             Carlos O'Donell  <carlos@redhat.com>
4559
4560         [BZ #20915]
4561         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
4562         Do not initialize DTV.
4563         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4564
4565 2017-02-03  David S. Miller  <davem@davemloft.net>
4566
4567         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
4568         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4569         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
4570         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4571         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
4572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
4574         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4575         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4576         (libm-sysdep_routines): Update.
4577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
4578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
4579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
4581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4582         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
4583         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
4584         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
4585         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
4586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
4587         Likewise.
4588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
4590         Likewise.
4591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
4593         Likewise.
4594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
4596         Likewise.
4597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4599         (libm-sysdep_routines): Update.
4600
4601 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4602
4603         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
4604         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
4605         against unrelocated shared library.
4606         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4607
4608 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4609
4610         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
4611         * elf/tst-env-setuid-tunables.c
4612         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
4613         GLIBC_TUNABLES is removed in a setgid process.
4614
4615         [BZ #21073]
4616         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
4617         * elf/dl-tunables.c (tunables_strdup): Remove.
4618         (get_next_env): Also return the previous envp.
4619         (parse_tunables): Erase tunables of category
4620         TUNABLES_SECLEVEL_SXID_ERASE.
4621         (maybe_enable_malloc_check): Make MALLOC_CHECK_
4622         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
4623         (__tunables_init)[TUNABLES_FRONTEND ==
4624         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
4625         after parsing.
4626         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
4627         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
4628         * elf/dl-tunables.h (struct _tunable): Change member is_secure
4629         to security_level.
4630         * elf/dl-tunables.list: Add security_level annotations for all
4631         tunables.
4632         * scripts/gen-tunables.awk: Recognize and generate enum values
4633         for security_level.
4634         * elf/tst-env-setuid.c: New test case.
4635         * elf/tst-env-setuid-tunables: new test case.
4636         * elf/Makefile (tests-static): Add them.
4637
4638 2017-02-01  Richard Henderson  <rth@twiddle.net>
4639
4640         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
4641         adjusting the byte count.
4642
4643 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
4644
4645         * conform/Makefile (linknamespace-libs): Define.
4646
4647         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
4648         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
4649         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
4650         operands.
4651
4652 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
4653
4654         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
4655
4656 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
4657
4658         [BZ #21081]
4659         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4660         (L(stosb)): Add VZEROUPPER before ret.
4661
4662 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
4663             Alexey Makhalov <amakhalov@vmware.com>
4664             Florian Weimer <fweimer@redhat.com>
4665
4666         [BZ #20116]
4667         * nptl/pthread_create.c: Document concurrency notes.
4668         Enhance thread creation notes.
4669         (create_thread): Use bool *stopped_start.
4670         (START_THREAD_DEFN): Comment ownership of PD.
4671         (__pthread_create_2_1): Add local bool stopped_start and use
4672         that instead of pd->stopped_start where appropriate.
4673         * nptl/createthread.c (create_thread): Use bool *stopped_start.
4674         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
4675         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
4676         * nptl/tst-create-detached.c: New file.
4677         * nptl/Makefile (tests): Add tst-create-detached.
4678         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
4679         Reference the enhanced thread creation notes.
4680         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
4681         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
4682         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
4683         (__pthread_current_priority): Likewise.
4684         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
4685         xpthread_attr_init, xpthread_attr_setdetachstate, and
4686         xpthread_attr_setstacksize.
4687         * support/xpthread_attr_destroy.c: New file.
4688         * support/xpthread_attr_init.c: New file.
4689         * support/xpthread_attr_setdetachstate.c: New file.
4690         * support/xpthread_attr_setstacksize.c: New file.
4691         * support/xthread.h: Define prototypes for xpthread_attr_destroy
4692         xpthread_attr_init, xpthread_attr_setdetachstate, and
4693         xpthread_attr_setstacksize.
4694
4695 2017-01-27  Florian Weimer  <fweimer@redhat.com>
4696
4697         * nptl/Makefile (tests): Add tst-robust-fork.
4698         * nptl/tst-robust-fork.c: New file.
4699         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
4700         xpthread_mutex_consistent, xpthread_mutex_destroy,
4701         xpthread_mutex_init, xpthread_mutexattr_destroy,
4702         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
4703         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
4704         xpthread_mutexattr_settype.
4705         * support/xmmap.c: New file.
4706         * support/xmunmap.c: Likewise.
4707         * support/xpthread_mutex_consistent.c: Likewise.
4708         * support/xpthread_mutex_destroy.c: Likewise.
4709         * support/xpthread_mutex_init.c: Likewise.
4710         * support/xpthread_mutexattr_destroy.c: Likewise.
4711         * support/xpthread_mutexattr_init.c: Likewise.
4712         * support/xpthread_mutexattr_setprotocol.c: Likewise.
4713         * support/xpthread_mutexattr_setpshared.c: Likewise.
4714         * support/xpthread_mutexattr_setrobust.c: Likewise.
4715         * support/xpthread_mutexattr_settype.c: Likewise.
4716         * support/xthread.h (xpthread_mutexattr_destroy)
4717         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
4718         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
4719         (xpthread_mutexattr_settype, xpthread_mutex_init)
4720         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
4721         * support/xunistd.h (xmmap, xmunmap): Likewise.
4722
4723 2017-01-25  Florian Weimer  <fweimer@redhat.com>
4724
4725         * string/Makefile (xtests): Add comment.
4726         (LOCALES): Add en_GB.UTF-8.
4727         (tst-strcoll-overflow.out): Depend on generated locales.
4728         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
4729         (SIZE, TIMEOUT): Update comments.
4730         (do_test): Define as static.  Fail test if setlocale fails.
4731         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
4732         messages.
4733         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
4734         TIMEOUT at 300 seconds should be enough to run this test
4735         successfully.
4736
4737 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
4738
4739         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
4740         /* FALLTHRU */ comments.
4741
4742 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
4743
4744         [BZ #21053]
4745         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
4746         constants instead of the old R* ones.
4747         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
4748         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
4749         (NGREG): ... to this, to fit in with other architectures.
4750         (gpregset_t): Use new NGREG macro.
4751         [__USE_GNU]: Remove condition; all architectures other than tile
4752         are unconditional.
4753         (R*): Rename to REG_R*.
4754
4755 2017-01-20  DJ Delorie  <dj@redhat.com>
4756
4757         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
4758         (tunable_set_val_if_valid_range_signed) ... this, and ...
4759         (tunable_set_val_if_valid_range_unsigned) ... this.
4760         (tunable_initialize): Call the correct one of the above based on type.
4761
4762 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
4763
4764         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
4765         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4766         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4767         * sysdeps/microblaze/libm-test-ulps: Likewise.
4768         * sysdeps/sh/libm-test-ulps: Likewise.
4769
4770         * math/README.libm-test: Update list of characters for input and
4771         output types.
4772
4773 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4774
4775         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
4776         (__lll_unlock_elision): Fix adapt_count decrement.
4777
4778 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
4779
4780         * README.pretty-printers (Known issues): Warn about printers not
4781         always covering everything.
4782         * nptl/nptl-printers.py (MutexPrinter): Change output.
4783         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
4784
4785 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
4786
4787         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
4788         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4789         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
4790         (__lll_lock_elision): Do not test futex before starting a
4791         transaction.  Use __glibc_likely instead of __builtin_expect.
4792         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
4793         (__lll_trylock_elision): Do not test futex before starting a
4794         transaction.  Use __glibc_likely instead of __builtin_expect.
4795
4796 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4797
4798         * po/Makefile (update-translations): New target.
4799
4800 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4801
4802         [BZ #21061]
4803         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
4804
4805 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4806
4807         * elf/dl-tunables (get_next_env): Always advance envp.
4808         * stdlib/tst-empty-env.c: New test case.
4809         * stdlib/Makefile (tests): Use it.
4810
4811 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4812
4813         [BZ #21047]
4814         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
4815         name for instruction.
4816         [!__SOFTFP__] (_FPU_SETCW): Likewise.
4817
4818 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4819
4820         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
4821         for make install.
4822
4823 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4824
4825         * po/bg.po: Merge from Translation Project.
4826         * po/fr.po: Likewise.
4827         * po/ko.po: Likewise.
4828         * po/nl.po: Likewise.
4829         * po/sv.po: Likewise.
4830
4831 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4832
4833         * manual/install.texi (Tools for Compilation): Update GCC version
4834         known to work to build glibc.
4835         * INSTALL: Regenerated.
4836
4837 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
4838
4839         [BZ #21006]
4840         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
4841
4842 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
4843
4844         [BZ #21045]
4845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4846         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
4847         to __sigprocmask.
4848
4849 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
4850
4851         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
4852         wrap-around.
4853         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
4854
4855         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
4856
4857 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4858
4859         * NEWS: Fix typo.
4860
4861 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4862
4863         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
4864         barriers and comments.
4865         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
4866         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4867         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4868
4869 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4870
4871         [BZ #19402]
4872         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
4873         mutexes.
4874
4875 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4876
4877         [BZ #20985]
4878         * nptl/Makefile: Adapt.
4879         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4880         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4881         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4882         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4883         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
4884         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
4885         lll_robust* functions and adapt.
4886         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4887         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
4888         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4889         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4890         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
4891         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4892         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
4893         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4894         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
4895         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4896         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4897         * nptl/lowlevelrobustlock.c: Remove file.
4898         * nptl/lowlevelrobustlock.sym: Likewise.
4899         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
4900         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4901
4902 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4903
4904         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4905
4906 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4907
4908         * po/cs.po: Merge translations from the Translation Project.
4909         * po/de.po: Likewise.
4910         * po/pl.po: Likewise.
4911         * po/ru.po: Likewise.
4912         * po/tr.po: Likewise.
4913         * po/uk.po: Likewise.
4914         * po/vi.po: Likewise.
4915         * po/zh_CN.po: Likewise.
4916
4917 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
4918
4919         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
4920
4921         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
4922         object.
4923
4924 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4925
4926         [BZ #16458]
4927         * bits/uintn-identity.h: New file.
4928         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
4929         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
4930         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
4931         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
4932         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
4933         * string/endian.h: Include <bits/uintn-identity.h>.
4934         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
4935         __uint16_identity.
4936         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
4937         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
4938         __uint32_identity.
4939         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
4940         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
4941         __uint64_identity.
4942         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
4943         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
4944         __uint16_identity.
4945         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
4946         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
4947         __uint32_identity.
4948         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
4949         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
4950         __uint64_identity.
4951         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
4952         * string/Makefile (headers): Add bits/uintn-identity.h.
4953         (tests): Add test-endian-types.
4954         * string/test-endian-types.c: New file.
4955         * inet/Makefile (tests): Add test-hnto-types.
4956         * inet/test-hnto-types.c: New file.
4957
4958 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4959
4960         * po/be.po: Update from Translation Project.
4961         * po/bg.po: Likewise.
4962         * po/ca.po: Likewise.
4963         * po/cs.po: Likewise.
4964         * po/da.po: Likewise.
4965         * po/de.po: Likewise.
4966         * po/el.po: Likewise.
4967         * po/eo.po: Likewise.
4968         * po/es.po: Likewise.
4969         * po/fi.po: Likewise.
4970         * po/fr.po: Likewise.
4971         * po/gl.po: Likewise.
4972         * po/hr.po: Likewise.
4973         * po/hu.po: Likewise.
4974         * po/ia.po: Likewise.
4975         * po/id.po: Likewise.
4976         * po/it.po: Likewise.
4977         * po/ja.po: Likewise.
4978         * po/ko.po: Likewise.
4979         * po/lt.po: Likewise.
4980         * po/nb.po: Likewise.
4981         * po/nl.po: Likewise.
4982         * po/pl.po: Likewise.
4983         * po/pt_BR.po: Likewise.
4984         * po/ru.po: Likewise.
4985         * po/rw.po: Likewise.
4986         * po/sk.po: Likewise.
4987         * po/sl.po: Likewise.
4988         * po/sv.po: Likewise.
4989         * po/tr.po: Likewise.
4990         * po/uk.po: Likewise.
4991         * po/vi.po: Likewise.
4992         * po/zh_CN.po: Likewise.
4993         * po/zh_TW.po: Likewise.
4994
4995 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4996
4997         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
4998         -Wformat-truncation instead of -Wformat-length.
4999         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
5000         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
5001         GCC 7.
5002         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
5003         (do_test): Ignore -Wformat-truncation for GCC 7.
5004
5005         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
5006         buffer used to print long int value.
5007
5008         * elf/sotruss-lib.c (init): Increase space allocated for pid by
5009         one byte.  Print it with %ld, cast to long int.
5010
5011 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5012
5013         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
5014         (re.fullmatch, subprocess.run): Likewise.
5015
5016 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5017
5018         * po/libc.pot: Regenerate.
5019
5020 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5021
5022         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
5023         (min_strlen): Likewise.
5024         (disable_tunable): Likewise.
5025         (maybe_disable_malloc_check): Rename to
5026         maybe_enable_malloc_check.
5027         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
5028         if /etc/suid-debug file exists.
5029         (__tunables_init): Update caller.
5030         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
5031         secure.
5032
5033 2016-01-10  Torvald Riegel  <triegel@redhat.com>
5034
5035         * nptl/DESIGN-rwlock.txt: Remove.
5036         * nptl/lowlevelrwlock.sym: Remove.
5037         * nptl/Makefile: Add new tests.
5038         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
5039         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
5040         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
5041         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
5042         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
5043         PTHREAD_RWLOCK_FUTEX_USED): New.
5044         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
5045         implementation.
5046         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
5047         (__pthread_rwlock_rdlock): Adapt.
5048         * nptl/pthread_rwlock_timedrdlock.c
5049         (pthread_rwlock_timedrdlock): Adapt.
5050         * nptl/pthread_rwlock_timedwrlock.c
5051         (pthread_rwlock_timedwrlock): Adapt.
5052         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
5053         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
5054         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
5055         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
5056         (__pthread_rwlock_wrlock): Adapt.
5057         * nptl/tst-rwlock10.c: Adapt.
5058         * nptl/tst-rwlock11.c: Adapt.
5059         * nptl/tst-rwlock17.c: New file.
5060         * nptl/tst-rwlock18.c: New file.
5061         * nptl/tst-rwlock19.c: New file.
5062         * nptl/tst-rwlock2b.c: New file.
5063         * nptl/tst-rwlock8.c: Adapt.
5064         * nptl/tst-rwlock9.c: Adapt.
5065         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5066         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5067         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5068         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5069         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5070         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5071         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5072         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5073         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5074         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5075         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5076         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5077         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5078         (pthread_rwlock_t): Adapt.
5079         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5080         (pthread_rwlock_t): Adapt.
5081         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5082         * nptl/nptl-printers.py (): Adapt.
5083         * nptl/nptl_lock_constants.pysym: Adapt.
5084         * nptl/test-rwlock-printers.py: Adapt.
5085         * nptl/test-rwlockattr-printers.c: Adapt.
5086         * nptl/test-rwlockattr-printers.py: Adapt.
5087
5088 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
5089
5090         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
5091         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
5092         (fma_test_data): Likewise.
5093         (hypot_test_data): Likewise.
5094         (log1p_test_data): Likewise.
5095         (modf_test_data): Likewise.
5096         (pow_test_data): Likewise.
5097         (remainder_test_data): Likewise.
5098         (remquo_test_data): Likewise.
5099         (scalb_test_data): Likewise.
5100         (scalbn_test_data): Likewise.
5101         (scalbln_test_data): Likewise.
5102         * math/gen-libm-test.pl (parse_args): Transform
5103         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
5104         on the rounding mode.
5105
5106 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
5107
5108         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
5109         xfail-rounding:ibm128-libgcc automatically to tests overflowing
5110         and those that can underflow to zero.
5111         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
5112         add others.
5113         * math/auto-libm-test-out: Regenerated.
5114
5115         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
5116         supported.
5117         (feholdexcept_tests): Skip tests requiring exceptions or rounding
5118         modes support if not supported.
5119
5120         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
5121         Add libc.so PLT entry.
5122         (__tls_get_addr): Make ld.so PLT entry optional.
5123
5124 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5125
5126         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
5127         * string/bits/string3.h: ... here.
5128
5129 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5130
5131         [BZ #21028]
5132         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
5133         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
5134         if EXCEPTION_TESTS returns false.
5135
5136 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5137
5138         [BZ #20558]
5139         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
5140         strings_fortified.h.
5141         [__USE_MISC] (bzero): Likewise.
5142         [__USE_MISC] (explicit_bzero): Likewise.
5143         * string/strings.h: Include strings_fortified.h.
5144         * string/Makefile (headers): Add strings_fortified.h.
5145         * string/bits/strings_fortified.h: New file.
5146         * include/bits/strings_fortified.h: Likewise.
5147
5148 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5149
5150         * elf/tst-tls13.c (TIMEOUT): Remove.
5151         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
5152         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
5153         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
5154         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
5155         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
5156
5157         [BZ #21026]
5158         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
5159         (readahead): New syscall entry.
5160
5161 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5162
5163         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
5164         around tests of strncat with large sizes.
5165
5166         * malloc/tst-malloc.c: Include <libc-internal.h>.
5167         (do_test): Disable -Walloc-size-larger-than= around tests of
5168         malloc with negative sizes.
5169         * malloc/tst-mcheck.c: Include <libc-internal.h>.
5170         (do_test): Disable -Walloc-size-larger-than= around tests of
5171         malloc and realloc with negative sizes.
5172         * malloc/tst-realloc.c: Include <libc-internal.h>.
5173         (do_test): Disable -Walloc-size-larger-than= around tests of
5174         realloc with negative sizes.
5175
5176         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
5177         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
5178         allowed to 16 ulps.
5179         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
5180         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
5181         * math/auto-libm-test-out: Regenerated.
5182
5183 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5184
5185         * math/Makefile (libm-calls): Move wrappers...
5186         (libm-compat-call-auto): Here.
5187         (libm-routines): Add items in libm-compat-calls-auto.
5188         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
5189         the filenames of the wrappers that have been renamed.
5190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
5191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5192
5193         * math/w_acos.c: Add _compat suffix to filename.
5194         * math/w_acosf.c: Likewise.
5195         * math/w_acosh.c: Likewise.
5196         * math/w_acoshf.c: Likewise.
5197         * math/w_acoshl.c: Likewise.
5198         * math/w_acosl.c: Likewise.
5199         * math/w_asin.c: Likewise.
5200         * math/w_asinf.c: Likewise.
5201         * math/w_asinl.c: Likewise.
5202         * math/w_atan2.c: Likewise.
5203         * math/w_atan2f.c: Likewise.
5204         * math/w_atan2l.c: Likewise.
5205         * math/w_atanh.c: Likewise.
5206         * math/w_atanhf.c: Likewise.
5207         * math/w_atanhl.c: Likewise.
5208         * math/w_cosh.c: Likewise.
5209         * math/w_coshf.c: Likewise.
5210         * math/w_coshl.c: Likewise.
5211         * math/w_exp10.c: Likewise.
5212         * math/w_exp10f.c: Likewise.
5213         * math/w_exp10l.c: Likewise.
5214         * math/w_exp2.c: Likewise.
5215         * math/w_exp2f.c: Likewise.
5216         * math/w_exp2l.c: Likewise.
5217         * math/w_fmod.c: Likewise.
5218         * math/w_fmodf.c: Likewise.
5219         * math/w_fmodl.c: Likewise.
5220         * math/w_hypot.c: Likewise.
5221         * math/w_hypotf.c: Likewise.
5222         * math/w_hypotl.c: Likewise.
5223         * math/w_j0.c: Likewise.
5224         * math/w_j0f.c: Likewise.
5225         * math/w_j0l.c: Likewise.
5226         * math/w_j1.c: Likewise.
5227         * math/w_j1f.c: Likewise.
5228         * math/w_j1l.c: Likewise.
5229         * math/w_jn.c: Likewise.
5230         * math/w_jnf.c: Likewise.
5231         * math/w_jnl.c: Likewise.
5232         * math/w_log10.c: Likewise.
5233         * math/w_log10f.c: Likewise.
5234         * math/w_log10l.c: Likewise.
5235         * math/w_log2.c: Likewise.
5236         * math/w_log2f.c: Likewise.
5237         * math/w_log2l.c: Likewise.
5238         * math/w_log.c: Likewise.
5239         * math/w_logf.c: Likewise.
5240         * math/w_logl.c: Likewise.
5241         * math/w_pow.c: Likewise.
5242         * math/w_powf.c: Likewise.
5243         * math/w_powl.c: Likewise.
5244         * math/w_remainder.c: Likewise.
5245         * math/w_remainderf.c: Likewise.
5246         * math/w_remainderl.c: Likewise.
5247         * math/w_scalb.c: Likewise.
5248         * math/w_scalbf.c: Likewise.
5249         * math/w_scalbl.c: Likewise.
5250         * math/w_sinh.c: Likewise.
5251         * math/w_sinhf.c: Likewise.
5252         * math/w_sinhl.c: Likewise.
5253         * math/w_sqrt.c: Likewise.
5254         * math/w_sqrtf.c: Likewise.
5255         * math/w_sqrtl.c: Likewise.
5256         * math/w_tgamma.c: Likewise.
5257         * math/w_tgammaf.c: Likewise.
5258         * math/w_tgammal.c: Likewise.
5259
5260         * math/w_acos_compat.c: New file copied from above and
5261         adjusted for new #includes path
5262         * math/w_acosf_compat.c: Likewise.
5263         * math/w_acosh_compat.c: Likewise.
5264         * math/w_acoshf_compat.c: Likewise.
5265         * math/w_acoshl_compat.c: Likewise.
5266         * math/w_acosl_compat.c: Likewise.
5267         * math/w_asin_compat.c: Likewise.
5268         * math/w_asinf_compat.c: Likewise.
5269         * math/w_asinl_compat.c: Likewise.
5270         * math/w_atan2_compat.c: Likewise.
5271         * math/w_atan2f_compat.c: Likewise.
5272         * math/w_atan2l_compat.c: Likewise.
5273         * math/w_atanh_compat.c: Likewise.
5274         * math/w_atanhf_compat.c: Likewise.
5275         * math/w_atanhl_compat.c: Likewise.
5276         * math/w_cosh_compat.c: Likewise.
5277         * math/w_coshf_compat.c: Likewise.
5278         * math/w_coshl_compat.c: Likewise.
5279         * math/w_exp10_compat.c: Likewise.
5280         * math/w_exp10f_compat.c: Likewise.
5281         * math/w_exp10l_compat.c: Likewise.
5282         * math/w_exp2_compat.c: Likewise.
5283         * math/w_exp2f_compat.c: Likewise.
5284         * math/w_exp2l_compat.c: Likewise.
5285         * math/w_fmod_compat.c: Likewise.
5286         * math/w_fmodf_compat.c: Likewise.
5287         * math/w_fmodl_compat.c: Likewise.
5288         * math/w_hypot_compat.c: Likewise.
5289         * math/w_hypotf_compat.c: Likewise.
5290         * math/w_hypotl_compat.c: Likewise.
5291         * math/w_j0_compat.c: Likewise.
5292         * math/w_j0f_compat.c: Likewise.
5293         * math/w_j0l_compat.c: Likewise.
5294         * math/w_j1_compat.c: Likewise.
5295         * math/w_j1f_compat.c: Likewise.
5296         * math/w_j1l_compat.c: Likewise.
5297         * math/w_jn_compat.c: Likewise.
5298         * math/w_jnf_compat.c: Likewise.
5299         * math/w_jnl_compat.c: Likewise.
5300         * math/w_log10_compat.c: Likewise.
5301         * math/w_log10f_compat.c: Likewise.
5302         * math/w_log10l_compat.c: Likewise.
5303         * math/w_log2_compat.c: Likewise.
5304         * math/w_log2f_compat.c: Likewise.
5305         * math/w_log2l_compat.c: Likewise.
5306         * math/w_log_compat.c: Likewise.
5307         * math/w_logf_compat.c: Likewise.
5308         * math/w_logl_compat.c: Likewise.
5309         * math/w_pow_compat.c: Likewise.
5310         * math/w_powf_compat.c: Likewise.
5311         * math/w_powl_compat.c: Likewise.
5312         * math/w_remainder_compat.c: Likewise.
5313         * math/w_remainderf_compat.c: Likewise.
5314         * math/w_remainderl_compat.c: Likewise.
5315         * math/w_scalb_compat.c: Likewise.
5316         * math/w_scalbf_compat.c: Likewise.
5317         * math/w_scalbl_compat.c: Likewise.
5318         * math/w_sinh_compat.c: Likewise.
5319         * math/w_sinhf_compat.c: Likewise.
5320         * math/w_sinhl_compat.c: Likewise.
5321         * math/w_sqrt_compat.c: Likewise.
5322         * math/w_sqrtf_compat.c: Likewise.
5323         * math/w_sqrtl_compat.c: Likewise.
5324         * math/w_tgamma_compat.c: Likewise.
5325         * math/w_tgammaf_compat.c: Likewise.
5326         * math/w_tgammal_compat.c: Likewise.
5327
5328         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
5329         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5330         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5331         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5332         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5333         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5334         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5335         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5336         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5337         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
5338         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
5339         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
5340         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5341         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5342         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5343         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5344         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5345         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5346         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5347         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5348         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5349         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5350         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5351         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5352         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5353         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5354         * sysdeps/ia64/fpu/w_log.c: Likewise.
5355         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5356         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5357         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5358         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5359         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5360         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5361         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5362         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5363         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5364         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5365         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5366         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5367         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5368         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5369         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5370         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5371         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5372         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5373         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5374         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5375         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5376         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5377         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5378         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5379         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5380         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5381         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5382         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5383         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5384         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5385         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5386         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
5387         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
5388         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
5389         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
5390         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
5391         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
5392         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
5393         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
5394         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
5395         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
5396         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
5397         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
5398         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
5399         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
5400         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
5401         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
5402         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
5403         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
5404         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
5405         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
5406         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
5407         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
5408         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
5409         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
5410         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
5411         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
5412         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
5413         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
5414         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
5415         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
5416         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
5417         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
5418         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
5419         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
5420         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
5421         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
5422         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
5423         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
5424         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
5425         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
5426         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
5427         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
5428         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
5429         Likewise.
5430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
5431         Likewise.
5432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
5433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
5434         Likewise.
5435         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
5436         Likewise.
5437         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
5438         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5439         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5440         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5441         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5442         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5443         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
5445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
5447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5448         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5449         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5450         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5451         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5452
5453         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
5454         and adjusted for new #includes path
5455         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
5456         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
5457         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
5458         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
5459         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
5460         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
5461         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
5462         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
5463         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
5464         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
5465         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
5466         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
5467         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
5468         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
5469         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
5470         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
5471         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
5472         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
5473         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
5474         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
5475         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
5476         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
5477         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
5478         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
5479         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
5480         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
5481         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
5482         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
5483         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
5484         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
5485         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
5486         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
5487         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
5488         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
5489         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
5490         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
5491         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
5492         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
5493         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
5494         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
5495         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
5496         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
5497         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
5498         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
5499         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
5500         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
5501         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
5502         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
5503         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
5504         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
5505         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
5506         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
5507         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
5508         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
5509         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
5510         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
5511         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
5512         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
5513         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5514         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5515         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5516         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5517         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5518         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5519         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5520         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5521         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5522         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5523         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5524         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
5525         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
5526         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5527         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5528         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5529         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5530         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5531         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5532         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5533         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5534         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5535         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5536         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5537         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5538         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5539         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5540         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5541         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5542         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5543         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5544         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
5545         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5546         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
5547         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
5548         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5549         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5550         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5551         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5552         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5553         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5555         Likewise.
5556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5557         Likewise.
5558         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5559         Likewise.
5560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5561         Likewise.
5562         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5563         Likewise.
5564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5565         Likewise.
5566         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5567         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5568         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5569         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5570         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5571         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5573         Likewise.
5574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5575         Likewise.
5576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5577         Likewise.
5578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5579         Likewise.
5580         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5581         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5582         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5583         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5584
5585 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5586
5587         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
5588         __jmp_buf_internal_tag.
5589
5590         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
5591         preserve NaN payload if [__mips_nan2008].
5592         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5593
5594         [BZ #21022]
5595         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
5596
5597 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5598
5599         * sysdeps/i386/fpu/libm-test-ulps: Update.
5600
5601 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5602
5603         * sysdeps/ia64/strcat.c: Remove file.
5604         * sysdeps/powerpc/strcat.c: Likewise.
5605         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
5606         C implementation.
5607         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
5608         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
5609
5610 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5611             Steven Munroe  <sjmunroe@us.ibm.com>
5612             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5613
5614         [BZ #20822]
5615         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
5616         (__lll_lock_elision): Access adapt_count via C11 atomics.
5617         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
5618         (__lll_trylock_elision): Likewise.
5619         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
5620         (__lll_unlock_elision):  Update adapt_count variable inside the
5621         critical section using C11 atomics.
5622
5623 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5624
5625         * math/test-fenvinline.c (do_test): Disable tests of raised
5626         exceptions if !EXCEPTION_TESTS (FLOAT).
5627
5628 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5629
5630         [BZ #19390]
5631         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
5632         maximum string size.
5633         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
5634         in pointer addition.
5635         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
5636         Likewise.
5637
5638 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5639
5640         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
5641         passed to tst-ldconfig-X.sh.
5642
5643 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
5644
5645         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
5646
5647 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5648
5649         [BZ #21019]
5650         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
5651         New syscall entry.
5652         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
5653         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
5654         lseek.
5655
5656         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
5657         power4 glibc for powerpc-linux-gnu.
5658
5659 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5660
5661         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
5662         semctl.
5663
5664 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * math/test-nearbyint-except.c: Include <stdbool.h>.
5667         (any_supported): New variable.
5668         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
5669         set any_supported.
5670         (do_test): Return 77 if no floating-point type supported
5671         exceptions.
5672
5673         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
5674         condition on [__mips_hard_float].
5675
5676 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5677
5678         [BZ #21014]
5679         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
5680         in pointer addition.
5681         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
5682
5683 2017-01-02  Torvald Riegel  <triegel@redhat.com>
5684
5685         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
5686         new condvar.
5687
5688 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5689
5690         * scripts/build-many-glibcs.py (Context.checkout): Default
5691         binutils version to 2.28 branch.
5692
5693 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5694
5695         * support/support_format_netent.c (support_format_netent): Work
5696         around alpha struct netent definition difference.
5697
5698 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5699
5700         * support/xwrite.c (xwrite): Use %td for pointer difference.
5701
5702 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5703
5704         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
5705         have-tunables only.
5706         (tests-static): Add tst-malloc-usable-static-tunables for
5707         have-tunables only.
5708
5709 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
5710
5711         * scripts/config.guess: Update to version 2017-01-01.
5712         * scripts/config.sub: Update to version 2017-01-01.
5713
5714         * NEWS: Update copyright dates.
5715         * catgets/gencat.c (print_version): Likewise.
5716         * csu/version.c (banner): Likewise.
5717         * debug/catchsegv.sh: Likewise.
5718         * debug/pcprofiledump.c (print_version): Likewise.
5719         * debug/xtrace.sh (do_version): Likewise.
5720         * elf/ldconfig.c (print_version): Likewise.
5721         * elf/ldd.bash.in: Likewise.
5722         * elf/pldd.c (print_version): Likewise.
5723         * elf/sotruss.sh: Likewise.
5724         * elf/sprof.c (print_version): Likewise.
5725         * iconv/iconv_prog.c (print_version): Likewise.
5726         * iconv/iconvconfig.c (print_version): Likewise.
5727         * locale/programs/locale.c (print_version): Likewise.
5728         * locale/programs/localedef.c (print_version): Likewise.
5729         * login/programs/pt_chown.c (print_version): Likewise.
5730         * malloc/memusage.sh (do_version): Likewise.
5731         * malloc/memusagestat.c (print_version): Likewise.
5732         * malloc/mtrace.pl: Likewise.
5733         * manual/libc.texinfo: Likewise.
5734         * nptl/version.c (banner): Likewise.
5735         * nscd/nscd.c (print_version): Likewise.
5736         * nss/getent.c (print_version): Likewise.
5737         * nss/makedb.c (print_version): Likewise.
5738         * posix/getconf.c (main): Likewise.
5739         * scripts/test-installation.pl: Likewise.
5740         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5741
5742         * All files with FSF copyright notices: Update copyright dates
5743         using scripts/update-copyrights.
5744         * intl/plural.c: Regenerated.
5745         * locale/programs/charmap-kw.h: Likewise.
5746         * locale/programs/locfile-kw.h: Likewise.
5747
5748 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5749
5750         [BZ #20593]
5751         Update DNS RR type definitions.
5752         * scripts/gen-rrtypes.py: New file.
5753         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
5754         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
5755         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
5756         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
5757         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
5758         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
5759         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
5760         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
5761         ns_t_ta, ns_t_dlv.
5762         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
5763         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
5764         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
5765         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
5766         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
5767         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
5768         Define.
5769         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
5770         entry for ns_t_zxfr.
5771
5772 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5773
5774         [BZ #18784]
5775         CVE-2015-5180
5776         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
5777         T_UNSPEC.  Adjust value.
5778         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
5779         * resolv/res_query.c (__libc_res_nquery): Likewise.
5780         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
5781         QTYPEs.
5782         * resolv/tst-resolv-qtypes.c: New file.
5783         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
5784         (tst-resolv-qtypes): Link against libresolv and libpthread.
5785
5786 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5787
5788         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
5789
5790 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5791
5792         * manual/tunables.texi: New chapter.
5793         * manual/Makefile (chapters): Add it.
5794         * manual/probes.texi (@node): Point to the Tunables chapter.
5795
5796         * Makeconfig (have-tunables): Check for non-negative instead
5797         of positive.
5798         * configure.ac: Add 'valstring' as a valid value for
5799         --enable-tunables.
5800         * configure: Regenerate.
5801         * elf/Makefile (have-tunables): Check for non-negative instead
5802         of positive.
5803         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
5804         dl-tunables.c.
5805         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
5806         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5807         (tunables_strdup): Likewise.
5808         (disable_tunables): Likewise.
5809         (parse_tunables): Likewise.
5810         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
5811         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5812         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
5813         (TUNABLES_FRONTEND_yes): New macro, define as
5814         TUNABLES_FRONTEND_valstring by default.
5815         * manual/install.texi: Document new acceptable values for
5816         --enable-tunables.
5817         * INSTALL: Regenerate.
5818
5819         * config.make.in (have-loop-to-function): Define.
5820         * elf/Makefile (CFLAGS-dl-tunables.c): Add
5821         -fno-tree-loop-distribute-patterns.
5822         * elf/dl-tunables.c: Include libc-internals.h.
5823         (GLIBC_TUNABLES): New macro.
5824         (tunables_strdup): New function.
5825         (parse_tunables): New function.
5826         (min_strlen): New function.
5827         (__tunables_init): Use the new functions and macro.
5828         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
5829         * malloc/tst-malloc-usable-tunables.c: New test case.
5830         * malloc/tst-malloc-usable-static-tunables.c: New test case.
5831         * malloc/Makefile (tests, tests-static): Add tests.
5832
5833         * manual/install.texi: Add --enable-tunables option.
5834         * INSTALL: Regenerate.
5835         * README.tunables: New file.
5836         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
5837         (before-compile): Generate dl-tunable-list.h early.
5838         * config.h.in: Add HAVE_TUNABLES.
5839         * config.make.in: Add have-tunables.
5840         * configure.ac: Add --enable-tunables option.
5841         * configure: Regenerate.
5842         * csu/init-first.c (__libc_init_first): Move
5843         __libc_init_secure earlier...
5844         * csu/init-first.c (LIBC_START_MAIN):... to here.
5845         Include dl-tunables.h, libc-internal.h.
5846         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
5847         binaries.
5848         * elf/Makefile (dl-routines): Add dl-tunables.
5849         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
5850         namespace.
5851         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
5852         only when !HAVE_TUNABLES.
5853         * elf/rtld.c (process_envvars): Likewise.
5854         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
5855         (_dl_sysdep_start): Call __tunables_init.
5856         * elf/dl-tunable-types.h: New file.
5857         * elf/dl-tunables.c: New file.
5858         * elf/dl-tunables.h: New file.
5859         * elf/dl-tunables.list: New file.
5860         * malloc/tst-malloc-usable-static.c: New test case.
5861         * malloc/Makefile (tests-static): Add it.
5862         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
5863         Define TUNABLE_NAMESPACE.
5864         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
5865         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
5866         callback functions.
5867         (ptmalloc_init): Set tunable values.
5868         * scripts/gen-tunables.awk: New file.
5869         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
5870         (_dl_sysdep_start): Call __tunables_init.
5871
5872 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5873
5874         * resolv/resolv.h (RES_BLAST): Deprecate.
5875         * resolv/res_debug.c (p_option): Remove RES_BLAST.
5876         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
5877         to RES_BLAST.
5878
5879 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5880
5881         [BZ #19582]
5882         Deprecate RES_USE_INET6.
5883         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
5884         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
5885         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
5886         RES_USE_INET6.
5887         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
5888         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
5889         (_nss_nisplus_gethostbyaddr_r): Likewise.
5890         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
5891         of res_use_inet6.
5892         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
5893         instead of RES_USE_INET6.
5894         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
5895         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
5896         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
5897         Likewise.
5898         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
5899         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
5900         Likewise.
5901         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
5902         (_nss_dns_gethostbyname_r): Likewise.
5903         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
5904         alternate RES_USE_INET6 handling.
5905         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
5906         instead of RES_USE_INET6.
5907         * resolv/res_init.c (res_setoptions): Likewise.
5908         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
5909         * resolv/resolv-internal.h: New file.
5910         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
5911         make the deprecation warning non-fatal.
5912         * resolv/README (Using the resolver in multi-threaded code): Drop
5913         reference to RES_USE_INET6.
5914         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
5915         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
5916
5917 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5918
5919         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
5920         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
5921         tst-resolv-search.
5922         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
5923         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
5924         with libresolv and libpthread.
5925         * resolv/tst-bug18665.c: New file.
5926         * resolv/tst-bug18665-tcp: Likewise.
5927         * resolv/tst-res_use_inet6: Likewise.
5928         * resolv/tst-resolv-basic: Likewise.
5929         * resolv/tst-resolv-network: Likewise.
5930         * resolv/tst-resolv-search: Likewise.
5931         * support/Makefile (libsupport-routines): Add check_addrinfo,
5932         check_dns_packet, check_hostent, check_netent, resolv_test,
5933         support_format_address_family, support_format_addrinfo,
5934         support_format_dns_packet, support_format_herrno,
5935         support_format_hostent, support_format_netent, support_run_diff,
5936         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
5937         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
5938         xstrdup, xwrite.
5939         * support/check_addrinfo.c: New file.
5940         * support/check_dns_packet.c: Likewise.
5941         * support/check_hostent.c: Likewise.
5942         * support/check_netent.c: Likewise.
5943         * support/check_nss.h: Likewise.
5944         * support/format_nss.h: Likewise.
5945         * support/resolv_test.c: Likewise.
5946         * support/resolv_test.h: Likewise.
5947         * support/run_diff.h: Likewise.
5948         * support/support_format_address_family.c: Likewise.
5949         * support/support_format_addrinfo.c: Likewise.
5950         * support/support_format_dns_packet.c: Likewise.
5951         * support/support_format_herrno.c: Likewise.
5952         * support/support_format_hostent.c: Likewise.
5953         * support/support_format_netent.c: Likewise.
5954         * support/support_run_diff.c: Likewise.
5955         * support/xaccept.c: Likewise.
5956         * support/xbind.c: Likewise.
5957         * support/xconnect.c: Likewise.
5958         * support/xfclose.c: Likewise.
5959         * support/xfopen.c: Likewise.
5960         * support/xgetsockname.c: Likewise.
5961         * support/xlisten.c: Likewise.
5962         * support/xmemstream.c: Likewise.
5963         * support/xmemstream.h: Likewise.
5964         * support/xpoll.c: Likewise.
5965         * support/xpthread_once.c: Likewise.
5966         * support/xrecvfrom.c: Likewise.
5967         * support/xsendto.c: Likewise.
5968         * support/xsetsockopt.c: Likewise.
5969         * support/xstdio.h: Likewise.
5970         * support/xstrdup.c: Likewise.
5971         * support/support.h (xstrdup): Declare.
5972         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
5973         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
5974         * support/xthread.h (xpthread_once): Likwise.
5975         * support/xunistd.h (xwrite): Declare.
5976
5977 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5978
5979         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
5980         (test_verbose): Declare.
5981         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
5982         * support/support_test_main.c (default_options): Likewise.
5983         (usage, support_test_main): Handle 'v'.
5984         (test_verbose): Define.
5985         * support/tst-support_record_failure.c (do_test): Use
5986         test_verbose.
5987         * support/tst-support_record_failure-2.sh (different_status): Add
5988         --verbose test.
5989
5990 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5991
5992         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
5993         test failures are recorded.
5994         * support/check.c (support_print_failure_impl): Call
5995         support_record_failure.
5996         (support_exit_failure_impl): Call support_record_failure if status
5997         indicates failure.
5998         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
5999         * support/xasprintf.c (xasprintf): Likewise.
6000         * support/xfork.c (xfork): Likewise.
6001         * support/xpthread_check_return.c (xpthread_check_return):
6002         Likewise.
6003         * support/xsocket.c (xsocket): Likeweise.
6004         * support/xwaitpid.c (xwaitpid): Likewise.
6005         * support/support_record_failure.c (struct test_failures): Adjust
6006         to coding style.
6007         * support/support_test_verify_impl.c (support_test_verify_impl):
6008         Adjust error messages.
6009         * support/tst-support_record_failure-2.sh (different_status):
6010         Adjust error messages.
6011
6012 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6013
6014         * support/namespace.h: New file.
6015         * support/support_become_root.c: Likewise.
6016         * support/support_enter_network_namespace.c: Likewise.
6017         * support/tst-support-namespace.c: Likewise.
6018         * support/xsocket.c: Likewise.
6019         * support/xsocket.h: Likewise.
6020         * support/Makefile (libsupport-routines): Add support_become_root,
6021         support_enter_network_namespace, xsocket.
6022         (tests): Add tst-support-namespace.
6023
6024 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6025
6026         [BZ #17252]
6027         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
6028         __USE_GNU.
6029
6030 2016-12-31  Torvald Riegel  <triegel@redhat.com>
6031
6032         [BZ #13165]
6033         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
6034         use new algorithm.
6035         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
6036         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
6037         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
6038         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6039         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
6040         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
6041         __condvar_cleanup_waiting, __condvar_dec_grefs,
6042         __pthread_cond_wait_common): New.
6043         (__condvar_cleanup): Remove.
6044         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
6045         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
6046         Likewise.
6047         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
6048         Likewise.
6049         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
6050         * nptl/tst-cond1.c: Add comment.
6051         * nptl/tst-cond20.c (do_test): Adapt.
6052         * nptl/tst-cond22.c (do_test): Likewise.
6053         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
6054         structure.
6055         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6056         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6057         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6058         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
6059         Likewise.
6060         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6061         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6062         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6063         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6064         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6065         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6066         Likewise.
6067         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
6068         Likewise.
6069         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6070         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
6071         (COND_CLOCK_BITS): Adapt.
6072         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
6073         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
6074         __PTHREAD_COND_SHARED_MASK): New.
6075         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
6076         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
6077         * nptl/nptl_lock_constants.pysym: Adapt.
6078         * nptl/test-cond-printers.py: Adapt.
6079         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
6080         cond_compat_check_and_clear): Adapt.
6081         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
6082         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
6083         (__pthread_cond_timedwait): ... and move here.
6084         * nptl/DESIGN-condvar.txt: Remove file.
6085         * nptl/lowlevelcond.sym: Likewise.
6086         * nptl/pthread_cond_timedwait.c: Likewise.
6087         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
6088         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
6089         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6090         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
6091         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
6092         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
6093         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
6094         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
6095         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
6096         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
6097         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
6098         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
6099         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
6100         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6101         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6102         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6103
6104 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
6105
6106         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6107         (fromfp): New declaration.
6108         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6109         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6110         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6111         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
6112         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
6113         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6114         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6115         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6116         * math/math.h: Include <bits/types.h>.
6117         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
6118         constant and macro.
6119         (FP_INT_DOWNWARD): Likewise.
6120         (FP_INT_TOWARDZERO): Likewise.
6121         (FP_INT_TONEARESTFROMZERO): Likewise.
6122         (FP_INT_TONEAREST): Likewise.
6123         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
6124         (fromfpf): Likewise.
6125         (fromfpl): Likewise.
6126         (ufromfp): Likewise.
6127         (ufromfpf): Likewise.
6128         (ufromfpl): Likewise.
6129         (fromfpx): Likewise.
6130         (fromfpxf): Likewise.
6131         (fromfpxl): Likewise.
6132         (ufromfpx): Likewise.
6133         (ufromfpxf): Likewise.
6134         (ufromfpxl): Likewise.
6135         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
6136         s_fromfpxF and s_ufromfpxF.
6137         * math/gen-fromfp-tests.py: New file.
6138         * math/gen-fromfp-tests-inputs: Likewise.
6139         * math/libm-test.inc: Include <stdint.h>
6140         (check_intmax_t): New function.
6141         (check_uintmax_t): Likewise.
6142         (struct test_fiu_M_data): New type.
6143         (struct test_fiu_U_data): Likewise.
6144         (RUN_TEST_fiu_M): New macro.
6145         (RUN_TEST_LOOP_fiu_M): Likewise.
6146         (RUN_TEST_fiu_U): Likewise.
6147         (RUN_TEST_LOOP_fiu_U): Likewise.
6148         (fromfp_test_data): New array.
6149         (fromfp_test): New function.
6150         (fromfpx_test_data): New array.
6151         (fromfpx_test): New function.
6152         (ufromfp_test_data): New array.
6153         (ufromfp_test): New function.
6154         (ufromfpx_test_data): New array.
6155         (ufromfpx_test): New function.
6156         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
6157         ufromfpx_test.
6158         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
6159         characters.
6160         * math/test-tgmath-ret.c: Include <stdint.h>.
6161         (rm): New variable.
6162         (width): Likewise.
6163         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
6164         called function.
6165         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
6166         CHECK_RET_CONST_TYPE.
6167         (CHECK_RET_CONST_DOUBLE): Likewise.
6168         (CHECK_RET_CONST_LDOUBLE): Likewise.
6169         (CHECK_RET_CONST): Take extra arguments and pass them to calls
6170         macros.
6171         (fromfp): New CHECK_RET_CONST call.
6172         (ufromfp): Likewise.
6173         (fromfpx): Likewise.
6174         (ufromfpx): Likewise.
6175         (do_test): Call check_return_fromfp, check_return_ufromfp,
6176         check_return_fromfpx and check_return_ufromfpx.
6177         * math/test-tgmath.c: Include <stdint.h>
6178         (NCALLS): Increase to 138.
6179         (F(compile_test)): Initialize i.  Call fromfp functions.
6180         (F(fromfp)): New function.
6181         (F(fromfpx)): Likewise.
6182         (F(ufromfp)): Likewise.
6183         (F(ufromfpx)): Likewise.
6184         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
6185         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
6186         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
6187         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
6188         ufromfpxl.
6189         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
6190         ufromfp and ufromfpx.
6191         * math/fromfp.h: New file.
6192         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
6193         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
6194         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
6195         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
6196         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
6197         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
6198         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
6199         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
6200         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
6201         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
6202         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
6203         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
6204         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
6205         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
6206         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
6207         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
6208         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
6209         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
6210         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
6211         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
6212         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
6213         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
6214         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
6215         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
6216         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
6217         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
6218         ufromfp, fromfpx and ufromfpx.
6219         (CFLAGS-nldbl-fromfp.c): New variable.
6220         (CFLAGS-nldbl-fromfpx.c): Likewise.
6221         (CFLAGS-nldbl-ufromfp.c): Likewise.
6222         (CFLAGS-nldbl-ufromfpx.c): Likewise.
6223         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
6224         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
6225         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
6226         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
6227         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
6228         * sysdeps/nacl/libm.abilist: Update.
6229         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6230         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6231         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6232         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6233         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6234         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6235         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6236         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6237         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6238         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6239         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6240         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6242         Likewise.
6243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6244         Likewise.
6245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6246         Likewise.
6247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6248         Likewise.
6249         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6250         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6251         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6252         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6253         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6255         Likewise.
6256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6257         Likewise.
6258         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6259         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6260         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6261
6262 2016-12-30  Florian Weimer  <fweimer@redhat.com>
6263
6264         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
6265         compat-gethnamaddr.
6266         (CPPFLAGS): Remove.
6267         * resolv/gethnamaddr.c: Rename ...
6268         * resolv/compat-gethnamaddr.c: ... to this file.
6269         (_endhtent): Make static.
6270         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
6271         symbol.
6272         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
6273         compat symbol.
6274         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
6275         symbol.
6276         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
6277         Turn into compat symbol.
6278         * include/resolv.h (_endhtent): Remove declaration.
6279
6280 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
6281
6282         * bits/types.h (__intmax_t): New typedef.
6283         (__uintmax_t): Likewise.
6284         * sysdeps/generic/stdint.h: Include <bits/types.h>.
6285         (intmax_t): Define using __intmax_t.
6286         (uintmax_t): Define using __uintmax_t.
6287
6288         * support/Makefile (tests-special): Make definition conditional on
6289         [$(run-built-tests) = yes].
6290         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
6291         on [$(run-built-tests) = yes].
6292
6293 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6294
6295         * Rules (tests): Add tests-printers-programs to tests to be
6296         built.
6297
6298 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6299
6300         * sysvipc/Makefile (tests): Add test-sysvshm.
6301         * sysvipc/test-sysvshm.c: New file.
6302
6303         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
6304         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
6305         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
6306         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
6307         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
6308         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
6309         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
6310         Likewise.
6311         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
6312         Likewise.
6313         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
6314         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
6315         is defined.
6316
6317         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
6318         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
6319         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
6320         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
6321         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
6322         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
6323         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
6324         Likewise.
6325         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
6326         Likewise.
6327         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
6328         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
6329         defined.
6330
6331         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6332         oldshmctl.
6333         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
6334         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
6335         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
6336         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
6337         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
6338         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
6339         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
6340         Likewise.
6341         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
6342         Likewise.
6343         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
6344         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
6345         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
6346         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
6347         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
6348         implementation.
6349         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
6350         if it is defined.
6351
6352         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
6353         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
6354         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
6355         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
6356         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
6357         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
6358         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
6359         Likewise.
6360         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
6361         Likewise.
6362         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
6363         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
6364         Define to __NR_osf_shmat.
6365         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
6366         defined.
6367
6368         * sysvipc/Makefile (tests): Add test-sysvsem.
6369         * sysvipc/test-sysvsem.c: New file.
6370
6371         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
6372         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
6373         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
6374         Likewise.
6375         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
6376         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
6377         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
6378         Likewise.
6379         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
6380         Likewise.
6381         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
6382         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
6383         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
6384         add a comment about s390 syscall difference from default one.
6385         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
6386         syscall if it is defined.
6387
6388         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
6389         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
6390         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
6391         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
6392         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
6393         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
6394         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
6395         Likewise.
6396         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
6397         Likewise.
6398         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
6399         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
6400         defined.
6401
6402         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
6403         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
6404         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
6405         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
6406         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
6407         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
6408         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
6409         Likewise.
6410         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
6411         Likewise.
6412         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
6413         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
6414         if it is defined.
6415
6416         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6417         oldsemctl.
6418         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
6419         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
6420         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
6421         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
6422         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
6423         implementation.
6424         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
6425         syscall if it is defined.
6426         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
6427         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
6428         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
6429         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
6430         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
6431         Likewise.
6432         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
6433
6434         * sysvipc/Makefile (tests): Add test-sysvmsg.
6435         * sysvipc/test-sysvmsg.c: New file.
6436         * support/check.h (FAIL_UNSUPPORTED): New define.
6437
6438         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
6439         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
6440         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
6441         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
6442         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
6443         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
6444         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
6445         Likewise.
6446         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
6447         Likewise.
6448         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
6449         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
6450         define.
6451
6452         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
6453         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
6454         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
6455         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
6456         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
6457         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
6458         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
6459         Likewise.
6460         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
6461         Likewise.
6462         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
6463         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
6464         if defined.
6465
6466         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
6467         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
6468         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6469         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6470         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6471         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
6472         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6473         Likewise.
6474         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
6475         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
6476         Likewise.
6477         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
6478         if defined.
6479         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
6480
6481         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6482         oldmsgctl.
6483         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
6484         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
6485         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
6486         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
6487         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6488         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6489         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6490         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6491         Likewise.
6492         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
6493         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
6494         implementation.
6495         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
6496         if defined.
6497
6498         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
6499         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
6500         definition and define its own.
6501         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
6502         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
6503         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
6504         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
6505         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
6506         definitions to common header.
6507         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
6508         operation from ipc_ops.h.
6509
6510         * sysdeps/unix/sysv/linux/kernel-features.h
6511         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
6512         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6513         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
6514         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6515         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6516         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6517         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6518         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6519         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6520         * sysdeps/unix/sysv/linux/s390/kernel-features.h
6521         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6522         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6523         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6524         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6525         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6526
6527 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6528
6529         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
6530         overflow in pointer addition.
6531
6532 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6533
6534         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6535         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
6536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6537         (strchr): Add __strchr_power8 to list of strchr functions.
6538         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
6539         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
6540         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
6541         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
6542         (strchr): Add __strchr_power8 to ifunc list.
6543         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
6544         (__strchrnul): Add __strchrnul_power8 to ifunc list.
6545         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
6546         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
6547
6548 2016-12-28  Florian Weimer  <fweimer@redhat.com>
6549
6550         * support/Makefile (libsupport-routines): Add
6551         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
6552         (tests): Add tst-support_record_failure.
6553         (tests-special): tst-support_record_failure-2.
6554         (tst-support_record_failure-2.out): Depend on
6555         tst-support_record_failure-2.sh and tst-support_record_failure.
6556         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
6557         (support_test_verify_impl, support_record_failure)
6558         (support_report_failure, support_report_failure_reset): Declare.
6559         * support/support_test_main.c (adjust_exit_status): New function.
6560         (support_test_main): Call it to incorporate record test failures.
6561         * support/support_test_verify_impl.c: New file.
6562         * support/support_record_failure.c: Likewise.
6563         * support/tst-support_record_failure.c: Likewise.
6564         * support/tst-support_record_failure-2.sh: Likewise.
6565         * support/xunistd.h: Likewise.
6566         * support/xfork.c: Likewise.
6567         * support/xwaitpid.c: Likewise.
6568
6569 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
6570
6571         * scripts/check-c++-types.sh: Add comments.
6572
6573 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
6574
6575         [BZ #19514]
6576         * resolv/res_send.c: Fix typo in comment.
6577         * sysdeps/i386/i386-mcount.S: Likewise.
6578         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6579         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6580         * sysdeps/sparc/sparc-mcount.S: Likewise.
6581
6582 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6583
6584         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
6585         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
6586         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
6587         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
6588         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
6589         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
6590         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
6591         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
6592
6593 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6594
6595         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
6596
6597 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6598
6599         [BZ #17252]
6600         * posix/unistd.h (getentropy): Declare.
6601
6602 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6603
6604         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
6605         Remove.
6606         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
6607         (cmd): Remove spoof, nospoof, spoofalert.
6608         (parse_line): Ignore spoof-related lines.
6609         (do_init): Do not process RESOLV_SPOOF_CHECK.
6610
6611 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6612
6613         [BZ #20964]
6614         sunrpc: Always obtain AF_INET addresses from NSS.
6615         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
6616         * sunrpc/rpc_gethostbyname.c: New file.
6617         * sunrpc/Makefile (routines): Add it.
6618         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
6619         * sunrpc/clnt_simp.c (callrpc): Likewise.
6620         * sunrpc/getrpcport.c (getrpcport): Likewise.
6621
6622 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6623
6624         * sunrpc/rpcinfo.c: Remove.
6625         * sunrpc/Makefile: Remove comments referring to rpcinfo.
6626
6627 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6628
6629         [BZ #19387]
6630         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
6631         addition.
6632         * string/test-memchr.c (do_test): Remove alignment limitation.
6633         (test_main): Add test that trigger BZ #19387.
6634
6635 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6636
6637         [BZ #7065]
6638         Enable stack protectore if requested by ./configure.
6639         * Makeconfig (+stack-protector): New variable.
6640         (+cflags): Use it.
6641
6642 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6643
6644         [BZ #7065]
6645         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
6646         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
6647         (__rt_sigreturn_stub): Use inhibit_stack_protector.
6648         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6649         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
6650
6651 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6652
6653         [BZ #7065]
6654         * login/Makefile (pt_chown-cflags): Remove.
6655         * nscd/Makefile (CFLAGS-nscd): Likewise.
6656         * resolv/Makefile (CFLAGS-libresolv): Likewise.
6657
6658 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6659
6660         [BZ #7065]
6661         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
6662         non-libc-linking testcase.
6663
6664 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6665             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6666             Florian Weimer  <fweimer@redhat.com>
6667
6668         [BZ #7065]
6669         PLT avoidance for __stack_chk_fail*.
6670         * debug/Makefile (CFLAGS-stack_chk_fail.c)
6671         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
6672         * debug/stack_chk_fail.c (__stack_chk_fail): Add
6673         __stack_chk_fail_local alias.
6674         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
6675         (__stack_chk_fail): Turn into hidden reference to
6676         __stack_chk_fail_local.
6677
6678 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6679
6680         [BZ #7065]
6681         * configure.ac: Add check for unsupported stack-protection level.
6682         (libc_cv_predef_stack_protector): Remove.
6683         (no_ssp): New variable.
6684         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
6685         (stack_protector): Set to -fno-stack-protector similarly.
6686         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
6687         (libc_cv_asm_set_directive): Likewise.
6688         (libc_cv_protected_data): Likewise.
6689         (libc_cv_z_combreloc): Likewise.
6690         (libc_cv_hashstyle): Likewise.
6691         (libc_cv_has_glob_dat): Likewise.
6692         (libc_cv_output_format): Likewise.
6693         (libc_cv_output_format): Likewise.
6694         (libc_cv_ehdr_start): Likewise.
6695         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
6696         (LIBC_LINKER_FEATURE): Likewise.
6697         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
6698
6699 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6700
6701         [BZ #7065]
6702         * elf/Makefile (dummy-stack-chk-fail): New.
6703         (librtld.map): Use it.
6704
6705 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6706
6707         [BZ #7065]
6708         Compile the dynamic linker without stack protection.
6709         * elf/Makefile (elide-stack-protector): New.
6710         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
6711         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
6712         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
6713         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
6714
6715 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6716
6717         [BZ #7065]
6718         * config.make.in (have-ssp, no-stack-protector): New.
6719         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
6720         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
6721         (CFLAGS-sbrk.op): Likewise.
6722         (CFLAGS-brk.o): Likewise.
6723         (CFLAGS-brk.op): Likewise.
6724         * string/Makefile (CFLAGS-memcpy.c): Likewise.
6725         (CFLAGS-wordcopy.c): Likewise.
6726
6727 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6728
6729         [BZ #7065]
6730         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
6731         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
6732         * include/libc-symbols.h (inhibit_stack_protector): New macro.
6733         (__ifunc_resolver): Use it.
6734         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
6735         inhibit_stack_protector.
6736         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
6737         * elf/ifuncmain7.c (foo_ifunc): Likewise.
6738         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
6739         (foo_protected_ifunc): Likewise.
6740         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
6741         (foo_protected_ifunc): Likewise.
6742         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6743         * sysdeps/nacl/nacl_interface_query.c
6744         (nacl_interface_query_ifunc): Likewise.
6745         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6746         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
6747         Likewise.
6748         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
6749         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
6750         the generated vDSO syscall resolver.
6751
6752 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6753             Florian Weimer  <fweimer@redhat.com>
6754
6755         [BZ #7065]
6756         Initialize the stack guard earlier when linking statically.
6757         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
6758         (__pthread_initialize_minimal): Declare.
6759         * csu/libc-start.c (__pthread_initialize_minimal): Remove
6760         declaration.
6761         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
6762         stack canary and apply_irel initialization up.  Call
6763         __pthread_initialize_minimal only if linked in.
6764         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
6765         constant values.
6766         (__pthread_initialize_minimal): Remove.
6767         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
6768         (__pthread_initialize_minimal_internal): Do not call
6769         __libc_setup_tls.
6770
6771 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6772
6773         [BZ #7065]
6774         * configure.ac (libc_cv_ssp): Move up.
6775         (libc_cv_ssp_strong): Likewise.
6776         (libc_cv_ssp_all): New.
6777         (stack_protector): Augment, adding -fstack-protector-all.
6778         (no_stack_protector): New.
6779         (STACK_PROTECTOR_LEVEL): New.
6780         (AC_ARG_ENABLE(stack-protector)): New configure flag.
6781         * manual/install.texi (--enable-stack-protector): Document it.
6782         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
6783
6784 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
6785
6786         * README.pretty-printers: Must specify CPPFLAGS-* also.
6787         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
6788         (CPPFLAGS-test-mutex-printers.c): Define.
6789         (CPPFLAGS-test-condattr-printers.c): Define.
6790         (CPPFLAGS-test-cond-printers.c): Define.
6791         (CPPFLAGS-test-rwlockattr-printers.c): Define.
6792         (CPPFLAGS-test-rwlock-printers.c): Define.
6793
6794         * nss/Makefile [ifeq (yes,$(have-thread-library))]
6795         (tests): Add tst-cancel-getpwuid_r.
6796         * nss/tst-cancel-getpwuid_r.c: New file.
6797
6798         [BZ #11941]
6799         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
6800         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
6801         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
6802         tst-nodelete-dlclose.
6803         (modules-names): Add tst-nodelete-dlclose-dso and
6804         tst-nodelete-dlclose-plugin.
6805         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
6806         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
6807         ($(objpfx)tst-nodelete-dlclose): Define.
6808         ($(objpfx)tst-nodelete-dlclose.out): Define.
6809
6810 2016-12-23  Florian Weimer  <fweimer@redhat.com>
6811
6812         * scripts/test_printers_common.py: Log GDB output in case of
6813         Python detection failure.
6814
6815 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6816
6817         * configure.ac: Check for python3 or python.
6818         * configure: Regenerated.
6819         * config.make.in (PYTHON): New variable.
6820         * benchtests/Makefile: Don't define PYTHON.
6821         (bench): Define target only if PYTHON was defined.
6822         * Rules: Don't define PYTHON.
6823         Define pretty printer targets only if PYTHON was defined.
6824         (tests-printers): Add to tests-unsupported if PYTHON is not
6825         found.
6826         (python-flags, python-invoke): Remove.
6827         (tests-printers-out): Use PYTHON instead of python-invoke.
6828
6829 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6830
6831         [BZ #20978]
6832         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
6833         Compare name == NULL, not name != NULL.
6834
6835         * manual/texinfo.tex: Update to version 2016-09-18.18 with
6836         trailing whitespace removed.
6837         * scripts/config.guess: Update to version 2016-10-02.
6838         * scripts/config.sub: Update to version 2016-11-19.
6839         * scripts/install-sh: Update to version 2016-01-11.22.
6840         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
6841         * scripts/move-if-change: Update to version 2016-01-11 22:04.
6842
6843 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
6844
6845         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
6846         (do_one_test) Restore original string so iteration works.
6847         * string/string-inlines.c (do_test): Create better input strings.
6848         (test_main) Reduce number of testruns.
6849         * string/string-inlines.c (__old_strsep_1c): New function.
6850         (__old_strsep_2c): Likewise.
6851         (__old_strsep_3c): Likewise.
6852         * string/strsep.c (__strsep): Remove case of small delim string.
6853         Call strcspn directly rather than strpbrk.
6854         * string/bits/string2.h (__strsep): Remove define.
6855         (__strsep_1c): Remove.
6856         (__strsep_2c): Remove.
6857         (__strsep_3c): Remove.
6858         (strsep): Remove.
6859         * sysdeps/unix/sysv/linux/internal_statvfs.c
6860         (__statvfs_getflags): Rename to __strsep.
6861
6862 2016-12-21  Florian Weimer  <fweimer@redhat.com>
6863
6864         * csu/libc-tls.c (_dl_tls_setup): Remove.
6865         * elf/dl-tls.c (_dl_tls_setup): Likewise.
6866         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
6867         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
6868
6869 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6870
6871         [BZ #7065]
6872         * sysdeps/x86_64/Makefile [$(subdir) = elf]
6873         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
6874
6875 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6876             Florian Weimer  <fweimer@redhat.com>
6877
6878         [BZ #7065]
6879         * csu/Makefile (tests): Empty assignment and document it.
6880         (tests-static): Remove.
6881         * csu/tst-empty.c: Move to...
6882         * misc/tst-empty.c: ... here.  Switch to new test driver.
6883         * csu/tst-atomic.c: Move to...
6884         * misc/tst-atomic.c: ... here.  Switch to new test driver.
6885         * csu/tst-atomic-long.c: Move to...
6886         * misc/tst-atomic-long.c: ... here.
6887         * misc/Makefile (tests): Add tst-empty, tst-atomic,
6888         tst-atomic-long.
6889         (tests-static): Add tst-empty.
6890
6891 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
6892
6893         * manual/nss.texi: Change incorrect @vtable to @table.
6894         * manual/arith.texi: Convert @tables of variables to @vtables
6895         and remove unnecessary indexing.
6896         * manual/filesys.texi: Likewise.
6897         * manual/llio.texi: Likewise.
6898         * manual/memory.texi: Likewise.
6899         * manual/process.texi: Likewise.
6900         * manual/resource.texi: Likewise.
6901         * manual/search.texi: Likewise.
6902         * manual/signal.texi: Likewise.
6903         * manual/socket.texi: Likewise.
6904         * manual/stdio.texi: Likewise.
6905         * manual/sysinfo.texi: Likewise.
6906         * manual/syslog.texi: Likewise.
6907         * manual/terminal.texi: Likewise.
6908         * manual/time.texi: Likewise.
6909         * manual/users.texi: Likewise.
6910
6911 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6912
6913         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6914         (roundeven): New declaration.
6915         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
6916         macro.
6917         * math/Versions (roundeven): New libm symbol at version
6918         GLIBC_2.25.
6919         (roundevenf): Likewise.
6920         (roundevenl): Likewise.
6921         * math/Makefile (libm-calls): Add s_roundevenF.
6922         * math/libm-test.inc (roundeven_test_data): New array.
6923         (roundeven_test): New function.
6924         (main): Call roundeven_test.
6925         * math/test-tgmath.c (NCALLS): Increase to 134.
6926         (F(compile_test)): Call roundeven.
6927         (F(roundeven)): New function.
6928         * manual/arith.texi (Rounding Functions): Document roundeven,
6929         roundevenf and roundevenl.
6930         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
6931         * include/math.h (roundeven): Use libm_hidden_proto.
6932         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
6933         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
6934         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
6935         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
6936         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
6937         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
6938         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6939         roundeven.
6940         (CFLAGS-nldbl-roundeven.c): New variable.
6941         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
6942         * sysdeps/nacl/libm.abilist: Update.
6943         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6944         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6945         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6946         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6947         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6948         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6949         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6950         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6951         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6952         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6953         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6954         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6956         Likewise.
6957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6958         Likewise.
6959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6960         Likewise.
6961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6962         Likewise.
6963         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6964         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6965         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6966         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6967         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6968         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6969         Likewise.
6970         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6971         Likewise.
6972         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6973         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6974         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6975
6976 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6977
6978         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
6979         preprocessor indentation inside #if.
6980
6981 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6982
6983         * math/libm-test.inc (fmt_ftostr): New function.
6984         (print_float, check_float_internal): Replace some uses of
6985         FTOSTR with uses of fmt_ftostr.
6986         (print_max_error, print_complex_max_error, print_function_ulps)
6987         (print_complex_function_ulps): Remove uses of the macros
6988         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
6989         * math/test-double.h (FTOSTR): Define to strfromd.
6990         (PRINTF_EXPR): Delete.
6991         (PRINTF_XEXPR): Likewise.
6992         (PRINTF_NEXPR): Likewise.
6993         * math/test-float.h (FTOSTR): Define to strfromf.
6994         (PRINTF_EXPR): Delete.
6995         (PRINTF_XEXPR): Likewise.
6996         (PRINTF_NEXPR): Likewise.
6997         * math/test-ldouble.h (FTOSTR): Define to strfroml.
6998         (PRINTF_EXPR): Delete.
6999         (PRINTF_XEXPR): Likewise.
7000         (PRINTF_NEXPR): Likewise.
7001
7002 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7003
7004         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
7005         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
7006         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
7007         (__lll_lock_elision): Decrement adapt_count while unlocking
7008         instead of before locking.
7009         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
7010         (__lll_trylock_elision): Likewise.
7011         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
7012         (__lll_unlock_elision): Likewise.
7013
7014 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7015
7016         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
7017         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
7018         Use __libc_tbegin_retry macro.
7019
7020 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7021
7022         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
7023         Add -msoft-float.
7024         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
7025         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
7026         Use __libc_t* transaction macros instead of __builtin_t*.
7027         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7028         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
7029
7030 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7031
7032         * sysdeps/unix/sysv/linux/s390/elision-lock.c
7033         (__lll_lock_elision): Use atomics to load / store adapt_count.
7034         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
7035         (__lll_trylock_elision): Likewise.
7036
7037 2016-12-20  Florian Weimer  <fweimer@redhat.com>
7038
7039         Do not require memset elimination in explicit_bzero test.
7040         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
7041         (enum test_expectation): Add NO_EXPECTATIONS.
7042         (subtests): NO_EXPECTATIONS for ordinary clear.
7043         (check_test_buffer): Handle NO_EXPECTATIONS.
7044         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
7045
7046 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
7047
7048         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7049         (fmaxmag): New declaration.
7050         (fminmag): Likewise.
7051         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
7052         macro.
7053         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
7054         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
7055         (fmaxmagf): Likewise.
7056         (fmaxmagl): Likewise.
7057         (fminmag): Likewise.
7058         (fminmagf): Likewise.
7059         (fminmagl): Likewise.
7060         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
7061         * math/s_fmaxmag_template.c: New file.
7062         * math/s_fminmag_template.c: Likewise.
7063         * math/libm-test.inc (fmaxmag_test_data): New array.
7064         (fmaxmag_test): New function.
7065         (fminmag_test_data): New array.
7066         (fminmag_test): New function.
7067         (main): Call fmaxmag_test and fminmag_test.
7068         * math/test-tgmath.c (NCALLS): Increase to 132.
7069         (F(compile_test)): Call fmaxmag and fminmag.
7070         (F(fminmag)): New function.
7071         (F(fmaxmag)): Likewise.
7072         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
7073         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
7074         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
7075         fminmag.
7076         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
7077         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
7078         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
7079         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
7080         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
7081         and fminmag.
7082         (CFLAGS-nldbl-fmaxmag.c): New variable.
7083         (CFLAGS-nldbl-fminmag.c): Likewise.
7084         * sysdeps/nacl/libm.abilist: Update.
7085         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7086         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7087         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7088         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7089         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7090         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7091         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7092         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7093         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7094         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7095         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7096         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7098         Likewise.
7099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7100         Likewise.
7101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7102         Likewise.
7103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7104         Likewise.
7105         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7106         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7107         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7108         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7109         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7110         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7111         Likewise.
7112         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7113         Likewise.
7114         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7115         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7116         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7117
7118 2016-12-19  Torvald Riegel  <triegel@redhat.com>
7119
7120         [BZ #20973]
7121         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
7122         wake-up in robust mutexes.
7123         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
7124
7125 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7126
7127         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
7128         (CFLAGS-bench-fmaxf.c): New rule.
7129         (CFLAGS-bench-fminf.c): Likewise.
7130         * benchtests/fmaxf-inputs: New file.
7131         * benchtests/fminf-inputs: Likewise.
7132
7133         * benchtests/Makefile (bench-math): Add fmin and fmax.
7134         (CFLAGS-bench-fmax.c): New rule.
7135         (CFLAGS-bench-fmin.c): Likewise.
7136         * benchtests/fmax-inputs: New file.
7137         * benchtests/fmin-inputs: Likewise.
7138
7139         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
7140         parenthesis.
7141         (CMDLINE_PROCESS): Define using function instead of macro.
7142         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
7143         of test-skeleton.
7144         * benchtests/bench-memchr.c: Likewise.
7145         * benchtests/bench-memcmp.c: Likewise.
7146         * benchtests/bench-memcpy-large.c: Likewise.
7147         * benchtests/bench-memcpy.c: Likewise.
7148         * benchtests/bench-memmem.c: Likewise.
7149         * benchtests/bench-memmove-large.c: Likewise.
7150         * benchtests/bench-memmove.c: Likewise.
7151         * benchtests/bench-memset-large.c: Likewise.
7152         * benchtests/bench-memset.c: Likewise.
7153         * benchtests/bench-rawmemchr.c: Likewise.
7154         * benchtests/bench-strcasecmp.c: Likewise.
7155         * benchtests/bench-strcasestr.c: Likewise.
7156         * benchtests/bench-strcat.c: Likewise.
7157         * benchtests/bench-strchr.c: Likewise.
7158         * benchtests/bench-strcmp.c: Likewise.
7159         * benchtests/bench-strcpy.c: Likewise.
7160         * benchtests/bench-strcpy_chk.c: Likewise.
7161         * benchtests/bench-strlen.c: Likewise.
7162         * benchtests/bench-strncasecmp.c: Likewise.
7163         * benchtests/bench-strncmp.c: Likewise.
7164         * benchtests/bench-strncpy.c: Likewise.
7165         * benchtests/bench-strnlen.c: Likewise.
7166         * benchtests/bench-strpbrk.c: Likewise.
7167         * benchtests/bench-strrchr.c: Likewise.
7168         * benchtests/bench-strsep.c: Likewise.
7169         * benchtests/bench-strspn.c: Likewise.
7170         * benchtests/bench-strstr.c: Likewise.
7171         * benchtests/bench-strtok.c: Likewise.
7172
7173 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
7174
7175         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
7176         stepping identification.
7177         (init_cpu_features): Add handle of Haswell.
7178
7179 2016-11-25  Jim Meyering  <meyering@fb.com>
7180
7181         [BZ #20386]
7182         Let gcc detect assert(a = 1) errors.
7183         * assert/assert.h (assert): Rewrite, retaining the old definintion
7184         when required, but otherwise putting the expression as-is in an "if"
7185         expression (hence, with no added parentheses) within a statement
7186         expression.
7187
7188 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7189
7190         * benchtests/Makefile (binaries-benchset): Depend on libsupport
7191         DSO.
7192
7193 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
7194
7195         * Rules (python-flags, python-invoke): New.
7196         ($(test-printers-out)): Use $(python-flags).
7197
7198 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7199
7200         * manual/arith.texi (Math Error Reporting): Document that sNaN
7201         arguments are not considered domain errors.
7202
7203 2016-12-16  Zack Weinberg <zackw@panix.com>
7204             Florian Weimer <fweimer@redhat.com>
7205             Nick Mathewson <nickm@torproject.org>
7206
7207         * string/explicit_bzero.c: New routine.
7208         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
7209         * string/Makefile (routines, strop-tests, tests): Add them.
7210         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
7211         * string/string.h [__USE_MISC]: Declare explicit_bzero.
7212
7213         * debug/explicit_bzero_chk.c: New routine.
7214         * debug/Makefile (routines): Add it.
7215         * debug/tst-chk1.c: Test fortification of explicit_bzero.
7216         * string/bits/string3.h: Fortify explicit_bzero.
7217
7218         * manual/string.texi: Document explicit_bzero.
7219         * NEWS: Mention addition of explicit_bzero.
7220
7221         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
7222         data before returning, using explicit_bzero.
7223         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
7224         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7225         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7226
7227         * include/string.h: Redirect internal uses of explicit_bzero
7228         to __explicit_bzero_chk[_internal].
7229         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
7230         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
7231         * sysdeps/arm/nacl/libc.abilist
7232         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
7233         * sysdeps/unix/sysv/linux/alpha/libc.abilist
7234         * sysdeps/unix/sysv/linux/arm/libc.abilist
7235         * sysdeps/unix/sysv/linux/hppa/libc.abilist
7236         * sysdeps/unix/sysv/linux/i386/libc.abilist
7237         * sysdeps/unix/sysv/linux/ia64/libc.abilist
7238         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
7239         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
7240         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
7241         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7242         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7243         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7244         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7245         * sysdeps/unix/sysv/linux/nios2/libc.abilist
7246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7250         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
7251         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7252         * sysdeps/unix/sysv/linux/sh/libc.abilist
7253         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
7254         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
7255         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
7256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
7257         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
7258         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
7259         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
7260         Add entries for explicit_bzero and __explicit_bzero_chk.
7261
7262 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7263
7264         * math/fenv.h
7265         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
7266         (FE_SNANS_ALWAYS_SIGNAL): New macro.
7267         * math/test-fe-snans-always-signal.c: New file.
7268         * math/Makefile (tests): Add test-fe-snans-always-signal.
7269         (CFLAGS-test-fe-snans-always-signal.c): New variable.
7270         * manual/arith.texi (Infinity and NaN): Document
7271         FE_SNANS_ALWAYS_SIGNAL.
7272
7273 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7274
7275         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
7276         bracket.
7277
7278 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
7281         before calling execv.
7282
7283 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7284
7285         [BZ #20971]
7286         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
7287         overflow in pointer addition.
7288         * string/test-memchr.c (do_test): Add an argument to pass as
7289         the size on memchr.
7290         (test_main): Add check for SIZE_MAX.
7291
7292 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7293
7294         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
7295         (libm-calls): Add w_scalblnF.
7296         * math/w_scalbln.c: Remove.
7297         * math/w_scalblnf.c: Likewise.
7298         * math/w_scalblnl.c: Likewise.
7299         * math/w_scalbln_template.c: New file with type-generic
7300         implementation based on math/w_scalbln.c.
7301         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
7302         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
7303
7304 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7305
7306         [BZ #20947]
7307         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
7308         either is a signaling NaN.
7309         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
7310         follow fmaxl more closely.
7311         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
7312         when either is a signaling NaN.
7313         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
7314         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
7315         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
7316         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
7317         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
7318         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
7319         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
7320         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
7321         (fmin_test_data): Likewise.
7322
7323 2016-12-15  Andreas Schwab  <schwab@suse.de>
7324
7325         * support/support_test_main.c (support_test_main): Don't shadow
7326         file-local variable test_pid.
7327
7328 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7329
7330         [BZ #20947]
7331         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
7332         either is a signaling NaN.
7333         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
7334
7335 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7336
7337         [BZ #20947]
7338         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
7339         when either is a signaling NaN.
7340         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
7341
7342         * bits/long-double.h: New file.
7343         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
7344         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
7345         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
7346         * sysdeps/mips/bits/long-double.h: Likewise.
7347         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
7348         * math/Makefile (headers): Add bits/long-double.h.
7349         * misc/sys/cdefs.h: Include <bits/long-double.h>.
7350         * stdlib/strtold.c: Include <bits/long-double.h> instead of
7351         <bits/wordsize.h>.
7352         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
7353         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
7354         * math/math.h: Do not include <bits/mathdef.h>.
7355         * sysdeps/aarch64/bits/mathdef.h: Remove file.
7356         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
7357         inclusion.
7358         * sysdeps/ia64/bits/mathdef.h: Remove file.
7359         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
7360         * sysdeps/mips/bits/mathdef.h: Likewise.
7361         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7362         * sysdeps/s390/bits/mathdef.h: Likewise.
7363         * sysdeps/sparc/bits/mathdef.h: Likewise.
7364         * sysdeps/x86/bits/mathdef.h: Likewise.
7365         * sysdeps/s390/s390-32/bits/wordsize.h
7366         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
7367         conditional code.
7368         * sysdeps/s390/s390-64/bits/wordsize.h
7369         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7370         Likewise.
7371         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
7372         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7373         Likewise.
7374         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
7375         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7376         Likewise.
7377         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
7378         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7379         Likewise.
7380
7381         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
7382         <linux/falloc.h>.
7383         (FALLOC_FL_KEEP_SIZE): Remove.
7384         (FALLOC_FL_PUNCH_HOLE): Likewise.
7385         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
7386         (FALLOC_FL_ZERO_RANGE): Likewise.
7387
7388 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7389
7390         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
7391
7392 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7393
7394         * sysdeps/unix/sysv/linux/renameat.c: New file.
7395         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
7396
7397         * sysdeps/unix/sysv/linux/rename.c: New file.
7398         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
7399
7400 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7401
7402         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
7403         * string/strtok.c (strtok): Change to tailcall __strtok_r.
7404         * string/strtok_r.c (__strtok_r): Optimize for performance.
7405         * string/string-inlines.c (__old_strtok_r_1c): New function.
7406         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
7407
7408 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7409
7410         * math/Makefile (gen-libm-calls): Add w_log1pF.
7411         (libm-calls): Remove w_log1pF.
7412         * math/w_log1p.c: Remove.
7413         * math/w_log1pf.c: Likewise.
7414         * math/w_log1pl.c: Likewise.
7415         * math/w_log1p_template.c: New file with type-generic
7416         implementation based on math/w_log1p.c.
7417         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
7418         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
7419
7420 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7421
7422         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
7423
7424 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7425
7426         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7427         kernel version to 4.9.
7428
7429 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
7430
7431         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
7432         ($(inst_libdir)/libm.a): Fix rule to create the target only.
7433
7434 2016-12-13  Andreas Schwab  <schwab@suse.de>
7435
7436         * sysdeps/powerpc/dl-procinfo.c: Don't define
7437         _dl_powerpc_platforms.
7438         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
7439         constants instead of referencing _dl_powerpc_platforms.
7440         (_dl_platform_string): Remove.
7441
7442 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7443
7444         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
7445
7446 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7447
7448         * Rules (binaries-shared-tests, binaries-pie-tests)
7449         (binaries-static-tests): Link with $(link-extra-libs-tests).
7450         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
7451         Remove $(link-extra-libs-tests).
7452
7453 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7454
7455         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7456         (sysdep_routines): Add strncmp_power9.
7457         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7458         (strncmp): Add __strncmp_power9 to list of strncmp functions.
7459         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
7460         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7461         (strncmp): Add __strncmp_power9 to ifunc list.
7462         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
7463
7464 2016-12-12  Florian Weimer  <fweimer@redhat.com>
7465
7466         [BZ #17252]
7467         Add getentropy, getrandom.
7468         * stdlib/sys/random.h: New file.
7469         (headers): Add it.
7470         * stdlib/Makefile (routines): Add getentropy, getrandom.
7471         (tests): Add tst-getrandom.
7472         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
7473         * stdlib/getentropy.c: New file.
7474         * stdlib/getrandom.c: Likewise.
7475         * stdlib/tst-getrandom.c: Likewise.
7476         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
7477         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
7478         * manual/crypt.texi (Unpredictable Bytes): New section.
7479         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
7480         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
7481         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7482         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7483         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7484         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7485         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7486         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7487         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7488         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7489         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7490         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7491         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7492         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7493         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7494         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7496         Likewise.
7497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7498         Likewise.
7499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7501         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7502         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7503         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7504         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7505         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7506         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7508         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7509         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7510         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7511
7512 2016-12-10  Florian Weimer  <fweimer@redhat.com>
7513
7514         [BZ #20956]
7515         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
7516         as additional compiler barriers.
7517         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
7518         (fn2, do_test): Declare with external linkage.
7519         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
7520         (do_test): Declare with external linkage.
7521         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
7522         (do_test): Declare with external linkage.
7523         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
7524         (do_test): Declare with external linkage.
7525
7526 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
7527
7528         * support/support_test_main.c (support_test_main): Use correct
7529         timeout.
7530
7531 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
7532             Florian Weimer  <fweimer@redhat.com>
7533
7534         [BZ #16421]
7535         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
7536         and __u6_addr32 members.
7537         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
7538         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
7539         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
7540         Use __u6_addr32.
7541         * inet/tst-checks.c: Use <support/test-driver.c>
7542         * inet/tst-checks-posix.c: New file.
7543         * inet/Makefile (tests): Add it.
7544         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
7545
7546 2016-12-09  Florian Weimer  <fweimer@redhat.com>
7547
7548         New subdirectory support for build and test infrastructure.
7549         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
7550         setting install-lib.
7551         * Makeconfig (link-extra-libs-tests): Define.
7552         (+link-pie-tests, +link-static-tests, +link-tests): Use
7553         link-extra-libs-tests.
7554         (rpath-dirs, all-subdirs): Add support.
7555         (built-modules): Add libsupport.
7556         (libsupport): Define.
7557         * support: New directory.
7558         * support/Makefile: New file.
7559         * support/check.c: Likewise.
7560         * support/check.h: Likewise.
7561         * support/delayed_exit.c: Likewise.
7562         * support/ignore_stderr.c: Likewise.
7563         * support/oom_error.c: Likewise.
7564         * support/set_fortify_handler.c: Likewise.
7565         * support/support.h: Likewise.
7566         * support/temp_file-internal.h: Likewise.
7567         * support/temp_file.c: Likewise.
7568         * support/test-driver.c: Likewise.
7569         * support/test-driver.h: Likewise.
7570         * support/test_main.c: Likewise.
7571         * support/write_message.c: Likewise.
7572         * support/xasprintf.c: Likewise.
7573         * support/xcalloc.c: Likewise.
7574         * support/xmalloc.c: Likewise.
7575         * support/xpthread_barrier_destroy.c: Likewise.
7576         * support/xpthread_barrier_init.c: Likewise.
7577         * support/xpthread_barrier_wait.c: Likewise.
7578         * support/xpthread_cancel.c: Likewise.
7579         * support/xpthread_check_return.c: Likewise.
7580         * support/xpthread_cond_wait.c: Likewise.
7581         * support/xpthread_create.c: Likewise.
7582         * support/xpthread_detach.c: Likewise.
7583         * support/xpthread_join.c: Likewise.
7584         * support/xpthread_mutex_lock.c: Likewise.
7585         * support/xpthread_mutex_unlock.c: Likewise.
7586         * support/xpthread_sigmask.c: Likewise.
7587         * support/xpthread_spin_lock.c: Likewise.
7588         * support/xpthread_spin_unlock.c: Likewise.
7589         * support/xrealloc.c: Likewise.
7590         * support/xsignal.h: Likewise.
7591         * support/xthread.h: Likewise.
7592         * support_tempfile.h: Likewise.
7593         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
7594         (TEST_DATA_LIMIT): Remove unused macro.
7595         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
7596         <support/check.h>.
7597         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
7598         (ignore_stderr, set_fortify_handler): Remove.  Now in
7599         <support/support.h>.
7600         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
7601         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
7602         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
7603         (xpthread_join): Remove.  Now in <support/xthread.h>.
7604         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
7605         Introduce legacy wrappers.
7606         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
7607         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
7608         (write_message): Remove.
7609         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
7610         test-skeleton.c.
7611         * io/test-open-tmpfile: Likewise.
7612         * io/tst-posix_fallocate-common.c: Likewise.
7613         * libio/tst-fseek.c: Likewise.
7614         * malloc/tst-malloc-backtrace.c: Likewise.
7615         * malloc/tst-malloc-fork-deadlock.c: Likewise.
7616         * malloc/tst-malloc-thread-exit.c: Likewise.
7617         * nptl/tst-cancel7.c: Likewise.
7618         * nptl/tst-cleanup0.c: Likewise.
7619         * posix/tst-posix_fadvise-common.c: Likewise.
7620         * rt/tst-shm.c: Likewise.
7621         * time/bug-getdate1.c: Likewise.
7622         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
7623         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
7624         * elf/Makefile (tst-piemod1.so): Link against libsupport.
7625
7626 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
7627
7628         * Rules [$(run-built-tests) != no] (tests-expected): Add
7629         $(tests-printers).
7630         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
7631
7632 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
7633
7634         [BZ #20539]
7635         * math/Makefile (install-lib-ldscripts): Add libm.a.
7636         (install_subdir): Remove.
7637         (install-others): Add.
7638         ($(inst_libdir)/libm.a): Add rule for installation as
7639         linker script.
7640         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
7641
7642 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
7643
7644         * INSTALL: Regenerated.
7645         * Makeconfig: Add comments and whitespace to make the control flow
7646         clearer.
7647         (+link-printers-tests, +link-pie-printers-tests,
7648         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
7649         built-rtld-LDFLAGS, link-libc-rpath,
7650         link-libc-tests-after-rpath-link,
7651         link-libc-printers-tests): New.
7652         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
7653         link-libc-tests): Use the new variables as required.
7654         * Makerules ($(py-const)): New rule.
7655         generated: Add $(py-const).
7656         * README.pretty-printers: New file.
7657         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
7658         (others): Depend on $(py-const).
7659         (tests): Depend on $(tests-printers-programs) or
7660         $(tests-printers-out),
7661         as required.  Pass $(tests-printers) to merge-test-results.sh.
7662         * manual/install.texi: Add requirements for testing the pretty
7663         printers.
7664         * nptl/Makefile (gen-py-const-headers, pretty-printers,
7665         tests-printers, CFLAGS-test-mutexattr-printers.c
7666         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
7667         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
7668         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
7669         * nptl/nptl-printers.py: New file.
7670         * nptl/nptl_lock_constants.pysym: Likewise.
7671         * nptl/test-cond-printers.c: Likewise.
7672         * nptl/test-cond-printers.py: Likewise.
7673         * nptl/test-condattr-printers.c: Likewise.
7674         * nptl/test-condattr-printers.py: Likewise.
7675         * nptl/test-mutex-printers.c: Likewise.
7676         * nptl/test-mutex-printers.py: Likewise.
7677         * nptl/test-mutexattr-printers.c: Likewise.
7678         * nptl/test-mutexattr-printers.py: Likewise.
7679         * nptl/test-rwlock-printers.c: Likewise.
7680         * nptl/test-rwlock-printers.py: Likewise.
7681         * nptl/test-rwlockattr-printers.c: Likewise.
7682         * nptl/test-rwlockattr-printers.py: Likewise.
7683         * scripts/gen-py-const.awk: Likewise.
7684         * scripts/test_printers_common.py: Likewise.
7685         * scripts/test_printers_exceptions.py: Likewise.
7686
7687 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7688
7689         * scripts/build-many-glibcs.py (Context.__init__): Take strip
7690         argument.
7691         (Glibc.build_glibc): Strip installed shared libraries if
7692         requested.
7693         (get_parser): Add --strip option.
7694         (main): Update Context call.
7695
7696 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7697             Dominik Vogt  <vogt@linux.vnet.ibm.com>
7698
7699         [BZ #20847]
7700         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
7701         array bounds for else branch.
7702         (__execvpe): Style fixes.
7703         * posix/tst-vfork3.c (run_script): New function.
7704         (create_script): Likewise.
7705         (do_test): Use run_script internal function.
7706         (do_prepare): Use create_script internal function.
7707
7708 2016-12-07  Andreas Schwab  <schwab@suse.de>
7709
7710         * sysdeps/unix/sysv/linux/x86/elision-conf.h
7711         (__elision_available): Don't declare.
7712         * sysdeps/unix/sysv/linux/x86/elision-conf.c
7713         (__elision_available): Don't define.
7714         (elision_init): Don't set __elision_available.
7715
7716 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7717
7718         [BZ #20940]
7719         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
7720         return Inf for arguments Inf and sNaN.
7721         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7722         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7723         Likewise.
7724         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7725         Likewise.
7726         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7727         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
7728         for arguments Inf and sNaN.  When returning a NaN, compute it by
7729         arithmetic on the arguments.
7730         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
7731         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
7732         arguments.
7733
7734 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
7735
7736         [BZ #20916]
7737         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
7738         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
7739         to compute result.
7740         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7741         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
7742
7743 2016-12-05  Torvald Riegel  <triegel@redhat.com>
7744
7745         * include/atomic.h (__atomic_check_size_ls): New.
7746         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
7747         atomic_store_release): Use it.
7748         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
7749         (elision_adapt, ELIDE_LOCK): Use atomics.
7750         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
7751         atomics and improve code comments.
7752         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
7753         (__lll_trylock_elision): Likewise.
7754
7755 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7756
7757         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
7758         programs.
7759
7760 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7761
7762         [BZ #20916]
7763         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
7764         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
7765         arguments to compute result.
7766         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
7767         1 for arguments (sNaN, 0) or (1, sNaN).
7768         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7769         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7770
7771         [BZ #20919]
7772         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
7773         NaN first argument when raised to power 0.
7774         * math/w_pow.c (__pow): Do not check for NaN or zero results from
7775         raising to power zero.
7776         * math/w_powf.c (__powf): Likewise.
7777         * math/w_powl.c (__powl): Likewise.
7778         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
7779         pow (0, 0) or pow (NaN, 0).
7780
7781 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
7782
7783         [BZ #20918]
7784         * configure.ac: Test for static NSS cryptographic libraries and set
7785         libc_cv_static_nss_crypt.
7786         * configure: Regenerate.
7787         * config.make.in (static-nss-crypt): Define.
7788         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
7789         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
7790         (CFLAGS-tst-linkall-static.c): Define.
7791         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
7792         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
7793         ($(objpfx)tst-linkall-static): Define.
7794         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
7795         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
7796
7797 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7798
7799         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
7800         (one-hundred, tst-tls-many-dynamic-modules): Define.
7801         (modules-names): Add $(tst-tls-many-dynamic-modules).
7802         (tst-tls-manydynamic%mod.os): Build with special preprocessor
7803         macros.
7804         (tst-tls-manydynamic): Link against libdl, libpthread.
7805         (tst-tls-manydynamic.out): The test needs the test modules at run
7806         time.
7807         * elf/tst-tls-manydynamic.c: New file.
7808         * elf/tst-tls-manydynamic.h: Likewise.
7809         * elf/tst-tls-manydynamicmod.c: Likewise.
7810
7811 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7812
7813         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
7814         (TLS_DTV_UNALLOCATED): Add.
7815         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
7816         offsets.
7817
7818 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7819
7820         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7821
7822 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7823
7824         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
7825         Add -fno-optimize-sibling-calls.
7826
7827 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
7830         New declaration.
7831         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
7832         macro.
7833         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
7834         New macro.
7835         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
7836         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
7837         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
7838         (llogbf): Likewise.
7839         (llogbl): Likewise.
7840         * math/Makefile (gen-libm-calls): Add w_llogbF.
7841         (tests): Add test-fp-llogb-constants.
7842         * math/w_llogb_template.c: New file.  Based on
7843         math/w_ilogb_template.c.
7844         * math/libm-test.inc (llogb_test_data): New array.
7845         (llogb_test): New function.
7846         (main): Call llogb_test.
7847         * math/test-fp-llogb-constants.c: New file.  Based on
7848         math/test-fp-ilogb-constants.c.
7849         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
7850         (do_test): Call check_return_llogb.
7851         * math/test-tgmath.c (NCALLS): Increase to 126.
7852         (F(compile_test)): Call llogb.
7853         (F(llogb)): New function.
7854         * manual/math.texi (Exponents and Logarithms): Document llogb,
7855         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
7856         * manual/libm-err-tab.pl (@all_functions): Add llogb.
7857         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
7858         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
7859         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
7860         (CFLAGS-nldbl-llogb.c): New variable.
7861         * sysdeps/nacl/libm.abilist: Update.
7862         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7863         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7864         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7865         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7866         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7867         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7868         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7869         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7870         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7871         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7872         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7873         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7875         Likewise.
7876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7877         Likewise.
7878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7879         Likewise.
7880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7881         Likewise.
7882         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7883         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7884         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7885         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7886         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7887         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7888         Likewise.
7889         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7890         Likewise.
7891         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7892         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7893         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7894
7895 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7896
7897         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
7898         _Float128 instead of long double.
7899         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
7900
7901         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
7902         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
7903         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
7904         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
7905         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
7906         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
7907         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
7908         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
7909         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
7910         Likewise.
7911
7912 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7913
7914         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
7915         Remove redirection to __strrchr_ppc.
7916
7917 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7918
7919         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7920         (sysdep_routines): Add strcmp_power9.
7921         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7922         (strcmp): Add __strcmp_power9 to list of strcmp functions.
7923         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
7924         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7925         (strcmp): Add __strcmp_power9 to ifunc list.
7926         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
7927
7928 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7929
7930         * bits/fp-logb.h: New file.
7931         * sysdeps/ia64/bits/fp-logb.h: Likewise.
7932         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
7933         * sysdeps/x86/bits/fp-logb.h: Likewise.
7934         * math/Makefile (headers): Add bits/fp-logb.h.
7935         * math/math.h: Include <bits/fp-logb.h>.
7936         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
7937         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
7938         * bits/mathdef.h (FP_ILOGB0): Remove.
7939         (FP_ILOGBNAN): Likewise.
7940         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
7941         (FP_ILOGBNAN): Likewise.
7942         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
7943         (FP_ILOGBNAN): Likewise.
7944         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
7945         (FP_ILOGBNAN): Likewise.
7946         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
7947         (FP_ILOGBNAN): Likewise.
7948         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
7949         (FP_ILOGBNAN): Likewise.
7950         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
7951         (FP_ILOGBNAN): Likewise.
7952         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
7953         (FP_ILOGBNAN): Likewise.
7954         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
7955         (FP_ILOGBNAN): Likewise.
7956         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
7957         (FP_ILOGBNAN): Likewise.
7958
7959         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
7960         time module.
7961         (Context.__init__): Initialize self.logsdir_old.
7962         (Context.run_builds): Handle bot action.
7963         (Context.bot_cycle): Copy logs directory before running builds.
7964         (Context.bot_run_self): Take argument for whether to check
7965         subprocess result.  Flush stdout before running subprocess.
7966         (Context.bot): New function.
7967         (get_parser): Allow bot action.
7968
7969 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
7970
7971         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
7972         Import email.mime.text, email.utils and smtplib modules.
7973         (Context.__init__): Initialize self.bot_config_json.
7974         (Context.run_builds): Handle bot-cycle action.
7975         (Context.load_bot_config_json): New function.
7976         (Context.part_build_old): Likewise.
7977         (Context.bot_cycle): Likewise.
7978         (Context.bot_build_mail): Likewise.
7979         (Context.bot_run_self): Likewise.
7980         (get_parser): Allow bot-cycle action.
7981
7982 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7983
7984         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
7985         Remove redirection to __stpcpy_ppc.
7986
7987 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7988
7989         Remove __libc_memalign from ld.so because it is unused.
7990         * elf/dl-minimal.c: Update comment on the malloc implementation.
7991         (malloc): Renamed from __libc_memalign, replacing the original
7992         malloc implementation.  Replace the align parameter with
7993         MALLOC_ALIGNMENT.
7994         * elf/Versions (ld): Update comment and remove __libc_memalign.
7995         * sysdeps/nacl/ld.abilist: Likewise.
7996         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
7997         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
7998         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
7999         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
8000         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
8001         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
8002         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
8003         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
8004         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
8005         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
8006         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
8007         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
8008         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
8009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
8010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
8011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
8012         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
8013         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
8014         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
8015         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8016         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
8017         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
8018         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
8019         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
8020         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
8021         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
8022         * sysdeps/generic/localplt.data (ld.so): Likewise.
8023         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8024         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8025         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8026         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8027         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8028         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8029         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8030         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
8031         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8033         (ld.so): Likewise.
8034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8035         (ld.so): Likewise.
8036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8037         Likewise.
8038         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8039         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8040         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
8041         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
8042         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8043
8044 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8045
8046         [BZ #16628]
8047         Implement _dl_catch_error, _dl_signal_error in libc.so.
8048         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
8049         (catch_hook): Define as thread-local or regular variable,
8050         depending on DL_ERROR_BOOTSTRAP.
8051         (CATCH_HOOK): Remove.
8052         (dl_signal_error, _dl_catch_error): Use
8053         catch_hook.  Add hidden definition for libc.
8054         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
8055         for DL_ERROR_BOOTSTRAP only.
8056         * elf/dl-error.c: New file.
8057         * elf/dl-error-minimal.c: Likewise.
8058         * elf/tst-latepthread.c: Likewise.
8059         * elf/tst-latepthreadmod.c: Likewise.
8060         * elf/Makefile (routines): Add dl-error.
8061         (dl-routines): Remove dl-error.
8062         (rtld-routines): Add dl-error-minimal.
8063         [build-shared] (tests): Add tst-latepthread.
8064         (module-names): Add tst-latepthreadmod.
8065         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
8066         symbol.
8067         (tst-latepthreadmod.so): Link against libpthread.
8068         (tst-latepthread): Link against libdbl.
8069         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
8070         _dl_catch_error.
8071         [ld] (GLIBC_PRIVATE): Likewise.
8072         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
8073         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
8074         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
8075         directly.
8076         * elf/dl-tsd.c: Remove file.
8077         * elf/rtld.c (_rtld_global_ro): Remove initializers for
8078         _dl_catch_error, _dl_signal_error.
8079         (_dl_initial_error_catch_tsd): Remove definition.
8080         (do_preload): Remove initialization of dl_error_catch_tsd.
8081         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
8082         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
8083         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8084         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8085         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
8086         set dl_error_catch_tsd.
8087         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8088         _dl_error_catch_tsd member.
8089         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
8090         members.
8091         (_dl_initial_error_catch_tsd): Remove declaration.
8092         (_dl_dprintf): Provide definition for use outside of ld.so.
8093         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
8094         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
8095         prototype for libc.
8096         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
8097         _dl_catch_error.
8098         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8099         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8100         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8101         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8102         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8103         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8104         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8105         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8106         Likewise.
8107         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8109         (ld.so): Likewise.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8111         (ld.so): Likewise.
8112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8113         Likewise.
8114         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8115         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8116         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8117         Likewise.
8118         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8119         Likewise.
8120         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8121
8122 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8123
8124         [BZ #4099]
8125         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
8126         _IO_BUFSIZ (8192).
8127
8128 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
8129
8130         * PROJECTS: Remove file.
8131
8132 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8133
8134         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
8135
8136 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
8137             Steve Ellcey  <sellcey@caviumnetworks.com>
8138
8139         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
8140         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
8141         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
8142         fxstatat.
8143         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
8144         lxstat.
8145         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
8146         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
8147         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
8148         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
8149         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
8150         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
8151         __xstat.
8152
8153 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8154
8155         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
8156         Define.
8157         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
8158         definition.
8159
8160 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8161
8162         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
8163         version and turn into strong alias.  Remove compat symbol.
8164
8165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8166         (__longjmp): Remove.
8167
8168 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
8169
8170         * bits/fp-fast.h: New file.
8171         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
8172         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
8173         * math/Makefile (headers): Add bits/fp-fast.h.
8174         * math/math.h: Include <bits/fp-fast.h>.
8175         * bits/mathdef.h (FP_FAST_FMA): Remove.
8176         (FP_FAST_FMAF): Likewise.
8177         (FP_FAST_FMAL): Likewise.
8178         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
8179         (FP_FAST_FMAF): Likewise.
8180         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
8181         (FP_FAST_FMAF): Likewise.
8182         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
8183         (FP_FAST_FMAF): Likewise.
8184         (FP_FAST_FMAL): Likewise.
8185         * sysdeps/arm/bits/mathdef.h: Remove file.
8186         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
8187         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8188         * sysdeps/tile/bits/mathdef.h: Likewise.
8189
8190 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8191
8192         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
8193         * math/w_ilogb.c: Remove.
8194         * math/w_ilogbf.c: Likewise.
8195         * math/w_ilogbl.c: Likewise.
8196         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
8197         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
8198         * math/Makefile (gen-libm-calls): Add w_ilogbF.
8199         (libm-calls): Remove w_ilogbF.
8200         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
8201         (LDOUBLE_ilogbl_libm_version): New macro.
8202
8203         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
8204
8205         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
8206         [!__STRICT_ANSI__ && !__cplusplus].
8207
8208 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
8209
8210         [BZ #20750]
8211         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
8212         of PIC.
8213
8214 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
8215             Yury Norov  <ynorov@caviumnetworks.com>
8216             Steve Ellcey  <sellcey@caviumnetworks.com>
8217
8218         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
8219         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
8220         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
8221         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
8222         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
8223         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
8224         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
8225         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
8226         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
8227         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
8228         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
8229         to get correct reg name for ILP32.
8230         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
8231         (RELA_SIZE): New Macro.
8232         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
8233         to support ILP32.
8234         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
8235         cast for ILP32 mode.
8236         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
8237         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
8238         * sysdeps/aarch64/memset.S (__memset): Ditto.
8239         * sysdeps/aarch64/strchr.S (strchr): Ditto.
8240         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
8241         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
8242         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
8243         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
8244         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
8245         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
8246         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
8247         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
8248         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
8249         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
8250         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
8251         change PTR_MANGLE call to use register numbers instead of names.
8252         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
8253         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
8254         ILP32 mode, change PTR_MANGLE calls to use register numbers.
8255         * sysdeps/aarch64/start.S (_start): Ditto.
8256         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
8257         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
8258         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
8259         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
8260         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
8261         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
8262         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
8263         Make defined values dependent on __ILP32__.
8264         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
8265         (sem_t): Change __align type.
8266         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
8267         PTR_SIZE): New Macros.
8268         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
8269         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
8270         Set when in ILP32 mode.
8271         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
8272         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
8273         Set elf flags for ILP32.
8274         (add_system_dir): Set ILP32 library directories.
8275         * sysdeps/unix/sysv/linux/aarch64/init-first.c
8276         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
8277         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
8278         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
8279         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
8280         New Macros.
8281         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
8282
8283 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
8284
8285         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
8286         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
8287         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
8288
8289 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8290
8291         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
8292         <asm/cachectl.h>.
8293
8294 2016-11-27  Zack Weinberg  <zackw@panix.com>
8295
8296         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
8297         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
8298
8299 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8300
8301         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
8302         error_t to fix usage in C++ programs.
8303
8304 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * scripts/build-many-glibcs.py: Import datetime module.
8307         (Context.__init__): Load JSON build state.  Initialize list of
8308         status logs.
8309         (Context.run_builds): Update saved build state.
8310         (Context.add_makefile_cmdlist): Update list of status logs.
8311         (Context.load_build_state_json): New function.
8312         (Context.store_build_state_json): Likewise.
8313         (Context.clear_last_build_state): Likewise.
8314         (Context.update_build_state): Likewise.
8315         (CommandList.status_logs): Likewise.
8316
8317 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
8318
8319         * scripts/build-many-glibcs.py (Context.__init__): Save text of
8320         script being executed.
8321         (Context.get_script_text): New function.
8322         (Context.exec_self): Likewise.
8323         (Context.checkout): Re-exec script if changed by checkout process.
8324
8325 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8326
8327         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8328         (setpayloadsig): New declaration.
8329         * math/Versions (setpayloadsig): New libm symbol at version
8330         GLIBC_2.25.
8331         (setpayloadsigf): Likewise.
8332         (setpayloadsigl): Likewise.
8333         * math/Makefile (libm-calls): Add s_setpayloadsigF.
8334         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
8335         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
8336         (setpayloadsig_test_data): New array.
8337         (setpayloadsig_test): New function.
8338         (main): Call setpayloadsig_test.
8339         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
8340         setpayloadsigf and setpayloadsigl.
8341         * manual/libm-err-tab.pl: Update comment on interfaces without
8342         ulps tabulated.
8343         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
8344         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
8345         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
8346         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
8347         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
8348         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
8349         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8350         setpayloadsig.
8351         (CFLAGS-nldbl-setpayloadsig.c): New variable.
8352         * sysdeps/nacl/libm.abilist: Update.
8353         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8354         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8355         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8356         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8357         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8358         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8359         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8360         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8361         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8362         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8363         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8364         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8366         Likewise.
8367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8368         Likewise.
8369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8370         Likewise.
8371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8372         Likewise.
8373         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8374         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8375         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8376         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8377         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8378         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8379         Likewise.
8380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8381         Likewise.
8382         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8383         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8384         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8385
8386         * scripts/build-many-glibcs.py: Import json module.
8387         (Context.__init__): Take replace_sources argument.  Load
8388         versions.json.
8389         (Context.load_versions_json): New function.
8390         (Context.store_json): Likewise.
8391         (Context.store_versions_json): Likewise.
8392         (Context.set_component_version): Likewise.
8393         (Context.checkout): Update versions.json.  Check for and handle
8394         changes of version.  Prefer previously explicitly specified
8395         version to default version.
8396         (Context.checkout_vcs): Return a revision identifier.
8397         (Context.git_checkout): Likewise.
8398         (Context.gcc_checkout): Likewise.
8399         (get_parser): Add --replace-sources option.
8400         (main): Pass replace_sources argument to Context call.
8401
8402 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8403
8404         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
8405         * nptl/allocatestack.c (allocate_stack): Likewise.
8406         (__reclaim_stacks): Likewise.
8407         (setxid_signal_thread): Obtain pid through syscall.
8408         * nptl/nptl-init.c (sigcancel_handler): Likewise.
8409         (sighandle_setxid): Likewise.
8410         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
8411         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
8412         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8413         Likewise.
8414         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8415         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
8416         comment.
8417         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
8418         * nptl/descr.h (struct pthread): Change comment about pid value.
8419         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
8420         pid assert.
8421         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
8422         Do not set pid value.
8423         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
8424         pid cache check.
8425         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
8426         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
8427         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
8428         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
8429         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
8430         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
8431         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
8432         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
8433         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
8434         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
8435         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
8436         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
8437         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
8438         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
8439         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
8440         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
8441         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
8442         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
8443         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8444         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
8445         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
8446         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8447         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
8448         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8449         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
8450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
8452         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8453         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8454         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8455         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
8456         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
8457         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
8458         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8459         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
8460         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
8461         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8462         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8463         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8464         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
8465         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8466         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
8467         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
8468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
8469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
8470         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
8471         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
8472         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8473         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8474         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
8475         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
8476         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8477         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
8478         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
8479         struct access.
8480         (clone_test): Remove function.
8481         (do_test): Rewrite to take in consideration pid is not cached anymore.
8482
8483 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8484
8485         * bits/flt-eval-method.h: New file.
8486         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
8487         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
8488         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
8489         * math/Makefile (headers): Add bits/flt-eval-method.h.
8490         * math/math.h: Include <bits/flt-eval-method.h>.
8491         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
8492         [__USE_ISOC99] (double_t): Likewise.
8493         * bits/mathdef.h (float_t): Remove.
8494         (double_t): Likewise.
8495         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
8496         (double_t): Likewise.
8497         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
8498         (double_t): Likewise.
8499         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
8500         (double_t): Likewise.
8501         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
8502         (double_t): Likewise.
8503         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
8504         (double_t): Likewise.
8505         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
8506         (double_t): Likewise.
8507         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
8508         (double_t): Likewise.
8509         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
8510         (double_t): Likewise.
8511         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
8512         (double_t): Likewise.
8513         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
8514         (double_t): Likewise.
8515         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
8516         (double_t): Likewise.
8517         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
8518         (double_t): Likewise.
8519         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
8520         (double_t): Likewise.
8521
8522 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
8523
8524         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
8525         instead of PIC.
8526
8527 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8528
8529         [BZ #20859]
8530         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
8531         (-0x7fffffff) instead of 0x80000001.
8532         * math/test-fp-ilogb-constants.c: New file.
8533         * math/Makefile (tests): Add test-fp-ilogb-constants.
8534
8535 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
8536
8537         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
8538         (_init): Use it in place of hardcoded R_MIPS_JALR.
8539         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
8540         (_init): Use it in place of hardcoded R_MIPS_JALR.
8541         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
8542         (_init): Use it in place of hardcoded R_MIPS_JALR.
8543
8544 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8545
8546         [BZ #20787]
8547         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
8548         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
8549         (double_t): Do not define to double if [__x86_64__] when
8550         __FLT_EVAL_METHOD__ is nonzero.
8551         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
8552         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
8553         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8554         test-flt-eval-method-387 and test-flt-eval-method-sse.
8555         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
8556         variable.
8557         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
8558
8559 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
8560
8561         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
8562         use of -fno-isolate-erroneous-paths options for tilepro.
8563
8564 2016-11-23  Florian Weimer  <fweimer@redhat.com>
8565
8566         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
8567         structure initialization is no longer needed.
8568
8569 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8570
8571         [BZ #20855]
8572         * bits/mathdef.h (float_t): Define to float.
8573         * math/test-flt-eval-method.c: New file.
8574         * math/Makefile (tests): Add test-flt-eval-method.
8575         (CFLAGS-test-flt-eval-method.c): New variable.
8576
8577 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
8578
8579         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
8580         and __fstatfs.  Make them aliases of __fstatfs64 if
8581         STATFS_IS_STATFS64 is set to non-zero.
8582         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
8583         and __statfs64.
8584         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
8585         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
8586         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
8587         for __statfs and statfs.
8588         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
8589         to 0.
8590         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
8591         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
8592         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
8593         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8594         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8595         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
8598         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
8599         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8600         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
8601         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
8602
8603 2016-11-22  Andreas Schwab  <schwab@suse.de>
8604
8605         * misc/mkstemp.c: Include <fcntl.h>.
8606         * misc/mkstemps.c: Likewise.
8607         * misc/mkostemp.c: Likewise.
8608         * misc/mkostemps.c: Likewise.
8609
8610 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
8611
8612         [BZ #20847]
8613         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
8614         array bounds.
8615         (__execvpe): Likewise.
8616
8617 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
8618
8619         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
8620         -fno-isolate-erroneous-paths options for tilepro.
8621
8622 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
8623
8624         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
8625         to 0 when in 32 bit mode.
8626         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
8627         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8628         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8629         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8631         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8632         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
8633         XSTAT_IS_XSTAT64 test.
8634         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
8635         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
8636         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
8637         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
8638         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
8639         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
8640         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
8641         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
8642         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
8643         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
8644         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
8645
8646 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
8647
8648         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8649         (setpayload): New declaration.
8650         * math/Versions (setpayload): New libm symbol at version
8651         GLIBC_2.25.
8652         (setpayloadf): Likewise.
8653         (setpayloadl): Likewise.
8654         * math/Makefile (libm-calls): Add s_setpayloadF.
8655         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
8656         test_Ff_b1_data.
8657         (RUN_TEST_Ff_b1): New macro.
8658         (RUN_TEST_LOOP_Ff_b1): Likewise.
8659         (canonicalize_test_data): Update type.
8660         (setpayload_test_data): New array.
8661         (setpayload_test): New function.
8662         (main): Call setpayload_test.
8663         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
8664         setpayloadf and setpayloadl.
8665         * manual/libm-err-tab.pl: Update comment on interfaces without
8666         ulps tabulated.
8667         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
8668         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
8669         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
8670         Likewise.
8671         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
8672         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
8673         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
8674         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
8675         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
8676         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
8677         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
8678         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
8679         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
8680         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8681         setpayload.
8682         (CFLAGS-nldbl-setpayload.c): New variable.
8683         * sysdeps/nacl/libm.abilist: Update.
8684         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8685         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8686         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8687         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8688         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8689         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8690         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8691         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8692         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8693         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8694         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8695         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8697         Likewise.
8698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8699         Likewise.
8700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8701         Likewise.
8702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8703         Likewise.
8704         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8705         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8706         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8707         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8708         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8710         Likewise.
8711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8712         Likewise.
8713         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8714         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8715         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8716
8717 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8718
8719         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
8720         * include/unistd.h: Extend comment about __access_noerrno return
8721         semantics.
8722         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
8723         (access_common): Correct typo for EACCES.
8724
8725 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
8726
8727         * sysdeps/tile/math-tests.h: New file.
8728
8729         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
8730         (__old_set_dataplane): Rename from set_dataplane and make a
8731         compatibility symbol.
8732         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
8733         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
8734         sys/dataplane.h.
8735
8736 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
8737
8738         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
8739         script quote words in command output to log suitably for input to
8740         the shell.
8741
8742 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
8743             Maciej W. Rozycki  <macro@imgtec.com>
8744
8745         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
8746         `.Lno_weak_fn' label.
8747         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
8748         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
8749
8750 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8751             Yury Norov  <ynorov@caviumnetworks.com>
8752
8753         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
8754         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
8755         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8756         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
8757         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8758         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
8759         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8760         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8761         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8762         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
8763         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8764         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
8765         (sysdep_routines): Remove oldgetrlimit64.
8766         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
8767         (sysdep_routines): Likewise.
8768         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
8769         (sysdep_routines): Likewise.
8770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
8771         [$(subdir) = resource] (sysdep_routines): Likewise.
8772         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
8773         [$(subdir) = resource] (sysdep_routines): Likewise.
8774         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
8775         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
8776         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
8777         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
8778         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
8779         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
8780         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
8781         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
8782         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
8783         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
8784         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
8785         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
8786         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
8787         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
8788         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
8789         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
8790         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
8791         setrlimit and getrlimit.
8792         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8793         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
8794         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
8795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8797         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
8798         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
8799         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8800         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8801         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
8802         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
8803         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
8804         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
8805         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
8806         (__old_getrlimit64): Add compatibility symbol.
8807         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
8808
8809 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
8810
8811         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
8812         newly built gmp, mpfr and mpc.
8813
8814         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
8815
8816 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8817
8818         * conform/Makefile (linknamespace-libs): Rename to
8819         linknamespace-libs-thr.
8820         (linknamespace-libs-posix): New variable.
8821         (linknamespace-libs-xsi): Likewise.
8822         (linknamespace-libs-XPG3): Include libcrypt.a.
8823         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
8824         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
8825         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
8826         (linknamespace-libs-XOPEN2K): Likewise.
8827         (linknamespace-libs-XOPEN2K8): Likewise.
8828         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
8829
8830         [BZ #20829]
8831         * stdio-common/Versions (__snprintf): Add to version
8832         GLIBC_PRIVATE.
8833         * include/stdio.h (__snprintf): Use libc_hidden_proto.
8834         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
8835         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
8836         of snprintf.
8837         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8838
8839 2016-11-16  Zack Weinberg  <zackw@panix.com>
8840
8841         * string/string.h: Remove obsolete comment stating that
8842         strcoll_l and strxfrm_l have not yet been standardized.
8843
8844 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8845
8846         * hurd/hurd.h (__hurd_fail_noerrno): New function.
8847         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
8848         __access_noerrno.
8849         * io/access.c (__access_noerrno): New function.
8850         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
8851         (hurd_fail_seterrno): Likewise.
8852         (access_common): Likewise.
8853         (__access_noerrno): Likewise.
8854         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
8855         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
8856         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
8857         macro.
8858
8859 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8860
8861         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
8862         Only declare fpregs if [__SH_FPU_ANY__].
8863
8864 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
8865
8866         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
8867         Make code unconditional.
8868         [!(__SH4__ || __SH4A__)]: Remove conditional code.
8869
8870 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
8871
8872         * manual/sysinfo.texi (S_APPEND): Delete.
8873         (S_IMMUTABLE): Likewise.
8874
8875 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
8876             Magnus Granberg  <zorry@gentoo.org>
8877             Mike Frysinger  <vapier@gentoo.org>
8878
8879         [BZ #20662]
8880         * configure.ac (libc_cv_predef_stack_protector): Also check for
8881         __stack_chk_fail_local symbols.
8882         * configure: Regenerated.
8883
8884 2016-11-15  Florian Weimer  <fweimer@redhat.com>
8885
8886         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8887         (libc_hidden_def): Remove redefinition.
8888         (__sigsetjmp): Add hidden definition.
8889         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8890         (libc_hidden_def): Remove redefinition.
8891         (__sigsetjmp): Add hidden definition.
8892
8893 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
8894
8895         * scripts/build-many-glibcs.py (os.path): Do not import.
8896         (Context): Inherit explicitly from object.  Remove blank line
8897         between class and docstring.
8898         (Config): Likewise.
8899         (Glibc): Likewise.
8900         (Command): Likewise.
8901         (CommandList): Likewise.
8902         (Context.write_files): Store chmod mode in a variable.
8903
8904         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
8905         LIBC_SLIBDIR_RTLDDIR for tilegx32.
8906         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
8907
8908 2016-11-14  Zack Weinberg  <zackw@panix.com>
8909
8910         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
8911         creating or re-creating it.
8912
8913         * string/bits/string2.h: Fix typo in comment.
8914
8915 2016-11-14  Zack Weinberg  <zackw@panix.com>
8916
8917         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
8918         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
8919         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
8920         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
8921         of redirected function names.
8922
8923         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
8924         as well.  Document that MESSAGE must be a single string literal.
8925
8926 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
8927
8928         * scripts/build-many-glibcs.py: New file.
8929
8930         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
8931         (do_test): Disable -Wmaybe-uninitialized around uses of
8932         except_mask.
8933
8934         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
8935
8936 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
8937
8938         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
8939         (atomic_store_release): Provide tilepro-specific implementations.
8940
8941 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
8942
8943         * math/math.h (__MATH_TG): New macro.
8944         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
8945         [__USE_ISOC99] (signbit): Likewise.
8946         [__USE_ISOC99] (isfinite): Likewise.
8947         [__USE_ISOC99] (isnan): Likewise.
8948         [__USE_ISOC99] (isinf): Likewise.
8949         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
8950         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
8951         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
8952         __MATH_TG and __MATH_EVAL_FMT2.
8953         * sysdeps/generic/math_private.h (fabs_tg): Define using
8954         __MATH_TG.
8955         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
8956         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
8957         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
8958         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
8959         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
8960         macro.
8961         (__iscanonical): Likewise.
8962         (iscanonical): Define using __MATH_TG.
8963
8964 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8965
8966         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
8967         guards.
8968
8969         * sysdeps/unix/sysv/linux/access.c: New file.
8970         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
8971
8972 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
8973
8974         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
8975         and __WORDSIZE32_PTRDIFF_LONG.
8976
8977 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8978
8979         * sysdeps/aarch64/libm-test-ulps: Regenerated.
8980
8981 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8982
8983         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
8984         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
8985         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
8986         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
8987         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
8988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
8989         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
8990         * sysdeps/unix/sysv/linux/truncate.c: New file.
8991         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
8992         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8993         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
8994         Remove.
8995         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
8996         Likewise.
8997
8998         * posix/tst-truncate-common.c: New file.
8999         * posix/tst-truncate.c: Use tst-truncate-common.c.
9000         * posix/tst-truncate64.c: Likewise and add LFS tests.
9001         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
9002         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
9003         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
9004         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
9005         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
9006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
9007         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
9008         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
9009         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
9010         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
9011         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
9012         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
9013         Remove.
9014         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
9015         Likewise.
9016
9017 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
9018
9019         [BZ #20790]
9020         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
9021         to MAXLINESIZE.
9022         * sunrpc/bug20790.x: New file.
9023         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
9024         variable.
9025         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
9026         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
9027
9028         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
9029
9030         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
9031
9032         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
9033         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
9034         calloc, realloc, free, memalign and __libc_memalign rather than
9035         making them optional.
9036
9037         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
9038         for libc.so.
9039
9040 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9041
9042         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
9043         ptw-lseek64.
9044         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
9045         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
9046         Likewise.
9047         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
9048         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
9049         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
9050         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
9051         * sysdeps/unix/sysv/linux/lseek.c: New file.
9052         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
9053         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
9054         __libc_lseek64 from auto-generation.
9055         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9056         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
9057
9058 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9059
9060         * nptl/tst-basic1.c (tf, do_test): Use write_message.
9061         * nptl/tst-cleanup1.c (do_test): Likewise.
9062         * nptl/tst-cleanup3.c (do_test): Likewise.
9063         * nptl/tst-key1.c (do_test): Likewise.
9064         * nptl/tst-key2.c (tf, do_test): Likewise.
9065         * nptl/tst-key3.c (tf, do_test): Likewise.
9066         * nptl/tst-stdio1.c (do_test): Likewise.
9067         * nptl/tst-stdio2.c (do_test): Likewise.
9068
9069         * nptl/tst-kill3.c (handler): Use write_message in place of write.
9070         * nptl/tst-kill6.c (handler): Likewise.
9071         * nptl/tst-tls2.c (CB): Likewise.
9072         * nptl/tst-tls3.c (CB): Likewise.
9073
9074 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
9075
9076         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
9077
9078 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
9079             Steve Ellcey  <sellcey@caviumnetworks.com>
9080
9081         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
9082           __ASSUME_ST_INO_64_BIT as 0
9083         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
9084         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
9085           over the code where __ASSUME_ST_INO_64_BIT is used.
9086         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9087         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
9088         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9089
9090 2016-11-07  Florian Weimer  <fweimer@redhat.com>
9091
9092         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9093         Document ABI exposure of the __kind offset.
9094         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9095         Mention reason for the __kind offset exposure in the ABI.
9096         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9097         Likewise.
9098         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9099         Likewise.
9100         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9101         Likewise.
9102         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
9103         (struct __pthread_mutex_s): Likewise.
9104         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9105         Likewise.
9106         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9107         Likewise.
9108         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9109         Likewise.
9110         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9111         Likewise.
9112         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9113         Likewise.
9114         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9115         Likewise.
9116         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
9117         (struct __pthread_mutex_s): Likewise.
9118         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9119         (struct __pthread_mutex_s): Likewise.
9120         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
9121         Likewise.
9122
9123 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
9124
9125         * test-skeleton.c: Document do_test usage.
9126
9127 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
9128
9129         * iconv/gconv.h (__gconv_info): Define __data element using a
9130         zero-length array.
9131
9132 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
9133
9134         * math/test-tgmath2.c: Split up test function.
9135
9136 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9137
9138         * Rules (tests-expected): New variable, depending on
9139         $(run-built-tests).
9140         (tests): Pass $(tests-expected) to merge-test-results.sh, not
9141         $(tests).
9142
9143         * Rules [$(run-built-tests) = no] (tests): Do not depend on
9144         $(tests-unsupported).
9145
9146 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9147
9148         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
9149         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
9150
9151 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9152
9153         [BZ #20768]
9154         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
9155         __fegetenv instead of fegetenv.
9156
9157         [BZ #14139]
9158         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
9159         (find_files): Obtain platform name from libm-test-ulps-name and
9160         store in %pplatforms.
9161         (canonicalize_platform): Remove.
9162         (print_platforms): Use $pplatforms directly.
9163         (by_platforms): Do not allow for platforms missing from
9164         %pplatforms.
9165         * sysdeps/aarch64/libm-test-ulps-name: New file.
9166         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
9167         * sysdeps/arm/libm-test-ulps-name: Likewise.
9168         * sysdeps/generic/libm-test-ulps-name: Likewise.
9169         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
9170         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
9171         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
9172         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
9173         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
9174         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
9175         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
9176         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
9177         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
9178         * sysdeps/nios2/libm-test-ulps-name: Likewise.
9179         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
9180         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
9181         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
9182         * sysdeps/sh/libm-test-ulps-name: Likewise.
9183         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
9184         * sysdeps/tile/libm-test-ulps-name: Likewise.
9185         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
9186
9187         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
9188
9189         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
9190         (test-xfail-check-execstack): New variable.
9191
9192         * sysdeps/mips/localplt.data: New file.
9193
9194 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
9195             Steve Ellcey  <sellcey@caviumnetworks.com>
9196
9197         * bits/wordsize.h: Add documentation.
9198         * sysdeps/aarch64/bits/wordsize.h : New file
9199         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
9200         definitions.
9201         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
9202         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
9203         with #if instead of #ifdef.
9204         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
9205         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
9206         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
9207         Add or change defines.
9208         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
9209         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9210         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
9211         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
9212         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9213         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9214         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
9215         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
9216         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
9217         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9218         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
9219         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
9220         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
9221         * sysdeps/x86/bits/wordsize.h: Likewise.
9222
9223 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
9224             Kevin Petit  <kevin.petit@arm.com>
9225
9226         * sysdeps/aarch64/memchr.S (__memchr): New file.
9227
9228 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9229
9230         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
9231
9232 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
9233
9234         [BZ #19398]
9235         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
9236         $(linknamespace-symlists-tests).
9237
9238 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
9239
9240         * time/tst-strptime2.c: Ignore -Wformat-length warning.
9241
9242 2016-11-02  Florian Weimer  <fweimer@redhat.com>
9243             Carlos O'Donell  <carlos@redhat.com>
9244
9245         [Bug #20729]
9246         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
9247         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
9248         for -Os related change.
9249
9250 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
9251
9252         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
9253
9254 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
9255
9256         [BZ #19673]
9257         * manual/math.texi (Exponents and Logarithms): Correct description
9258         of clog10.
9259
9260 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
9261
9262         [Bz #20729]
9263         * locale/weight.h: Include libc-internal.h.
9264         * locale/weightwc.h: Likewise.
9265         * nptl/nptl_dbP.h: Likewise.
9266
9267 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
9268
9269         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
9270         when it is MACH_PORT_NULL.
9271
9272 2016-10-31  Andreas Schwab  <schwab@suse.de>
9273
9274         [BZ #20707]
9275         * posix/glob.c (glob): Initialize pglob before checking for
9276         GLOB_BRACE.  Don't call glob recursively if pattern contains no
9277         valid brace expression despite GLOB_BRACE.
9278         * posix/globtest.sh: Test it.
9279
9280 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9281
9282         [BZ #20729]
9283         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
9284         Define.
9285         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
9286         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
9287         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
9288         for seq2.back_us and seq1.back_us only for -Os compiles.
9289         * locale/weightwc.h (findix): Likewise.
9290         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
9291         DB_GET_FIELD_ADDRESS only for -Os compiles.
9292         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
9293         for slen only for -Os compiles.
9294         * string/strcoll_l.c (get_next_seq): Ignore
9295         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
9296         for -Os compiles.
9297
9298         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
9299         * include/crypt.h: New file.
9300
9301 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9302
9303         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
9304         from test-skeleton.c.
9305         (statclass): Replace calls to write with calls to write_message.
9306
9307 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9308
9309         * math/math.h
9310         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
9311         New macro.
9312         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
9313         Likewise.
9314         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
9315         Likewise.
9316         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
9317         SNANL.
9318         * math/test-double.h (snan_value_MACRO): New macro.
9319         * math/test-float.h (snan_value_MACRO): Likewise.
9320         * math/test-ldouble.h (snan_value_MACRO): Likewise.
9321         * math/libm-test.inc (issignaling_test_data): Add tests of
9322         snan_value_MACRO.
9323
9324 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9325
9326         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
9327         behavior when eliding a lock not held by the current thread.
9328         * sysdeps/powerpc/nptl/elide.h: Likewise.
9329
9330 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9331
9332         [BZ #20728]
9333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
9334         branch to _exit() by a function call.
9335
9336 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9337
9338         * malloc/malloc.c: Update chunk layout comments.
9339         (chunk_main_arena): Update comment.
9340
9341 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9342
9343         * crypt/sha256.c, crypt/sha256-block.c,
9344         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
9345         sha256_process_block to __sha256_process_block.
9346         * crypt/sha512.c, crypt/sha512-block.c,
9347         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
9348         sha512_process_block to __sha512_process_block.
9349
9350 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9351
9352         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
9353
9354         * math/test-nan-overflow.c: Include stdlib.h for malloc.
9355
9356 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
9357
9358         [BZ #20019]
9359         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
9360         definition in unrelocated shared library.
9361         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9362
9363 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9364
9365         [BZ #20729]
9366         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
9367         * sysdeps/unix/sysv/linux/i386/Makefile
9368         (uses-6-syscall-arguments): Define.
9369         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
9370         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
9371         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
9372         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
9373         Likewise.
9374         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
9375         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
9376         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
9377         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
9378         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
9379         (CFLAGS-fallocate64.os): Likewise.
9380         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
9381         (CFLAGS-pthread_rwlock_timedrdlock.os)
9382         (CFLAGS-pthread_rwlock_timedwrlock.o)
9383         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
9384         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
9385         (CFLAGS-sem_timedwait.os): Likewise.
9386
9387 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9388
9389         * elf/tst-linkall-static.c: New file.
9390         * elf/Makefile (tests-static): Add tst-linkall-static.
9391         (tst-linkall-static): Link against static libraries.
9392
9393 2016-10-27  Florian Weimer  <fweimer@redhat.com>
9394
9395         * malloc/malloc.c (sysmalloc): Initialize previous size field of
9396         mmaped chunks.
9397
9398 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9399
9400         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
9401         members to mchunk_prev_size, mchunk_size.
9402         (chunk_main_arena): Reverse sense and rename from
9403         chunk_non_main_arena.
9404         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
9405         mchunk_size instead of size.
9406         (set_non_main_arena): Define.
9407         (chunksize): Use chunksize_nomask instead of direct member access.
9408         (chunksize_nomask): Define.
9409         (next_chunk): Use chunksize instead of direct member access.
9410         (prev_size, set_prev_size): Define.
9411         (prev_chunk): Use prev_size instead of direct member access.
9412         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
9413         (inuse_bit_at_offset, set_inuse_bit_at_offset)
9414         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
9415         (mchunk_prev_size, mchunk_size): Poison tokens.
9416         (unlink): Use chunksize_nomask, prev_size accessors.
9417         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
9418         (do_check_free_chunk): Use prev_size accessor.
9419         (sysmalloc): Use set_prev_size, set_head accessors.
9420         (munmap_chunk, mremap_chunk): Use prev_size accessor.
9421         (__libc_free): Use chunksize_nomask accessor.
9422         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
9423         chunk_main_arena accessors.
9424         (_int_free): Use chunksize_nomask, prev_size accessors.
9425         (malloc_consolidate): Use chunksize, prev_size accessors.
9426         (_int_realloc): Use chunksize_nomask accessor.
9427         (_int_memalign): Use set_prev_size accessor.
9428         (__malloc_info): Use chunksize_nomask accessor.
9429         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
9430         accessors.
9431         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
9432         (heap_trim): Use chunksize_nomask, prev_size accessors.
9433
9434 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9435
9436         [BZ #19380]
9437         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
9438         for inexact results.
9439         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
9440         of inexact result where mpfr_subnormalize is the only inexact
9441         step.
9442         * stdlib/tst-strtod-round-data.h: Regenerated.
9443         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
9444         Define to 0.
9445         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
9446
9447 2016-10-27  David S. Miller  <davem@davemloft.net>
9448
9449         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
9450
9451 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9452
9453         * malloc/malloc.c (do_set_mallopt_check): New function.
9454         (do_set_mmap_threshold): Likewise.
9455         (do_set_mmaps_max): Likewise.
9456         (do_set_top_pad): Likewise.
9457         (do_set_perturb_byte): Likewise.
9458         (do_set_trim_threshold): Likewise.
9459         (do_set_arena_max): Likewise.
9460         (do_set_arena_test): Likewise.
9461         (__libc_mallopt): Use them.
9462
9463 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
9464
9465         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9466         (canonicalize): New declaration.
9467         * math/Versions (canonicalize): New libm symbol at version
9468         GLIBC_2.25.
9469         (canonicalizef): Likewise.
9470         (canonicalizel): Likewise.
9471         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
9472         * math/s_canonicalize_template.c: New file.
9473         * math/libm-test.inc: Update comment on functions tested and
9474         testing of NaN payloads.
9475         (TEST_NAN_PAYLOAD): New macro.
9476         (NO_TEST_INLINE): Update value.
9477         (XFAIL_TEST): Likewise.
9478         (ERRNO_UNCHANGED): Likewise.
9479         (ERRNO_EDOM): Likewise.
9480         (ERRNO_ERANGE): Likewise.
9481         (IGNORE_RESULT): Likewise.
9482         (NON_FINITE): Likewise.
9483         (TEST_SNAN): Likewise.
9484         (NO_TEST_MATHVEC): Likewise.
9485         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
9486         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
9487         (struct test_Ffp_b1_data): New type.
9488         (RUN_TEST_Ffp_b1): New macro.
9489         (RUN_TEST_LOOP_Ffp_b1): Likewise.
9490         (canonicalize_test_data): New array.
9491         (canonicalize_test): New function.
9492         (main): Call canonicalize_test.
9493         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
9494         canonicalizef and canonicalizel.
9495         * manual/libm-err-tab.pl: Update comment on interfaces without
9496         ulps tabulated.
9497         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
9498         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
9499         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9500         canonicalize.
9501         (CFLAGS-nldbl-canonicalize.c): New variable.
9502         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
9503         to ...
9504         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
9505         ... here.
9506         (do_test): Also test canonicalizel.
9507         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
9508         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
9509         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
9510         file.
9511         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
9512         Use libm_hidden_def.
9513         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
9514         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
9515         (do_test): Also test canonicalizel.
9516         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
9517         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
9518         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
9519         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
9520         libm_hidden_def.
9521         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
9522         macro.
9523         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
9524         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
9525         * sysdeps/nacl/libm.abilist: Update.
9526         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9527         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9528         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9529         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9530         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9531         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9532         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9533         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9534         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9535         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9536         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9537         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9539         Likewise.
9540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9541         Likewise.
9542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9543         Likewise.
9544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9545         Likewise.
9546         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9547         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9548         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9549         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9550         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9552         Likewise.
9553         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9554         Likewise.
9555         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9556         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9557         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9558
9559         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
9560         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9561         getpayload.
9562         (CFLAGS-nldbl-getpayload.c): New variable.
9563
9564 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9565
9566         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
9567         integer from the format string.
9568
9569 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9570
9571         [BZ #19473]
9572         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
9573         declarations.
9574         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
9575         weak aliases.
9576         * malloc/hooks.c (__malloc_get_state): Remove definition.
9577         (malloc_get_state): New stub implementation as
9578         compatibility symbol.
9579         (malloc_set_state): Rename from __malloc_set_state.  Turn into
9580         compat symbol.
9581         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
9582         malloc_set_state.
9583         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
9584
9585 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9586
9587         * iconvdata/iso646.c (enum variant): Drop illegal_var.
9588         (names): Turn into concatenation of strings.
9589         (gconv_init): Adapt iteration over names.
9590
9591 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9592
9593         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
9594         make const.
9595         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
9596         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
9597         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
9598         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
9599         character in sbconv.
9600         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
9601         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
9602         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
9603
9604 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9605
9606         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
9607
9608         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
9609         (M_TRIM_THRESHOLD): Likewise.
9610
9611         * manual/memory.texi (M_ARENA_TEST): Add documentation.
9612         (M_ARENA_MAX): Likewise.
9613         * malloc/malloc.c: Remove obsolete comment.
9614
9615         * manual/memory.texi: Add environment variable alternatives to
9616         setting mallopt parameters.
9617
9618 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
9619
9620         * include/atomic.h
9621         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
9622         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
9623
9624 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9625
9626         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
9627         * stdlib/tst-strfrom.h: New file.
9628         * stdlib/tst-strfrom.c: New file.
9629         * stdlib/tst-strfrom-locale.c: New file.
9630
9631         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
9632         * stdlib/bug-strtod2.c: Likewise.
9633         * stdlib/tst-strtod-round-skeleton.c: Likewise.
9634         * stdlib/tst-strtod6.c: Likewise.
9635         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
9636
9637 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9638
9639         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
9640         * manual/arith.texi: Document strfromd, strfromf, strfroml.
9641         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
9642         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
9643         * stdlib/stdlib.h (strfromd): New declaration.
9644         (strfromf): Likewise.
9645         (strfroml): Likewise.
9646         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
9647         strfrom.
9648         * stdlib/strfromd.c: New file.
9649         * stdlib/strfromf.c: Likewise.
9650         * stdlib/strfroml.c: Likewise.
9651         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
9652         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
9653         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
9654         * sysdeps/arm/nacl/libc.abilist: Update.
9655         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
9656         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9657         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9658         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9659         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9660         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9661         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9662         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9663         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9664         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9665         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9666         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9667         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9668         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
9670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9673         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9674         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9675         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9676         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9677         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9678         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9680         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9681         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9682         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9683
9684 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
9685
9686         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
9687         instead of cmpli.
9688         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
9689         instead of cmpli.
9690
9691 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
9692
9693         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
9694         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
9695         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
9696         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
9697         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
9698         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
9699
9700 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9701
9702         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
9703         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
9704         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
9705         SYSCALL_LL64_PRW.
9706         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
9707         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
9708         __ASSUME_PRW_DUMMY_ARG.
9709         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
9710         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9711         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
9712         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9713         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
9714         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
9715
9716 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
9717
9718         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
9719
9720 2016-10-22  Florian Weimer  <fweimer@redhat.com>
9721
9722         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
9723         "C++", to override a potential extern "C" directive around the
9724         header file inclusion.
9725
9726 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
9727
9728         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
9729
9730 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9731
9732         * sysdeps/powerpc/fpu/fenv_private.h:
9733         (_FPU_MASK_ALL): Rename to...
9734         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
9735         XE FPSCR bits.
9736
9737         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
9738
9739         (_FPU_MASK_ROUNDING): Rename to...
9740         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
9741         NI bits.
9742
9743         (_FPU_MASK_EXCEPT_ROUND): Rename to...
9744         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
9745         bits and rounding bits.
9746
9747         (__libc_feholdbits_ppc): New inline function to mask, set,
9748         and pontentially clear FSPCR bits, and change MSR[FE] bits.
9749         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
9750         (libc_feholdexcept_setround_ppc): Likewise.
9751
9752         (__libc_femergeenv_ppc): New function to dynamically mask both
9753         old and new FP environments and merge.
9754         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
9755         (libc_feresetround_ppc): Likewise.
9756         (libc_feupdateenv_test_ppc): Likewise.
9757         (libc_feupdateenv_ppc): Likewise.
9758
9759         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
9760         of ISA RN bits, and update macro names.
9761         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
9762         effectively the same as the previously mentioned function.
9763
9764         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
9765         usage with fe_resetround_ppc.
9766
9767         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
9768         to be used.
9769         (libc_feholdexcept_setround_ctxf): Likewise.
9770         (libc_feholdexcept_setround_ctxl): Likewise.
9771
9772 2016-10-21  Florian Weimer  <fweimer@redhat.com>
9773
9774         [BZ #20715]
9775         * math/math.h [__cplusplus] (iszero): Define as function template.
9776         * math/Makefile [CXX] (tests): Add test-math-iszero.
9777         (CFLAGS-test-math-iszero.cc): Set.
9778         * math/test-math-iszero.cc: New file.
9779
9780 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
9781
9782         [BZ #20660]
9783         * sysdeps/arm/e_sqrt.c: New file.
9784         * sysdeps/arm/e_sqrtf.c: Likewise.
9785
9786 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
9787
9788         [BZ #20718]
9789         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
9790         not use floating-point comparisons to test sign.
9791         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
9792         Likewise.
9793
9794         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9795         (getpayload): New declaration.
9796         * math/Versions (getpayload): New libm symbol at version
9797         GLIBC_2.25.
9798         (getpayloadf): Likewise.
9799         (getpayloadl): Likewise.
9800         * math/Makefile (libm-calls): Add s_getpayloadF.
9801         * math/libm-test.inc: Include <nan-high-order-bit.h>.
9802         (struct test_f_f_data): Add comment.
9803         (RUN_TEST_fp_f): New macro.
9804         (RUN_TEST_LOOP_fp_f): Likewise.
9805         (getpayload_test_data): New array.
9806         (getpayload_test): New function.
9807         (main): Call getpayload_test.
9808         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
9809         descriptor.
9810         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
9811         getpayloadf and getpayloadl.
9812         * manual/libm-err-tab.pl: Update comment on interfaces without
9813         ulps tabulated.
9814         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
9815         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
9816         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
9817         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
9818         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
9820         * sysdeps/nacl/libm.abilist: Update.
9821         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9822         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9823         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9824         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9825         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9826         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9827         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9828         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9829         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9830         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9831         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9832         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9834         Likewise.
9835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9836         Likewise.
9837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9838         Likewise.
9839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9840         Likewise.
9841         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9842         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9843         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9844         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9845         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9846         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9847         Likewise.
9848         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9849         Likewise.
9850         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9851         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9852         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9853
9854 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9855
9856         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
9857         tst-fallocate{64}.
9858         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
9859         on syscall return.
9860
9861 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
9862
9863         [BZ #20689]
9864         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
9865         usable.
9866
9867 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
9868
9869         * sysdeps/generic/nan-high-order-bit.h: New file.
9870         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
9871         * sysdeps/mips/nan-high-order-bit.h: Likewise.
9872         * sysdeps/hppa/math_private.h: Remove file.
9873         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
9874         not define here.
9875         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
9876         <nan-high-order-bit.h>.
9877         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9878         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
9879         <nan-high-order-bit.h>.
9880         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9881         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
9882         <nan-high-order-bit.h>.
9883         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9884         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
9885         <nan-high-order-bit.h>.
9886         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9887         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
9888         <nan-high-order-bit.h>.
9889         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9890         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
9891         <nan-high-order-bit.h>.
9892         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9893         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
9894         <nan-high-order-bit.h>.
9895         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9896         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
9897         <nan-high-order-bit.h>.
9898         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9899         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
9900         <nan-high-order-bit.h>.
9901         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9902         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
9903         <nan-high-order-bit.h>.
9904         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9905         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
9906         <nan-high-order-bit.h>.
9907         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9908         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
9909         <nan-high-order-bit.h>.
9910         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9911         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
9912         <nan-high-order-bit.h>.
9913         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9914         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
9915         <nan-high-order-bit.h>.
9916         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9917         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
9918         <nan-high-order-bit.h>.
9919         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9920         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
9921         <nan-high-order-bit.h>.
9922         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9923         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
9924         <nan-high-order-bit.h>.
9925         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9926         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
9927         <nan-high-order-bit.h>.
9928         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9929
9930 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
9931
9932         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
9933
9934 2016-09-22  John David Anglin  <dave.anglin@bell.net>
9935
9936         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
9937         abort-instr.h.
9938         (EFAULT): Remove conditional define.
9939         (ENOSYS): Likewise.
9940         (atomic_compare_and_exchange_val_acq): Use instruction nullification
9941         instead of conditional branch instructions.
9942
9943 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
9944
9945         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9946         (totalordermag): New declaration.
9947         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
9948         New macro.
9949         * math/Versions (totalordermag): New libm symbol at version
9950         GLIBC_2.25.
9951         (totalordermagf): Likewise.
9952         (totalordermagl): Likewise.
9953         * math/Makefile (libm-calls): Add s_totalordermagF.
9954         * math/libm-test.inc (totalordermag_test_data): New array.
9955         (totalordermag_test): New function.
9956         (main): Call totalordermag_test.
9957         * math/test-tgmath.c (NCALLS): Increase to 125.
9958         (F(compile_test)): Call totalordermag.
9959         (F(totalordermag)): New function.
9960         * manual/arith.texi (FP Comparison Functions): Document
9961         totalordermag, totalordermagf and totalordermagl.
9962         * manual/libm-err-tab.pl: Update comment on interfaces without
9963         ulps tabulated.
9964         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
9965         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
9966         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
9967         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
9968         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
9969         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
9970         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
9971         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9972         totalordermag.
9973         (CFLAGS-nldbl-totalordermag.c): New variable.
9974         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
9975         (do_test): Also test totalordermagl.
9976         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
9977         Likewise.
9978         * sysdeps/nacl/libm.abilist: Update.
9979         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9980         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9981         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9982         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9983         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9984         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9985         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9986         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9987         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9988         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9989         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9990         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9992         Likewise.
9993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9994         Likewise.
9995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9996         Likewise.
9997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9998         Likewise.
9999         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10000         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10001         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10002         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10003         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10004         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10005         Likewise.
10006         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10007         Likewise.
10008         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10009         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10010         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10011
10012 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
10013
10014         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
10015         boolean.
10016
10017 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
10018
10019         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
10020         raising FE_INVALID with feraisexcept in case where part of
10021         argument is infinite, subtract that part of argument from itself.
10022         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
10023         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
10024         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10025
10026 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
10027
10028         * math/libm-test.inc (totalorder_test_data): Add more tests.
10029
10030 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
10031
10032         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
10033         Undefine weak_alias and add a comment why mips64 require
10034         versioning.
10035
10036 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10037
10038         [BZ #20647]
10039         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
10040         maximum CPUID level is less than 2.
10041
10042 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
10043
10044         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10045         (totalorder): New declaration.
10046         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
10047         New macro.
10048         * math/Versions (totalorder): New libm symbol at version
10049         GLIBC_2.25.
10050         (totalorderf): Likewise.
10051         (totalorderl): Likewise.
10052         * math/Makefile (libm-calls): Add s_totalorderF.
10053         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
10054         string.
10055         * math/libm-test.inc (PAYLOAD_DIG): New macro.
10056         (qnan_value_pl): Likewise.
10057         (snan_value_pl): Likewise.
10058         (qnan_value): Define using qnan_value_pl.
10059         (snan_value): Define using snan_value_pl.
10060         (struct test_ff_i_data): Add comment about which tests use this
10061         structure.
10062         (RUN_TEST_ff_b): New macro.
10063         (RUN_TEST_LOOP_ff_b): Likewise.
10064         (totalorder_test_data): New array.
10065         (totalorder_test): New function.
10066         (main): Call totalorder_test.
10067         * math/test-tgmath.c (NCALLS): Increase to 122.
10068         (F(compile_test)): Call totalorder.
10069         (F(totalorder)): New function.
10070         * manual/arith.texi (FP Comparison Functions): Document
10071         totalorder, totalorderf and totalorderl.
10072         * manual/libm-err-tab.pl: Update comment on interfaces without
10073         ulps tabulated.
10074         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
10075         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
10076         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
10077         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
10078         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
10079         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
10080         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
10081         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10082         totalorder.
10083         (CFLAGS-nldbl-totalorder.c): New variable.
10084         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
10085         file.
10086         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
10087         Add test-totalorderl-ldbl-128ibm.
10088         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
10089         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
10090         test-totalorderl-ldbl-96.
10091         * sysdeps/nacl/libm.abilist: Update.
10092         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10093         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10094         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10095         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10096         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10097         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10098         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10099         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10100         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10101         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10102         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10103         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10105         Likewise.
10106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10107         Likewise.
10108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10109         Likewise.
10110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10111         Likewise.
10112         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10113         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10114         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10115         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10116         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10118         Likewise.
10119         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10120         Likewise.
10121         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10122         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10123         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10124
10125 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10126
10127         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
10128         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
10129         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
10130         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
10131         remove ENOSYS implementation.
10132         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
10133         Consolidate all Linux implementations.
10134
10135 2016-10-11  Florian Weimer  <fweimer@redhat.com>
10136
10137         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
10138         * resolv/herror.c (herror): Cast away const-ness.
10139         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
10140         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
10141
10142 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
10143
10144         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
10145         instead of M_NAN + M_NAN.
10146         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10147
10148 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10149
10150         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
10151         unused variable 'p'.
10152
10153 2016-10-09  Alan Modra  <amodra@gmail.com>
10154             Andreas Schwab  <schwab@linux-m68k.org>
10155
10156         [BZ #20554]
10157         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
10158         [PIC && !SHARED]: Set up PIC register for PLT call.
10159
10160 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
10161
10162         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
10163         conditional on value of [__FLT_EVAL_METHOD__].
10164         * math/test-iseqsig-excess-precision.c: New file.
10165         * math/Makefile (tests): Add test-iseqsig-excess-precision.
10166
10167 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10168
10169         * math/s_iseqsig_template.c: Include math-private.h.
10170
10171         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
10172         * posix/tst-posix_fadvise.c: New file.
10173         * posix/tst-posix_fadvise64.c: Likewise.
10174         * posix/tst-posix_fadvise-common.c: Likewise.
10175         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10176         (__ASSUME_FADVISE64_64_6ARG): Define.
10177         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10178         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
10179         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10180         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
10181         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
10182         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
10183         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
10184         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
10185         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
10186         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
10187         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
10188         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
10189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
10190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
10191         Likewise.
10192         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
10193         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
10194         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
10195         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10196         Alias to __posix_fadvise64_l32.
10197         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
10198         Add compat definition to posix_fadvise64.
10199         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10200         Add versioned definition to posix_fadvise64.
10201         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
10202         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
10203         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
10204         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
10205         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
10206
10207         * io/Makefile (tests): Add tst-posix_fallocate and
10208         tst-posix_fallocate64.
10209         * io/tst-posix_fallocate-common.c: New file.
10210         * io/tst-posix_fallocate.c: Likewise.
10211         * io/tst-posix_fallocate64.c: Likewise.
10212         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
10213         file.
10214         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
10215         Likewise.
10216         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
10217         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
10218         Likewise.
10219         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
10220         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
10221         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
10222         SYSCALL_LL to pass both offset and len arguments.
10223         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
10224         Likewise.
10225         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
10226         __libc_pwrite64 alias used by posix_fallocate64.
10227
10228         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10229         tst-fallocate64.
10230         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10231         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10232         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10233         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10234         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10235         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10236         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10237         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10238         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10239         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10240         macro on offset argument.
10241         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10242         SYSCALL_LL64 on offset argument.
10243
10244         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10245         tst-fallocate64.
10246         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10247         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10248         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10249         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10250         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10251         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10252         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10253         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10254         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10255         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10256         macro on offset argument.
10257         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10258         SYSCALL_LL64 on offset argument.
10259         * test-skeleton.c (FAIL_RET): Add macro.
10260         (FAIL_EXIT): Likewise.
10261         (FAIL_EXIT1): Likewise.
10262         (_FAIL): Likewise.
10263
10264 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10265
10266         [BZ #20629]
10267         resolv: Remove RES_USEBSTRING and its implementation.
10268         * resolv/resolv.h (RES_USEBSTRING): Remove.
10269         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
10270         (digitvalue, encode_bitstring, decode_bitstring): Remove.
10271         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
10272         (labellen): Remove extended label types support.
10273         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
10274         * resolv/res_init.c (res_setoptions): Likewise.
10275         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10276
10277 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10278
10279         resolv: Remove RES_NOIP6DOTINT and its implementation.
10280         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
10281         (RES_NOIP6DOTINT): Remove.
10282         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
10283         handling.
10284         * resolv/res_debug.c (p_option): Likewise.
10285         * resolv/res_init.c (res_setoptions): Likewise.
10286         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10287
10288 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10289
10290         resolv: Deprecate unimplemented flags.
10291         * misc/sys/cdefs.h (__glibc_macro_warning1)
10292         (__glibc_macro_warning): Define.
10293         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
10294         (RES_KEEPTSIG): Mark as deprecated.
10295         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
10296         RES_NOCHECKNAME, RES_KEEPTSIG.
10297         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
10298
10299 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10300
10301         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
10302         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
10303         Use strong_alias to create symbols for glibc verison 2.19.
10304
10305 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10306
10307         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
10308
10309 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10310
10311         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
10312
10313 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10314
10315         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
10316
10317 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10318
10319         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10320         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
10321         in header for using it as type for ifunc function because __GI_* symbols
10322         for ppc32 do not target the ifunc symbols.
10323         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10324
10325 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10326
10327         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10328         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
10329         libc_ifunc_hidden_def.
10330         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
10331         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
10332         Redirect ifunced function in header for using it as type of ifunc'ed
10333         function. Redefine libc_hidden_def to use fallback non ifunc'ed
10334         function for __GI_* symbol.
10335         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
10336         * include/libc-symbols.h
10337         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
10338
10339 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10340
10341         [BZ #20478]
10342         * sysdeps/s390/multiarch/ifunc-resolve.h
10343         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
10344         to create ifunc symbols.
10345         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
10346         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
10347         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
10348         for using it as type for ifunc function.
10349         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
10350         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
10351         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
10352         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
10353         * sysdeps/s390/multiarch/strcat.c: Likewise.
10354         * sysdeps/s390/multiarch/strchr.c: Likewise.
10355         * sysdeps/s390/multiarch/strcmp.c: Likewise.
10356         * sysdeps/s390/multiarch/strcpy.c: Likewise.
10357         * sysdeps/s390/multiarch/strcspn.c: Likewise.
10358         * sysdeps/s390/multiarch/strlen.c: Likewise.
10359         * sysdeps/s390/multiarch/strncmp.c: Likewise.
10360         * sysdeps/s390/multiarch/strncpy.c: Likewise.
10361         * sysdeps/s390/multiarch/strnlen.c: Likewise.
10362         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
10363         * sysdeps/s390/multiarch/strrchr.c: Likewise.
10364         * sysdeps/s390/multiarch/strspn.c: Likewise.
10365         * sysdeps/s390/multiarch/wcschr.c: Likewise.
10366         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
10367         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
10368         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
10369         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
10370         * sysdeps/s390/multiarch/wmemset.c: Likewise.
10371         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10372         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
10373         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
10374         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10375         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
10376         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
10377
10378 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10379
10380         * include/libc-symbols.h (__ifunc_resolver):
10381         New macro is used by __ifunc* macros.
10382         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
10383         depending on HAVE_GCC_IFUNC.
10384         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
10385         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
10386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
10387         Redirect ifunced function in header for using as type for ifunc function.
10388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
10389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
10390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
10391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
10392         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
10393         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
10394         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
10395         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
10396         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
10397         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
10398         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
10399         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
10400         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
10401         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
10402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
10403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
10404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
10405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
10406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
10407         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
10408         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
10409         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
10410         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
10411         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
10412         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
10413         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
10414         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
10415         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
10416         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
10417         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
10418         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
10419         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
10420         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
10421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
10422         Add libc_hidden_def() and use libc_ifunc_hidden() macro
10423         instead of libc_ifunc() macro.
10424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
10425         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
10426
10427 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10428
10429         * config.h.in (HAVE_GCC_IFUNC): New undef.
10430         * configure.ac: Add check if gcc supports attribute ifunc feature.
10431         * configure: Regenerated.
10432         * manual/install.texi: Add recommendation for gcc with
10433         indirect-function support.
10434         * INSTALL: Regenerated.
10435
10436 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
10439         macro.
10440         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10441         (__iseqsig): New declaration.
10442         * math/s_iseqsig_template.c: New file.
10443         * math/Versions (__iseqsigf): New libm symbol at version
10444         GLIBC_2.25.
10445         (__iseqsig): Likewise.
10446         (__iseqsigl): Likewise.
10447         * math/libm-test.inc (iseqsig_test_data): New array.
10448         (iseqsig_test): New function.
10449         (main): Call iseqsig_test.
10450         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
10451         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
10452         * manual/libm-err-tab.pl: Update comment on interfaces without
10453         ulps tabulated.
10454         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
10455         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
10456         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
10457         * sysdeps/nacl/libm.abilist: Update.
10458         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10459         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10460         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10461         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10462         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10463         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10464         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10465         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10466         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10467         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10468         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10469         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10471         Likewise.
10472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10473         Likewise.
10474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10475         Likewise.
10476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10477         Likewise.
10478         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10479         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10480         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10481         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10482         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10483         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10484         Likewise.
10485         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10486         Likewise.
10487         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10488         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10489         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10490
10491 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10492
10493         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
10494         do_sincos_2, sloww, sloww1): Update comments.
10495
10496         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
10497         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
10498
10499         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10500         K boolean and rename it.
10501         (__sin): Adjust.
10502         (__cos): Adjust.
10503
10504 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10505             Siddhesh Poyarekar  <siddhesh@sourceware.org>
10506
10507         * manual/nss.texi: Fix typos in the manual.
10508
10509 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10510
10511         * manual/contrib.texi: Fix typos in the manual.
10512
10513         * manual/maint.texi: Fix typos in the manual.
10514
10515         * manual/install.texi: Fix typos in the manual.
10516         * INSTALL: Regenerated.
10517
10518         * manual/lang.texi: Fix typos in the manual.
10519
10520         * manual/probes.texi: Fix typos in the manual.
10521
10522         * manual/threads.texi: Fix typos in the manual.
10523
10524         * manual/debug.texi: Fix typos in the manual.
10525
10526         * manual/crypt.texi: Fix typos in the manual.
10527
10528         * manual/conf.texi: Fix typos in the manual.
10529
10530         * manual/sysinfo.texi: Fix typos in the manual.
10531
10532         * manual/users.texi: Fix typos in the manual.
10533
10534         * manual/job.texi: Fix typos in the manual.
10535
10536         * manual/process.texi: Fix typos in the manual.
10537
10538         * manual/argp.texi: Fix typos in the manual.
10539         * manual/getopt.texi: Likewise.
10540         * manual/startup.texi: Likewise.
10541
10542         * manual/signal.texi: Fix typos in the manual.
10543
10544         * manual/setjmp.texi: Fix typos in the manual.
10545
10546         * manual/resource.texi: Fix typos in the manual.
10547
10548         * manual/time.texi: Fix typos in the manual.
10549
10550         * manual/arith.texi: Fix typos in the manual.
10551
10552         * manual/math.texi: Fix typos in the manual.
10553
10554         * manual/syslog.texi: Fix typos in the manual.
10555
10556         * manual/terminal.texi: Fix typos in the manual.
10557
10558         * manual/socket.texi: Fix typos in the manual.
10559
10560         * manual/filesys.texi: Fix typos in the manual.
10561
10562         * manual/llio.texi: Fix typos in the manual.
10563
10564         * manual/stdio.text: Fix typos in the manual.
10565
10566 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10567
10568         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
10569         instead of K1.
10570
10571         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
10572         SHIFT_QUADRANT and make it bool.
10573         (do_sincos_2): Likewise.
10574         (sloww): Likewise.
10575         (sloww1): Likewise.
10576         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
10577         (__cos): Likewise.
10578
10579 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10580
10581         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10582
10583 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
10584
10585         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
10586         Define to __WORDSIZE, not conditional on [LONG_MAX ==
10587         0x7fffffffL].
10588         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
10589
10590 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10591
10592         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
10593         inline by __inline__.
10594         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
10595         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
10596         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
10597         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
10598         sigset_t from signal.h.
10599         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
10600         which is already required.
10601
10602 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
10603
10604         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10605
10606 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
10607
10608         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
10609         (struct tcp_repair_window): New type.
10610
10611 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10612
10613         * libio/tst-memstream3.c: Include string.h.
10614
10615 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10616
10617         [BZ #18241]
10618         [BZ #20181]
10619         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
10620         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
10621         write position is at the end the buffer.
10622         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
10623         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
10624         (_IO_str_seekoff): Set correct offset from negative displacement and
10625         set EINVAL for invalid ones.
10626         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
10627         buffer length.
10628         (_IO_wstr_switch_to_get_mode): New function.
10629         (_IO_wstr_seekoff): Set correct offset from negative displacement and
10630         set EINVAL for invalid ones.
10631         * libio/tst-memstream3.c: New file.
10632         * libio/tst-wmemstream3.c: Likewise.
10633         * manual/examples/memstrm.c: Remove warning when priting size_t.
10634
10635 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10636
10637         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
10638         macro to use __builtin_fma.
10639         * sysdeps/x86_64/fpu/dla.h: Remove file.
10640
10641         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
10642         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
10643         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
10644
10645 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
10646
10647         [BZ #20292]
10648         * elf/Makefile (routines): Add dl-addr-obj.
10649         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
10650         tst-_dl_addr_inside_object.
10651         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
10652         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10653         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
10654         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10655         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
10656         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
10657         * elf/dl-open.c: Likewise.
10658         * elf/dl-addr-obj.c: New file.
10659         * elf/tst-_dl_addr_inside_object.c: New file.
10660
10661 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10662
10663         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
10664         <bits/iscanonical.h>.
10665         * bits/iscanonical.h: New file.
10666         * math/s_iscanonicall.c: Likewise.
10667         * math/Versions (__iscanonicall): New libm symbol at version
10668         GLIBC_2.25.
10669         * math/libm-test.inc (iscanonical_test_data): New array.
10670         (iscanonical_test): New function.
10671         (main): Call iscanonical_test.
10672         * math/Makefile (headers): Add bits/iscanonical.h.
10673         (type-ldouble-routines): Add s_iscanonicall.
10674         * manual/arith.texi (Floating Point Classes): Document
10675         iscanonical.
10676         * manual/libm-err-tab.pl: Update comment on interfaces without
10677         ulps tabulated.
10678         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
10679         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
10680         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
10681         Likewise.
10682         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10683         test-iscanonical-ldbl-128ibm.
10684         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
10685         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
10686         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
10687         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
10688         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10689         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10690         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10692         Likewise.
10693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10694         Likewise.
10695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10696         Likewise.
10697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10698         Likewise.
10699         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10700         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10701
10702 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10703
10704         * string/bits/string3.h: Remove C++ style comments.
10705
10706 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10707
10708         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
10709         instead of ternary condition.
10710         (do_sincos_2): Likewise.
10711         (__sin): Likewise.
10712         (__cos): Likewise.
10713         (slow): Likewise.
10714         (sloww): Likewise.
10715         (sloww1): Likewise.
10716         (bsloww): Likewise.
10717         (bsloww1): Likewise.
10718
10719         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
10720         instead of ternary condition.
10721         (do_sin_slow): Likewise.
10722         (do_sincos_1): Likewise.
10723         (do_sincos_2): Likewise.
10724         (__cos): Likewise.
10725         (sloww): Likewise.
10726         (sloww1): Likewise.
10727         (sloww2): Likewise.
10728         (bsloww): Likewise.
10729         (bsloww1): Likewise.
10730         (bsloww2): Likewise.
10731
10732         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
10733         check from here...
10734         (slow2): ... and here...
10735         (__sin): ... to here.
10736
10737 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
10738
10739         * math/math.h
10740         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
10741         Cast argument to its own type.
10742         * math/test-iszero-excess-precision.c: New file.
10743         * math/Makefile (tests): Add test-iszero-excess-precision.
10744         (CFLAGS-test-iszero-excess-precision.c): New variable.
10745
10746 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
10747
10748         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
10749         field, add err field.
10750         (__spawni_child): Report error through err member instead of pipe.
10751         (__spawnix): Likewise.
10752
10753 2016-09-28  Zack Weinberg  <zackw@panix.com>
10754
10755         * scripts/check-installed-headers.sh: Generalize treatment of
10756         sys/elf.h to all target architectures.
10757
10758         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
10759         deleted typedef ucontext_t.
10760
10761 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10762
10763         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
10764         (__INTERNAL_SYSCALL1): Likewise.
10765         (__INTERNAL_SYSCALL2): Likewise.
10766         (__INTERNAL_SYSCALL3): Likewise.
10767         (__INTERNAL_SYSCALL4): Likewise.
10768         (__INTERNAL_SYSCALL5): Likewise.
10769         (__INTERNAL_SYSCALL6): Likewise.
10770         (__INTERNAL_SYSCALL7): Likewise.
10771         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
10772         (__INTERNAL_SYSCALL_NARGS): Likewise.
10773         (__INTERNAL_SYSCALL_DISP): Likewise.
10774         (INTERNAL_SYSCALL_CALL): Likewise.
10775         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
10776         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
10777         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
10778         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
10779         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
10780         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
10781         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
10782         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
10783         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
10784         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
10785         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
10786         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
10787         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
10788
10789 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
10790
10791         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
10792         macro.
10793         * math/libm-test.inc (iszero_test_data): New array.
10794         (iszero_test): New function.
10795         (main): Call iszero_test.
10796         * manual/arith.texi (Floating Point Classes): Document iszero.
10797         * manual/libm-err-tab.pl: Update comment on interfaces without
10798         ulps tabulated.
10799
10800 2016-09-23  Zack Weinberg  <zackw@panix.com>
10801
10802         * scripts/check-installed-headers.sh: New script.
10803         * Rules: In each directory that defines header files to be installed,
10804         run check-installed-headers.sh on them as a special test.
10805         * Makefile: Likewise for the headers installed at top level.
10806
10807         * include/aliases.h, include/alloca.h, include/argz.h
10808         * include/arpa/nameser.h, include/arpa/nameser_compat.h
10809         * include/elf.h, include/envz.h, include/err.h
10810         * include/execinfo.h, include/fpu_control.h, include/getopt.h
10811         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
10812         * include/link.h, include/malloc.h, include/mcheck.h
10813         * include/mntent.h, include/netinet/ether.h
10814         * include/nss.h, include/obstack.h, include/printf.h
10815         * include/pty.h, include/resolv.h, include/rpc/auth.h
10816         * include/rpc/auth_des.h, include/rpc/auth_unix.h
10817         * include/rpc/clnt.h, include/rpc/des_crypt.h
10818         * include/rpc/key_prot.h, include/rpc/netdb.h
10819         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
10820         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
10821         * include/rpc/rpc_msg.h, include/rpc/svc.h
10822         * include/rpc/svc_auth.h, include/rpc/xdr.h
10823         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
10824         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
10825         * include/rpcsvc/ypupd.h, include/shadow.h
10826         * include/stdio_ext.h, include/sys/epoll.h
10827         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
10828         * include/sys/prctl.h, include/sys/profil.h
10829         * include/sys/statfs.h, include/sys/sysctl.h
10830         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
10831         * sysdeps/arm/nacl/include/bits/setjmp.h
10832         * sysdeps/mips/include/sys/asm.h
10833         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
10834         * sysdeps/unix/sysv/linux/include/sys/timex.h
10835         * sysdeps/x86/fpu/include/bits/fenv.h:
10836         Add #ifndef _ISOMAC guard around internal declarations.
10837         Add multiple-inclusion guard if not already present.
10838
10839 2016-09-23  Zack Weinberg  <zackw@panix.com>
10840
10841         * sysdeps/generic/sys/ucontext.h
10842         * sysdeps/arm/sys/ucontext.h
10843         * sysdeps/i386/sys/ucontext.h
10844         * sysdeps/m68k/sys/ucontext.h
10845         * sysdeps/mips/sys/ucontext.h
10846         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
10847         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
10848         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
10849         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
10850         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
10851         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
10852         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
10853         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
10854         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
10855         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
10856         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
10857         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
10858         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
10859         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
10860         Include both bits/sigcontext.h and bits/sigstack.h.
10861         Fix grammar error in comment, if present.
10862
10863         * bits/sigstack.h
10864         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
10865         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
10866         * sysdeps/unix/sysv/linux/bits/sigstack.h
10867         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
10868         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
10869         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
10870         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
10871         * bits/sigcontext.h
10872         * sysdeps/mach/hurd/i386/bits/sigcontext.h
10873         * sysdeps/unix/sysv/linux/bits/sigcontext.h
10874         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
10875         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
10876         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
10877         as well as signal.h, if this was not already allowed.  Request
10878         definition of size_t if necessary.  Minimize semantically-null
10879         differences across files.
10880
10881 2016-09-23  Zack Weinberg  <zackw@panix.com>
10882
10883         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
10884         Remove all logic conditional on __need macros.  Move all the
10885         conditionally defined types to their own headers...
10886         * time/bits/types/clock_t.h: Define clock_t here.
10887         * time/bits/types/clockid_t.h: Define clockid_t here.
10888         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
10889         * time/bits/types/struct_timespec.h: Define struct timespec here.
10890         * time/bits/types/struct_timeval.h: Define struct timeval here.
10891         * time/bits/types/struct_tm.h: Define struct tm here.
10892         * time/bits/types/time_t.h: Define time_t here.
10893         * time/bits/types/timer_t.h: Define timer_t here.
10894         * time/Makefile: Install the new headers.
10895
10896         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
10897         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
10898         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
10899         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
10900         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
10901         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
10902         * sysdeps/unix/sysv/linux/bits/resource.h
10903         * sysdeps/unix/sysv/linux/bits/timex.h
10904         * sysdeps/unix/sysv/linux/mips/bits/resource.h
10905         * sysdeps/unix/sysv/linux/net/ppp_defs.h
10906         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
10907         * sysdeps/unix/sysv/linux/sys/acct.h
10908         * sysdeps/unix/sysv/linux/sys/timerfd.h
10909         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
10910         * time/sys/time.h, time/sys/timeb.h
10911         Use the new bits/types headers.
10912
10913         * include/time.h: Remove __need logic.
10914         * include/bits/time.h
10915         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
10916         * include/bits/types/time_t.h, include/bits/types/timer_t.h
10917         * include/bits/types/struct_itimerspec.h
10918         * include/bits/types/struct_timespec.h
10919         * include/bits/types/struct_timeval.h
10920         * include/bits/types/struct_tm.h:
10921         New wrapper headers.
10922
10923 2016-09-23  Zack Weinberg  <zackw@panix.com>
10924
10925         * sysdeps/mach/hurd/net/if_ppp.h
10926         * sysdeps/unix/sysv/linux/net/if_ppp.h:
10927         Only define struct ifpppstatsreq and struct ifpppcstatsreq
10928         if __USE_MISC is defined, to ensure struct ifreq is declared.
10929
10930         * inet/netinet/ether.h: Condition all function prototypes
10931         on __USE_MISC, to ensure struct ether_addr is declared.
10932
10933         * socket/bits/types/struct_osockaddr.h: New header.
10934         * include/bits/types/struct_osockaddr.h: New wrapper.
10935         * socket/Makefile: Install the new header.
10936         * socket/sys/socket.h, inet/protocols/talkd.h:
10937         Refer to bits/types/struct_osockaddr.h for the definition of
10938         struct osockaddr.
10939
10940 2016-09-23  Zack Weinberg  <zackw@panix.com>
10941
10942         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
10943         * inet/protocols/routed.h, inet/protocols/talkd.h
10944         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
10945         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
10946         * sysdeps/generic/netinet/if_ether.h
10947         * sysdeps/generic/netinet/in_systm.h
10948         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
10949         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10950         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
10951         * sysdeps/mach/hurd/net/if_arp.h
10952         * sysdeps/mach/hurd/net/if_ppp.h
10953         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
10954         * sysdeps/unix/sysv/linux/bits/in.h
10955         * sysdeps/unix/sysv/linux/net/ethernet.h
10956         * sysdeps/unix/sysv/linux/net/if_arp.h
10957         * sysdeps/unix/sysv/linux/net/if_ppp.h
10958         * sysdeps/unix/sysv/linux/net/if_shaper.h
10959         * sysdeps/unix/sysv/linux/net/route.h
10960         * sysdeps/unix/sysv/linux/netinet/if_ether.h
10961         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10962         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10963         * sysdeps/unix/sysv/linux/netipx/ipx.h
10964         * sysdeps/unix/sysv/linux/sys/acct.h
10965         * include/arpa/nameser.h, include/resolv.h:
10966         Change all uses of u_char to unsigned char,
10967         u_short and ushort to unsigned short, u_int and uint to unsigned int,
10968         u_long and ulong to unsigned long, u_int8_t to uint8_t,
10969         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
10970         and u_int64_t and u_quad_t to uint64_t.
10971
10972         * mach/sys/reboot.h: Remove two casts of integer literals
10973         to the types they already have.
10974
10975         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
10976         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
10977         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
10978         from referring to 'unsigned char' to 'uint8_t' for consistency with
10979         the macro definition below.
10980
10981         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
10982         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
10983         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
10984         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
10985         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
10986         * sysdeps/unix/sysv/linux/sys/acct.h
10987         * include/arpa/nameser.h, include/resolv.h:
10988         Fix indentation disrupted by mechanical edits.
10989
10990         * inet/protocols/talkd.h, resolv/arpa/nameser.h
10991         * sysdeps/generic/netinet/in_systm.h
10992         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10993         * sysdeps/gnu/netinet/udp.h
10994         * sysdeps/unix/sysv/linux/net/ethernet.h
10995         * sysdeps/unix/sysv/linux/net/if_arp.h
10996         * sysdeps/unix/sysv/linux/net/if_ppp.h
10997         * sysdeps/unix/sysv/linux/net/if_shaper.h
10998         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10999         * sysdeps/unix/sysv/linux/netinet/if_tr.h
11000         * sysdeps/unix/sysv/linux/netipx/ipx.h
11001         * sysdeps/unix/sysv/linux/sys/acct.h
11002         Include stdint.h for uintNN_t definitions.
11003         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
11004
11005 2016-09-23  Zack Weinberg  <zackw@panix.com>
11006
11007         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
11008         * sysdeps/unix/sysv/linux/netrose/rose.h:
11009         Include sys/socket.h and netax25/ax25.h.
11010
11011         * inet/netinet/icmp6.h, inet/netinet/ip6.h
11012         * resolv/arpa/nameser_compat.h:
11013         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
11014
11015         * sysdeps/unix/sysv/linux/sys/quota.h:
11016         Use __caddr_t instead of caddr_t.
11017         * sysdeps/unix/sysv/linux/sys/timerfd.h:
11018         Use __clockid_t instead of clockid_t.
11019
11020         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
11021
11022         * argp/argp.h: Check whether _LIBC is defined before expanding it.
11023         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
11024         expanding it.
11025
11026         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
11027         Define __glibc_c99_flexarr_available to 1 when the compiler
11028         supports C99-compatible flexible array members, 0 otherwise.
11029         * sysdeps/unix/sysv/linux/bits/socket.h
11030         * sysdeps/mach/hurd/bits/socket.h
11031         * bits/socket.h: Use __glibc_c99_flexarr_available in
11032         definitions of struct cmsghdr and CMSG_DATA.
11033
11034 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11035
11036         * manual/nss.texi (NSS Modules Interface): Adjust function return
11037         type to enum nss_status.  Document errnop argument.  Clarify
11038         h_errnop semantics.  Fix cross-reference formatting.
11039         (NSS Module Function Internals): Mention that *errnop needs to be
11040         set on failure, but not to zero.
11041
11042 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11043
11044         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
11045         (get_random_name): New functions.
11046         (check_wrapper_flags_mode): Use linkat to give the new file a name
11047         determined by get_random_name.
11048         (do_test): Add calls to test open64 and openat64.
11049
11050 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11051
11052         * test-skeleton.c: Remove #include <stdarg.h>.
11053
11054 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
11055
11056         [BZ #19826]
11057         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
11058         initialization of static TLS entries.
11059         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
11060         * nptl/allocatestack.c (init_one_static_tls): Likewise.
11061
11062 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11063
11064         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
11065         _hurd_malloc_fork_prepare.
11066         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
11067         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
11068         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
11069         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
11070         (_hurd_fork_child_hook): Drop malloc_fork_child.
11071         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
11072         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
11073         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
11074         after locking locks (notably hurd_dtable_lock). Call
11075         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
11076         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
11077         __malloc_fork_unlock_child.
11078         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
11079
11080 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
11081
11082         * soft-fp/extendhftf2.c: New.
11083         * soft-fp/fixhfti.c: Likewise.
11084         * soft-fp/fixunshfti.c: Likewise.
11085         * soft-fp/floattihf.c: Likewise.
11086         * soft-fp/floatuntihf.c: Likewise.
11087         * soft-fp/half.h: Likewise.
11088         * soft-fp/trunctfhf2.c: Likewise.
11089
11090 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
11091
11092         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
11093         macro.
11094         * math/libm-test.inc (issubnormal_test_data): New array.
11095         (issubnormal_test): New function.
11096         * manual/arith.texi (Floating Point Classes): Document
11097         issubnormal.
11098         * manual/libm-err-tab.pl: Update comment on interfaces without
11099         ulps tabulated.
11100
11101         * sysdeps/generic/stdint.h: Define
11102         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11103         <bits/libc-header-start.h> instead of including <features.h>.
11104         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
11105         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
11106         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
11107         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
11108         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
11109         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
11110         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
11111         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
11112         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
11113         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
11114         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
11115         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
11116         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
11117         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
11118         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
11119         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
11120         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
11121         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
11122         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
11123         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
11124         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
11125         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
11126         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
11127         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
11128         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
11129         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
11130         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
11131         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
11132         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
11133         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
11134         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
11135         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
11136         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
11137         * manual/arith.texi (Integers): Document these macros for types
11138         specified by width properties.
11139         * manual/lang.texi (Width of Type): Document these macros for
11140         other standard typedefs.
11141         * stdlib/tst-width-stdint.c: New file.
11142         * stdlib/Makefile (tests): Add tst-width-stdint.
11143
11144 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11145
11146         [BZ #20016]
11147         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
11148         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
11149         Move ...
11150         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
11151         ... here, as compatibility symbols in a new file.
11152         * resolv/Makefile (libresolv-routines): Add compat-hooks.
11153         * resolv/res_init.c (__res_vinit): Adjust member names.
11154         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
11155         * resolv/resolv.h (res_sendhookact, res_send_qhook)
11156         (res_send_rhook): Remove.
11157         (struct __res_state): Rename qhook, rhook members.
11158
11159 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11160
11161         malloc: Use __libc_lock wrappers.
11162         * malloc/arena.c (list_lock, free_list_lock): Define using
11163         __libc_lock_define_initialized.
11164         (arena_lock): Adjust formatting.
11165         * malloc/malloc.c (struct malloc_state): Define mutex using
11166         __libc_lock_define.
11167         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
11168         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
11169         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
11170         (mutex_unlock, mutex_trylock): Remove.
11171         (__pthread_initialize): Remove unused macro.
11172         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
11173         (mutex_unlock, mutex_trylock): Remove.
11174
11175 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11176
11177         [BZ #20592]
11178         Remove RR type classification macros.
11179         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
11180         (ns_t_udp_p, ns_t_xfr_p): Remove.
11181
11182 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11183
11184         Remove misleading version information.
11185         * resolv/arpa/nameser.h (__NAMESER): Remove.
11186         * resolv/arpa/nameser_compat.h (__BIND): Remove.
11187
11188 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11189
11190         Remove the always-defined BIND_4_COMPAT macro.
11191         * resolv/arpa/nameser.h: Unconditionally include
11192         <arpa/nameser_compat.h>.
11193         (BIND_4_COMPAT): Remove.
11194         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
11195
11196 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11197
11198         [BZ #20591]
11199         Remove obsolete DNSSEC support.
11200         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
11201         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
11202         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
11203         (ns_verify_tcp, ns_verify_tcp_init): Remove.
11204         (ns_cert_types): Add comment.
11205         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
11206         separately.
11207         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
11208         (dst_s_dns_key_id): Remove.
11209         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
11210         variables.
11211
11212 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11213
11214         [BZ #20524]
11215         * manual/string.texi (String/Array Comparison): Clarify the
11216         strverscmp behavior.
11217
11218 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11219
11220         * test-skeleton.c (xasprintf): Add function.
11221         * io/tst-open-tmpfile.c: New test.
11222         * io/Makefile (tests): Add it.
11223
11224 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11225
11226         Avoid running $(CXX) during build to obtain header file paths.
11227         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
11228         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
11229         * Makerules (cstdlib, cmath): Remove variables.  Use
11230         $(c++-cstdlib-header), $(c++-cmath-header) instead.
11231         * configure: Regenerate.
11232
11233 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11234
11235         * Makeconfig (all-object-suffixes): Include .op only if
11236         $(build-profile).
11237
11238 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11239
11240         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
11241         conditionals.  Do not define PATH_MAX.
11242
11243 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11244
11245         * posix/Makefile (tests): Add tst-spawn3.
11246         * posix/tst-spawn3.c: New file.
11247         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
11248         if it is already opened for open action.
11249
11250         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
11251         all signals when executing the clone vfork child.
11252         (SIGALL_SET): Remove macro.
11253
11254         * nptl/Makefile (tests): Add tst-exec5.
11255         * nptl/tst-exec5.c: New file.
11256         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
11257         asynchronous cancellation.
11258
11259 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11260
11261         * hurd/exc2signal.c: #include <hurd/signal.h>
11262         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
11263         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
11264         accordingly.
11265         * mach/mach_error.c (mach_error): Fix old-style function definition.
11266         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
11267
11268 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11269
11270         * math/Makefile (libm-calls): Remove s_nanF.
11271         (gen-libm-calls): Add s_nanF.
11272
11273         * math/s_nan.c: Refactor into ...
11274         * math/s_nan_template.c: New file.
11275
11276         * math/s_nanf.c: Removed.
11277         * math/s_nanl.c: Removed.
11278         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
11279         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
11280
11281         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11282         (LDOUBLE_nanl_libm_version): New macro.
11283
11284         * sysdeps/generic/math-type-macros-double.h:
11285         (M_STRTO_NAN): New macro.
11286         * sysdeps/generic/math-type-macros-float.h: Likewise.
11287         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11288
11289         * sysdeps/generic/math-type-macros.h: Document
11290         M_STRTO_NAN.
11291
11292 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11293
11294         * math/s_nanf.c: Remove __nanf undef.
11295         * math/s_nan.c: Remove __nan undef.
11296         * math/s_nanl.c: Remove __nanl undef.
11297
11298         * sysdeps/generic/math_private.h (__nan): Remove macro
11299         override.
11300         (__nanf): Likewise.
11301         (__nanl): Likewise.
11302
11303 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11304
11305         * math/Makefile (gen-all-calls): New variable.
11306         (generated): Replace gen-libm-calls with gen-all-calls.
11307         (gen-libm-templates.stmp): Likewise.  Also, ensure
11308         the output directory exists or is created and add
11309         dependency on the Makefile.
11310         (calls): Move s_ldexpF into gen-calls.
11311         (gen-calls): New variable.
11312
11313         * math/s_ldexpf.c: Removed.
11314         * math/s_ldexpl.c: Removed.
11315         * math/s_ldexp.c: Refactored into ...
11316         * math/s_ldexp_template.c: New file.
11317
11318         * sysdeps/generic/math-type-macros-double.h: Remove
11319         redundant fall-through definition of declare_mgen_alias.
11320         (declare_mgen_alias_2): New macro.
11321
11322         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
11323         New macro for function aliased to two exported symbols.
11324
11325         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
11326         new template file.
11327         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
11328
11329 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11330
11331         * Makeconfig (all-object-suffixes): Remove .og.
11332         * Makerules (elide-routines.og): Remove.
11333         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
11334         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
11335         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
11336
11337 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11338
11339         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
11340         .os objects.
11341
11342 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11343
11344         [BZ #20615]
11345         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
11346         fpu directory by non-fpu.
11347         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
11348         on non-fpu directory from a fpu directory.
11349
11350 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11351
11352         * include/limits.h: Define
11353         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11354         <bits/libc-header-start.h> instead of including <features.h>.
11355         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
11356         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
11357         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
11358         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
11359         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
11360         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
11361         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
11362         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
11363         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11364         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
11365         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
11366         * manual/lang.texi (Width of Type): Document these macros.
11367         * stdlib/tst-width.c: New file.
11368         * stdlib/Makefile (tests): Add tst-width.
11369
11370 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11371
11372         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
11373         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
11374
11375 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11376
11377         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
11378         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11379         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11380
11381 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11382
11383         [BZ #18243]
11384         * rt/Makefile (test): Add tst-shm-cancel.
11385         * rt/tst-shm-cancel.c: New file.
11386         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
11387
11388         [BZ #18243]
11389         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
11390         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
11391         definition.
11392         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
11393         uncontended case.
11394         * nptl/sem_wait.c (__new_sem_wait): Likewise.
11395         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
11396         (tf): Fix check for uncontended case.
11397         (do_test): Likewise.
11398         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
11399         (tf): Fix check for uncontended case.
11400         (do_test): Likewise.
11401         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
11402         (tf): Fix check for uncontended case.
11403         (do_test): Likewise.
11404         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
11405         (tf): Fix check for uncontended case.
11406         (do_test): Likewise.
11407
11408         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
11409         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
11410
11411         [BZ #15765]
11412         * nptl/Makefile (tests): Add tst-sem16.
11413         * nptl/tst-sem16.c: New file.
11414         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
11415
11416         * nptl/sem_open.c (sem_open): Init pad value to 0.
11417         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11418         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11419
11420 2016-09-15  Florian Weimer  <fweimer@redhat.com>
11421
11422         [BZ #20611]
11423         * inet/Makefile (routines): Add inet6_scopeid_pton.
11424         (tests): Add tst-inet6_scopeid_pton.
11425         * inet/inet6_scopeid_pton.c: New file.
11426         * inet/net-internal.h: Likewise.
11427         * inet/tst-inet6_scopeid_pton.c: New test.
11428         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
11429         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
11430         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11431
11432 2016-09-14  Florian Weimer  <fweimer@redhat.com>
11433
11434         Remove support for compiling wrappers with PTW.
11435         * sysdeps/nptl/Makeconfig: Drop ptw- support.
11436         * nptl/Makefile (pthread-compat-wrappers): Define.
11437         (libpthread-routines): Use pthread-compat-wrappers.
11438         * sysdeps/unix/sysv/linux/alpha/Makefile
11439         (libpthread-routines, libpthread-shared-only-routines): Remove
11440         ptw- prefix.
11441         * sysdeps/s390/nptl/Makefile
11442         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11443         * sysdeps/ia64/nptl/Makefile
11444         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11445         * sysdeps/nacl/Makefile (libpthread-routines): Use
11446         pthread-compat-wrappers to filter the routines list instead of the
11447         ptw- prefix.
11448
11449 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11450
11451         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
11452         with L() and remove explicit suffix, convert real literals
11453         which can be equivalentally substituted with integers, and
11454         transform -L(x) to L(-x).
11455
11456         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11504         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11506
11507 2016-09-13  Florian Weimer  <fweimer@redhat.com>
11508
11509         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
11510
11511 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11512
11513         * malloc/Makefile (tests): Remove individual static test names
11514         and just add all of tests-static.
11515
11516         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
11517
11518 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
11519
11520         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
11521         file.
11522
11523         * sysdeps/sparc/fpu/fegetmode.c: New file.
11524         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
11525
11526         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
11527         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
11528
11529         * sysdeps/s390/fpu/fegetmode.c: New file.
11530         * sysdeps/s390/fpu/fesetmode.c: Likewise.
11531
11532         * sysdeps/powerpc/fpu/fegetmode.c: New file.
11533         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
11534         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
11535         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
11536         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
11537         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
11538
11539         * sysdeps/mips/fpu/fegetmode.c: New file.
11540         * sysdeps/mips/fpu/fesetmode.c: Likewise.
11541
11542         * sysdeps/m68k/fpu/fegetmode.c: New file.
11543         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
11544
11545         * sysdeps/ia64/fpu/fegetmode.c: New file.
11546         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
11547
11548         * sysdeps/hppa/fpu/fegetmode.c: New file.
11549         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
11550
11551         * sysdeps/arm/fegetmode.c: New file.
11552         * sysdeps/arm/fesetmode.c: Likewise.
11553
11554         * sysdeps/alpha/fpu/fegetmode.c: New file.
11555         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
11556
11557         * sysdeps/aarch64/fpu/fegetmode.c: New file.
11558         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
11559
11560         * math/fegetmode.c: New file.
11561         * math/fesetmode.c: Likewise.
11562         * sysdeps/i386/fpu/fegetmode.c: Likewise.
11563         * sysdeps/i386/fpu/fesetmode.c: Likewise.
11564         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
11565         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
11566         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
11567         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
11568         declaration.
11569         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
11570         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
11571         typedef.
11572         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11573         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11574         (femode_t): New typedef.
11575         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11576         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11577         (femode_t): New typedef.
11578         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11579         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11580         (femode_t): New typedef.
11581         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11582         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11583         (femode_t): New typedef.
11584         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11585         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11586         (femode_t): New typedef.
11587         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11588         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11589         (femode_t): New typedef.
11590         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11591         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11592         (femode_t): New typedef.
11593         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11594         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11595         (femode_t): New typedef.
11596         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11597         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11598         (femode_t): New typedef.
11599         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11600         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11601         (femode_t): New typedef.
11602         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
11603         declaration.
11604         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11605         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11606         (femode_t): New typedef.
11607         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11608         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11609         (femode_t): New typedef.
11610         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11611         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11612         (femode_t): New typedef.
11613         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11614         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11615         (femode_t): New typedef.
11616         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11617         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11618         (femode_t): New typedef.
11619         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11620         * manual/arith.texi (FE_DFL_MODE): Document macro.
11621         (fegetmode): Document function.
11622         (fesetmode): Likewise.
11623         * math/Versions (fegetmode): New libm symbol at version
11624         GLIBC_2.25.
11625         (fesetmode): Likewise.
11626         * math/Makefile (libm-support): Add fegetmode and fesetmode.
11627         (tests): Add test-femode and test-femode-traps.
11628         * math/test-femode-traps.c: New file.
11629         * math/test-femode.c: Likewise.
11630         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
11631         alias for __fe_dfl_env.
11632         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
11633         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
11634         (__fe_dfl_mode): Likewise.
11635         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
11636         version GLIBC_2.25.
11637         * sysdeps/nacl/libm.abilist: Update.
11638         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11639         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11640         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11641         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11642         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11643         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11644         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11645         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11646         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11647         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11648         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11649         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11651         Likewise.
11652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11653         Likewise.
11654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11655         Likewise.
11656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11657         Likewise.
11658         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11659         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11660         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11661         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11662         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11663         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11664         Likewise.
11665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11666         Likewise.
11667         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11668         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11669         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11670
11671 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11672
11673         [BZ #20495]
11674         [BZ #20508]
11675         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
11676         processors, set Use_dl_runtime_resolve_slow and set
11677         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
11678         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11679         New.
11680         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11681         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
11682         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11683         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
11684         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
11685         if Use_dl_runtime_resolve_opt is set.  Use
11686         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
11687         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
11688         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
11689         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
11690         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
11691         New.
11692         (_dl_runtime_resolve_opt): Likewise.
11693         (_dl_runtime_profile): Define only if _dl_runtime_profile is
11694         defined.
11695
11696 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
11697
11698         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
11699         __libc_memalign with "+ RELA R_390_GLOB_DAT".
11700
11701 2016-09-06  Florian Weimer  <fweimer@redhat.com>
11702
11703         Convert malloc to __libc_lock.  Automated part, using this Perl
11704         s/// command:
11705           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
11706             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
11707         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
11708         conversion.
11709
11710 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
11711
11712         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
11713         (linknamespace-symlists-tests): Likewise.
11714         (linknamespace-header-tests): Likewise.
11715
11716 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
11717
11718         [BZ #19810]
11719         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
11720         * elf/tst-noload.c: New test case.
11721         * elf/Makefile (tests): Add tst-noload.
11722
11723 2016-09-02  Roland McGrath  <roland@hack.frob.com>
11724
11725         * sysdeps/nacl/dup.c: Add libc_hidden_def.
11726
11727         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
11728         not any more.
11729
11730         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
11731
11732 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11733
11734         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
11735         (do_cos_slow): Likewise.
11736         (do_sin): Likewise.
11737         (do_sin_slow): Likewise.
11738         (slow): Likewise.
11739         (slow1): Likewise.
11740         (slow2): Likewise.
11741         (sloww): Likewise.
11742         (sloww1): Likewise.
11743         (sloww2): Likewise.
11744         (bsloww): Likewise.
11745         (bsloww1): Likewise.
11746         (bsloww2): Likewise.
11747         (cslow2): Likewise.
11748
11749         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
11750
11751         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
11752         arguments.  Consolidate input partitioning from callers here.
11753         (do_cos_slow): Likewise.
11754         (do_sin): Likewise.
11755         (do_sin_slow): Likewise.
11756         (do_sincos_1): Remove the no longer necessary input partitioning.
11757         (do_sincos_2): Likewise.
11758         (__sin): Likewise.
11759         (__cos): Likewise.
11760         (slow1): Likewise.
11761         (slow2): Likewise.
11762         (sloww1): Likewise.
11763         (sloww2): Likewise.
11764         (bsloww1): Likewise.
11765         (bsloww2): Likewise.
11766         (cslow2): Likewise.
11767
11768 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11769
11770         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
11771         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
11772         outside of allocated array.
11773
11774 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11775
11776         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
11777         instead of MB_CUR_MAX to avoid variable-length array.
11778
11779 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11780
11781         * math/Makefile (libm-calls): Remove k_rem_pio2F.
11782         (type-double-routines): Add k_rem_pio2.
11783         (type-float-routines): Add k_rem_pio2f.
11784
11785         * sysdeps/generic/math_private.h:
11786         (__kernel_rem_pio2l): Removed.
11787
11788         * math/k_rem_pio2l.c: Removed.
11789         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
11790         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
11791         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
11792         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
11793
11794 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11795
11796         * math/Makefile (gen-libm-calls): Add s_fmin
11797         (libm-calls): Remove above.
11798
11799         * math/s_fmin.c: Refactor into ...
11800         * math/s_fmin_template.c: New file.
11801
11802         * math/s_fminf.c: Removed.
11803         * math/s_fminl.c: Removed.
11804         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11805         (LDOUBLE_fmin_libm_version): New macro.
11806
11807         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
11808         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
11809
11810 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11811
11812         * math/Makefile: (gen-libm-calls): Add s_fmax.
11813         (libm-calls): Remove above.
11814
11815         * math/s_fmax.c: Refactor into ...
11816         * math/s_fmax_template.c: New file.
11817         * math/s_fmaxf.c: Removed.
11818         * math/s_fmaxl.c: Removed.
11819
11820         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11821         (LDOUBLE_fmaxl_libm_version): New macro.
11822
11823         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
11824         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
11825
11826         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
11827         s_fmin.c to pick the aarch64 version of the file.
11828         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
11829         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
11830
11831 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11832
11833         * math/Makefile: (gen-libm-calls): Add s_nextdown.
11834         (libm-calls): Remove above.
11835
11836         * math/s_nextdown.c: Refactor into ...
11837         * math/s_nextdown_template.c: New file.
11838         * math/s_nextdownf.c: Removed.
11839         * math/s_nextdownl.c: Removed.
11840
11841         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
11842
11843 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11844
11845         * math/Makefile (gen-libm-calls): Add s_fdim.
11846         (libm-calls): Move to above.
11847
11848         * math/s_fdim.c: Renamed and refactored into to ...
11849         * math/s_fdim_template.c: New file.
11850         * math/s_fdiml.c: Removed.
11851         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
11852         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
11853
11854         * sysdeps/generic/math-type-macros-double.h:
11855         (declare_mgen_alias): Don't declare if already declared.
11856         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
11857         Likewise.
11858
11859         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11860         (declare_mgen_alias): Don't declare if already declared.
11861         (M_LIBM_NEED_COMPAT): Likewise.
11862         (declare_mgen_libm_compat): Likewise.
11863         (LDOUBLE_fdiml_libm_version): New macro.
11864
11865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11866         Include math/s_fdim.c now that ldbl-opt version is not needed.
11867         (declare_mgen_alias): New macro to disable aliasing.
11868
11869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
11870         (declare_mgen_alias): Likewise.
11871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
11872         (declare_mgen_alias): Likewise.
11873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
11874         (declare_mgen_alias): Likewise.
11875         (M_LIBM_NEED_COMPAT): Likewise.
11876
11877 2016-09-01  Florian Weimer  <fweimer@redhat.com>
11878
11879         [BZ #20525]
11880         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
11881         Include <linux/quota.h>.
11882         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
11883         and btodb.
11884         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
11885         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
11886         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
11887         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
11888         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
11889         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
11890         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
11891         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
11892         types.
11893         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
11894         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
11895
11896 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11897
11898         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
11899         (gammal_positive): Fix spacing.
11900         (__ieee754_gammal_r): Likewise.
11901
11902 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11903
11904         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
11905         (_Float128): Define as long double, always.
11906         (L): Apply long double type suffix, always.
11907
11908         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
11909         _Float128, excepting comments.
11910
11911         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11912         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11913         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11914         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11915         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11916         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11917         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11918         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11919         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11920         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
11921         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11922         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11923         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11924         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11925         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11926         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11927         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11928         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11929         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11930         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11931         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11932         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
11933         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11934         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11935         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11936         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11937         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11938         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11939         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11940         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11941         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11942         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11943         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11944         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11945         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11946         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11947         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11948         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11949         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11950         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11951         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11952         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11953         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11954         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11955         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11956         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11957         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11958         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11959         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11960         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11961         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11962         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11963         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11964         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11965         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11966         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11967         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11968         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11969         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11970         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11971         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11972         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11973         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11974         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11975         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11976         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11977         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11978         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11979
11980         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
11981         _Float128, and include math_private.h.
11982         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11983
11984         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
11985         long double semantics.
11986         (_Float128): Likewise.
11987         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
11988         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11989         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11990         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11991
11992 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11993
11994         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
11995         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
11996         * sysdeps/s390/configure: Regenerated.
11997         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
11998         instruction for raising over-/underflow if z196 zarch is supported
11999         by default.
12000         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
12001
12002 2016-08-30  Svante Signell  <svante.signell@gmail.com>
12003
12004         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
12005         it point to a dumb buffer for RPC to fill it.
12006
12007 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12008
12009         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
12010         instead of if/else.
12011         (do_sin_slow): Likewise.
12012         (do_sincos_1): Use fabs instead of if/else.
12013         (do_sincos_2): Likewise.
12014         (__sin): Likewise.
12015         (__cos): Likewise.
12016         (slow2): Likewise.
12017         (sloww): Likewise.
12018         (sloww1): Likewise.  Drop argument M.
12019         (sloww2): Use fabs instead of if/else.
12020         (bsloww): Likewise.
12021         (bsloww1): Likewise.
12022         (bsloww2): Likewise.
12023
12024         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
12025         fall through comment.
12026         (do_sincos_1): Likewise.
12027
12028         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
12029         Consolidate switch cases 0 and 2.
12030
12031 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12032
12033         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
12034         (libm-calls): Remove the above.
12035
12036         * math/s_cexp_template.c: Update using type-generic macros.
12037         * math/s_clog10_template.c: Likewise.
12038         * math/s_cpow_template.c: Likewise.
12039         * math/s_clog_template.c: Likewise.
12040         * math/s_cproj_template.c: Likewise.
12041         * math/s_csqrt_template.c: Likewise.
12042
12043         * math/s_cexp.c: Removed.
12044         * math/s_cexpf.c: Removed.
12045         * math/s_cexpl.c: Removed.
12046         * math/s_clog10.c: Removed.
12047         * math/s_clog10f.c: Removed.
12048         * math/s_clog10l.c: Removed.
12049         * math/s_cpow.c: Removed.
12050         * math/s_cpowf.c: Removed.
12051         * math/s_cpowl.c: Removed.
12052         * math/s_clog.c: Removed.
12053         * math/s_clogf.c: Removed.
12054         * math/s_clogl.c: Removed.
12055         * math/s_cproj.c: Removed.
12056         * math/s_cprojf.c: Removed.
12057         * math/s_cprojl.c: Removed.
12058         * math/s_csqrt.c: Removed.
12059         * math/s_csqrtf.c: Removed.
12060         * math/s_csqrtl.c: Removed.
12061
12062         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
12063         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
12064         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
12065         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
12066         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
12067         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
12068
12069         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
12070         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
12071         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
12072         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
12073         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
12074         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
12075         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
12076         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
12077         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
12078         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
12079         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
12080
12081         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
12082         version.
12083
12084         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
12085         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
12086         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
12087         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
12088
12089 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12090
12091         * s_cexp_template.c: Copy of s_cexp.c.
12092         * s_clog_template.c: Copy of s_clog.c.
12093         * s_clog10_template.c: Copy of s_clog10.c.
12094         * s_cpow_template.c: Copy of s_cpow.c.
12095         * s_cproj_template.c: Copy of s_cproj.c.
12096         * s_csqrt_template.c: Copy of s_csqrt.c.
12097
12098 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12099
12100         [BZ #20517]
12101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
12102         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
12103         exported.
12104
12105 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
12106
12107         * math/fetestexceptflag.c: New file.
12108         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
12109         Stefan Liebler.
12110         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12111         (fetestexceptflag): New function declaration.
12112         * manual/arith.texi (fetestexceptflag): Document function.
12113         * math/Versions (fetestexceptflag): New libm symbol at version
12114         GLIBC_2.25.
12115         * math/Makefile (libm-support): Add fetestexceptflag.
12116         (tests): Add test-fetestexceptflag.
12117         * math/test-fetestexceptflag.c: New file.
12118         * sysdeps/nacl/libm.abilist: Update.
12119         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12120         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12121         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12122         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12123         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12124         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12125         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12126         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12127         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12128         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12129         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12130         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12132         Likewise.
12133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12134         Likewise.
12135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12136         Likewise.
12137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12138         Likewise.
12139         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12140         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12141         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12142         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12143         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12144         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12145         Likewise.
12146         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12147         Likewise.
12148         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12149         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12150         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12151
12152 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12153
12154         [BZ #20432]
12155         Avoid strong references to malloc-internal symbols when linking
12156         statically, to support statically interposed mallocs.
12157         * include/libc-symbols.h (call_function_static_weak): New macro.
12158         * malloc/Makefile (tests): Add tst-interpose-nothread,
12159         tst-interpose-thread, tst-interpose-static-nothread,
12160         tst-interpose-static-thread.
12161         (tests-static): Add tst-interpose-static-nothread,
12162         tst-interpose-static-thread.
12163         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
12164         tst-interpose-aux-thread.o.
12165         (test-extras): Add tst-interpose-aux-nothread,
12166         tst-interpose-aux-thread.
12167         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
12168         tst-interpose-aux-nothread.o.
12169         (tst-interpose-thread, tst-interpose-static-thread): Link with
12170         tst-interpose-aux-thread.o and libthread.
12171         * malloc/tst-interpose-aux-nothread.c: New file.
12172         * malloc/tst-interpose-aux-thread.c: Likewise.
12173         * malloc/tst-interpose-aux.c: Likewise.
12174         * malloc/tst-interpose-aux.h: Likewise.
12175         * malloc/tst-interpose-nothread.c: Likewise.
12176         * malloc/tst-interpose-skeleton.c: Likewise.
12177         * malloc/tst-interpose-static-nothread.c: Likewise.
12178         * malloc/tst-interpose-static-thread.c: Likewise.
12179         * malloc/tst-interpose-thread.c: Likewise.
12180         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
12181         * sysdeps/mach/hurd/fork.c (__fork): Only call
12182         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
12183         __malloc_fork_unlock_child if defined.
12184         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12185
12186 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12187
12188         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
12189         timespec C99 designated initialization.
12190
12191 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12192
12193         [BZ #19946]
12194         Avoid expected SIGALRM signals.
12195         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
12196         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
12197         (xpthread_create, xpthread_detach, xpthread_join)
12198         (delayed_exit_thread, delayed_exit): New functions.
12199         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
12200         (tf): Use xpthread_cond_wait.
12201         (do_test): Likewise.  Replace alarm with delayed_exit.
12202         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12203         (do_test): Call delayed_exit.  Report failure.
12204         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12205         (do_test): Call delayed_exit.
12206         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12207         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
12208         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12209         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
12210         error.
12211         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12212         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
12213         error.
12214         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
12215         (do_test): Call delayed_exit.
12216         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
12217         (do_test): Call delayed_exit.
12218         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
12219         (do_test): Call delayed_exit instead of alarm.  Use
12220         xpthread_mutex_lock.
12221         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
12222         (do_test): Call delayed_exit instead of alarm.  Use
12223         xpthread_mutex_lock.
12224         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
12225         (do_test): Call delayed_exit instead of alarm.
12226         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
12227         (do_test): Call delayed_exit instead of alarm.  Use
12228         xpthread_spin_lock.
12229         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
12230         (do_test): Call delayed_exit instead of alarm.  Use
12231         xpthread_join.
12232
12233 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12234
12235         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
12236         adjust CFA when allocating register save area on re-aligned
12237         stack.
12238
12239 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12240
12241         * string/tst-cmp.c: New test.
12242         * string/Makefile (tests): Add it.
12243
12244 2016-08-25  Mark Wielaard  <mark@klomp.org>
12245
12246         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
12247         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
12248         (check_tree_recurse): Use newly defined accessors.
12249         (check_tree): Likewise.
12250         (maybe_split_for_insert): Likewise.
12251         (__tfind): Likewise.
12252         (__tdelete): Likewise.
12253         (trecurse): Likewise.
12254         (tdestroy_recurse): Likewise.
12255         (__tsearch): Likewise. And add asserts for malloc alignment.
12256         (__twalk): Cast root to node in case CHECK_TREE is defined.
12257
12258 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12259
12260         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
12261
12262 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12263
12264         * math/Makefile (libm-gen-calls): Add
12265         catan, catanh, ctan, ctanh.
12266         (libm-calls): Remove the above.
12267
12268         * math/s_catan_template.c: Update using type-generic macros.
12269         * math/s_catanh_template.c: Likewise.
12270         * math/s_ctan_template.c: Likewise.
12271         * math/s_ctanh_template.c: Likewise.
12272
12273         * math/s_catanf.c: Removed.
12274         * math/s_catan.c: Removed.
12275         * math/s_catanl.c: Removed.
12276         * math/s_catanhf.c: Removed.
12277         * math/s_catanh.c: Removed.
12278         * math/s_catanhl.c: Removed.
12279         * math/s_ctanf.c: Removed.
12280         * math/s_ctan.c: Removed.
12281         * math/s_ctanl.c: Removed.
12282         * math/s_ctanhf.c: Removed.
12283         * math/s_ctanh.c: Removed.
12284         * math/s_ctanhl.c: Removed.
12285
12286         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
12287         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
12288         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
12289         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
12290         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
12291         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
12292
12293         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
12294         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
12295         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
12296         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
12297
12298 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12299
12300         * s_catan_template.c: Copy of s_catan.c.
12301         * s_catanh_template.c: Copy of s_catanh.c.
12302         * s_ctan_template.c: Copy of s_ctan.c.
12303         * s_ctanh_template.c: Copy of s_ctanh.c.
12304
12305 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12306
12307         * math/Makefile (gen-libm-calls): Move
12308         casin, casinh, csin, csinh here.
12309         (libm-calls): Remove the above.
12310
12311         * math/s_casin_template.c: Update using type-generic macros.
12312         * math/s_casinh_template.c: Likewise.
12313         * math/s_csin_template.c: Likewise.
12314         * math/s_csinh_template.c: Likewise.
12315         * math/k_casinh_template.c: Likewise.
12316
12317         * math/s_casinf.c: Removed.
12318         * math/s_casin.c: Removed.
12319         * math/s_casinl.c: Removed.
12320         * math/s_casinh.c: Removed.
12321         * math/s_casinhf.c: Removed.
12322         * math/s_casinhl.c: Removed.
12323         * math/s_csin.c: Removed.
12324         * math/s_csinf.c: Removed.
12325         * math/s_csinl.c: Removed.
12326         * math/s_csinh.c: Removed.
12327         * math/s_csinhf.c: Removed.
12328         * math/s_csinhl.c: Removed.
12329         * math/k_casinh.c: Removed.
12330         * math/k_casinhf.c: Removed.
12331         * math/k_casinhl.c: Removed.
12332
12333         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
12334         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
12335         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
12336         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
12337
12338         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
12339         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
12340         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
12341         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
12342         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
12343         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
12344         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
12345         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
12346
12347         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
12348         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
12349         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
12350         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
12351
12352         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
12353         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
12354         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
12355         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
12356
12357 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12358
12359         * s_casin_template.c: Copy of s_casin.c.
12360         * s_casinh_template.c: Copy of s_casinh.c.
12361         * s_csin_template.c: Copy of s_csin.c.
12362         * s_csinh_template.c: Copy of s_csinh.c.
12363         * k_casinh_template.c: Copy of k_casinh.c.
12364
12365 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12366
12367         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
12368
12369 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12370
12371         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
12372         (mul_split) Remove, rename as mul_splitl, remove
12373         redundant float.h include, and include via mul_splitl.h
12374
12375         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12376         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12377         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12378         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12379         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12380
12381         * math/mul_splitl.h: New file.
12382
12383         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
12384         Move into mul_split.h, and remove redundant float.h include.
12385
12386         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12387         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12388         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12389         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
12390
12391         * math/mul_split.h: New file.
12392
12393 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12394
12395         * math/Makefile (libm-gen-calls): Move
12396         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
12397         (libm-calls): Remove above.
12398
12399         * math/s_cacos_template.c: Update using type-generic macros.
12400         * math/s_cacosh_template.c: Likewise.
12401         * math/s_ccos_template.c: Likewise.
12402         * math/s_ccosh_template.c: Likewise.
12403
12404         * math/s_cacosf.c: Removed.
12405         * math/s_cacos.c: Removed.
12406         * math/s_cacosl.c: Removed.
12407         * math/s_cacoshf.c: Removed.
12408         * math/s_cacosh.c: Removed.
12409         * math/s_cacoshl.c: Removed.
12410         * math/s_ccosf.c: Removed.
12411         * math/s_ccos.c: Removed.
12412         * math/s_ccosl.c: Removed.
12413         * math/s_ccoshf.c: Removed.
12414         * math/s_ccosh.c: Removed.
12415         * math/s_ccoshl.c: Removed.
12416
12417         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
12418         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
12419         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
12420         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
12421         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
12422         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
12423
12424         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
12425         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
12426         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
12427         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
12428
12429         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
12430         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
12431         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
12432         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
12433
12434 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12435
12436         * s_cacos_template.c: Copy of s_cacos.c.
12437         * s_cacosh_template.c: Copy of s_cacosh.c.
12438         * s_ccos_template.c: Copy of s_ccos.c.
12439         * s_ccosh_template.c: Copy of s_ccosh.c.
12440
12441 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12442
12443         * stdlib/tst-strtod-round-skeleton.c:
12444         Refactored from tst-strtod-round.c.
12445
12446         (L_): New macro to apply literal modifier.
12447         (FNPFX): New macro to select str or wcs prefix.
12448         (CHAR): New macro to choose wchar_t or char.
12449         (STRM): New macro to choose printf for tested character type.
12450
12451         (STRTO): New macro to choose appropriate string -> real function.
12452         (FNPFXS): Stringitized version of FNPFX.
12453         (STR): Support for above macro.
12454         (STRX): Likewise.
12455
12456         (TEST): Update with above macros.
12457         (test): Likewise.
12458         (GEN_ONE_TEST): Likewise.
12459         (test_in_one_mode): Likewise.
12460
12461         * stdlib/tst-strtod-round.c: New file.
12462         * wcsmbs/tst-wcstod-round.c: New file.
12463
12464         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
12465         (tst-wcstod-round): Add libm depencency for fesetround.
12466
12467 2016-08-19  Zack Weinberg  <zackw@panix.com>
12468
12469         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
12470
12471 2016-08-18  Torvald Riegel  <triegel@redhat.com>
12472
12473         [BZ #20477]
12474         * resolv/res_hconf.c (do_init): Use atomic access.
12475         * resolv/res_hconf.h: Add comments.
12476         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
12477         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
12478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12479
12480 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12481
12482         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12483         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
12484         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12485         Likewise.
12486
12487 2016-08-18  Florian Weimer  <fweimer@redhat.com>
12488
12489         [BZ #16907]
12490         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
12491         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
12492         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
12493         (__attribute__): Remove definition.
12494
12495 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12496
12497         * sysdeps/ieee754/ldbl-128/e_asinl.c:
12498         Remove unused sqrtl declaration.
12499
12500 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12501
12502         * math/Makefile: (gen-libm-templates.stmp): New rule.
12503         (libm-calls): Move carg conj cimag and cabs into ...
12504         (gen-libm-calls): New variable.
12505         (generated): Inform Make objects from gen-libm-calls
12506         may be generated.
12507
12508         * sysdeps/generic/math-type-macros.h: New file.
12509         * sysdeps/generic/math-type-macros-float.h: Likewise.
12510         * sysdeps/generic/math-type-macros-double.h: Likewise.
12511         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
12512         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
12513         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
12514
12515         * math/cabs.c: Refactor into
12516         * math/cabs_template.c: new file.
12517         * math/cabsf.c: Removed.
12518         * math/cabsl.c: Removed.
12519         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
12520         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
12521
12522         * math/carg.c: Refactor into
12523         * math/carg_template.c: new file.
12524         * math/cargf.c: Removed.
12525         * math/cargl.c: Removed.
12526         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
12527         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
12528
12529         * math/conj.c: Refactor into
12530         * math/conj_template.c: new file.
12531         * math/conjf.c: Removed.
12532         * math/conjl.c: Removed.
12533         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
12534         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
12535
12536         * math/cimag.c: Refactor into
12537         * math/cimag_template.c: new file.
12538         * math/cimagf.c: Removed.
12539         * math/cimagl.c: Removed.
12540         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12541         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12542
12543         * math/cimag.c: Refactor into
12544         * math/cimag_template.c: new file.
12545         * math/cimagf.c: Removed.
12546         * math/cimagl.c: Removed.
12547         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12548         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12549
12550 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12551
12552         Reduce time to expected nptl/tst-once5 failure.
12553         * nptl/tst-once5.cc (TIMEOUT): Define.
12554
12555 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12556
12557         [BZ #20452]
12558         Avoid additional copies of objects in libc.a in static libraries.
12559         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
12560         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
12561         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
12562         rt-sysdep.
12563         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
12564         Add nptl-sysdep.
12565         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
12566         Add ptw-sysdep.
12567         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
12568         rt-sysdep.
12569         * sysdeps/unix/sysv/linux/alpha/Makefile
12570         (libpthread-shared-only-routines): Add ptw-sysdep,
12571         ptw-sigprocmask, ptw-rt_sigaction.
12572         * sysdeps/unix/sysv/linux/ia64/Makefile
12573         (librt-shared-only-routines): Add rt-sysdep.
12574         * sysdeps/unix/sysv/linux/i386/Makefile
12575         (libpthread-shared-only-routines): Add libc-do-syscall.
12576         * sysdeps/unix/sysv/linux/microblaze/Makefile
12577         (libpthread-shared-only-routines): Add sysdep.
12578         * sysdeps/unix/sysv/linux/powerpc/Makefile
12579         (librt-shared-only-routines): Add rt-sysdep.
12580         (libpthread-shared-only-routines): Add sysdep.
12581         * sysdeps/unix/sysv/linux/s390/Makefile
12582         (librt-shared-only-routines): Add rt-sysdep.
12583         * sysdeps/unix/sysv/linux/sparc/Makefile
12584         (librt-shared-only-routines): Add rt-sysdep.
12585         (libpthread-shared-only-routines): Add sysdep.
12586         * sysdeps/unix/sysv/linux/tile/Makefile
12587         (libpthread-shared-only-routines): Likewise.
12588
12589 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
12590
12591         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
12592         Mask implicit bit out of unpacked value.
12593         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
12594         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
12595         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
12596
12597         * sysdeps/sparc/fpu/fesetexcept.c: New file.
12598
12599         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
12600
12601         * sysdeps/s390/fpu/fesetexcept.c: New file.
12602
12603         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
12604         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
12605         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
12606
12607         * sysdeps/mips/fpu/fesetexcept.c: New file.
12608
12609         * sysdeps/m68k/fpu/fesetexcept.c: New file.
12610
12611         * sysdeps/ia64/fpu/fesetexcept.c: New file.
12612
12613         * sysdeps/hppa/fpu/fesetexcept.c: New file.
12614
12615         * sysdeps/arm/fesetexcept.c: New file.
12616
12617         * sysdeps/alpha/fpu/fesetexcept.c: New file.
12618
12619         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
12620
12621         * math/fesetexcept.c: New file.
12622         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
12623         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
12624         * math/fenv.h: Define
12625         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12626         <bits/libc-header-start.h> instead of including <features.h>.
12627         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
12628         declaration.
12629         * manual/arith.texi (fesetexcept): Document function.
12630         * math/Versions (fesetexcept): New libm symbol at version
12631         GLIBC_2.25.
12632         * math/Makefile (libm-support): Add fesetexcept.
12633         (tests): Add test-fesetexcept and test-fesetexcept-traps.
12634         * math/test-fesetexcept.c: New file.
12635         * math/test-fesetexcept-traps.c: Likewise.
12636         * sysdeps/nacl/libm.abilist: Update.
12637         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12638         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12639         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12640         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12641         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12642         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12643         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12644         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12645         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12646         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12647         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12648         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12650         Likewise.
12651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12652         Likewise.
12653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12654         Likewise.
12655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12656         Likewise.
12657         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12658         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12659         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12660         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12661         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12662         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12663         Likewise.
12664         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12665         Likewise.
12666         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12667         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12668         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12669
12670 2016-08-16  Florian Weimer  <fweimer@redhat.com>
12671
12672         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
12673         New.
12674         (do_test): Apply default_stack_size_in_mb if not set.
12675         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
12676
12677 2016-08-15  Andreas Schwab  <schwab@suse.de>
12678
12679         [BZ #20435]
12680         CVE-2016-6323
12681         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
12682         as .cantunwind.
12683
12684 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
12685
12686         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
12687         comment from fraiseexcpt.c.
12688
12689         * math/test-fexcept.c (feraiseexcept_exact): New function.
12690         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
12691         (test_except): Likewise.
12692
12693 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
12694
12695         [BZ #20455]
12696         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
12697         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
12698         to be restored.
12699
12700         * math/test-fexcept-traps.c: New file.
12701         * math/test-fexcept.c: Likewise.
12702         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
12703         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
12704         macro.
12705         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
12706         (EXCEPTION_SET_FORCES_TRAP): Likewise.
12707
12708 2016-08-09  Torvald Riegel  <triegel@redhat.com>
12709
12710         * include/atomic.h (atomic_fetch_and_relaxed,
12711         atomic_fetch_and_release, atomic_fetch_or_release,
12712         atomic_fetch_xor_release): New.
12713
12714 2016-08-06  Christian Seiler  <christian@iwakd.de>
12715
12716         [BZ #20444]
12717         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
12718         MACH_PORT_NULL.
12719
12720 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12721
12722         * math/s_fdim.c: Avoid alias renamed.
12723         * math/s_fdimf.c: Likewise.
12724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12725         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12726         Add s_fdimf-vis3, s_fdim-vis3.
12727         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12728         (CFLAGS-s_fdim-vis3.c): Likewise.
12729         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
12730         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
12731
12732 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12733
12734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12735         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12736         Remove s_fdimf-vis3, s_fdim-vis3.
12737         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
12738         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
12739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
12740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
12741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
12742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
12743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
12744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
12745         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
12746         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
12747
12748 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12749
12750         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
12751         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
12752         -Wa,-Av9a -mvis.
12753
12754 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12755
12756         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
12757         LIT() to individual constants in simple expressions
12758         after splitting on spaces.
12759         (_apply_lit): Rename replaced version, and use it to
12760         apply to what appears to be a token.
12761
12762         * math/libm-test.inc: Fix many, many issues with
12763         spacing.
12764
12765 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
12766
12767         * math/math.h: Move comment about <bits/mathdef.h> definitions
12768         above inclusion of <bits/mathdef.h>.  Do not mention
12769         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
12770
12771 2016-08-05  Torvald Riegel  <triegel@redhat.com>
12772
12773         * include/atomic.h (atomic_exchange_relaxed): New.
12774
12775 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * math/e_scalb.c: Do not include <fenv.h>.
12778         (invalid_fn): Do calculation resulting in NaN instead of raising
12779         FE_INVALID and returning a NaN explicitly.
12780         * math/e_scalbf.c: Do not include <fenv.h>.
12781         (invalid_fn): Do calculation resulting in NaN instead of raising
12782         FE_INVALID and returning a NaN explicitly.
12783         * math/e_scalbl.c: Do not include <fenv.h>.
12784         (invalid_fn): Do calculation resulting in NaN instead of raising
12785         FE_INVALID and returning a NaN explicitly.
12786
12787 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
12788
12789         * po/de.po: Updated from Translation Project.
12790         * po/fi.po: Likewise.
12791         * po/sv.po: Likewise.
12792
12793 2016-08-04  Florian Weimer  <fweimer@redhat.com>
12794
12795         [BZ #20452]
12796         Use sysdep.o from libc.a in static libraries.
12797         * sysdeps/unix/sysv/linux/i386/Makefile
12798         (libpthread-shared-only-routines): Add sysdep.
12799         (librt-shared-only-routines): Likewise.
12800
12801 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12802
12803         * math/tgmath.h (nextdown): Define if
12804         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
12805         (nextup): Likewise.
12806
12807         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
12808         macro.
12809         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12810         Document.
12811         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12812         Document macro.
12813         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
12814         (exp10f): Likewise.
12815         (exp10l): Likewise.
12816         * math/bits/mathcalls.h (exp10): Declare if
12817         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
12818
12819         * manual/arith.texi (nextup): Fix typo in last change.
12820
12821 2016-08-03  Zack Weinberg  <zackw@panix.com>
12822
12823         [BZ #19239]
12824         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
12825         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
12826         define major, minor, and makedev to issue deprecation warnings on use.
12827         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
12828         previously-activated deprecation warnings for these macros and prevent
12829         subsequent inclusions of this header from having any effect.
12830         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
12831         including <sys/sysmacros.h>, and undefine it again afterward.
12832
12833 2016-08-03  Zack Weinberg  <zackw@panix.com>
12834
12835         * sysdeps/generic/sys/sysmacros.h: Delete file.
12836         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
12837         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
12838         * bits/sysmacros.h: ... here; this encoding is now the generic
12839         encoding.  Now defines only the following macros:
12840         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
12841         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
12842         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
12843
12844         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
12845         bits/sysmacros.h and the above new macros to generate the
12846         public implementations of major, minor, and makedev.
12847         * misc/tst-makedev.c: New test.
12848         * include/sys/sysmacros.h: New wrapper.
12849
12850         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
12851         (routines): Add makedev.
12852         (tests): Add tst-makedev.
12853         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
12854         gnu_dev_makedev.
12855         * posix/Makefile (headers): Remove sys/sysmacros.h.
12856         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
12857
12858         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
12859         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
12860         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
12861         * sysdeps/unix/sysv/linux/alpha/libc.abilist
12862         * sysdeps/unix/sysv/linux/arm/libc.abilist
12863         * sysdeps/unix/sysv/linux/hppa/libc.abilist
12864         * sysdeps/unix/sysv/linux/i386/libc.abilist
12865         * sysdeps/unix/sysv/linux/ia64/libc.abilist
12866         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
12867         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
12868         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
12869         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
12870         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
12871         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
12872         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
12873         * sysdeps/unix/sysv/linux/nios2/libc.abilist
12874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
12875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
12876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
12877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
12878         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
12879         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
12880         * sysdeps/unix/sysv/linux/sh/libc.abilist
12881         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
12882         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
12883         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
12884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
12885         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
12886         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
12887         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
12888         Add GLIBC_2.25.
12889
12890         * include/features.h (__glibc_clang_prereq): New macro.
12891         * misc/sys/cdefs.h (__glibc_clang_has_extension)
12892         (__attribute_deprecated_msg__): New macros.
12893
12894 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12895
12896         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
12897         macro.
12898         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
12899         * manual/arith.texi (issignaling): Document as ISO from TS
12900         18661-1:2014.
12901         (nextup): Likewise.
12902         (nextupf): Likewise.
12903         (nextupl): Likewise.
12904         (nextdown): Likewise.
12905         (nextdownf): Likewise.
12906         (nextdownl): Likewise.
12907         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
12908         macro.
12909         * math/math.h: Define
12910         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12911         <bits/libc-header-start.h> instead of including <features.h>.
12912         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
12913         [__USE_GNU].
12914         * math/bits/mathcalls.h (nextdown): Declare if
12915         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
12916         (nextup): Likewise.
12917         (__issignaling): Likewise.
12918
12919 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12920
12921         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
12922         check, and remove __glibc_likely hint
12923         from FP_INFINITE check.
12924         * s_csinhf.c (__csinhf): Likewise.
12925
12926         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
12927         hint from FP_INFINITE check.
12928         * s_csinhl.c (__csinhl): Likewise.
12929
12930 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12931
12932         * math/Makefile (libm-calls): Insert F placeholder into
12933         object names.  Move w_lgamma_compat* routines into
12934         (libm-compat-calls): New variable.
12935         (libm-compat-calls-ldouble-yes): New variable.
12936         (calls): Insert F placeholder.
12937         (generated): Redefine using new type-foreach macro call.
12938         (routines): Likewise.
12939
12940         (types): New variable to hold a list of symbolic names
12941         for each type supported by the target machine.
12942         (libm-routines): Redefine using new types variable.
12943         (type-foreach): macro to replace fooF with the
12944         appropriately suffixed foo for each types.
12945
12946         (type-ldouble-suffix): New variable.
12947         (type-ldouble-routines): Likewise.
12948         (type-ldouble-yes): Likewise.
12949         (type-double-suffix): Likewise.
12950         (type-double-routines): Likewise.
12951         (type-float-suffix): Likewise.
12952         (type-float-routines): Likewise.
12953
12954         (dbl-only-routines): Remove.
12955         (long-c-yes): Likewise.
12956         (long-m-routines): Likewise.
12957         (long-m-support): Likewise.
12958         (long-m-yes): Likewise.
12959         (test-longdouble-yes): Likewise.
12960
12961         (test-float.o): Simplify by increasing the scope of the
12962         recipe which adds libm-test.stmp to the vector types.
12963         (test-ifloat.o): Likewise.
12964         (test-float-finite.o): Likewise.
12965         (test-double.o): Likewise
12966         (test-idouble.o): Likewise.
12967         (test-double-finite.o): Likewise.
12968         (test-ldouble.o): Likewise
12969         (test-ildoubl.o): Likewise.
12970         (test-ldouble-finite.o): Likewise.
12971
12972         (libm-tests): Redefine type tests using foreach and the
12973         list of types in types.
12974
12975         (CPPFLAGS-test-ildoubl.c): Rename to
12976         (CPPFLAGS-test-ildouble.c): New variable
12977
12978         * math/test-ildoubl.c: Rename to
12979         * math/test-ildouble.c: New file.
12980
12981 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12982
12983         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
12984         Use fabsl instead of fabs.
12985         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
12986         Likewise.
12987         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
12988         Add long double suffix to constant to ensure proper
12989         promotion to long double.
12990
12991 2016-08-03  Tom Tromey  <tom@tromey.com>
12992
12993         [BZ #20311]
12994         * nptl_db/Makefile (headers): Add proc_service.h.
12995         * nptl_db/proc_service.h: Add include guard.  Use
12996         __BEGIN/__END_DECLS.
12997         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
12998         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
12999         arguments.
13000
13001
13002 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13003
13004         [BZ #17730]
13005         Avoid using memalign for TCB allocations.
13006         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
13007         (_dl_allocate_tls_storage): Use malloc and manual alignment.
13008         Avoid alignment gap in the TLS_DTV_AT_TP case.
13009         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
13010         determine the pointer to free.
13011         * nptl/tst-tls3-malloc.c: New test.
13012         * nptl/Makefile (tests): Add it.
13013         (tst-tls3-malloc): Link with libdl, libpthread.
13014         (LDFLAGS-tst-tls3-malloc): Set.
13015         (tst-tls3-malloc.out): Depend on DSO used in test.
13016
13017 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13018
13019         [BZ #17730]
13020         Avoid using memalign for TLS allocations.
13021         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
13022         is_static member with to_free member.
13023         (union dtv): Use struct dtv_pointer.
13024         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
13025         dtv_pointer instead of is_static.
13026         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
13027         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
13028         instead of val.
13029         (allocate_dtv_entry): New function.
13030         (allocate_and_init): Return struct dtv_pointer.  Call
13031         allocate_dtv_entry instead of __libc_memalign.
13032         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
13033         instead of val.
13034         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
13035         instead of is_static.  Adjust call to allocate_and_init.
13036         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
13037         struct dtv_pointer instead of val.
13038
13039 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13040
13041         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
13042         (MALLOC_ALIGN_MASK): Move ...
13043         * malloc/malloc-internal.h: ... to here.
13044         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
13045
13046 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13047
13048         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
13049         (UDP_ENCAP_GTP1U): Likewise.
13050
13051         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
13052         (PF_MAX): Update value.
13053         (AF_QIPCRTR): New macro.
13054
13055 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13056
13057         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
13058         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13059         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13060         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13061         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13062         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13063         s_truncf-vis3, s_trunc-vis3.
13064         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
13065         (CFLAGS-s_ceil-vis3.c): Likewise.
13066         (CFLAGS-s_floorf-vis3.c): Likewise.
13067         (CFLAGS-s_floor-vis3.c): Likewise.
13068         (CFLAGS-s_truncf-vis3.c): Likewise.
13069         (CFLAGS-s_trunc-vis3.c): Likewise.
13070         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
13071         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13072         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
13073         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13074         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
13075         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13076         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
13077         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13078         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
13079         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13080         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
13081         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13082
13083 2016-08-02  David S. Miller  <davem@davemloft.net>
13084
13085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13086         (__nearbyint_vis3): Don't check for sNaN before float register is
13087         loaded with the incoming argument.
13088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13089         (__nearbyintf_vis3): Likewise.
13090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
13091         Likewise.
13092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
13093         Likewise.
13094
13095         * string/test-strncmp.c (do_test_limit): Make sure the test data
13096         stream is aligned as required for the type "CHAR".
13097         (do_test): Likewise.
13098
13099 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13100
13101         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
13102         by beq instructions jumping to the end of the function.
13103         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
13104         clobber list. Use "i" constraint instead of "X".
13105         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
13106         of "X".
13107
13108 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
13109
13110         * bits/libc-header-start.h: New file.
13111         * Makefile (headers): Add bits/libc-header-start.h.
13112         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
13113         (__GLIBC_USE): New macro.
13114         * libio/stdio.h: Define
13115         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13116         <bits/libc-header-start.h> instead of including <features.h>.
13117         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
13118         (open_memstream): Likewise.
13119         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
13120         (__asprintf): Likewise.
13121         (asprintf): Likewise.
13122         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
13123         (getdelim): Likewise.
13124         (getline): Likewise.
13125         * string/string.h: Define
13126         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13127         <bits/libc-header-start.h> instead of including <features.h>.
13128         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
13129         (strndup): Likewise.
13130         * wcsmbs/wchar.h: Define
13131         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13132         <bits/libc-header-start.h> instead of including <features.h>.
13133         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
13134         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
13135
13136 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13137
13138         Support linking against compatibility symbols, for use in tests.
13139         * include/libc-symbols.h (symbol_version_reference): New macro.
13140         (symbol_version): Use it.
13141         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
13142         (compat_symbol): Use compat_symbol_reference.
13143         (compat_symbol_1, compat_symbol_2): Remove.
13144         (compat_symbol_reference, compat_symbol_reference_1)
13145         (compat_symbol_reference_2): New macro.  Use
13146         symbol_version_reference.
13147
13148 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13149
13150         [BZ #19469]
13151         * malloc/Makefile (CPPFLAGS): Compile tests with
13152         -DTEST_NO_MALLOPT.
13153         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
13154
13155 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
13156
13157         [BZ #20033]
13158         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
13159         finite version.
13160         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
13161         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
13162         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
13163         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
13164         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
13165         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
13166         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
13167         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
13168         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
13169         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
13170         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
13171         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
13172         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
13173         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
13174         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
13175         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
13176         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
13177         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
13178         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
13179         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
13180         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
13181         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
13182         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
13183         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
13184         in zero power.
13185
13186 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13187
13188         [BZ #20370]
13189         * malloc/arena.c (get_free_list): Update comment.  Assert that
13190         arenas on the free list have no attached threads.
13191         (remove_from_free_list): New function.
13192         (reused_arena): Call it.
13193
13194 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
13195
13196         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
13197         when it is a NaN.
13198         [_IEEE_FP_INEXACT] Remove.
13199         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
13200         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
13201         when it is a NaN.
13202         [_IEEE_FP_INEXACT] Remove.
13203         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
13204         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
13205         when it is a NaN.
13206         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
13207         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
13208         when its absolute value is greater than 0x1.0p52.
13209         [_IEEE_FP_INEXACT] Remove.
13210         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
13211         when its absolute value is greater than 0x1.0p23.
13212         [_IEEE_FP_INEXACT] Remove.
13213
13214 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
13215
13216         * version.h (RELEASE): Set to "development"
13217         (VERSION): Set to 2.24.90.
13218         * NEWS: Add 2.25 section.
13219
13220         * version.h (RELEASE): Set to "stable"
13221         (VERSION): Set to 2.24.
13222         * include/features.h (__GLIBC_MINOR__): Set to 24.
13223
13224         * NEWS: Add 2.24 fixed bugs.
13225         * po/libc.pot: Regenerate.
13226
13227 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
13228
13229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13230         [$(subdir) = math] (libm-sysdep_routines): Remove.
13231         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13232         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13233         s_truncf-vis3, s_trunc-vis3.
13234         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
13236         file.
13237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
13238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
13239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
13243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
13244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
13246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
13247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
13248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
13249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
13250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
13251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
13252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
13256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
13257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
13258         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
13259         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13260         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13261         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13262         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13263         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13264         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
13265         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13266         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13267         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
13268         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13269         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13270         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
13271         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
13272         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
13273         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
13274         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13275         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13276         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
13277         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
13278         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
13279         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
13280
13281 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
13282
13283         [BZ #20384]
13284         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
13285         test-double-libmvec-sincos-avx-main.o,
13286         test-double-libmvec-sincos-avx2-main.o,
13287         test-double-libmvec-sincos-main.o,
13288         test-float-libmvec-sincosf-avx-main.o,
13289         test-float-libmvec-sincosf-avx2-main.o and
13290         test-float-libmvec-sincosf-main.o.
13291         test-float-libmvec-sincosf-avx512-main.o.
13292         ($(objpfx)test-double-libmvec-sincos): Also link with
13293         $(objpfx)test-double-libmvec-sincos-main.o.
13294         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
13295         $(objpfx)test-double-libmvec-sincos-avx-main.o.
13296         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
13297         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
13298         ($(objpfx)test-float-libmvec-sincosf): Also link with
13299         $(objpfx)test-float-libmvec-sincosf-main.o.
13300         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
13301         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
13302         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
13303         test-double-libmvec-sincos-avx512-main.o and
13304         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
13305         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
13306         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
13307         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
13308         (CFLAGS-test-double-libmvec-sincos.c): Removed.
13309         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
13310         (CFLAGS-test-double-libmvec-sincos-main.c): New.
13311         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
13312         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
13313         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
13314         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
13315         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
13316         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
13317         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
13318         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
13319         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
13320         -DREQUIRE_AVX2.
13321         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
13322         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
13323         -DREQUIRE_AVX512F.
13324         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
13325         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
13326         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13327         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
13328         file.
13329         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
13330         Likewise.
13331         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
13332         Likewise.
13333         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
13334         Likewise.
13335         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
13336         Likewise.
13337         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
13338         Likewise.
13339         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
13340         Likewise.
13341         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
13342         Likewise.
13343
13344 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
13345
13346         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
13347
13348 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13349
13350         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
13351         and typo in a comment about AT_HWCAP entry.
13352
13353 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13354
13355         * sysdeps/aarch64/libm-test-ulps: Updated.
13356
13357 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13358
13359         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13360         of r13 as it is not restored in mvcle case.
13361
13362 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
13363
13364         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
13365         Rename "ret" to "__ret".
13366         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
13367         inline_syscall5, inline_syscall6): Likewise.
13368
13369 2016-07-19   Will Newton  <will.newton@gmail.com>
13370
13371         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
13372         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
13373         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13374         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
13375         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
13376
13377 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13378
13379         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
13380         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
13381         -mfpmath=387 with $(rtld-CFLAGS).
13382         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
13383         $(rtld-CFLAGS).
13384
13385 2016-07-18   Ross Burton  <ross.burton@intel.com>
13386              Khem Raj  <raj.khem@gmail.com>
13387
13388         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13389         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
13390         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
13391         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
13392         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
13393         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
13394         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
13395         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
13396         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
13397         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
13398         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
13399         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
13400         R_METAG_TLS_DTPOFF): New.
13401
13402 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13403             Matt Clay  <mclay@lycos.com>
13404
13405         [BZ #20357]
13406         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
13407         to call __mpsin/__mpcos and to negate values.
13408         * math/auto-libm-test-in: Add test.
13409         * math/auto-libm-test-out: Regenerate.
13410
13411 2016-07-18  Zack Weinberg  <zackw@panix.com>
13412
13413         * grp/Makefile: Don't install the internal header grp-merge.h.
13414
13415 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13416
13417         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13418
13419 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13420
13421         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
13422
13423 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13424
13425         [BZ #15368]
13426         * sysdeps/unix/sysv/linux/nptl-signals.h
13427         (__nptl_clear_internal_signals): New function.
13428         (__libc_signal_block_all): Likewise.
13429         (__libc_signal_block_app): Likewise.
13430         (__libc_signal_restore_set): Likewise.
13431         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
13432         implementation.
13433         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
13434         the cached pid/tid value in pthread structure.
13435
13436 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13437
13438         [BZ #20347]
13439         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13440
13441 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13442
13443         [BZ #20348]
13444         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
13445         preadv64, pwrite64 and pwritev64.
13446
13447 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13448
13449         [BZ #20350]
13450         * posix/tst-preadwrite.c: Renamed to ...
13451         * posix/tst-preadwrite-common.c: This.
13452         (PREAD): Removed.
13453         (PWRITE): Likewise.
13454         (STRINGIFY): Likewise.
13455         (STRINGIFY2): Likewise.
13456         (do_prepare): Make it static and remove function arguments.
13457         (do_test): Likewise.
13458         (PREPARE): Updated.
13459         (TEST_FUNCTION): New.
13460         (name): Make it static.
13461         (fd): Likewise.
13462         (do_prepare): Use create_temp_file.
13463         (do_test): Renamed to ...
13464         (do_test_with_offset): This.  Make it static and accept offset.
13465         Properly check return value of PWRITE and PREAD.  Return bytes
13466         read.  Don't close fd nor unlink name.
13467         * posix/tst-preadwrite.c: Rewrite.
13468         * posix/tst-preadwrite64.c: Likewise.
13469
13470 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13471
13472         [BZ #20309]
13473         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
13474         -mtls-dialect=gnu2 works.
13475         * configure: Regenerated.
13476         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
13477         (tests): Add tst-gnu2-tls1.
13478         (modules-names): Add tst-gnu2-tls1mod.
13479         ($(objpfx)tst-gnu2-tls1): New.
13480         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
13481         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
13482         * elf/tst-gnu2-tls1.c: New file.
13483         * elf/tst-gnu2-tls1mod.c: Likewise.
13484         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
13485         bytes for push in the PLT entry to align the stack.
13486
13487 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
13488
13489         [BZ #20349]
13490         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
13491
13492 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13493
13494         [BZ #18707]
13495         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
13496         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
13497
13498 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13499
13500         * sysdeps/unix/sysv/linux/sysdep.h
13501         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
13502         guards.
13503         * misc/tst-preadvwritev-common.c: New file.
13504         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
13505         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
13506         a check for files larger than 2GB.
13507
13508         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13509         (__ASSUME_OFF_DIFF_OFF64): Remove define.
13510         * sysdeps/unix/sysv/linux/pread.c
13511         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
13512         __OFF_T_MATCHES_OFF64_T.
13513         * sysdeps/unix/sysv/linux/pread64.c
13514         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
13515         * sysdeps/unix/sysv/linux/preadv.c
13516         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
13517         * sysdeps/unix/sysv/linux/preadv64.c
13518         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
13519         * sysdeps/unix/sysv/linux/pwrite.c
13520         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
13521         * sysdeps/unix/sysv/linux/pwrite64.c
13522         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
13523         * sysdeps/unix/sysv/linux/pwritev.c
13524         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
13525         * sysdeps/unix/sysv/linux/pwritev64.c
13526         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
13527
13528 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
13529
13530         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13531         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
13532
13533 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13534
13535         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
13536
13537 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13538
13539         [BZ #20240]
13540         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13541         (CFLAGS-s_modf-ppc32.c): New variable.
13542         (CFLAGS-s_modff-ppc32.c): Likewise.
13543         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13544         (CFLAGS-s_modf-ppc64.c): Likewise.
13545         (CFLAGS-s_modff-ppc64.c): Likewise.
13546
13547 2016-07-07  Andreas Schwab  <schwab@suse.de>
13548
13549         [BZ #20263]
13550         * nptl/tst-robust10.c: New test.
13551         * nptl/Makefile (tests): Add tst-robust10.
13552
13553 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
13554
13555         [BZ #20263]
13556         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
13557
13558 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
13559
13560         * sysdeps/s390/linkmap.h (struct link_map_machine):
13561         Remove member gotplt and add member jmprel.
13562         * sysdeps/s390/s390-32/dl-machine.h
13563         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
13564         instead of gotplt with &got[3].
13565         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
13566         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13567
13568 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
13569
13570         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
13571
13572 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13573
13574         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
13575         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
13576         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13577         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
13578         * libio/vtables.c (_IO_vtable_check)
13579         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13580         * libio/libioP.h (IO_set_accept_foreign_vtables)
13581         [!PTR_MANGLE]: Do not call PTR_MANGLE.
13582
13583 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13584
13585         [BZ #20314]
13586         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
13587         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
13588         $(common-objpfx)cmath.
13589         ($(common-objpfx)cstdlib): New target.
13590         ($(common-objpfx)cmath): Likewise.
13591
13592 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
13593
13594         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
13595
13596 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13597
13598         [BZ #20327]
13599         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
13600         are not part of the string.
13601
13602 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13603
13604         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
13605         * nptl/tst-cancel4-common.h (fifoname): New variable.
13606         (fifofd): Likewise.
13607         (cl_fifo): New function.
13608         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
13609         SIGINT.
13610         (tf_open): Add early cancel test.
13611
13612 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13613
13614         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
13615
13616 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
13617
13618         * sysdeps/generic/ldsodefs.h
13619         (dl_symbol_visibility_binds_local_p): New inline function.
13620         * elf/dl-addr.c (determine_info): Treat hidden and internal
13621         symbols as local.
13622         * elf/dl-lookup.c (do_lookup_x): Likewise.
13623         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
13624
13625 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
13626
13627         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
13628         invalid exception for a sNaN input.
13629         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13630         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13631         (__nearbyint_vis3): Likewise
13632         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13633         (__nearbyintf_vis3): Likewise
13634         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
13635         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13636         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
13637         Likewise.
13638         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
13639         Likewise.
13640
13641 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
13642
13643         [BZ #20139]
13644         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
13645         (HAVE_AVX512DQ_ASM_SUPPORT): This.
13646         * sysdeps/x86_64/configure.ac: Require assembler from binutils
13647         2.24 or above.
13648         (HAVE_AVX512_ASM_SUPPORT): Removed.
13649         (HAVE_AVX512DQ_ASM_SUPPORT): New.
13650         * sysdeps/x86_64/configure: Regenerated.
13651         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
13652         check unconditional.
13653         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13654         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13655         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13656         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13657         Likewise.
13658         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
13659         Likewise.
13660         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
13661         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
13662         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13663         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13664         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
13665         Likewise.
13666         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
13667         Likewise.
13668         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13669         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13670         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
13671         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
13672         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
13673         Likewise.
13674         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
13675         Likewise.
13676         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
13677         Likewise.
13678         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
13679         Likewise.
13680         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
13681         Likewise.
13682         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
13683         Likewise.
13684         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
13685         Likewise.
13686         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
13687         Likewise.
13688         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
13689         Likewise.
13690         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
13691         Likewise.
13692         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
13693         Likewise.
13694
13695 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
13696
13697         [BZ #20024]
13698         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
13699         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
13700         of this implementation of vector function.
13701         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
13702         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
13703         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13704         Likewise.
13705         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
13706         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
13707         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
13708         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
13709         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
13710         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
13711         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
13712         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
13713         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
13714         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
13715         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
13716         for testing vector sincos with fixed ABI.
13717         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
13718         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
13719         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
13720         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
13721         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
13722         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
13723         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
13724         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
13725         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
13726         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
13727         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
13728         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
13729         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
13730         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
13731         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13732         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13733
13734 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13735
13736         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
13737
13738 2016-06-30  Anton Blanchard  <anton@samba.org>
13739
13740         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13741         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
13742         s_sinf-ppc64.
13743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
13744         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13746         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13747
13748 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13749
13750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13751         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13752         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
13753         e_expf-ppc64.
13754         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
13755         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
13756         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
13757         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
13758
13759 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
13760
13761         [BZ #20277]
13762         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
13763         when SHARED is defined.
13764
13765 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13766
13767         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
13768         (index_arch_Prefer_ERMS): Likewise.
13769         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
13770         __memcpy_erms for Prefer_ERMS.
13771         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13772         (__memmove_erms): Enabled for libc.a.
13773         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
13774         __memmove_erms or Prefer_ERMS.
13775         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
13776         __mempcpy_erms for Prefer_ERMS.
13777         * sysdeps/x86_64/multiarch/memset.S (memset): Return
13778         __memset_erms for Prefer_ERMS.
13779
13780 2016-06-30  Andreas Schwab  <schwab@suse.de>
13781
13782         [BZ #20262]
13783         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
13784         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
13785         of memory.
13786
13787 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13788
13789         [BZ #18645]
13790         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
13791         (test-extras): Add tst-cleanupx4aux.
13792         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
13793         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
13794         tst-cleanupx4aux.o.
13795         * nptl/tst-cleanupx4aux.c: New file.
13796
13797 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13798
13799         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13800
13801 2016-06-29  Andreas Schwab  <schwab@suse.de>
13802
13803         [BZ #20260]
13804         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
13805         address before the beginning of the string as an integer to avoid
13806         array-bounds warning.
13807
13808 2016-06-28  Richard Henderson  <rth@redhat.com>
13809
13810         * elf/elf.h (EM_BPF): New.
13811         (EM_NUM): Update.
13812         (R_BPF_NONE, R_BPF_MAP_FD): New.
13813
13814         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
13815         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
13816         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
13817         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
13818         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
13819         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
13820         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
13821         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
13822         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
13823         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
13824         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
13825         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
13826         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
13827         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
13828         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
13829         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
13830         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
13831         (EM_NUM): Update.
13832
13833 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
13834
13835         [BZ #18960]
13836         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
13837         Set _nl_current_LC_CATEGORY_used to two instead of one.
13838
13839 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
13840
13841         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
13842         (do_test): ... this.
13843         (TEST_FUNCTION): New macro.
13844          Include test-skeleton.c.
13845         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
13846         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
13847
13848 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
13849
13850         [BZ #15479]
13851         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
13852         floating-point environment rather than just control word.
13853         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
13854         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
13855         floating-point environment, with "invalid" exceptions merged in,
13856         rather than just control word.
13857         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
13858         * math/libm-test.inc (trunc_test_data): Do not allow spurious
13859         "inexact" exceptions.
13860
13861         [BZ #15479]
13862         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
13863         floating-point environment rather than just control word.
13864         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
13865         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
13866         floating-point environment, with "invalid" exceptions merged in,
13867         rather than just control word.
13868         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
13869         * math/libm-test.inc (floor_test_data): Do not allow spurious
13870         "inexact" exceptions.
13871
13872         [BZ #15479]
13873         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
13874         floating-point environment rather than just control word.
13875         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
13876         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
13877         floating-point environment, with "invalid" exceptions merged in,
13878         rather than just control word.
13879         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
13880         * math/libm-test.inc (ceil_test_data): Do not allow spurious
13881         "inexact" exceptions.
13882
13883 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
13884
13885         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
13886         __libc_vfork.
13887         (__vfork) [IS_IN (libc)]: Remove alias.
13888         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
13889         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
13890         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
13891
13892 2016-06-24  Torvald Riegel  <triegel@redhat.com>
13893
13894         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
13895         of atomic_compare_and_exchange_bool_rel.
13896         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
13897         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
13898         catomic_compare_and_exchange_bool_rel): Remove.
13899         * sysdeps/aarch64/atomic-machine.h
13900         (atomic_compare_and_exchange_bool_rel): Likewise.
13901         * sysdeps/alpha/atomic-machine.h
13902         (atomic_compare_and_exchange_bool_rel): Likewise.
13903         * sysdeps/arm/atomic-machine.h
13904         (atomic_compare_and_exchange_bool_rel): Likewise.
13905         * sysdeps/mips/atomic-machine.h
13906         (atomic_compare_and_exchange_bool_rel): Likewise.
13907         * sysdeps/microblaze/atomic-machine.h
13908         ( __arch_compare_and_exchange_bool_8_rel,
13909         __arch_compare_and_exchange_bool_16_rel): Likewise.
13910         * sysdeps/powerpc/atomic-machine.h
13911         ( __arch_compare_and_exchange_bool_8_rel,
13912         __arch_compare_and_exchange_bool_16_rel): Likewise.
13913         * sysdeps/powerpc/powerpc32/atomic-machine.h
13914         ( __arch_compare_and_exchange_bool_32_rel,
13915         __arch_compare_and_exchange_bool_64_rel): Likewise.
13916         * sysdeps/powerpc/powerpc64/atomic-machine.h
13917         ( __arch_compare_and_exchange_bool_32_rel,
13918         __arch_compare_and_exchange_bool_64_rel): Likewise.
13919         * sysdeps/tile/atomic-machine.h
13920         (atomic_compare_and_exchange_bool_rel): Likewise.
13921
13922 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
13923
13924         [BZ #20296]
13925         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
13926         when either argument is a NaN.
13927         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
13928         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
13929
13930         * math/libm-test.inc (snan_value_ld): New macro.
13931         (isgreater_test_data): Add sNaN tests.
13932         (isgreaterequal_test_data): Likewise.
13933         (isless_test_data): Likewise.
13934         (islessequal_test_data): Likewise.
13935         (islessgreater_test_data): Likewise.
13936         (isunordered_test_data): Likewise.
13937         (nextafter_test_data): Likewise.
13938         (nexttoward_test_data): Likewise.
13939         (remainder_test_data): Likewise.
13940         (remquo_test_data): Likewise.
13941         (significand_test_data): Likewise.
13942         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
13943
13944 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13945
13946         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
13947         environment macros are defined.
13948         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
13949
13950 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13951
13952         [BZ #20191]
13953         Implement vtable verification in libio.
13954         * Makerules (shlib.lds): Place __libc_IO_vtables section.
13955         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
13956         * debug/vdprintf_chk.c (__vdprintf_chk): Call
13957         _IO_new_file_init_internal instead of _IO_file_init.
13958         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
13959         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
13960         * libio/Makefile (routines): Add vtables.
13961         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
13962         (_IO_init): Remove, not for internal use.
13963         (_IO_init_internal): Declare, internal replacement for _IO_init.
13964         (_IO_file_init): Remove, not for internal use.
13965         (_IO_new_file_init): Remove, not for internal use.
13966         (_IO_new_file_init_internal): Declare, internal replacement for
13967         _IO_new_file_init.
13968         (_IO_old_file_init): Remove, not for internal use.
13969         (_IO_old_file_init_internal): Declare, internal replacement for
13970         _IO_old_file_init.
13971         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
13972         internal use.
13973         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
13974         Declare.
13975         (libio_vtable): New macro.
13976         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
13977         functions.
13978         * libio/fileops.c (_IO_new_file_init_internal): Rename from
13979         _IO_new_file_init.
13980         (_IO_new_file_init): New externally visible wrapper which disables
13981         vtable verification.
13982         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
13983         Define as vtables.
13984         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
13985         (_IO_init): New externally visible wrapper which disables
13986         vtable verification.
13987         * libio/iofdopen.c (_IO_new_fdopen): Call
13988         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
13989         comment.
13990         * libio/iofopen.c (__fopen_internal): Call
13991         _IO_new_file_init_internal instead of _IO_file_init.
13992         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
13993         Define as vtables.
13994         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
13995         _IO_new_file_init_internal instead of _IO_file_init.
13996         * libio/iopopen.c (_IO_new_popen): Likewise.
13997         (_IO_proc_jumps): Define as vtable.
13998         * libio/iovdprintf.c (_IO_vdprintf): Call
13999         _IO_new_file_init_internal instead of _IO_file_init.
14000         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
14001         (__open_memstream): Call _IO_init_internal instead of _IO_init.
14002         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
14003         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
14004         _IO_old_file_init.
14005         (_IO_old_file_init): New externally visible wrapper which disables
14006         vtable verification.
14007         (_IO_old_file_jumps): Define as vtable.
14008         * libio/oldiofdopen.c (_IO_old_fdopen): Call
14009         _IO_old_file_init_internal instead of _IO_old_file_init.
14010         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
14011         * libio/oldiopopen.c (_IO_old_popen): Likewise.
14012         (_IO_old_proc_jumps): Define as vtable.
14013         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
14014         Define as vtables.
14015         * libio/vtables.c: New file.
14016         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
14017         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
14018         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
14019         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
14020         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
14021         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
14022         instead of _IO_init.
14023
14024 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14025
14026         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
14027
14028 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14029
14030         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
14031         potentially unused.
14032
14033 2016-06-22  Florian Weimer  <fweimer@redhat.com>
14034
14035         * test-skeleton.c (write_message): New function.
14036         * malloc/tst-mallocfork2.c (write_message): Remove.
14037         * debug/tst-longjmp_chk2.c (write_indented): New function.
14038         (write_message): Remove.
14039         (stackoverflow_handler): Call write_indented.
14040
14041 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
14042
14043         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
14044         "inexact" exceptions after fnstenv.
14045         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14046         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14047         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14048
14049 2015-06-22  Zack Weinberg  <zackw@panix.com>
14050
14051         * sysdeps/generic/bits/hwcap.h: Moved to ...
14052         * bits/hwcap.h: Here.
14053
14054 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
14055
14056         * sysdeps/aarch64/memcpy.S (memcpy):
14057         Further tuning for performance.
14058
14059 2016-06-21  Florian Weimer  <fweimer@redhat.com>
14060
14061         [BZ #20284]
14062         * malloc/arena.c (reused_arena): Do not return NULL if we start
14063         out with a non-corrupted arena.
14064
14065 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14066
14067         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
14068         * misc/tst-preadvwritev.c: New file.
14069         * misc/tst-preadvwritev64.c: Likewise.
14070         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
14071         usage.
14072         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
14073         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
14074         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
14075         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
14076
14077 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
14078
14079         [BZ #19654]
14080         * sysdeps/x86_64/fpu/Makefile: Added new tests.
14081         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
14082         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
14083         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
14084         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
14085         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
14086         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
14087         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
14088         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
14089         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
14090         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
14091         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
14092         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
14093         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
14094         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
14095         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
14096         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
14097         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
14098         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
14099         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
14100         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
14101         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
14102         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
14103         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
14104         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
14105         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
14106
14107 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14108
14109         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
14110         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
14111
14112 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14113
14114         * sysdeps/aarch64/memcpy.S (memcpy):
14115         Rewrite of optimized memcpy and memmove.
14116         * sysdeps/aarch64/memmove.S (memmove): Remove
14117         memmove code (merged into memcpy.S).
14118
14119 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14120
14121         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
14122         * sysdeps/generic/dl-dtv.h: New file.
14123         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14124         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
14125         (dtv_t): Remove.
14126         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14127         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
14128         (dtv_t): Remove.
14129         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14130         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
14131         (dtv_t): Remove.
14132         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14133         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
14134         (dtv_t): Remove.
14135         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14136         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
14137         (dtv_t): Remove.
14138         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14139         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
14140         (dtv_t): Remove.
14141         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14142         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
14143         (dtv_t): Remove.
14144         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
14145         (dtv_t): Remove.
14146         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14147         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
14148         (dtv_t): Remove.
14149         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14150         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
14151         (dtv_t): Remove.
14152         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14153         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
14154         (dtv_t): Remove.
14155         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14156         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
14157         (dtv_t): Remove.
14158         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14159         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
14160         (dtv_t): Remove.
14161         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14162         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
14163         (dtv_t): Remove.
14164         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14165         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
14166         (dtv_t): Remove.
14167         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14168         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
14169         (dtv_t): Remove.
14170
14171 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14172
14173         Revert symbol poisoning of  __malloc_initialize_hook.
14174         * include/stdc-predef.h (__malloc_initialize_hook): Remove
14175         poisoning.
14176         * malloc/Makefile: Remove un-poisoning.
14177         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
14178         instead of old__malloc_initialize_hook.
14179         * malloc/malloc-hooks.h: Likewise.
14180         * malloc/malloc.c: Likewise.
14181         * malloc/mcheck-init.c: Likewise.
14182
14183 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
14184
14185         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
14186
14187 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
14188
14189         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
14190         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
14191         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14192         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14193
14194 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14195
14196         * NEWS: Mention addition of nextup and nextdown.
14197         * manual/arith.texi: Document nextup and nextdown.
14198         * manual/libm-err-tab.pl: Add nextup and nextdown.
14199         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
14200         * math/Versions (libm): Add GLIBC_2.24.
14201         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
14202         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14203         Add new test.
14204         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
14205         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
14206         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
14207         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
14208         (nextup_test_data): Likewise.
14209         (nextdown_test_data): Likewise.
14210         * math/s_nextdown.c: New file.
14211         * math/s_nextdownf.c: Likewise.
14212         * math/s_nextdownl.c: Likewise.
14213         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
14214         F(nextup): New function.
14215         F(nextdown): Likewise.
14216         * math/tgmath.h: Add nextup and nextdown.
14217         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
14218         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
14219         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14220         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14221         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14222         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
14223         Add nextup and nextdown.
14224         (CFLAGS-nldbl-nextup.c): New variable.
14225         (CFLAGS-nldbl-nextdown.c): Likewise.
14226         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
14227         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
14228         * sysdeps/nacl/libm.abilist: Update.
14229         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14230         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14231         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14232         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14233         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14234         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14235         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14236         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14237         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14238         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14239         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14240         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14243         Likewise.
14244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14246         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14247         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14248         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14249         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14250         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
14252         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
14253         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14254         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14255         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14256         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14257
14258 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14259
14260         * manual/pattern.texi: Fix typos & grammar errors.
14261
14262 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14263
14264         * manual/search.texi: Fix typos & grammar errors.
14265
14266 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14267
14268         * manual/message.texi: Fix typos & grammar errors.
14269
14270 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
14271
14272         * manual/contrib.texi: Fix spelling typos.
14273         * manual/crypt.texi: Likewise.
14274         * manual/filesys.texi: Likewise.
14275         * manual/locale.texi: Likewise.
14276         * manual/message.texi: Likewise.
14277         * manual/nss.texi: Likewise.
14278         * manual/string.texi: Likewise.
14279
14280 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14281
14282         * manual/locale.texi: Fix typos & grammar errors.
14283
14284 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14285
14286         * manual/charset.texi: Fix typos & grammar errors.
14287
14288 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14289
14290         * manual/string.texi: Fix typos.
14291
14292 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14293
14294         * manual/ctype.texi: Fix typos.
14295
14296 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14297
14298         * manual/memory.texi: Fix various typos & grammar errors.
14299
14300 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
14301
14302         [BZ #20255]
14303         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
14304         * math/libm-test.inc (fdim_test_data): Add another test.
14305
14306         [BZ #6796]
14307         [BZ #20255]
14308         [BZ #20256]
14309         * math/s_fdim.c: Include <math_private.h>.
14310         (__fdim): Use math_narrow_eval on result.
14311         * math/s_fdimf.c: Include <math_private.h>.
14312         (__fdimf): Use math_narrow_eval on result.
14313         * sysdeps/i386/fpu/s_fdim.S: Remove file.
14314         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
14315         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
14316         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
14317         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
14318         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
14319         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
14320         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
14321         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
14322         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
14323         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
14324         * math/libm-test.inc (fdim_test_data): Expect errno setting on
14325         overflow.  Add sNaN tests.
14326
14327         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
14328         fpclassify.
14329         * math/s_fdimf.c (__fdimf): Likewise.
14330         * math/s_fdiml.c (__fdiml): Likewise.
14331
14332 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14333
14334         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
14335         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
14336         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
14337         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
14338         ifunc'ed strcasecmp/strncasecmp.
14339         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
14340         [EALIGN]: Removed.
14341         [END]: Likewise.
14342         [__strcasecmp]: Define instead of the above to control symbol name.
14343         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
14344         for __strcasecmp_power8.
14345         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
14346         for __strncasecmp_power8.
14347         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
14348         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
14349         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
14350         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
14351         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
14352         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
14353
14354 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
14355
14356         [BZ #20252]
14357         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
14358         arguments when second argument is a NaN.
14359         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
14360         qNaN tests.
14361
14362         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
14363         (conj_test_data): Likewise.
14364         (copysign_test_data): Likewise.
14365         (creal_test_data): Likewise.
14366         (fma_test_data): Likewise.
14367         (fmod_test_data): Likewise.
14368
14369         [BZ #20250]
14370         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
14371         itself.
14372         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
14373         zero input to itself.
14374         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
14375         Likewise.
14376         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
14377         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14378         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14379         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14380         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
14381
14382 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14383
14384         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
14385         * nptl/tst-cancel4-common.c: New file.
14386         * nptl/tst-cancel4-common.h: Likewise.
14387         * nptl/tst-cancel4.c: Move common definitions to
14388         tst-cancel4-common.{c,h} file.
14389         * nptl/tst-cancel4_1.c: New test.
14390         * nptl/tst-cancel4_2.c: New test.
14391
14392 2016-06-13  Florian Weimer  <fweimer@redhat.com>
14393
14394         [BZ #20248]
14395         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
14396         (write_message): New function.
14397         (stackoverflow_handler): Call it instead of printf, to avoid
14398         excessive stack usage by printf.
14399         (do_test): Restore SIGSEGV, SIGBUS default handlers.
14400
14401 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14402
14403         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
14404         (prio_inherit_missing): Remove define.
14405         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14406         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14407         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
14408         Likewise.
14409         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14410         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14411         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14412         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14413         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14414         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14415
14416 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14417
14418         [BZ #19670]
14419         [BZ #19672]
14420
14421         * io/test-lfs.c (do_prepare): Use xmalloc.
14422         * io/tst-fcntl.c (do_prepare): Likewise.
14423         * libio/tst-fopenloc.c (do_bz17916): Likewise.
14424         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
14425         * login/tst-utmp.c (do_prepare): Likewise.
14426         * posix/tst-exec.c (do_prepare): Likewise.
14427         * posix/tst-pathconf.c (prepare): Likewise.
14428         * posix/tst-spawn.c (do_prepare): Likewise.
14429         * posix/tst-truncate.c (do_prepare): Likewise.
14430         * rt/tst-aio.c (do_prepare): Likewise.
14431         * rt/tst-aio64.c (do_prepare): Likewise.
14432
14433 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14434
14435         [BZ #20237]
14436         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
14437         (get*ent): Set entidx to NULL during initialization.  If entidx is
14438         NULL, start iteration from the beginning.
14439
14440 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14441
14442         * malloc/malloc.c (musable): Return correct size for dumped fake
14443         mmapped chunk.
14444
14445 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14446
14447         [BZ #20222]
14448         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
14449         (_IO_cookie_write): Likewise.
14450         (_IO_cookie_seek): Likewise.
14451         (_IO_cookie_close): Likewise.
14452         (_IO_old_cookie_seek): Likewise.
14453         (set_callbacks): New function.
14454         (_IO_cookie_init): Call set_callbacks to copy callbacks.
14455
14456 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
14457
14458         * locale/programs/localedef.c (oldstyle_tables): Remove.
14459         * locale/programs/localedef.h (oldstyle_tables): Likewise.
14460
14461 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
14462
14463         [BZ #20240]
14464         * math/Makefile (CFLAGS-s_modf.c): New variable.
14465         (CFLAGS-s_modff.c): Likewise.
14466         (CFLAGS-s_modfl.c): Likewise.
14467         * math/libm-test.inc (modf_test_data): Add sNaN tests.
14468
14469 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
14470
14471         [BZ #20215]
14472         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
14473         [!__GNUC_PREREQ (3,2)]: Likewise.
14474
14475 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
14476
14477         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
14478         (msghdr.msg_controllen): Likewise.
14479         (cmsghdr.cmsg_len): Likewise.
14480         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
14481         ptw-oldsendmsg.
14482         (CFLAGS-oldrecvmsg.c): Remove rule.
14483         (CFLAGS-oldsendmsg.c): Likewise.
14484         (CFLAGS-recvmsg.c): Add rule.
14485         (CFLAGS-sendmsg.c): Likewise.
14486         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
14487         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
14488         (CFLAGS-recvmsg.c): Remove rule.
14489         (CFLAGS-sendmsg.c): Likewise.
14490         (CFLAGS-oldrecvmsg.c): Likewise.
14491         (CFLAGS-oldsendmsg.c): Likewise.
14492         (CFLAGS-recvmmsg.c): Likewise.
14493         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
14494         to kernel defined interfaces.
14495         (msghdr.msg_controllen): Likewise.
14496         (cmsghdr.cmsg_len): Likewise.
14497         (msghdr.__glibc_reserved1): Remove member.
14498         (msghdr.__glibc_reserved2): Likewise.
14499         (cmsghdr.__glibc_reserved1): Likewise.
14500         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
14501         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
14502         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14503         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14504         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
14505         version.
14506         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
14507         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
14508         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
14509         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
14510         Remove recvmsg and sendmsg.
14511         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
14512         Likewise.
14513         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14514         Likewise.
14515         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14516         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14517         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14518         Likewise.
14519         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14520         Likewise.
14521         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
14522         [libc] (GLIBC_2.24): Likewise.
14523         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14524         Likewise.
14525         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14526         Likewise.
14527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14528         [libc] (GLIBC_2.24): Likewise.
14529         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14530         Likewise.
14531         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14532         Likewise.
14533         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14534         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14535         Likewise.
14536         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14537         Likewise.
14538         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14539         Likewise.
14540         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
14541         Likewise.
14542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
14543         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
14544         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
14545         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
14546         version for {recv,send,recm,sendm}msg.
14547         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14548         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14549         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14550         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14551         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14552         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14553         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14554         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14555         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14556         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14557         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14558         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14560         Likewise.
14561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14562         Likewise.
14563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14565         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14566         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14567         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14568         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14569         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14570         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14573         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14574         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14575         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14576
14577 2016-06-10  Florian Weimer  <fweimer@redhat.com>
14578
14579         [BZ #19564]
14580         Remove __malloc_initialize_hook from the API.
14581         * malloc/malloc.h (__malloc_initialize_hook): Remove.
14582         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
14583         #pragma GCC poison.
14584         * malloc/malloc-hooks.h: New file.
14585         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
14586         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
14587         (old__malloc_initialize_hook): Rename from
14588         __malloc_initialize_hook to evade poisoning.  Turn into compat
14589         symbol.
14590         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
14591         __malloc_initialize_hook.
14592         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
14593         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
14594         * manual/memory.texi (Hooks for Malloc): Remove
14595         __malloc_initialize_hook.  Adjust hook example.
14596
14597 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
14598
14599         [BZ #20235]
14600         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
14601         itself.
14602         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
14603         * math/libm-test.inc (log2_test_data): Add sNaN tests.
14604
14605         [BZ #20234]
14606         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
14607         infinity or NaN input to itself.
14608
14609         [BZ #20233]
14610         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
14611         to itself.
14612
14613         [BZ #20232]
14614         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
14615         itself.
14616
14617 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14618
14619         * sysdeps/x86_64/start.S (_start): Always indirect branch to
14620         __libc_start_main via GOT.
14621
14622 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14623
14624         * sysdeps/x86_64/memcopy.h: New file.
14625         * sysdeps/x86_64/wordcopy.c: Likewise.
14626
14627 2016-06-09  Florian Weimer  <fweimer@redhat.com>
14628
14629         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
14630         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
14631         <cstdlib>.
14632         (optimization_barrier): New.
14633         (do_test): Use it.  Call quick_exit in the global namespace.
14634         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
14635         instead of <cstdlib>, <thread>.
14636         (optimization_barrier): New.
14637         (non_main_thread): Adjust declaration.  Call optimization_barrier.
14638         Call quick_exit in the global namespace.
14639         (do_test): Call optimization_barrier.  Use pthread_create,
14640         pthread_join instead of std::thread.
14641
14642 2016-06-09  Andreas Schwab  <schwab@suse.de>
14643
14644         [BZ #19755]
14645         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
14646         new entries in auto-propagate mode.
14647         * nscd/grpcache.c (cache_addgr): Likewise.
14648
14649 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14650
14651         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
14652         New functions.
14653         (add_temp_file): Use them.
14654
14655 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
14656
14657         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
14658
14659 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
14660
14661         [BZ #20229]
14662         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
14663         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
14664         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
14665
14666         [BZ #20228]
14667         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
14668         itself.
14669         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
14670         * math/libm-test.inc (log10_test_data): Add sNaN tests.
14671
14672         [BZ #20227]
14673         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
14674         itself.
14675         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
14676         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
14677         * math/libm-test.inc (log_test_data): Add sNaN tests.
14678
14679         [BZ #20226]
14680         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
14681         itself.
14682         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
14683         * math/libm-test.inc (exp_test_data): Add sNaN tests.
14684         (exp10_test_data): Likewise.
14685         (expm1_test_data): Likewise.
14686
14687         [BZ #20225]
14688         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
14689         itself.
14690         * math/s_ldexpf.c (__ldexpf): Likewise.
14691         * math/s_ldexpl.c (__ldexpl): Likewise.
14692         * math/w_scalbln.c (__w_scalbln): Likewise.
14693         * math/w_scalblnf.c (__w_scalblnf): Likewise.
14694         * math/w_scalblnl.c (__w_scalblnl): Likewise.
14695         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
14696         (scalbln_test_data): Likewise.
14697
14698         [BZ #20224]
14699         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
14700         argument to itself.
14701         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
14702
14703 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14704
14705         [BZ #19776]
14706         * sysdeps/x86_64/memcpy.S: Make it dummy.
14707         * sysdeps/x86_64/mempcpy.S: Likewise.
14708         * sysdeps/x86_64/memmove.S: New file.
14709         * sysdeps/x86_64/memmove_chk.S: Likewise.
14710         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
14711         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
14712         * sysdeps/x86_64/memmove.c: Removed.
14713         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
14714         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
14715         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
14716         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
14717         Likewise.
14718         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14719         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14720         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14721         memcpy-sse2-unaligned, memmove-avx-unaligned,
14722         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
14723         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14724         (__libc_ifunc_impl_list): Replace
14725         __memmove_chk_avx512_unaligned_2 with
14726         __memmove_chk_avx512_unaligned.  Remove
14727         __memmove_chk_avx_unaligned_2.  Replace
14728         __memmove_chk_sse2_unaligned_2 with
14729         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
14730         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
14731         with __memmove_avx512_unaligned.  Replace
14732         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
14733         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
14734         with __memcpy_chk_avx512_unaligned.  Remove
14735         __memcpy_chk_avx_unaligned_2.  Replace
14736         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
14737         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
14738         Replace __memcpy_avx512_unaligned_2 with
14739         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
14740         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
14741         with __mempcpy_chk_avx512_unaligned.  Remove
14742         __mempcpy_chk_avx_unaligned_2.  Replace
14743         __mempcpy_chk_sse2_unaligned_2 with
14744         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
14745         Replace __mempcpy_avx512_unaligned_2 with
14746         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
14747         Replace __mempcpy_sse2_unaligned_2 with
14748         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
14749         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
14750         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
14751         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
14752         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
14753         (ENTRY): Removed.
14754         (END): Likewise.
14755         (ENTRY_CHK): Likewise.
14756         (libc_hidden_builtin_def): Likewise.
14757         Don't include ../memcpy.S.
14758         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
14759         __memcpy_chk_avx512_unaligned_erms and
14760         __memcpy_chk_avx512_unaligned.  Use
14761         __memcpy_chk_avx_unaligned_erms and
14762         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14763         Default to __memcpy_chk_sse2_unaligned.
14764         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14765         Change function suffix from unaligned_2 to unaligned.
14766         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
14767         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
14768         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
14769         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
14770         (ENTRY): Removed.
14771         (END): Likewise.
14772         (ENTRY_CHK): Likewise.
14773         (libc_hidden_builtin_def): Likewise.
14774         Don't include ../mempcpy.S.
14775         (mempcpy): New.  Add a weak alias.
14776         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
14777         __mempcpy_chk_avx512_unaligned_erms and
14778         __mempcpy_chk_avx512_unaligned.  Use
14779         __mempcpy_chk_avx_unaligned_erms and
14780         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14781         Default to __mempcpy_chk_sse2_unaligned.
14782
14783 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14784
14785         [BZ #19881]
14786         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
14787         into ...
14788         * sysdeps/x86_64/memset.S: This.
14789         (__bzero): Removed.
14790         (__memset_tail): Likewise.
14791         (__memset_chk): Likewise.
14792         (memset): Likewise.
14793         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
14794         defined.
14795         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
14796         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
14797         (__memset_zero_constant_len_parameter): Check SHARED instead of
14798         PIC.
14799         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14800         memset-avx2 and memset-sse2-unaligned-erms.
14801         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14802         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
14803         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
14804         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14805         (__bzero): Enabled.
14806         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
14807         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
14808         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
14809         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
14810         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
14811         (memset): Removed.
14812         (__memset_chk): Likewise.
14813         (MEMSET_SYMBOL): New.
14814         (libc_hidden_builtin_def): Replace __memset_sse2 with
14815         __memset_sse2_unaligned.
14816         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
14817         __memset_chk_sse2 and __memset_chk_avx2 with
14818         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
14819         Use __memset_chk_sse2_unaligned_erms or
14820         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
14821         __memset_chk_avx512_unaligned_erms and
14822         __memset_chk_avx512_unaligned.
14823
14824 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14825
14826         * math/gen-auto-libm-test.c (fp_format_desc): remove
14827         suffix member.
14828         (output_generic_value): Remove usage of suffix member,
14829         and the resulting unuse of the fp_format argument.
14830         (output_for_one_input_case): Remove unused fp_format
14831         parameter.
14832
14833         * math/auto-libm-test-out: Regenerate.
14834
14835         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
14836         usage with TEST_COND_ibm128.
14837         (TEST_COND_flt_32): Remove.
14838         (TEST_COND_dbl_64): Remove.
14839         (TEST_COND_ldbl_96_intel): Remove.
14840         (TEST_COND_ldbl_96_m68k): Remove.
14841         (TEST_COND_ldbl_128): Remove.
14842
14843 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14844
14845         * auto-libm-test-in:
14846         Replace flt-32 usage with binary32.
14847         Replace dbl-64 usage with binary64.
14848         Replace ldbl-intel-96 usage with intel96.
14849         Replace ldbl-m68k-96 usage with m68k96.
14850         Replace ldbl-128ibm usage with ibm128.
14851         Replace ldbl-128 usage with binary128.
14852
14853         * auto-libm-test-out: Regenerate.
14854
14855 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14856
14857         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
14858         (parse_ulps): Dynamically generate type name matching
14859         string from all_floats.
14860         (get_ulps): Generate the ulps as an array instead.
14861         (output_ulps): Dynamically compose the type based
14862         on the number of supported formats, and print
14863         the indices as type specific helper macros.
14864
14865         * math/libm-test.inc: Remove comment about CHOOSE.
14866         (ulp_data): Generate the type in libm-test-ulps.h.
14867         (ULP_IDX): New macro.
14868         (find_ulps): Update usage of max_ulp.
14869
14870         * math/test-double-vlen2.h (CHOOSE): Remove.
14871         * math/test-double-vlen4.h (CHOOSE): Likewise.
14872         * math/test-double-vlen8.h (CHOOSE): Likewise.
14873         * math/test-float.c (CHOOSE): Likewise.
14874         * math/test-float-finite.c (CHOOSE): Likewise.
14875         * math/test-double.c (CHOOSE): Likewise.
14876         * math/test-double-finite.c (CHOOSE): Likewise.
14877         * math/test-idouble.c (CHOOSE): Likewise.
14878         * math/test-ifloat.c (CHOOSE): Likewise.
14879         * math/test-ildoubl.c (CHOOSE): Likewise.
14880         * math/test-ldouble-finite.c (CHOOSE): Likewise.
14881         * math/test-ldouble.c (CHOOSE): Likewise.
14882
14883         * math/test-float.h (TEST_FLOAT): Remove.
14884         * math/test-double.h (TEST_DOUBLE): Likewise.
14885         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
14886
14887 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14888
14889         * math/gen-libm-test.pl: (apply_lit): New subroutine.
14890         (parse_args): Strip C suffix from floating point literals
14891         typed with 'f' and wrap them with LIT().
14892
14893         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
14894         (test_ff_f_data_nexttoward): Rename to
14895         (test_fj_f_data): New struct.
14896         (nexttoward_test_data): Relabel tests as
14897         TEST_fj_f instead of TEST_ff_f.
14898
14899 2016-06-08  Florian Weimer  <fweimer@redhat.com>
14900
14901         Emacs bug 23726.
14902         * malloc/malloc.c (dumped_main_arena_start): Update comment.
14903         (__libc_realloc): Correct size computation for dumped fake mmapped
14904         chunks.
14905
14906 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
14907
14908         [BZ #20219]
14909         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
14910         to itself.
14911         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
14912
14913         [BZ #20218]
14914         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
14915         to itself.
14916         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
14917
14918 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14919
14920         [BZ #20195]
14921         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
14922         check to ...
14923         (init_cpu_features): Here.
14924
14925 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
14926
14927         [BZ #20214]
14928         * sysdeps/unix/sysv/linux/bits/in.h
14929         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14930          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
14931         Define to 1.
14932         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14933          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
14934         Define to 0.
14935         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
14936         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
14937
14938 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
14939
14940         [BZ #20198]
14941         * stdlib/Makefile (tests): Add tst-quick_exit, and
14942         tst-thread-quick_exit.
14943         [ifeq ($(have-cxx-thread_local),yes)]
14944         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
14945         (CFLAGS-tst-thread-quick_exit.o): Likewise.
14946         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
14947         (LDLIBS-tst-thread-quick_exit): Likewise.
14948         [ifneq ($(have-cxx-thread_local),yes)]
14949         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
14950         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
14951         If run_dtors is true call __call_tls_dtors.
14952         (exit): Call __run_exit_handlers with run_dtors set to true.
14953         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
14954         definition.
14955         * stdlib/quick_exit.c (quick_exit): Remove function.
14956         (__new_quick_exit): New function.
14957         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
14958         function.
14959         * stdlib/tst-quick_exit.cc: New file.
14960         * stdlib/tst-thread-quick_exit.cc: New file.
14961         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
14962         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
14963         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
14964         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
14965         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
14966         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
14967         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
14968         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
14969         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
14970         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
14971         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
14972         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
14973         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
14974         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
14975         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
14976         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
14977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
14978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
14979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
14980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
14981         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
14982         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
14983         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
14984         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
14985         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
14986         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
14987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
14988         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
14989         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
14990         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
14991
14992 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
14993
14994         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
14995         a typo in comments.
14996
14997 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14998
14999         [BZ #20213]
15000         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
15001         argument to itself.
15002         * math/libm-test.inc (asin_test_data): Add sNaN tests.
15003
15004 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15005
15006         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
15007         required flags.
15008         (CFLAGS-pwritev64.c): Likewise.
15009         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
15010         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
15011         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
15012         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
15013         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
15014         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
15015         syscall from auto-generation.
15016         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
15017         [WORDSIZE == 64] (pwritev64): Remove macro.
15018         [!PWRITEV] (PWRITEV): Likewise.
15019         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
15020         [!PWRITEV] (PWRITE): Likewise.
15021         [!PWRITEV] (OFF_T): Likewise.
15022         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
15023         (LO_HI_LONG): Remove macro.
15024         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
15025         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
15026         (PWRITEV): Remove macro.
15027         (PWRITEV_REPLACEMENTE): Likewise.
15028         (PWRITE): Likewise.
15029         (OFF_T): Likewise.
15030         (pwritev64): New function.
15031         * nptl/tst-cancel4.c (tf_writev): Add test.
15032
15033         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
15034         required flags.
15035         (CFLAGS-preadv64.c): Likewise.
15036         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
15037         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
15038         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
15039         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
15040         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
15041         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
15042         syscall from auto-generation.
15043         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
15044         [WORDSIZE == 64] (preadv64): Remove macro.
15045         [!PREADV] (PREADV): Likewise.
15046         [!PREADV] (PREADV_REPLACEMENT): Likewise.
15047         [!PREADV] (PREAD): Likewise.
15048         [!PREADV] (OFF_T): Likewise.
15049         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
15050         (LO_HI_LONG): Remove macro.
15051         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
15052         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
15053         (PREADV): Remove macro.
15054         (PREADV_REPLACEMENTE): Likewise.
15055         (PREAD): Likewise.
15056         (OFF_T): Likewise.
15057         (preadv64): New function.
15058         * nptl/tst-cancel4.c (tf_preadv): Add test.
15059
15060 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
15061
15062         [BZ #20212]
15063         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
15064         argument to itself.
15065         * math/libm-test.inc (acos_test_data): Add sNaN tests.
15066
15067 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15068
15069         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
15070         New symbol defined as libc_hidden_def.
15071         (strcasestr): Became a weak alias to __strcasestr.
15072         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
15073         according to multi-arch support.  Move __stpncpy hidden
15074         definition from here to...
15075         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
15076         symbol stpncpy.
15077         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
15078         libc_hidden_builtin_def.
15079         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
15080         memset symbol to use when multi-arch support is available.
15081
15082 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
15083
15084         * dlfcn/tst-rec-dlopen.c: Include string.h.
15085
15086 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15087
15088         * manual/install.texi: Remove mention of --without-tls
15089         * INSTALL: Regenerate.
15090
15091 2016-06-05  Florian Weimer  <fweimer@redhat.com>
15092
15093         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
15094         Remove.
15095         (call_function, interposed_malloc_called): New variables.
15096         (malloc): New function.
15097         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
15098         and clear call_function as needed.
15099
15100 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
15101
15102         * include/wchar.h (__wmemset): Use __typeof.
15103
15104 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
15105
15106         * include/wchar.h (__wmemset): Declare function without typeof.
15107
15108 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
15109
15110         [BZ #20205]
15111         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
15112         exponent when incrementing negative subnormal with low mantissa
15113         word zero.
15114         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
15115         Add another test.
15116
15117 2016-06-03  Florian Weimer  <fweimer@redhat.com>
15118
15119         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
15120         __wmemset instead of wmemset.
15121
15122 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
15123
15124         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
15125         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
15126         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
15127         __USE_KERNEL_IPV6_DEFS to 0.
15128         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
15129         Update comment.
15130
15131 2016-06-01  Florian Weimer  <fweimer@redhat.com>
15132
15133         [BZ #19861]
15134         Do not use IFUNC resolver with potentially unrelocated symbol.
15135         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
15136         (DEFINE_FORK): Remove macro and inline definition.
15137         (fork_alias): Renamed from fork_ifunc.
15138         (__fork_alias): Renamed from __fork_ifunc.
15139
15140 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
15141
15142         [BZ 19653]
15143         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
15144         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
15145
15146 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15147
15148         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
15149         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
15150         i386-linux-gnu).
15151         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
15152         Set to no.
15153         * sysdeps/mach/hurd/configure: Refresh.
15154
15155 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15156
15157         [BZ #20178]
15158         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
15159         on failure instead of exit.
15160
15161 2016-05-30  Roland McGrath  <roland@hack.frob.com>
15162
15163         [BZ #3629]
15164         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
15165         of POSIX.1-2008.
15166
15167 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15168
15169         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
15170           Use PLT entry for calling _hurd_self_sigstate.
15171
15172 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15173
15174         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
15175         available logical processors with SMT level type sharing L2
15176         cache for Intel processors.
15177
15178 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15179
15180         [BZ #20160]
15181         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
15182         argument to itself before returning the result.
15183         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15184         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15185         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15186         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
15187         Likewise.
15188         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
15189         Likewise.
15190         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
15191         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
15192         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
15193         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
15194         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15195         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15196
15197         [BZ #20160]
15198         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
15199         argument to itself before returning the result.
15200         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15201         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15202         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15203         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
15204         Likewise.
15205         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
15206         Likewise.
15207         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
15208         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
15209         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
15210         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
15211         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15212         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15213
15214 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15215
15216         * libm-test.inc: Replace usage of M_El with
15217         (lit_e): New macro.
15218
15219 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15220
15221         * libm-test.inc: Replace usage of M_PI_4l with
15222         (lit_pi_4_d): New macro.
15223
15224 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15225
15226         * libm-test.inc: Replace usage of M_PIl with
15227         (lit_pi): New macro.
15228
15229 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15230
15231         * libm-test.inc: Replace usage of M_PI2l with
15232         (lit_pi_2_d): New macro.
15233
15234         * math/test-double.h (LITM): New macro.
15235         * math/test-float.h (LITM): Likewise.
15236         * math/test-ldouble.h (LITM): Likewise.
15237
15238 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15239
15240         * libm-test.inc (M_PI_34l): Rename to
15241         (lit_pi_3_m_4_d): New Macro.
15242         (M_PI_34_LOG10El): Rename to
15243         (lit_pi_3_m_4_ln10_m_d): New Macro.
15244         (M_PI2_LOG10El): Rename to
15245         (lit_pi_2_ln10_m_d):  New Macro.
15246         (M_PI4_LOG10El): Rename to
15247         (lit_pi_4_ln10_m_d):  New Macro.
15248         (M_PI_LOG10El): Rename to
15249         (lit_pi_ln10_d):  New Macro.
15250
15251 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15252
15253         [BZ #20157]
15254         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
15255         determine whether to negate low half if [_ARCH_PPCGR], and integer
15256         comparison otherwise.
15257         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
15258         determine whether to negate low half.
15259
15260         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
15261         (NO_TEST_INLINE_DOUBLE): Likewise.
15262         (TEST_COND_x86_64): Likewise.
15263         (TEST_COND_x86): Likewise.
15264         (M_PI_6l): Likewise.
15265
15266 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15267
15268         * math/libm-test.inc:
15269         (TEST_FLOAT): Change usage to TEST_COND_binary32.
15270         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
15271         (TEST_LDOUBLE): Update usage to evaluate as true if
15272         the guarded tests match the property being tested.
15273         (LDBL_MAX_EXP): Change to MAX_EXP.
15274         (LDBL_MIN_EXP): Change to MIN_EXP.
15275         (LDBL_MANT_DIG): Change to MANT_DIG, except for
15276         nexttoward tests.
15277
15278 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15279
15280         * math/libm-test.inc:
15281         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
15282         (TYPE_MIN): Likewise.
15283         (TYPE_TRUE_MIN): Likewise.
15284         (TYPE_MAX): Likewise.
15285         (MIN_EXP): Likewise.
15286         (MAX_EXP): Likewise.
15287         (MANT_DIG): Likewise.
15288
15289         (FSTR_MAX): New macro.
15290         (__CONCATX): Likewise.
15291         (QTYPE_STR): Likewise.
15292         (TEST_COND_binary32): Likewise.
15293         (TEST_COND_binary64): Likewise.
15294         (TEST_COND_binary128): Likewise.
15295         (TEST_COND_ibm128): Likewise.
15296         (TEST_COND_intel96): Likewise.
15297         (TEST_COND_m68k96): Likewise.
15298
15299         (TEST_COND_flt_32): Redefine as equivalent format test macro.
15300         (TEST_COND_dbl_64): Likewise.
15301         (TEST_COND_ldbl_96_intel): Likewise.
15302         (TEST_COND_ldbl_96_m68k): Likewise.
15303         (TEST_COND_ldbl_128): Likewise.
15304         (TEST_COND_ldbl_128ibm): Likewise.
15305
15306         (plus_zero): Redefine using LIT macro.
15307         (minus_zero): Likewise.
15308         (plus_infty): Redefine as (INF).
15309         (minux_infty): Redefine as (-INF).
15310         (max_value): Redefine as TYPE_MAX.
15311         (min_value): Redefine as TYPE_MIN.
15312         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
15313
15314         (print_float): Refactor to use snprintf to convert FLOAT values
15315         to string. This brings it closer to dropin replacement of strtof
15316         for the TS 18661 defined types.
15317         (update_stats): Likewise.
15318         (print_complex_function_ulps): Likewise.
15319         (print_max_error): Likewise.
15320         (print_complex_max_error): Likewise.
15321         (check_float_internal): Likewise.
15322
15323         * math/test-float.h (PREFIX): New macro.
15324         (LIT): Likewise.
15325         (TYPE_STR): Likewise.
15326         (FTOSTR): Likewise.
15327
15328         * math/test-double.h (PREFIX): New macro.
15329         (LIT): Likewise.
15330         (TYPE_STR): Likewise.
15331         (FTOSTR): Likewise.
15332
15333         * math/test-ldouble.h (PREFIX): New macro.
15334         (LIT): Likewise.
15335         (TYPE_STR): Likewise.
15336         (FTOSTR): Likewise.
15337
15338 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15339
15340         [BZ #20156]
15341         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
15342         to itself when zero or not finite.
15343         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
15344         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
15345         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
15346         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
15347
15348 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
15349
15350         [BZ #20153]
15351         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
15352         x * x + x for infinities and NaNs.
15353
15354         [BZ #20151]
15355         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
15356         argument to itself before returning result.
15357         (__ieee754_y0l): Likewise.
15358         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15359         (__ieee754_y1l).
15360
15361         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
15362         (atan_test_data): Likewise.
15363         (ceil_test_data): Likewise.
15364         (cos_test_data): Likewise.
15365         (cosh_test_data): Likewise.
15366         (erf_test_data): Likewise.
15367         (exp2_test_data): Likewise.
15368         (fabs_test_data): Likewise.
15369         (floor_test_data): Likewise.
15370         (ilogb_test_data): Likewise.
15371         (j0_test_data): Likewise.
15372         (j1_test_data): Likewise.
15373         (jn_test_data): Likewise.
15374         (lgamma_test_data): Likewise.
15375         (lrint_test_data): Likewise.
15376         (llrint_test_data): Likewise.
15377         (logb_test_data): Likewise.
15378         (lround_test_data): Likewise.
15379         (llround_test_data): Likewise.
15380         (nearbyint_test_data): Likewise.
15381         (rint_test_data): Likewise.
15382         (round_test_data): Likewise.
15383         (sin_test_data): Likewise.
15384         (sincos_test_data): Likewise.
15385         (sinh_test_data): Likewise.
15386         (sqrt_test_data): Likewise.
15387         (tan_test_data): Likewise.
15388         (tanh_test_data): Likewise.
15389         (tgamma_test_data): Likewise.
15390         (trunc_test_data): Likewise.
15391         (y0_test_data): Likewise.
15392         (y1_test_data): Likewise.
15393         (yn_test_data): Likewise.
15394
15395         * math/libm-test.inc: Update comment about NaN testing.
15396         (TEST_SNAN): New macro.
15397         (snan_value): Likewise.
15398         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
15399         (fpclassify_test_data): Add sNaN tests.
15400         (isfinite_test_data): Likewise.
15401         (isinf_test_data): Likewise.
15402         (isnan_test_data): Likewise.
15403         (isnormal_test_data): Likewise.
15404         (issignaling_test_data): Likewise.
15405         (signbit_test_data): Likewise.
15406         * math/gen-libm-test.pl (%beautify): Add snan_value.
15407         (show_exceptions): Add argument $test_snan.
15408         (parse_args): Handle snan_value as non-finite.  Update call to
15409         show_exceptions.
15410         * math/Makefile (libm-test-no-inline-cflags): Add
15411         -fsignaling-nans.
15412
15413 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15414
15415         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
15416         (CFLAGS-oldsendmsg.c): Add rule.
15417         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
15418         Correct recvmsg symbol name.
15419         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
15420         Likewise.
15421
15422 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15423
15424         * sysdeps/unix/sysv/linux/Makefile
15425         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
15426         oldsendmmsg.
15427         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
15428         sendmmsg.
15429         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15430         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15431         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15432         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15434         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15435         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15436         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15437         Likewise.
15438         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15439         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
15440         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
15441         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
15442         iovlen and controllen fields to adjust to POSIX specification.
15443         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15444
15445         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
15446         and change to correct expected type.
15447         (msghdr.msg_controllen): Likewise.
15448         (cmsghdr.cmsg_len): Likewise.
15449         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
15450         expected POSIX assumption about the size.
15451         (msghdr.msg_controllen): Likewise.
15452         (msghdr.__glibc_reserved1): Likewise.
15453         (msghdr.__glibc_reserved2): Likewise.
15454         (cmsghdr.cmsg_len): Likewise.
15455         (cmsghdr.__glibc_reserved1): Likewise.
15456         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
15457         Add ptw-oldrecvmsg and ptw-oldsendmsg.
15458         (CFLAGS-sendmsg.c): Remove rule.
15459         (CFLAGS-recvmsg.c): Likewise.
15460         (CFLAGS-oldsendmsg.c): Add rule.
15461         (CFLAGS-oldrecvmsg.c): Likewise.
15462         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
15463         recvmsg and sendmsg.
15464         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
15465         Likewise.
15466         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
15467         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
15468         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
15469         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
15470         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
15471         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
15472         Likewise.
15473         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
15474         Likewise.
15475         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
15476         Likewise.
15477         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
15478         Likewise.
15479         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
15480         Likewise.
15481         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
15482         Likewise.
15483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
15484         (GLIBC_2.24): Likewise.
15485         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
15486         Likewise.
15487         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
15488         Likewise.
15489         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
15490         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
15491         Likewise.
15492         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
15493         Likewise.
15494         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
15495         Likewise.
15496         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
15497         (GLIBC_2.24): Likewise.
15498         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
15499         Likewise.
15500         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
15501         Likewise.
15502         * sysdeps/unix/sysv/linux/Makefile
15503         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
15504         (CFLAGS-sendmsg.c): Add rule.
15505         (CFLAGS-recvmsg.c): Likewise.
15506         (CFLAGS-oldsendmsg.c): Likewise.
15507         (CFLAGS-oldrecvmsg.c): Likewise.
15508         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
15509         initialization.
15510         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
15511         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
15512         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
15513         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
15514         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
15515         iovlen and controllen fields to adjust to POSIX specification.
15516         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
15517         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
15518         added recvmsg and sendmsg.
15519         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15520         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15521         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15522         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15523         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15524         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15525         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15526         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15527         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15528         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15529         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15530         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15532         Likewise.
15533         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
15534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15535         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15536         Likewise.
15537         Likewise.
15538         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15539         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15540         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15541         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15542         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15543         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
15545         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
15547         Likewise.
15548         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15549         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15550
15551         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
15552         from auto-generation.
15553         (sendmsg): Likewise.
15554         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
15555         (sendmsg): Likewise.
15556         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
15557         (sendmsg): Likewise.
15558         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
15559         (sendmsg): Likewise.
15560         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
15561         (sendmsg): Likewise.
15562         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
15563         (sendmsg): Likewise.
15564         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
15565         Likewise.
15566         (sendmsg): Likewise.
15567         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
15568         (sendmsg): Likewise.
15569         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15570         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15571         Remove.
15572         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15573         Likewise.
15574         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15575         Undefine.
15576         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15577         Likewise.
15578         * sysdeps/unix/sysv/linux/kernel-features.h
15579         (__ASSUME_SENDMSG_SYSCALL): Define.
15580         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15581         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
15582         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15583         Remove.
15584         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15585         Likewise.
15586         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15587         Undefine.
15588         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15589         Likewise.
15590         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15591         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15592         Remove.
15593         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15594         Likewise.
15595         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15596         Undefine.
15597         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15598         Likewise.
15599         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15600         (__ASSUME_SENDMSG_SYSCALL): Undefine.
15601         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15602         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15603         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15604         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15605         * sysdeps/unix/sysv/linux/sh/kernel-features.h
15606         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15607         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15608
15609 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15610
15611         * stdlib/gen-tst-strtod-round.c: Add backslash to
15612         compile command in comment.
15613         (printfp): Remove the literal suffix, and define an infinite
15614         value as INF to avoid expansion clash with INFINITY.
15615         (round_str): Remove the literal suffix.
15616         (round_for_all): Likewise, remove the now duplicate ldbl-64
15617         entry, and remove some magic constants.
15618
15619         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
15620         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
15621         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
15622         (_CONCAT): New macro.
15623         (CONCAT): Likewise.
15624         (CHOOSE_ld): Likewise.
15625         (CHOOSE_f): Likewise.
15626         (CHOOSE_d): Likewise.
15627         (FTYPE_MEMBER): Likewise.
15628         (BOOL_MEMBER): Likewise.
15629         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
15630         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
15631         (_XNTRY): Likewise.
15632         (XNTRY): Likewise.
15633         (_ENTRY): Likewise.
15634         (ENTRY): Likewise.
15635         (test_exactness): Generate members via macro.
15636         (test_results): Likewise.
15637         (test): Update members.
15638         (TEST): Redefine using new macros.
15639         (INF): New macro.
15640         (fetestmodes): New structure.
15641         (do_test): Refactor to be type generic.
15642         (test_in_one_mode): Refactor duplicate code into
15643         (GEN_ONE_TEST): New macro.
15644
15645         * stdlib/tst-strtod-round-data.h: Regenerate.
15646
15647         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
15648         Extend to pass additional arbitrary parameters to
15649         generators.
15650
15651 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
15652
15653         [BZ #15479]
15654         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
15655         floating-point state after first floating-point operation on
15656         input.  Restore full floating-point state instead of just rounding
15657         mode.
15658         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15659         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15660         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15661         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15662         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15663
15664         [BZ #15479]
15665         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
15666         floating-point state after first floating-point operation on
15667         input.  Restore full floating-point state instead of just rounding
15668         mode.
15669         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15670         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15671         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15672         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15673         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15674
15675 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15676
15677         [BZ #19727]
15678         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
15679         valid high surrogate.
15680         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
15681         of an utf16 surrogate.
15682         * iconv/gconv_simple.c (BODY): Likewise.
15683         * iconvdata/bug-iconv12.c: New file.
15684         * iconvdata/Makefile (tests): Add bug-iconv12.
15685
15686 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15687
15688         [BZ #19726]
15689         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
15690         outptrp in case of an illegal input.
15691         * iconv/tst-iconv6.c: New file.
15692         * iconv/Makefile (tests): Add tst-iconv6.
15693
15694 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15695
15696         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
15697         an error in case of a value in range of an utf16 low surrogate.
15698
15699 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15700
15701         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
15702         an error in case of a value in range of an utf16 low surrogate.
15703
15704 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15705
15706         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
15707         Move to ...
15708         * sysdeps/s390/Makefile: ... here.
15709         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
15710         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
15711         (BRANCH_ON_COUNT): New define.
15712         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
15713         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
15714         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
15715         run on s390-32, too.
15716         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
15717         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
15718         run on s390-32, too.
15719         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
15720         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
15721         run on s390-32, too.
15722
15723 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15724
15725         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
15726         etf3eh or new vector loop-variant.
15727
15728 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15729
15730         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
15731         etf3eh or new vector loop-variant.
15732
15733 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15734
15735         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
15736         or new vector loop-variant.
15737
15738 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15739
15740         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
15741         Rename to TR_LOOP and usage of tr instead of troo instruction.
15742
15743 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15744
15745         * sysdeps/s390/multiarch/gconv_simple.c: New File.
15746         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
15747
15748 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15749
15750         * sysdeps/s390/multiarch/8bit-generic.c: New File.
15751         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
15752         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
15753         New override define.
15754         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
15755
15756 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15757
15758         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
15759         * sysdeps/s390/configure.ac: Add test for S390 vector register
15760         support in gcc.
15761         * sysdeps/s390/configure: Regenerated.
15762
15763 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15764
15765         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
15766         Install file from $(objpfx)gconv-modules.
15767         ($(objpfx)gconv-modules): Concatenate architecture specific file
15768         in variable sysdeps-gconv-modules and gconv-modules in src dir.
15769         * sysdeps/s390/gconv-modules: New file.
15770         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
15771         Deleted.
15772         ($(objpfx)gconv-modules-s390): Deleted.
15773         (sysdeps-gconv-modules): New variable.
15774
15775 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15776
15777         [BZ #15479]
15778         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
15779         of immediate operand to rounding instruction.
15780         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
15781         Likewise.
15782         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
15783         Likewise.
15784         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
15785         Likewise.
15786
15787 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15788
15789         * math/libm-test.inc (MIN_EXP): Directly define as
15790         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
15791
15792 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15793
15794         * math/libm-test.inc (MANT_DIG): Directly define as
15795         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
15796
15797 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15798
15799         * stdlib/gen-tst-strtod-round.c (main):
15800           Change usage to more closely match the generated
15801           output.  Add usage and compilation instructions.
15802           (string_to_fp): Add and use FILE* parameter as
15803           output target.
15804           (print_fp): Likewise.
15805           (round_str): Likewise.
15806           (round_for_all): Likewise.
15807         * stdlib/tst-strtod-round.c (tests): Move into
15808         * stdlib/tst-strtod-round-data.h: New file.
15809
15810 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15811
15812         [BZ #15479]
15813         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
15814         (__round): Do not force "inexact" exception.
15815         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
15816         variable.
15817         (__round): Do not force "inexact" exception.
15818         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
15819         (__roundf): Do not force "inexact" exception.
15820         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
15821         (__roundl): Do not force "inexact" exception.
15822         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
15823         (__roundl): Do not force "inexact" exception.
15824         * math/libm-test.inc (round_test_data): Do not allow spurious
15825         "inexact" exceptions.
15826
15827         [BZ #15479]
15828         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
15829         exception in comment.
15830         (huge): Remove variable.
15831         (__floor): Do not force "inexact" exception.
15832         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
15833         "inexact" exception in comment.
15834         (huge): Remove variable.
15835         (__floor): Do not force "inexact" exception.
15836         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
15837         exception in comment.
15838         (huge): Remove variable.
15839         (__floorf): Do not force "inexact" exception.
15840         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
15841         exception in comment.
15842         (huge): Remove variable.
15843         (__floorl): Do not force "inexact" exception.
15844
15845         [BZ #15479]
15846         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
15847         exception in comment.
15848         (huge): Remove variable.
15849         (__ceil): Do not force "inexact" exception.
15850         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
15851         "inexact" exception in comment.
15852         (huge): Remove variable.
15853         (__ceil): Do not force "inexact" exception.
15854         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
15855         (__ceilf): Do not force "inexact" exception.
15856         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
15857         exception in comment.
15858         (huge): Remove variable.
15859         (__ceill): Do not force "inexact" exception.
15860
15861 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15862
15863         * config.h.in (BIND_NOW): New.
15864         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
15865         * configure: Regenerated.
15866         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
15867         indirect branch via the GOT slot.
15868
15869 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15870
15871         [BZ #19765]
15872         * sysdeps/s390/mempcpy.S: New File.
15873         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
15874         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
15875         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15876         Add mempcpy variants.
15877         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
15878         (memcpy): Adjust to be usable from mempcpy entry point.
15879         (__memcpy_mvcle): Likewise.
15880         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15881         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
15882         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
15883         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
15884         (__memcpy_z10): Likewise.
15885         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15886
15887 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15888
15889         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
15890         Remove __GI_ symbol.
15891         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
15892         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
15893         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
15894         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15895         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
15896         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
15897
15898 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15899
15900         * sysdeps/s390/s390-64/memcpy.S (memcpy):
15901         Use cghi instead of chi to compare 64bit value.
15902
15903 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15904
15905         * sysdeps/s390/s390-32/memcpy.S (memcpy):
15906         Jump to 1MB check before executing mvc-loop.
15907
15908 2016-05-24  Florian Weimer  <fweimer@redhat.com>
15909
15910         [BZ #6527]
15911         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
15912         unconditionally.
15913         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
15914
15915 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15916
15917         * stdlib/tst-strtod6.c (do_test): Use new type generic
15918         invocation of the test function.
15919         (test): Refactor into ...
15920         (TEST_STRTOD): New macro base function.
15921
15922 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15923
15924         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
15925         (TEST_STRTOD): New macro.
15926         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
15927
15928 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15929
15930         * stdlib/tst-strtod6.c (do_test): Use new type generic
15931         invocation of the test function.
15932         (test): Refactor into ...
15933         (TEST_STRTOD): New macro base function.
15934
15935 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15936
15937         CVE-2016-4429
15938         [BZ #20112]
15939         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
15940         payload.
15941
15942 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15943
15944         [BZ #20111]
15945         * bits/sockaddr.h (_SS_SIZE): Define.
15946         * bits/socket.h (_SS_SIZE): Remove.
15947         (_SS_PADSIZE): Adjust to account for all padding.
15948         (struct sockaddr_storage): Update comment.  Avoid implicit
15949         padding.
15950         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
15951         (_SS_PADSIZE): Adjust to account for all padding.
15952         (struct sockaddr_storage): Update comment.  Avoid implicit
15953         padding.
15954         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
15955         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
15956         (_SS_PADSIZE): Adjust to account for all padding.
15957         (struct sockaddr_storage): Update comment.  Avoid implicit
15958         padding.
15959         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
15960         __SS_SIZE is 126 in this version.
15961         * inet/tst-sockaddr.c: New file.
15962         * inet/Makefile (tests): Add tst-sockaddr.c
15963         (tst-sockaddr.c): Compile with non-strict aliasing.
15964
15965 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
15966
15967         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
15968         [XPG3 || XPG4].
15969         (NL_ARGMAX): Also expect for [XPG3].
15970         (NL_LANGMAX): Likewise.
15971         (NL_MSGMAX): Likewise.
15972         (NL_NMAX): Likewise.
15973         (NL_SETMAX): Likewise.
15974         (NL_TEXTMAX): Likewise.
15975         (NZERO): Likewise.
15976         (TMP_MAX): Likewise.
15977         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
15978         variable.
15979
15980         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
15981         (PF_MAX): Update value.
15982         (AF_KCM): New macro.
15983         (SOL_NETBEUI): Likewise.
15984         (SOL_LLC): Likewise.
15985         (SOL_DCCP): Likewise.
15986         (SOL_NETLINK): Likewise.
15987         (SOL_TIPC): Likewise.
15988         (SOL_RXRPC): Likewise.
15989         (SOL_PPPOL2TP): Likewise.
15990         (SOL_BLUETOOTH): Likewise.
15991         (SOL_PNPIPE): Likewise.
15992         (SOL_RDS): Likewise.
15993         (SOL_IUCV): Likewise.
15994         (SOL_CAIF): Likewise.
15995         (SOL_ALG): Likewise.
15996         (SOL_NFC): Likewise.
15997         (SOL_KCM): Likewise.
15998         (MSG_BATCH): New enum value and macro.
15999
16000 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16001
16002         [BZ #18185]
16003         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
16004         sharing L2 cache to 2 for Knights Landing.
16005
16006 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
16007
16008         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
16009         (FTW_DP): Do not expect for [XPG3 || XPG4].
16010         (FTW_SL): Do not expect for [XPG3].
16011         (FTW_SLN): Likewise.
16012         (FTW_PHYS): Likewise.
16013         (FTW_MOUNT): Likewise.
16014         (FTW_DEPTH): Likewise.
16015         (FTW_CHDIR): Likewise.
16016         (nftw): Likewise.
16017         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
16018         variable.
16019
16020 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
16021
16022         * manual/errno.texi: Fix various typos & grammar errors.
16023
16024 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
16025
16026         * manual/intro.texi: Fix duplicated typo.
16027
16028 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
16029
16030         [BZ #13304]
16031         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
16032         <float.h>, <math_private.h> and <stdlib.h>.
16033         (add_split): New function.
16034         (mul_split): Likewise.
16035         (ext_val): New typedef.
16036         (store_ext_val): New function.
16037         (mul_ext_val): New function.
16038         (compare): New function.
16039         (add_split_ext): New function.
16040         (__fmal): After checking for Inf, NaN and zero, compute result as
16041         an exact sum of scaled double values in round-to-nearest before
16042         adding those up and adjusting for other rounding modes.
16043         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
16044         tests of fma.
16045         * math/auto-libm-test-out: Regenerated.
16046
16047 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16048
16049         [BZ #20119]
16050         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
16051         processor level type mask for CPUID with EAX == 11.
16052
16053 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16054
16055         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
16056         logical threads if the HTT bit is 0.
16057         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
16058         (index_cpu_HTT): Likewise.
16059         (reg_HTT): Likewise.
16060
16061 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16062
16063         [BZ #20115]
16064         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
16065         Remove alignments on jump targets.
16066
16067 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
16068
16069         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
16070         (getpwent): Likewise.
16071         (setpwent): Likewise.
16072         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
16073         variable.
16074
16075         * conform/data/search.h-data (insque): Do not expect for [XPG3].
16076         (remque): Likewise.
16077         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
16078         variable.
16079
16080 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16081
16082         * math/libm-test.inc: Update comment not to refer to signs of NaNs
16083         not being tested.
16084
16085 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16086
16087         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16088         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
16089         call.
16090         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16091         (__condvar_cleanup1): Likewise.
16092
16093 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16094
16095         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
16096         New
16097         (__pthread_unwind): Renamed to ...
16098         (PTHREAD_UNWIND): This.
16099         (__pthread_enable_asynccancel): Replace
16100         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
16101
16102 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16103
16104         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
16105         (CLONE_NEWCGROUP): New macro.
16106
16107         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
16108         (Q_GETNEXTQUOTA): New macro.
16109
16110 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16111
16112         [BZ #19907]
16113         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
16114         buffer updated by the previous run.
16115         * string/test-memcpy.c (do_one_test): Likewise.
16116         * benchtests/bench-memmove.c (do_one_test): Add a comment.
16117         * string/test-memmove.c (do_one_test): Likewise.
16118
16119 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
16120
16121         [BZ #20094]
16122         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
16123         not [__USE_XOPEN].
16124         (unlockpt): Likewise.
16125         (ptsname): Likewise.
16126         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
16127         variable.
16128
16129         [BZ #20076]
16130         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
16131         instead of [__USE_UNIX98].
16132         (S_ISSOCK): Likewise.
16133         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
16134         variable.
16135
16136         [BZ #20074]
16137         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
16138         [__USE_POSIX].
16139         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
16140         variable.
16141
16142         [BZ #20051]
16143         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
16144         (ttyslot): Do not declare.
16145         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
16146         (ttyslot): New prototype.
16147         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
16148         variable.
16149         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
16150
16151 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
16152
16153         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
16154
16155 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16156
16157         Fix race condition in tst-mallocfork2, use fewer resources.
16158         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
16159         to current process group.
16160         (signal_sender): Yield in the non-sleeping case.
16161
16162 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
16163
16164         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
16165         (ecvt): Likewise.
16166         (fcvt): Likewise.
16167         (gcvt): Likewise.
16168         (getsubopt): Likewise.
16169         (grantpt): Likewise.
16170         (initstate): Likewise.
16171         (l64a): Likewise.
16172         (mktemp): Likewise.
16173         (mkstemp): Likewise.
16174         (ptsname): Likewise.
16175         (random): Likewise.
16176         (realpath): Likewise.
16177         (setstate): Likewise.
16178         (srandom): Likewise.
16179         (ttyslot): Likewise.
16180         (unlockpt): Likewise.
16181         (valloc): Likewise.
16182
16183         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
16184         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
16185         variable.
16186
16187 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16188
16189         [BZ #20072]
16190         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
16191         init_cpu_features only if SHARED is defined.
16192         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
16193
16194 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16195
16196         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
16197         non-inclusive caches on Intel processors.
16198
16199 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16200
16201         * malloc/malloc.c (dumped_main_arena_start)
16202         (dumped_main_arena_end): New variables.
16203         (DUMPED_MAIN_ARENA_CHUNK): New macro.
16204         (do_check_chunk): Skip dumped fake mmapped chunks.
16205         (munmap_chunk): Likewise.
16206         (__libc_free): Do not adjust statistics for fake mmapped chunks.
16207         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
16208         mmapped chunks.
16209         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
16210         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
16211         and dumped_main_arena_end to cover the dumped heap.
16212
16213 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
16214
16215         * conform/data/time.h-data (getdate_err): Do not expect for
16216         [XPG3].
16217         (getdate): Likewise.
16218         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
16219         variable.
16220
16221         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
16222         (F_ULOCK): Likewise.
16223         (F_TEST): Likewise.
16224         (F_TLOCK): Likewise.
16225         (useconds_t): Likewise.
16226         (intptr_t): Do not expect for [XPG3] or [XPG4].
16227         (brk): Do not expect for [XPG3]
16228         (fchown): Likewise.
16229         (fchdir): Likewise.
16230         (ftruncate): Likewise.
16231         (getdtablesize): Likewise.
16232         (gethostid): Likewise.
16233         (getpagesize): Likewise.
16234         (getpgid): Likewise.
16235         (getsid): Likewise.
16236         (getwd): Likewise.
16237         (lchown): Likewise.
16238         (lockf): Likewise.
16239         (readlink): Likewise.
16240         (sbrk): Likewise.
16241         (setpgrp): Likewise.
16242         (setregid): Likewise.
16243         (setreuid): Likewise.
16244         (symlink): Likewise.
16245         (sync): Likewise.
16246         (truncate): Likewise.
16247         (ualarm): Likewise.
16248         (usleep): Likewise.
16249         (vfork): Likewise.
16250         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
16251         variable.
16252
16253         [BZ #20054]
16254         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
16255         not [__USE_UNIX98].
16256         * conform/data/unistd.h-data (gethostname): Do not expect for
16257         [XPG3].
16258
16259         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
16260         [!POSIX] (S_IFBLK): Likewise.
16261         [!POSIX] (S_IFCHR): Likewise.
16262         [!POSIX] (S_IFIFO): Likewise.
16263         [!POSIX] (S_IFREG): Likewise.
16264         [!POSIX] (S_IFDIR): Likewise.
16265         [!POSIX] (S_IFLNK): Likewise.
16266         [!POSIX] (S_IFSOCK): Likewise.
16267         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
16268         variable.
16269         (test-xfail-XPG4/fcntl.h/conform): Likewise.
16270
16271 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
16272
16273         * sysdeps/aarch64/memset.S (__memset):
16274         Rewrite of optimized memset.
16275
16276 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16277
16278         [BZ #19703]
16279         Partially async-signal-safe fork for single-threaded processes.
16280         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
16281         variable.  Do not acquire and reset/release malloc and libio locks
16282         in single-threaded processes.
16283         * malloc/tst-mallocfork2.c: New file.
16284         * malloc/Makefile (tests): Add it.
16285
16286 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16287
16288         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
16289         argument.  Use scratch buffer instead of extend_alloca.
16290         (gethosts): Use scratch buffer instead of extend_alloca.
16291         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
16292         extend_alloca.
16293         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
16294
16295 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
16296
16297         [BZ #20055]
16298         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
16299         instead of [__USE_UNIX98].
16300         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
16301         [__USE_UNIX98].
16302         * conform/data/termios.h-data (tcgetsid): Do not expect for
16303         [XPG3].
16304         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
16305         variable.
16306         (test-xfail-XPG4/termios.h/conform): Likewise.
16307
16308 2016-05-11  Florian Weimer  <fweimer@redhat.com>
16309
16310         Do not use mcheck in localedef.
16311         * locale/programs/localedef.c (turn_on_mcheck)
16312         (__malloc_initialize_hook): Remove.
16313
16314 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
16315
16316         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
16317         * sysdeps/s390/s390-64/Makefile: Likewise.
16318
16319 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16320
16321         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
16322         Remove ifunc-defines.sym.
16323         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
16324         Likewise.
16325         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
16326         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
16327         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
16328         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
16329         rtld-global-offsets.sym.
16330         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
16331         * sysdeps/x86/cpu-features-offsets.sym: This.
16332         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
16333         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
16334
16335 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
16336
16337         [BZ #20073]
16338         * io/sys/stat.h (fchmod): Declare for
16339         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
16340         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
16341         variable.
16342
16343         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
16344         [XPG3] (S_IFSOCK): Likewise.
16345         [XPG3] (S_ISVTX): Likewise.
16346         [XPG3] (S_ISLNK): Likewise.
16347         [XPG3] (S_ISSOCK): Likewise.
16348         [XPG3] (fchmod): Likewise.
16349         [XPG3] (lstat): Likewise.
16350         [XPG3] (mknod): Likewise.
16351
16352         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
16353         [XPG3].  Expect type long and XFAIL for [XPG4].
16354         (st_blocks): Likewise.
16355
16356         [BZ #20044]
16357         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
16358         (pthread_atfork): New prototype.
16359         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
16360         variable.
16361
16362         [BZ #20043]
16363         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
16364         prototype.
16365
16366 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16367
16368         [BZ #20017]
16369         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
16370         gmtime.
16371
16372 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16373
16374         [BZ #19994]
16375         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
16376         flag in _res.options.
16377
16378 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
16379
16380         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
16381         [XPG3 || XPG4].
16382         (blksize_t): Likewise.
16383         (clockid_t): Likewise.
16384         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
16385         variable.
16386         (test-xfail-XPG4/sys/types.h/conform): Likewise.
16387
16388 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
16389
16390         * sysdeps/unix/sysv/linux/s390/init-first.c:
16391         Add VDSO_SYMBOL(getcpu).
16392         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
16393         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
16394         Add VDSO_SYMBOL(getcpu).
16395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
16396         New define HAVE_GETCPU_VSYSCALL.
16397         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16398
16399 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16400
16401         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
16402         instead of <sysdeps/x86_64/cacheinfo.c>.
16403         * sysdeps/x86_64/cacheinfo.c: Moved to ...
16404         * sysdeps/x86/cacheinfo.c: Here.
16405
16406 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16407
16408         * malloc/malloc-internal.h: Adjust header file guard.
16409
16410 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16411
16412         [BZ #19787]
16413         * inet/getnameinfo.c (check_sprintf_result): New function.
16414         (CHECKED_SNPRINTF): New macro.
16415         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
16416         to the host buffer.
16417         (gni_host_local): Use checked_copy to copy the host name.
16418         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
16419         (gni_serv_local): Use checked_copy to copy the service name.
16420         (getnameinfo): Remove unnecessary truncation of result buffers.
16421
16422 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16423
16424         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
16425         in case of inet_ntop failure.
16426
16427 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16428
16429         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
16430         avoid long lines.
16431         (gni_host_inet_numeric): Likewise.  Reduce scope of local
16432         variables.
16433         (gni_host_inet, gni_host_local): Add comment.
16434         (gni_host): Add comment.  Use temporary to avoid long lines.
16435
16436 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16437
16438         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
16439         registers specifiers where general purpose registers specifiers should
16440         have been used.
16441
16442 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16443
16444         [BZ #19779]
16445         CVE-2016-1234
16446         Avoid copying names of directory entries.
16447         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
16448         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
16449         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
16450         (struct readdir_result): New type.
16451         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
16452         (GL_READDIR): New macros.
16453         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
16454         (convert_dirent, convert_dirent64): New functions.
16455         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
16456         convert_dirent64.  Adjust references to the readdir result.
16457         * sysdeps/unix/sysv/linux/i386/glob64.c:
16458         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
16459         * posix/bug-glob2.c (LONG_NAME): Define.
16460         (filesystem): Add LONG_NAME.
16461         (my_DIR): Increase the size of room_for_dirent.
16462
16463 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
16464
16465         [BZ #20041]
16466         * misc/sys/select.h (__need_timespec): Only define if
16467         [__USE_XOPEN2K].
16468         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
16469         variable.
16470         (test-xfail-XPG4/utmpx.h/conform): Likewise.
16471         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
16472         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
16473
16474 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16475             Segher Boessenkool  <segher@gcc.gnu.org>
16476
16477         [BZ #20004]
16478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
16479         (__novec_swapcontext): Add missing load.
16480
16481 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
16482
16483         [BZ #20023]
16484         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
16485         <time.h>.
16486         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
16487         variable.
16488         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
16489
16490 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16491
16492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
16493         flags CLONE_VM compare.
16494
16495 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16496
16497         [BZ #20031]
16498         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
16499         completely empty.
16500
16501 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16502
16503         [BZ #19573]
16504         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
16505         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
16506         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
16507         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
16508         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
16509         (hesiod_free_list): Mark as hidden.
16510         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
16511         res_set, res_get.
16512         * hesiod/hesiod.c: Remove unnecessary forward declarations.
16513         (init, __hesiod_res_get, __hesiod_res_set): Remove.
16514         (hesiod_init): Remove obsolete res_ninit call.
16515         (hesiod_end): Do not free resolver state.  Do not invoke callback.
16516         (hesiod_bind): Do not call init.
16517         (get_txt_records): Use res_mkquery, res_send instead of
16518         res_nmkquery, res_nsend.
16519         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
16520         instead of _nss_hesiod_init.
16521         (_nss_hesiod_initgroups_dyn): Likewise.
16522         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
16523         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
16524         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
16525
16526 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16527
16528         * hesiod/hesiod_p.h (DEF_RHS): Remove.
16529         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
16530
16531 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16532
16533         * hesiod/hesiod.h: Remove RCS keyword.
16534         * hesiod/hesiod_p.h: Likewise.
16535
16536         * hesiod/hesiod.c: Likewise.
16537
16538 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
16539
16540         [BZ #12450]
16541         * locale/iso-639.def: Add Samogitian/sgs.
16542
16543 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
16544
16545         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
16546
16547         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
16548
16549 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
16550             Carlos O'Donell  <carlos@redhat.com>
16551
16552         [BZ #19072]
16553         * grp/Makefile (headers): Add grp-merge.h
16554         (routines): Add grp-merge.
16555         * grp/getgrgid_r.c: Include grp-merge.h.
16556         (DEEPCOPY_FN): Define.
16557         (MERGE_FN): Define.
16558         * grp/getgrname_r.c: Include grp-merge.h.
16559         (DEEPCOPY_FN): Define.
16560         (MERGE_FN): Define.
16561         * grp/grp-merge.c: New file.
16562         * grp/grp-merge.h: New file.
16563         * include/grp-merge.h: New file.
16564         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
16565         __copy_grp@GLIBC_PRIVATE.
16566         * manual/nss.texi (Actions in the NSS configuration): Describe
16567         return, continue, and merge.
16568         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
16569         (DEEPCOPY_FN): Define.
16570         (MERGE_FN): Define.
16571         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
16572         (DEEPCOPY_FN): Define.
16573         (MERGE_FN): Define.
16574         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
16575         [!MERGE_FN]: Define __merge_einval.
16576         (CHECK_MERGE): Define.
16577         (REENTRANT_NAME): Process merge if do_merge is true.
16578         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
16579         (__nss_getent_r): Likewise.
16580         * nss/nsswitch.c (nss_parse_service_list): Likewise.
16581         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
16582
16583 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16584
16585         [BZ #20012]
16586         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
16587         length to calculate the buffer to read.
16588         (fmemopen_write): Set the buffer position based on bytes written.
16589         (fmemopen_seek): Return EINVAL for invalid whence modes.
16590
16591         [BZ #19957]
16592         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
16593         tst-getpid2.
16594         (test): Add tst-clone2.
16595         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
16596         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
16597         pid/tid fields for CLONE_VM.
16598         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
16599         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
16600         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
16601         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
16602         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
16603         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
16604         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
16605         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
16606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
16607         Likewise.
16608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16609         Likewise.
16610         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
16611         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
16612         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
16613         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
16614         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
16615         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
16616         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
16617         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
16618
16619 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16620
16621         [BZ #19642]
16622         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
16623         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
16624         (gni_serv_local, gni_serv): New functions extracted from
16625         getnameinfo.
16626         (getnameinfo): Call gni_host and gni_serv to perform the
16627         processing.  Always free scratch buffer.
16628
16629 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16630
16631         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
16632         remaining bytes in the dest string, with zeros.
16633
16634 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16635
16636         [BZ #20010]
16637         CVE-2016-3706
16638         * sysdeps/posix/getaddrinfo.c
16639         (convert_hostent_to_gaih_addrtuple): New function.
16640         (gethosts): Call convert_hostent_to_gaih_addrtuple.
16641         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
16642         AF_INET data.
16643
16644 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16645
16646         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
16647         callback function gl_readdir.
16648         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
16649         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
16650         (glob_in_dir): Remove len.  Use strdup instead of malloc and
16651         memcpy to copy the name.
16652         * manual/pattern.texi (Calling Glob): Document requirements for
16653         implementations of the gl_readdir callback function.
16654         * manual/examples/mkdirent.c: New example.
16655         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
16656         per the manual guidance.
16657         * posix/tst-gnuglob.c (my_readdir): Likewise.
16658
16659 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
16660
16661         [BZ #20014]
16662         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
16663         not [__USE_POSIX].
16664         (getchar_unlocked): Likewise.
16665         (putc_unlocked): Likewise.
16666         (putchar_unlocked): Likewise.
16667         (flockfile): Likewise.
16668         (ftrylockfile): Likewise.
16669         (funlockfile): Likewise.
16670         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
16671         variable.
16672         (test-xfail-XPG4/stdio.h/conform): Likewise.
16673
16674         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
16675         Expect constant.
16676         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
16677         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
16678         variable.
16679         (test-xfail-XPG4/langinfo.h/conform): Likewise.
16680         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
16681
16682         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
16683         [__USE_LARGEFILE64] (off64_t): Likewise.
16684         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
16685         variable.
16686
16687 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16688
16689         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
16690
16691 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16692
16693         * resolv/inet_addr.c: Reindent preprocessor conditionals.
16694         * resolv/res_init.c: Likewise.
16695         * resolv/res_mkquery.c: Likewise.
16696
16697 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16698
16699         * resolv/res_init.c (isascii): Do not define.  Use definition in
16700         <ctype.h>.
16701         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
16702         (LOG_AUTH): Remove.
16703         (SPRINTF): Remove, adjust caller.
16704         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
16705
16706 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16707
16708         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
16709         SUNSECURITY conditional.
16710         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
16711
16712 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16713
16714         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
16715         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
16716         Remove BSD-related preprocessor conditionals.
16717         * conf/portability.h: Remove.
16718
16719 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16720
16721         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
16722         * resolv/res_data.c: Likewise.
16723
16724 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16725
16726         * resolv/res_comp.c: Remove code conditional on __ultrix__.
16727         * resolv/res_data.c: Remove code conditional on ultrix.
16728
16729 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16730
16731         * resolv/res_init.c (RFC1535): Do not define.  Remove
16732         RFC1535 preprocessor conditionals.
16733         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
16734         because there configuration options which make the resolver
16735         behavior different.
16736
16737 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16738
16739         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
16740         RESOLVSORT preprocessor conditionals.
16741         * resolv/nss_dns/dns-host.c: Likewise.
16742         * resolv/res_init.c: Likewise.
16743
16744 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16745
16746         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
16747         is never defined.
16748
16749 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16750
16751         * inet/inet_lnaof.c: Remove SCSS keyword.
16752         * inet/inet_mkadr.c: Likewise.
16753         * inet/inet_net.c: Likewise.
16754         * inet/inet_netof.c: Likewise.
16755         * inet/rcmd.c: Likewise.
16756         * inet/rexec.c: Likewise.
16757         * inet/ruserpass.c: Likewise.
16758
16759 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16760
16761         * resolv/inet_addr.c: Remove _LIBC conditionals.
16762         * resolv/res_data.c: Likewise.
16763         * resolv/res_init.c: Likewise.
16764         * resolv/res_mkquery.c: Likewise.
16765         * resolv/res_libc.c: Update comment.
16766         * resolv/README: Update.
16767
16768 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16769
16770         * resolv/gethnamaddr.c: Remove SCSS keyword.
16771         * resolv/herror.c: Likewise.
16772         * resolv/inet_addr.c: Likewise.
16773         * resolv/inet_net_ntop.c: Likewise.
16774         * resolv/inet_net_pton.c: Likewise.
16775         * resolv/inet_neta.c: Likewise.
16776         * resolv/inet_ntop.c: Likewise.
16777         * resolv/inet_pton.c: Likewise.
16778         * resolv/ns_date.c: Remove RCS keyword.
16779         * resolv/ns_name.c: Likewise.
16780         * resolv/ns_netint.c: Likewise.
16781         * resolv/ns_parse.c: Likewise.
16782         * resolv/ns_print.c: Likewise.
16783         * resolv/ns_samedomain.c: Likewise.
16784         * resolv/ns_ttl.c: Likewise.
16785         * resolv/nsap_addr.c: Likewise.
16786         * resolv/res_comp.c: Remove SCSS and RCS keyword.
16787         * resolv/res_data.c: Remove RCS keyword.
16788         * resolv/res_debug.c: Remove SCSS and RCS keyword.
16789         * resolv/res_init.c: Likewise.
16790         * resolv/res_mkquery.c: Likewise.
16791         * resolv/res_query.c: Likewise.
16792         * resolv/res_send.c: Likewise.
16793
16794 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16795
16796         * conform/data/stdio.h-data (fdopen): Expect also for
16797         [XPG3 || XPG4].
16798
16799         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
16800         (fseeko): Likewise.
16801         (ftello): Likewise.
16802         (ftrylockfile): Likewise.
16803         (funlockfile): Likewise.
16804         (getc_unlocked): Likewise.
16805         (getchar_unlocked): Likewise.
16806         (putc_unlocked): Likewise.
16807         (putchar_unlocked): Likewise.
16808
16809 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16810
16811         [BZ #19868]
16812         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
16813         DNS packet syntax checks (which were not needed before).  Skip
16814         over non-PTR records.
16815
16816 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16817
16818         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
16819         definition.  Include <stddef.h> instead.
16820
16821 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16822
16823         [BZ #19831]
16824         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
16825         function.
16826         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
16827         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
16828
16829 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16830
16831         [BZ #19862]
16832         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
16833         (getanswer_r): Do not call syslog.
16834         (gaih_getanswer_slice): Likewise.
16835         * resolv/gethnamaddr.c (AskedForGot): Remove.
16836         (getanswer): Do not call syslog.
16837         (gethostbyaddr): Likewise.
16838
16839 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16840
16841         * conform/data/signal.h-data (union sigval): Expect also if
16842         [XOPEN2K].
16843         (struct sigevent): Likewise.
16844         (SIGEV_NONE): Likewise.
16845         (SIGEV_SIGNAL): Likewise.
16846         (SIGEV_THREAD): Likewise.
16847         (SIGRTMIN): Likewise.
16848         (SIGRTMAX): Likewise.
16849         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
16850         variable.
16851         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
16852
16853 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16854
16855         [BZ #19830]
16856         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
16857         (gaih_getanswer_slice): Likewise.
16858         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
16859         Also check for availability of RR metadata.
16860
16861 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16862
16863         [BZ #19825]
16864         * resolv/res_send.c (send_vc): Remove early *resplen2
16865         initialization.  Set *resplen2 on socket error.  Call
16866         close_and_return_error for other errors.
16867
16868 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
16869
16870         * sysdeps/unix/sysv/linux/netiucv/iucv.h
16871         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
16872         (SCM_IUCV_TRGCLS): New define.
16873
16874 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16875
16876         [BZ #20005]
16877         * libio/fmemopen.c (fmemopen_write): Update internal position after
16878         write.
16879         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
16880         * stdio-common/tst-fmemopen4.c: New file..
16881
16882 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
16883
16884         [BZ #19996]
16885         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
16886         not [__USE_XOPEN2K].
16887         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
16888         variable.
16889
16890         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
16891         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
16892         variable.
16893
16894         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
16895         [__USE_XOPEN2K8].
16896         [__USE_LARGEFILE64] (off64_t): Likewise.
16897         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
16898         variable.
16899
16900 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
16901
16902         [BZ #19989]
16903         * libio/stdio.h (cuserid): Do not declare if
16904         [__USE_XOPEN2K && !__USE_GNU].
16905         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
16906         variable.
16907
16908 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16909
16910         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16911         (sysdep_routines): Add P8 and PPC64 strcspn targets.
16912         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16913         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
16914         ifunc'ed strcspn.
16915         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
16916         [EALIGN]: Removed.
16917         [END]: Likewise
16918         [STRSPN]: Define instead of the above to control symbol name.
16919         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
16920         New file.
16921         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
16922         Likewise.
16923         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
16924         Likewise.
16925         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
16926         Likewise.
16927         * sysdeps/powerpc/powerpc64/power8/strspn.S:
16928         [INITIAL_MASK]: New macro.
16929         [STRCSPN]: Likewise.
16930         [UPDATE_MASK]: Likewise.
16931         [USE_AS_STRCSPN]: Likewise.
16932
16933 2016-04-25  Florian Weimer  <fweimer@redhat.com>
16934
16935         [BZ #19931]
16936         * stdio-common/tst-vfprintf-width-prec.c: New file.
16937         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
16938         (tests-special): Add tst-vfprintf-width-prec-mem.out.
16939         (generated): Add mtrace-related files.
16940         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
16941         (tst-%-mem.out): New pattern rule, replaces
16942         tst-printf-bz18872-mem.out.
16943         * stdio-common/vfprintf.c (vfprintf): When handling a precision
16944         specifier, deallocate any previously allocated work buffer.
16945
16946 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16947
16948         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
16949         Add nop before __startcontext, add explaining comments.
16950
16951 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
16952
16953         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
16954         any more. Notably since IPV6_PKTINFO has been reintroduced with a
16955         completely different API.
16956
16957         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
16958         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
16959         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
16960         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
16961         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
16962         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
16963         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
16964         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
16965         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
16966         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
16967
16968 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
16969
16970         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
16971
16972 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
16973
16974         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
16975         when it is the default of 0.
16976
16977 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16978
16979         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
16980         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16981         (sysdep_routines): Add new strcasestr targets.
16982         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16983         (__libc_ifunc_impl_list): Likewise.
16984         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
16985         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
16986         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
16987         * sysdeps/powerpc/powerpc64/power8/Makefile:
16988         New file to add strcasestr-ppc64 to sysdep_routines.
16989         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
16990         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
16991
16992 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
16993
16994         * benchtests/Makefile (wcsmbs-benchset): Include only for
16995         native builds and runs.
16996         (LOCALES): Likewise.
16997         (bench-build): Build timing-type here instead of the bench
16998         target.  Generate locale only for native builds.
16999         * benchtests/README: Add note for cross-building.
17000
17001         * benchtests/Makefile (bench-clean): Clean up extra-objs.
17002
17003         * benchtests/README: Update README to include instructions on
17004         using bench-build.
17005
17006         * Makefile.in (bench-build): New target.
17007         * Rules (PHONY): Add bench-build target.
17008         * benchtests/Makefile (bench): Depend on bench-build.
17009         (bench-build): New target.
17010
17011 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17012
17013         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
17014         profil_reply_port.
17015         (profile_waiter): Do not initialize profil_reply_port.
17016         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
17017         frequency instead of tick length in us.
17018
17019 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
17020
17021         [BZ #18712]
17022         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
17023         (__old_mempcpy_small): Likewise.
17024         (__old_strcpy_small): Likewise.
17025         (__old_stpcpy_small): Likewise.
17026         (__old_strpbrk_c2): Fix compat symbol name.
17027         (__old_strpbrk_c3): Likewise.
17028         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
17029         (__mempcpy_small): Remove.
17030         (__strcpy_small): Remove.
17031         (__stpcpy_small): Remove.
17032
17033 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
17034
17035         [BZ #19400]
17036         * locale/iso-639.def: Add the Talossan/tzl language.
17037
17038 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
17039
17040         [BZ #16983]
17041         * locale/programs/ld-address.c (address_finish): Update postal_fmt
17042         comment.  Add "ln" to strchr check on postal_fmt.
17043
17044 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
17045
17046         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
17047         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
17048         tel_dom_fmt.
17049
17050 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
17051
17052         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17053         (sysdep_routines): Added __strlen_power8.
17054         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
17055         __strlen_power8 entry.
17056         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
17057         Implementation for POWER8.
17058         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
17059         for __strlen_power8.
17060         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
17061         Implementation for POWER8.
17062
17063 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
17064
17065         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
17066
17067 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
17068
17069         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
17070         Goldmont and Airmont processors.
17071
17072 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
17073
17074         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
17075         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
17076         (__STRING2_SMALL_GET32): Remove.
17077         (memset): Remove.
17078         (__memset_1): Remove.
17079         (__memset_gc): Remove.
17080         (__mempcpy): Remove.
17081         (mempcpy): Remove.
17082         (__mempcpy_args): Remove.
17083         (strchr): Remove.
17084         (strcpy): Remove.
17085         (strcpy_args): Remove.
17086         (__stpcpy_args): Remove.
17087         (__strcmp_cc): Remove.
17088         (__strcmp_gc): Remove.
17089         (strstr): Remove.
17090
17091 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
17092
17093         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
17094         * nis/nis_call.c (nis_server_cache_add): Likewise.
17095
17096 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17097
17098         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
17099
17100 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17101
17102         * malloc/arena.c (__malloc_fork_lock_parent)
17103         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
17104         internal_function attribute.
17105
17106 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
17107
17108         * stdio-common/printf_fp.c (__printf_fp_l):
17109         Rename ___printf_fp_l to __printf_fp_l and
17110         remove strong alias. Use libc_hidden_def instead
17111         of ldbl_hidden_def macro.
17112
17113 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17114
17115         Remove malloc hooks from fork handler.  They are no longer needed
17116         because malloc runs right before fork, and no malloc calls from
17117         other fork handlers are not possible anymore.
17118         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
17119         declarations.
17120         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
17121         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
17122         (atfork_recursive_cntr): Remove.
17123         (__malloc_fork_lock_parent): Do not override malloc hooks and
17124         thread_arena.
17125         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
17126         thread_arena.
17127         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
17128         thread_arena instead of save_arena.
17129
17130 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17131
17132         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
17133         (thread_atfork, thread_atfork_static): Remove.
17134         * sysdeps/mach/hurd/malloc-machine.h:
17135         (thread_atfork, thread_atfork_static): Remove.
17136
17137 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17138
17139         [BZ #19431]
17140         Run the malloc fork handler as late as possible to avoid deadlocks.
17141         * malloc/malloc-internal.h: New file.
17142         * malloc/malloc.c: Include it.
17143         * malloc/arena.c (ATFORK_MEM): Remove.
17144         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
17145         Update comment.
17146         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
17147         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
17148         Remove outdated comment.
17149         (ptmalloc_init): Do not call thread_atfork.  Remove
17150         thread_atfork_static.
17151         * malloc/tst-malloc-fork-deadlock.c: New file.
17152         * Makefile (tests): Add tst-malloc-fork-deadlock.
17153         (tst-malloc-fork-deadlock): Link against libpthread.
17154         * manual/memory.texi (Aligned Memory Blocks): Update safety
17155         annotation comments.
17156         * sysdeps/nptl/fork.c (__libc_fork): Call
17157         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
17158         __malloc_fork_unlock_child.
17159         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
17160
17161 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17162
17163         [BZ #19613]
17164         Remove union wait.
17165         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
17166         (w_stopsig, w_stopval): Remove.
17167         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
17168         stat_loc argument.
17169         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
17170         (__WAIT_STATUS_DEFN): Remove.
17171         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17172         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
17173         (wait, wait3, wait4): Use int * for the stat_loc argument.
17174         * posix/wait.c (__wait): Likewise.
17175         * posix/wait3.c (__wait3): Likewise.
17176         * posix/wait4.c (__wait4): Likewise.
17177         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
17178         (__WAIT_STATUS_DEFN): Remove.
17179         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17180         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
17181         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
17182         argument.
17183         * sysdeps/posix/wait.c (__libc_wait): Likewise.
17184         * sysdeps/posix/wait3.c (__wait3): Likewise.
17185         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
17186         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
17187         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
17188         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
17189         stat_loc argument.
17190         * manual/process.texi (BSD Wait Functions): Remove union wait.
17191
17192 2016-04-13  Andreas Schwab  <schwab@suse.de>
17193
17194         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
17195         (test-extras): Add tst-tlsalign-vars.
17196         * math/Makefile: Wrap long lines.
17197         (libm-vec-test-wrappers): Define.
17198         (test-extras): Add $(libm-vec-test-wrappers).
17199         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
17200         * nss/Makefile (extra-test-objs): Add nss_test1.os.
17201         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
17202         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
17203         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
17204         (extra-test-objs): Add corresponding objects.
17205
17206 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
17207
17208         [BZ #19928]
17209         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
17210         New.
17211         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
17212         times of shared cache size.
17213         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
17214         (VMOVNT): New.
17215         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
17216         (VMOVNT): Likewise.
17217         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
17218         (VMOVNT): Likewise.
17219         (VMOVU): Changed to movups for smaller code sizes.
17220         (VMOVA): Changed to movaps for smaller code sizes.
17221         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
17222         comments.
17223         (PREFETCH): New.
17224         (PREFETCH_SIZE): Likewise.
17225         (PREFETCHED_LOAD_SIZE): Likewise.
17226         (PREFETCH_ONE_SET): Likewise.
17227         Rewrite to use forward and backward loops, which move 4 vector
17228         registers at a time, to support overlapping addresses and use
17229         non temporal store if size is above the threshold and there is
17230         no overlap between destination and source.
17231
17232 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
17233
17234         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
17235         Include dl-vdso.
17236         * sysdeps/unix/sysv/linux/mips/Versions: Add
17237         __vdso_clock_gettime.
17238         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
17239         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
17240         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
17241         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
17242         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
17243         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
17244         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17245         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
17246         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
17247
17248 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17249
17250         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
17251         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
17252         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
17253         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
17254         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
17255         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
17256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
17257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
17258         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
17259         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
17260         syscalls generation.
17261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17262         [__NR_pwrite64] (__NR_write): Remove define.
17263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17264         [__NR_pwrite64] (__NR_write): Remove define.
17265         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
17266         Remove define.
17267         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
17268         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
17269         Remove define.
17270         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
17271         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
17272         Linux implementation as base.
17273         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
17274
17275         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
17276         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
17277         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
17278         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
17279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
17280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
17281         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
17282         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
17283         syscall generation.
17284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17285         [__NR_pread64] (__NR_pread): Remove define.
17286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17287         [__NR_pread64] (__NR_pread): Likewise.
17288         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
17289         define.
17290         (__libc_pread): Use SYSCALL_LL macro on offset argument.
17291         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
17292         Remove define.
17293         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
17294         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
17295         Linux implementation as base.
17296         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
17297         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
17298         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
17299
17300         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
17301         definition.
17302         (__ALIGNMENT_COUNT): Likewise.
17303         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
17304         (__ALIGNMENT_COUNT): Likewise.
17305         (SYSCALL_LL): New define.
17306         (SYSCALL_LL64): Likewise.
17307         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
17308         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
17309         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
17310         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
17311
17312         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17313         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
17314         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17315         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17316         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17317         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17318
17319 2016-04-11  Florian Weimer  <fweimer@redhat.com>
17320
17321         [BZ #19865]
17322         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
17323         original buffer before retry.
17324
17325 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17326
17327         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
17328         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
17329         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
17330         GLRO(dl_auxv) list.
17331         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
17332         including <ldsodefs.h>.
17333         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
17334
17335 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
17336
17337         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
17338         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
17339         $(CPPFLAGS).
17340
17341 2016-04-09  Khem Raj  <raj.khem@gmail.com>
17342
17343         [BZ #17950]
17344         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
17345         Add -mfpmath=387.
17346
17347 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
17348
17349         * sysdeps/i386/configure.ac: Change == to = when calling test.
17350         * sysdeps/x86_64/configure.ac: Likewise.
17351         * sysdeps/i386/configure: Regenerated.
17352         * sysdeps/x86_64/configure: Likewise.
17353
17354 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
17355
17356         [BZ #16137]
17357         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
17358         * benchtests/bench-strcoll.c (input_files): Likewise.
17359         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17360         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
17361         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
17362
17363 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
17364
17365         [BZ #19929]
17366         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
17367         [__USE_XOPEN2K8 && !__USE_GNU].
17368         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
17369         variable.
17370
17371         [BZ #19925]
17372         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
17373         define if [!__USE_MISC && __USE_XOPEN2K].
17374         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
17375         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
17376         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
17377         Likewise.
17378         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
17379         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
17380         variable.
17381         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
17382
17383 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17384
17385         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17386         (sysdep_routines): Add new strspn targets.
17387         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17388         (__libc_ifunc_impl_list): Add strspn.
17389         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17390         New file.
17391         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
17392         Likewise.
17393         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
17394         Likewise.
17395         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17396         Likewise.
17397
17398 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17399
17400         * misc/hsearch_r.c: Include <limits.h>.
17401
17402 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17403
17404         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
17405
17406 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17407
17408         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17409         (MEMCPY_SYMBOL): New.
17410         (MEMPCPY_SYMBOL): Likewise.
17411         (MEMMOVE_CHK_SYMBOL): Likewise.
17412         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
17413         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
17414         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
17415         Provide alias for memcpy in libc.a and ld.so.
17416
17417 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17418
17419         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17420         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
17421         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
17422         Disabled fro now.
17423         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
17424         symbols.  Properly check USE_MULTIARCH on __memset symbols.
17425
17426 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17427
17428         * benchtests/Makefile (string-benchset): Add memcpy-large,
17429         memmove-large and memset-large.
17430         * benchtests/bench-memcpy-large.c: New file.
17431         * benchtests/bench-memmove-large.c: Likewise.
17432         * benchtests/bench-memmove-large.c: Likewise.
17433         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
17434
17435 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17436
17437         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
17438         32-bit displacement to avoid long nop between instructions.
17439
17440 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17441
17442         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
17443         a comment on VMOVU and VMOVA.
17444
17445 2016-04-04  Florian Weimer  <fweimer@redhat.com>
17446
17447         [BZ #19633]
17448         Use specified locale for number formatting in strfmon_l.
17449         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
17450         (__nl_lookup_word): New inline functions.
17451         * include/printf.h (__print_fp_l): Declare.
17452         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
17453         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
17454         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
17455         (___printf_fp): New function.
17456         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
17457         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
17458         * stdlib/tst-strfmon_l.c (do_test): New test.
17459         * stdlib/Makefile (tests): Add kt.
17460         (LOCALES): Build additional locales.
17461         (tst-strfmon_l.out): Require locales.
17462
17463 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17464
17465         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
17466         if not in libc.
17467         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17468         Likewise.
17469         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
17470         Likewise.
17471         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17472         Likewise.
17473
17474 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17475
17476         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17477         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
17478         with unaligned_erms.
17479         (__memmove_erms): Skip if source == destination.
17480         (__memmove_unaligned_erms): Don't check source == destination
17481         first.
17482
17483 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17484
17485         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17486         bit_arch_Fast_Copy_Backward for Intel Core proessors.
17487
17488 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17489
17490         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
17491         * string/strspn.c (strspn): Likewise.
17492
17493 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17494
17495         * benchtests/bench-memset.c (do_test): Support 64-byte
17496         alignment.
17497         (test_main): Test 64-byte alignment.
17498
17499 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17500
17501         * benchtests/bench-memmove.c (test_main): Test 64-byte
17502         alignment.
17503
17504 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17505
17506         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
17507
17508 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17509
17510         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
17511         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
17512         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
17513
17514         * string/strpbrk.c (strpbrk): Rewrite function.
17515         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
17516         (__strpbrk_c2): Likewise.
17517         (__strpbrk_c3): Likewise.
17518         * string/string-inlines.c
17519         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
17520         Likewise.
17521         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
17522         Likewise.
17523
17524         * string/strspn.c (strcspn): Rewrite function.
17525         * string/bits/string2.h (strspn): Use __builtin_strcspn.
17526         (__strspn_c1): Remove inline function.
17527         (__strspn_c2): Likewise.
17528         (__strspn_c3): Likewise.
17529         * string/string-inlines.c
17530         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
17531         compatibility symbol.
17532         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
17533         Likewise.
17534         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
17535         Likewise.
17536         * string/string-inlines.c: Include generic version.
17537
17538 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
17539             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17540
17541         * string/Version (libc): Add GLIBC_2.24.
17542         * string/strcspn.c (strcspn): Rewrite function.
17543         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
17544         (__strcspn_c1): Remove inline function.
17545         (__strcspn_c2): Likewise.
17546         (__strcspn_c3): Likewise.
17547         * string/string-inline.c
17548         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
17549         compatibility symbol.
17550         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
17551         Likewise.
17552         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
17553         Likewise.
17554         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
17555
17556 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
17557
17558         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
17559         Use ahi instead of aghi to adjust stack pointer.
17560
17561 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17562
17563         [BZ #19853]
17564         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
17565         TEST to take significant digits as second parameter.
17566         [TEST]: Redefine in terms of TEST_N taking 30
17567         significant digits.
17568         (do_test): Add test case to demonstrate precision
17569         failure in the ldbl-128ibm printf.
17570         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
17571         (__mpn_extract_long_double): Carry 7 extra intermediate
17572         bits of precision to aide computing difference when
17573         signs differ.
17574
17575 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17576
17577         [BZ #19881]
17578         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17579         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
17580         memset-avx512-unaligned-erms.
17581         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17582         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
17583         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
17584         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
17585         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
17586         __memset_sse2_unaligned_erms, __memset_erms,
17587         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
17588         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
17589         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
17590         file.
17591         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17592         Likewise.
17593         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
17594         Likewise.
17595         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
17596         Likewise.
17597
17598 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17599
17600         [BZ #19776]
17601         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17602         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
17603         memmove-avx512-unaligned-erms.
17604         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17605         (__libc_ifunc_impl_list): Test
17606         __memmove_chk_avx512_unaligned_2,
17607         __memmove_chk_avx512_unaligned_erms,
17608         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
17609         __memmove_chk_sse2_unaligned_2,
17610         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
17611         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
17612         __memmove_avx512_unaligned_erms, __memmove_erms,
17613         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
17614         __memcpy_chk_avx512_unaligned_2,
17615         __memcpy_chk_avx512_unaligned_erms,
17616         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
17617         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
17618         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
17619         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
17620         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
17621         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
17622         __mempcpy_chk_avx512_unaligned_erms,
17623         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
17624         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
17625         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
17626         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
17627         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
17628         __mempcpy_erms.
17629         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
17630         file.
17631         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17632         Likewise.
17633         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
17634         Likewise.
17635         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17636         Likewise.
17637
17638 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17639
17640         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
17641         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
17642         (La_s390_64_regs): Likewise.
17643         (La_s390_32_retval): Append vector register lrv_v24.
17644         (La_s390_64_retval): Likeweise.
17645         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
17646         Handle extended structs La_s390_32_regs and La_s390_32_retval.
17647         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
17648         Handle extended structs La_s390_64_regs and La_s390_64_retval.
17649
17650 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17651
17652         [BZ #19916]
17653         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
17654         to create a non-vector/vector version for _dl_runtime_resolve and
17655         _dl_runtime_profile. Move implementation to ...
17656         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
17657         (_dl_runtime_resolve) Save and restore fpr/vrs.
17658         (_dl_runtime_profile) Save and restore vrs and fix some issues
17659         if _dl_call_pltexit is called.
17660         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
17661         Choose the correct resolver function if running on a machine with vx.
17662         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
17663         to create a non-vector/vector version for _dl_runtime_resolve and
17664         _dl_runtime_profile. Move implementation to ...
17665         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
17666         (_dl_runtime_resolve) Save and restore fpr/vrs.
17667         (_dl_runtime_profile) Save and restore vrs and fix some issues
17668         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
17669         Choose the correct resolver function if running on a machine with vx.
17670
17671 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17672
17673         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
17674
17675 2016-03-31  Florian Weimer  <fweimer@redhat.com>
17676
17677         [BZ #19509]
17678         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
17679         skip_map != NULL.
17680         * elf/tst-dlsym-error.c: New file.
17681         * elf/Makefile (tests): Add tst-dlsym-error.
17682         (tst-dlsym-error): Link against libdl.
17683
17684 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
17685
17686         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17687         (__ASSUME_FUTIMESAT): Remove macro.
17688         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
17689
17690 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17691
17692         [BZ #19879]
17693         CVE-2016-3075
17694         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
17695         copy name.
17696
17697 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17698
17699         [BZ #19837]
17700         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
17701         error if parse_line fails.
17702
17703 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17704
17705         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
17706         (index_cpu_ERMS): Likewise.
17707         (reg_ERMS): Likewise.
17708
17709 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
17710
17711         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
17712         PER_LINUX_FDPIC): Add.
17713
17714 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17715
17716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17717         memcpy-avx512-no-vzeroupper.
17718         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
17719         to ...
17720         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
17721         (MEMCPY): Don't define.
17722         (MEMCPY_CHK): Likewise.
17723         (MEMPCPY): Likewise.
17724         (MEMPCPY_CHK): Likewise.
17725         (MEMPCPY_CHK): Renamed to ...
17726         (__mempcpy_chk_avx512_no_vzeroupper): This.
17727         (MEMPCPY_CHK): Renamed to ...
17728         (__mempcpy_chk_avx512_no_vzeroupper): This.
17729         (MEMCPY_CHK): Renamed to ...
17730         (__memmove_chk_avx512_no_vzeroupper): This.
17731         (MEMCPY): Renamed to ...
17732         (__memmove_avx512_no_vzeroupper): This.
17733         (__memcpy_avx512_no_vzeroupper): New alias.
17734         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
17735
17736 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17737
17738         [BZ #18858]
17739         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17740         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
17741         and mempcpy-avx512-no-vzeroupper.
17742         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
17743         New.
17744         (MEMPCPY): Likewise.
17745         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
17746         (MEMPCPY_CHK): New.
17747         (MEMPCPY): Likewise.
17748         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
17749         (MEMPCPY): Likewise.
17750         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
17751         (MEMPCPY): Likewise.
17752         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
17753         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
17754         Likewise.
17755         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
17756         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
17757
17758 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17759              Amit Pawar  <Amit.Pawar@amd.com>
17760
17761         [BZ #19583]
17762         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
17763         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
17764         processors.  Set Fast_Copy_Backward for AMD Excavator
17765         processors.
17766         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
17767         New.
17768         (index_arch_Fast_Unaligned_Copy): Likewise.
17769         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
17770         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
17771
17772 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17773
17774         [BZ #19791]
17775         * resolv/res_send.c (close_and_return_error): New function.
17776         (send_dg): Initialize *resplen2 after reopen failure.  Call
17777         close_and_return_error for error returns.  On error paths without
17778         __res_iclose, initialze *resplen2 explicitly.  Update comment for
17779         successful return.
17780
17781 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17782
17783         [BZ #19860]
17784         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
17785         zero if the compiler does not provide the AVX512F bit.
17786
17787 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
17788
17789         [BZ #19848]
17790         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
17791         from 8 to 4.
17792         (__ieee754_powl): Compare integer exponent against 4 not 8.
17793         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
17794         from 8 to 4.
17795         (__ieee754_powl): Compare integer exponent against 4 not 8.
17796         * math/auto-libm-test-in: Add more tests of pow.
17797         * math/auto-libm-test-out: Regenerated.
17798         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
17799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17800
17801 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17802
17803         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
17804         Make code unconditional.
17805         [!__NR_utimensat]: Remove conditional code.
17806         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
17807         Make code unconditional.
17808         [!__NR_utimensat]: Remove conditional code.
17809         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
17810         Make code unconditional.
17811         [!__NR_utimensat]: Remove conditional code.
17812
17813 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17814
17815         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
17816         Make code unconditional.
17817
17818 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
17819
17820         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
17821         call-clobbered %eax on retry path.
17822         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
17823
17824 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17825
17826         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
17827         Don't set %rcx twice before "rep movsb".
17828
17829 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17830
17831         [BZ #19583]
17832         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
17833         inline.  Check family before setting family, model and
17834         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
17835         bits here.
17836         (init_cpu_features): Replace HAS_CPU_FEATURE and
17837         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
17838         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
17839         for Intel processors with usable AVX2.  Call get_common_indeces
17840         for other processors with family == NULL.
17841         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
17842         (CPU_FEATURES_ARCH_P): Likewise.
17843         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
17844         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
17845
17846 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17847
17848         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
17849         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
17850         $(shared-thread-library) instead of hardcoding the path to libpthread.
17851
17852 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
17853
17854         * sysdeps/unix/sysv/linux/kernel-features.h
17855         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
17856         * sysdeps/unix/sysv/linux/getdents.c
17857         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
17858         [!have_no_getdents64_defined]: Likewise.
17859         (__GETDENTS): Remove __have_no_getdents64 conditional.
17860
17861 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
17862
17863         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
17864         Remove macro.
17865         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
17866         <kernel-features.h>.
17867         (signalfd) [__NR_signalfd4]: Make code unconditional.
17868         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
17869
17870 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17871
17872         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
17873         style.
17874
17875 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17876
17877         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
17878         (__pthread_enable_asynccancel): Use JUMPTARGET to call
17879         __pthread_unwind.
17880         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
17881         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
17882         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
17883         (__condvar_cleanup1): Likewise.
17884
17885 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
17886
17887         [BZ #19822]
17888         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
17889         move it to the final $@ location.
17890
17891 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17892
17893         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
17894         access where posix_spawn success and pid argument is null.
17895         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
17896         success case.
17897
17898 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
17899
17900         * sysdeps/mach/hurd/i386/c++-types.data: New file.
17901
17902         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
17903
17904         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
17905         and __fcntl.
17906         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
17907         __fcntl only.
17908         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
17909         adding attribute_hidden to __open and __fcntl.
17910
17911         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
17912         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
17913         depend on libc-modules.h,
17914         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
17915
17916 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
17917
17918         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
17919         Remove macro.
17920         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
17921         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
17922         entry.
17923
17924         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
17925         Remove macro.
17926         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
17927         include <kernel-features.h>.
17928         [!__ASSUME_FALLOCATE]: Remove conditional code.
17929         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
17930
17931 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17932
17933         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
17934         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
17935         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
17936         (_ZGVdN4v_cos_avx2): Likewise.
17937         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
17938         (_ZGVdN4v_cos): Likewise.
17939         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
17940         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
17941         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
17942         (_ZGVdN4v_exp_avx2): Likewise.
17943         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
17944         (_ZGVdN4v_exp): Likewise.
17945         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
17946         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
17947         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
17948         (_ZGVdN4v_log_avx2): Likewise.
17949         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
17950         (_ZGVdN4v_log): Likewise.
17951         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
17952         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
17953         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
17954         (_ZGVdN4vv_pow_avx2): Likewise.
17955         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
17956         (_ZGVdN4vv_pow): Likewise.
17957         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
17958         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
17959         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
17960         (_ZGVdN4v_sin_avx2): Likewise.
17961         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
17962         (_ZGVdN4v_sin): Likewise.
17963         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
17964         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
17965         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
17966         (_ZGVdN4vvv_sincos_avx2): Likewise.
17967         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
17968         (_ZGVdN4vvv_sincos): Likewise.
17969         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
17970         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
17971         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
17972         (_ZGVbN4v_cosf_sse4): Likewise.
17973         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
17974         (_ZGVdN8v_cosf_avx2): Likewise.
17975         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
17976         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
17977         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
17978         (_ZGVbN4v_expf_sse4): Likewise.
17979         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
17980         (_ZGVdN8v_expf_avx2): Likewise.
17981         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
17982         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
17983         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
17984         (_ZGVbN4v_logf_sse4): Likewise.
17985         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
17986         (_ZGVdN8v_logf_avx2): Likewise.
17987         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
17988         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
17989         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
17990         (_ZGVbN4vv_powf_sse4): Likewise.
17991         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
17992         (_ZGVdN8vv_powf_avx2): Likewise.
17993         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
17994         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
17995         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
17996         (_ZGVbN4vvv_sincosf_sse4): Likewise.
17997         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
17998         (_ZGVdN8vvv_sincosf_avx2): Likewise.
17999         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
18000         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
18001         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
18002         (_ZGVbN4v_sinf_sse4): Likewise.
18003         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
18004         (_ZGVdN8v_sinf_avx2): Likewise.
18005         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
18006         Use JUMPTARGET to call callee.
18007         (WRAPPER_IMPL_SSE2_ff): Likewise.
18008         (WRAPPER_IMPL_SSE2_fFF): Likewise.
18009         (WRAPPER_IMPL_AVX): Likewise.
18010         (WRAPPER_IMPL_AVX_ff): Likewise.
18011         (WRAPPER_IMPL_AVX_fFF): Likewise.
18012         (WRAPPER_IMPL_AVX512): Likewise.
18013         (WRAPPER_IMPL_AVX512_ff): Likewise.
18014         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
18015         Likewise.
18016         (WRAPPER_IMPL_SSE2_ff): Likewise.
18017         (WRAPPER_IMPL_SSE2_fFF): Likewise.
18018         (WRAPPER_IMPL_AVX): Likewise.
18019         (WRAPPER_IMPL_AVX_ff): Likewise.
18020         (WRAPPER_IMPL_AVX_fFF): Likewise.
18021         (WRAPPER_IMPL_AVX512): Likewise.
18022         (WRAPPER_IMPL_AVX512_ff): Likewise.
18023         (WRAPPER_IMPL_AVX512_fFF): Likewise.
18024
18025 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18026
18027         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
18028         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
18029         qualifier.
18030         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
18031         internal_function qualifiers.
18032
18033 2016-03-15  Carlos O'Donell <carlos@redhat.com>
18034
18035         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
18036         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
18037         * math/atest-exp.c (exp_mpn): Mark chk unused.
18038         * math/atest-exp2.c (exp_mpn): Likewise.
18039         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
18040         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
18041
18042 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
18043
18044         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
18045         Remove macro.
18046         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
18047         <kernel-features.h>.
18048         [__NR_ppoll]: Make code unconditional.
18049         [!__ASSUME_PPOLL]: Remove conditional code.
18050
18051         * sysdeps/unix/sysv/linux/kernel-features.h
18052         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
18053         (__ASSUME_ACCEPT4): Likewise.
18054         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18055         Define.
18056         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
18057         Likewise.
18058         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18059         Likewise.
18060         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
18061         Likewise.
18062         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
18063         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
18064         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18065         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18066         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18067         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18068         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18069         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18070         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18071         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18072         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18073         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18074         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18075         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18076         * sysdeps/unix/sysv/linux/i386/kernel-features.h
18077         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18078         Likewise.
18079         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18080         Likewise.
18081         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18082         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18083         0x040300].
18084         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18085         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18086         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18087         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18088         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18089         0x030300].
18090         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
18091         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18092         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18093         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18094         0x040300].
18095         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18096         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18097         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18098         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18099         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18100         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18101         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18102         0x030300].
18103         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18104         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18105         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18106         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18107         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18108         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18109         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18110         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18111         * sysdeps/unix/sysv/linux/s390/kernel-features.h
18112         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18113         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18114         0x040300].
18115         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18116         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18117         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18118         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18119         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18120         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18121         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18122         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18123         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18124         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18125         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18126         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18127         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18128         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18129         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
18130         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18131         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18132         Likewise.
18133         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18134         Likewise.
18135
18136 2016-03-15  Andreas Schwab  <schwab@suse.de>
18137
18138         [BZ #19257]
18139         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
18140         statp->_u._ext.nscount as loop count.
18141
18142 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18143
18144         * math/test-signgam-finite-c99.c: Also #undef
18145         __LIBC_INTERNAL_MATH_INLINES.
18146         * math/test-signgam-main.c: Likewise.
18147
18148 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
18149
18150         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
18151         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18152         (MADV_FREE): Likewise.
18153         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
18154         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
18155         EPOLLEXCLUSIVE.
18156
18157 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
18158
18159         * timezone/README: Remove mention of checktab.awk. Mention wiki
18160         SharedSourceFiles.
18161
18162 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
18163
18164         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
18165         WUNTRACED.
18166
18167 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18168
18169         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
18170         order to match the type of p when calling atomic_exchange_acq().
18171
18172 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18173
18174         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
18175         cfi_offset calls.
18176         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18177         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
18178         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
18179         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
18180         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
18181
18182 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
18183
18184         * timezone/checktab.awk: Removed.
18185
18186 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
18187
18188         * manual/math.texi (Errors in Math Functions): Document relaxed
18189         accuracy goals for IBM long double.
18190         * math/libm-test.inc (test_exceptions): Always allow spurious
18191         "underflow" and "inexact" exceptions for IBM long double.
18192
18193 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18194
18195         [BZ #19762]
18196         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18197         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
18198         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
18199         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
18200         (bit_arch_*): This for feature array.
18201         (bit_*): Renamed to ...
18202         (bit_cpu_*): This for cpu array.
18203         (index_*): Renamed to ...
18204         (index_arch_*): This for feature array.
18205         (index_*): Renamed to ...
18206         (index_cpu_*): This for cpu array.
18207         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
18208         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
18209         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
18210         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
18211         bit_##name with index_cpu_##name and bit_cpu_##name.
18212         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
18213         bit_##name with index_arch_##name and bit_arch_##name.
18214
18215 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
18216
18217         [BZ #19792]
18218         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
18219         Terminate FDE before return label.
18220
18221 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
18222
18223         [BZ #19790]
18224         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
18225         (rintl): Define as macro.
18226         [USE_AS_NEARBYINTL] (__rintl): Likewise.
18227         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
18228         of fesetround.  Ensure results are evaluated before end of scope.
18229         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
18230         USE_AS_NEARBYINTL and include s_rintl.c.
18231         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
18232         Disable exception traps in new environment.
18233         (libc_feholdsetround_ppc_ctx): Likewise.
18234
18235 2016-03-08  Roland McGrath  <roland@hack.frob.com>
18236
18237         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
18238         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
18239         (tst_audit10_aux) [__AVX512F__]: ... here.
18240
18241 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
18242
18243         * include/sys/auxv.h: New file.
18244
18245 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18246
18247         [BZ #19759]
18248         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
18249
18250 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18251
18252         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
18253         operand modifier.
18254         (feclearexcept): Likewise.
18255
18256 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18257
18258         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
18259         to reflect the entire 32-bit HWCAP.
18260         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
18261         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
18262
18263 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18264
18265         [BZ #19783]
18266         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
18267         $(test-via-rtld-prefix).
18268         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
18269
18270 2016-03-08  Florian Weimer  <fweimer@redhat.com>
18271
18272         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
18273         union wait.  Report any non-zero exit status as error.
18274
18275 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18276
18277         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
18278         configured with --enable-hardcoded-path-in-tests.
18279
18280 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
18281
18282         [BZ #19677]
18283         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18284         (__ieee754_remainderl): Put zero low parts in canonical form.
18285         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
18286         file.  Based on
18287         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
18288         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
18289         with wrapper round test-fmodrem-ldbl-128ibm.c.
18290         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
18291         file.
18292         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
18293         Likewise.
18294         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
18295         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
18296
18297 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18298
18299         [BZ #19610]
18300         * elf/ldconfig.c (opt_link): Update comment.
18301         (options): Update help string for option -X.
18302         (search_dir): Unlink stale symbolic link only if updating symbolic
18303         links.
18304         * elf/tst-ldconfig-X.sh: New file.
18305         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
18306         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
18307
18308 2016-03-07  Andreas Schwab  <schwab@suse.de>
18309
18310         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
18311         needed arguments.
18312
18313 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
18314
18315         [BZ #15333]
18316         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
18317         to lstat64.
18318
18319 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18320
18321         * libio/filedoalloc.c (isatty): Remove.
18322         (local_isatty): Add comment.  Call __isatty directly.
18323         (_IO_file_doallocate): Update comment.  Assume _LIBC.
18324         * libio/wfiledoalloc.c (isatty): Remove.
18325         (_IO_wfile_doallocate): Update comment.
18326
18327 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18328
18329         [BZ #19269]
18330         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
18331         tst-audit4-aux.o.
18332         (tst-audit10): Depend on tst-audit10-aux.o.
18333         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
18334         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
18335         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
18336         instead of inline AVX code.
18337         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
18338         instead of inline AVX512 code.
18339         * sysdeps/x86_64/tst-audit4-aux.c: New file
18340         * sysdeps/x86_64/tst-audit10-aux.c: New file
18341
18342         [BZ #19648]
18343         * test-skeleton.c (main): Do not set RLIMIT_DATA.
18344
18345 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18346
18347         [BZ #14750]
18348         [BZ #10354]
18349         [BZ #18433]
18350         * include/sched.h (__clone): Add hidden prototype.
18351         (__clone2): Likewise.
18352         * include/unistd.h (__dup): Likewise.
18353         * posix/Makefile (tests): Add tst-spawn2.
18354         * posix/tst-spawn2.c: New file.
18355         * sysdeps/posix/dup.c (__dup): Add hidden definition.
18356         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
18357         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
18358         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
18359         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
18360         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
18361         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
18362         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
18363         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
18364         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
18365         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
18366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
18367         Likewise.
18368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18369         Likewise.
18370         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
18371         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
18372         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
18373         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
18374         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
18375         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
18376         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
18377         * sysdeps/unix/sysv/linux/nptl-signals.h
18378         (____nptl_is_internal_signal): New function.
18379         * sysdeps/unix/sysv/linux/spawni.c: New file.
18380
18381         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
18382         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
18383         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
18384         * posix/tst-execvp2.c (do_test): Likewise.
18385         * posix/tst-execvp3.c (do_test): Likewise.
18386         * posix/tst-execvp4.c (do_test): Likewise.
18387         * posix/tst-execvpe1.c: New file.
18388         * posix/tst-execvpe2.c: Likewise.
18389         * posix/tst-execvpe3.c: Likewise.
18390         * posix/tst-execvpe4.c: Likewise.
18391         * posix/tst-execvpe5.c: Likewise.
18392         * posix/tst-execvpe6.c: Likewise.
18393
18394         [BZ #19534]
18395         * posix/execl.c (execl): Remove dynamic memory allocation.
18396         * posix/execle.c (execle): Likewise.
18397         * posix/execlp.c (execlp): Likewise.
18398
18399 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18400
18401         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
18402         Replace .text with .text.avx512.
18403         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
18404         Likewise.
18405
18406 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
18407
18408         * sysdeps/generic/libnsl.abilist: New file.
18409         * sysdeps/generic/libutil.abilist: New file.
18410
18411 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18412
18413         [BZ #19762]
18414         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
18415         HAS_ARCH_FEATURE with Fast_Rep_String.
18416         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
18417         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
18418         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
18419         Likewise.
18420         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
18421         Likewise.
18422         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
18423         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
18424         Likewise.
18425         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
18426         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
18427         Likewise.
18428
18429 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18430
18431         [BZ #19745]
18432         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18433         with *%rax in call.
18434
18435 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18436
18437         [BZ #19745]
18438         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
18439         with *__libc_start_main@GOTPCREL(%rip) in call.
18440
18441 2016-03-04  Roland McGrath  <roland@hack.frob.com>
18442
18443         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
18444         inside conditional for nonempty $(CXX).
18445
18446         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
18447         nonempty.
18448
18449         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
18450         to test for empty $(CXX) rather than $(CXX) of "no".
18451
18452 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18453
18454         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
18455
18456 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
18457             H.J. Lu  <hongjiu.lu@intel.com>
18458
18459         [BZ #18880]
18460         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
18461         instead of Slow_BSF, and also check for Fast_Copy_Backward to
18462         enable __memcpy_ssse3_back.
18463
18464 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18465
18466         [BZ #19758]
18467         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18468         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
18469
18470 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
18471
18472         [BZ #19490]
18473         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
18474         (__fentry__): Likewise.
18475
18476 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18477
18478         * gmon/Makefile (noprof): Add $(sysdep_noprof).
18479         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
18480
18481 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18482
18483         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
18484         __mcount_internal directly.
18485         (C_LABEL(__fentry__)): Likewise.
18486         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
18487         directly.
18488
18489 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18490
18491         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18492         (__start_context): Call __setcontext directly.
18493
18494 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
18495
18496         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18497         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18498         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
18499         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18500         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18501         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18502         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
18503         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18504         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18505         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
18506         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18507         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18508         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18509         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18510         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18511         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18512         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
18513         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18514         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18515         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18516         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
18517         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18518         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18519         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18520         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
18521         Remove conditional code.
18522         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18523         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
18524         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18525         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18526         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
18527         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18528         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18529         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18530         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18531         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18532         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18533         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18534
18535 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
18536
18537         * NEWS (2.23): Fix typo in bug 19048 text.
18538
18539 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
18540
18541         [BZ #14259]
18542         * Makeconfig: Rename msgcatdir to localedir.
18543         Rename inst_msgcatdir to inst_localedir.
18544         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
18545         * config.make.in: Add localedir.
18546         * elf/Makefile ($(objpfx)sotruss): Use localedir.
18547         (ldd-rewrite): Likewise.
18548         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
18549         (install-others): Use inst_localedir.
18550         (CPPFLAGS): Use localedir.
18551         * locale/Makefile (locale-CPPFLAGS): Likewise.
18552         * po/Makefile (mo-installed): Use inst_localedir.
18553
18554         [BZ #19575]
18555         * localedata/charmaps/GB18030: Update comments regarding PAU to
18556         non-PUA mappings.
18557
18558 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
18559
18560         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
18561         test for header.
18562         * sysdeps/unix/sysv/linux/configure: Regenerated.
18563         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
18564         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
18565         Remove conditional code.
18566         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
18567
18568         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
18569         Define to 3.2.0.
18570         (arch_minimum_kernel): Likewise.
18571         * sysdeps/unix/sysv/linux/configure: Regenerated.
18572         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
18573         Define to 2.6.32.
18574         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
18575         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
18576         (arch_minimum_kernel): Define to 2.6.32.
18577         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
18578         * README: Document Linux 3.2 requirement.
18579         * manual/install.texi (Linux): Document Linux 3.2 headers
18580         requirement.
18581         * INSTALL: Regenerated.
18582
18583 2016-02-24  Andreas Schwab  <schwab@suse.de>
18584
18585         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
18586         if !NO_LONG_DOUBLE.
18587
18588 2016-02-22  Roland McGrath  <roland@hack.frob.com>
18589
18590         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
18591         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
18592
18593 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
18594
18595         [BZ #19512]
18596         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
18597
18598 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18599
18600         * posix/tst-dir.c: Include libc-internal.h.
18601
18602 2016-02-20  Florian Weimer  <fweimer@redhat.com>
18603
18604         [BZ #19056]
18605         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
18606         * manual/filesys.texi (Reading/Closing Directory): Mention
18607         deprecaion.
18608         * posix/tst-dir.c (main): Disable deprecation warning in test.
18609
18610 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18611
18612         [BZ #19679]
18613         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
18614         Renamed to ...
18615         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
18616         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18617         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
18618         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18619         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18620         * sysdeps/x86_64/dl-trampoline.h
18621         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18622         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18623
18624 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18625
18626         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
18627
18628 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18629
18630         * elf/elf.h (R_386_GOT32X): New.
18631         (R_386_NUM): Update.
18632         (R_X86_64_GOTPCRELX: New.
18633         (R_X86_64_REX_GOTPCRELX): New.
18634         (R_X86_64_NUM): Update.
18635
18636 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
18637
18638         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
18639
18640 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
18641
18642         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
18643         assign attr->stackaddr to it, and adjust it down when
18644         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
18645         [_STACK_GROWS_UP]: Delete assert.
18646         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
18647         Implement stack grows up logic.
18648         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
18649         stack grows up logic.
18650
18651 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18652
18653         * NEWS: Update with 2.24 template.
18654
18655 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18656
18657         [BZ #19678]
18658         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
18659         Ensure +0.0 is returned when taking the next value below the least
18660         positive value.
18661
18662 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18663
18664         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
18665         available.  Do not define NO_THREADS.
18666         * malloc/malloc.c: Do not check NO_THREADS.
18667         * malloc/arena.c: Likewise.
18668
18669 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18670
18671         * malloc/malloc.c (__libc_mallinfo): Update comment.
18672         (struct malloc_par): Remove max_total_mem member, it was always 0.
18673         (int_mallinfo): Store 0 into usmblks (no functional change).
18674         * malloc/hooks.c (struct malloc_state): Document that
18675         max_total_mem is always 0.
18676         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
18677         always 0.
18678         * manual/memory.texi (Statistics of Malloc): Likewise.
18679
18680 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18681
18682         * malloc/malloc.c (sysmalloc): Do not update arena_max.
18683         * malloc/arena.c (arena_max): Remove.
18684         (heap_trim, _int_new_arena): Do not update arena_max.
18685
18686 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18687
18688         * resolv/res_init.c (res_ninit): Update comment.
18689
18690 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18691
18692         [BZ #19505]
18693         * posix/spawn_int.h: Add headers and include guard.
18694         (__spawn_valid_fd): New function.
18695         * posix/spawn_faction_addopen.c
18696         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
18697         * posix/spawn_faction_addclose.c
18698         (posix_spawn_file_actions_addclose): Likewise.
18699         * posix/spawn_faction_adddup2.c
18700         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
18701         second file descriptor.
18702         * posix/spawn_valid_fd.c: New file.
18703         * posix/tst-posix_spawn-fd.c: New file.
18704         * posix/Makefile (routines): Add spawn_valid_fd.
18705         (tests): Add tst-posix_spawn-fd.
18706
18707 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18708
18709         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
18710         (do_test): Limit the number of arenas, so that we can use fewer
18711         outer threads.  Limit timeout to 3 seconds, in preparation for a
18712         larger TIMEOUT value.
18713
18714 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18715
18716         [BZ #19674]
18717         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
18718         sign in overflowing and underflowing results when overflow or
18719         underflow is detected early.  Include sign in result before rather
18720         than after scaling.
18721
18722         [BZ #19603]
18723         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18724         (__ieee754_remainderl): Adjust sign of integer version of low part
18725         when taking absolute value of high part.
18726         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
18727         * math/libm-test.inc (remainder_test_data): Add another test.
18728         (remquo_test_data): Likewise.
18729
18730 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
18731
18732         [BZ #19602]
18733         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
18734         equal high parts and both low parts zero specially.
18735         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
18736         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
18737         Add test-fmodl-ldbl-128ibm.
18738
18739         [BZ #19595]
18740         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
18741         common logic for all cases of shifting subnormal results.  Do not
18742         insert sign bit in shifted mantissa.  Always pass -1023 as biased
18743         exponent to ldbl_insert_mantissa in subnormal case.
18744
18745         [BZ #19594]
18746         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
18747         on high and low parts then adjust result and use
18748         ldbl_canonicalize_int if needed.
18749
18750         [BZ #19593]
18751         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
18752         on high part and __floor or __ceil on low part then use
18753         ldbl_canonicalize_int if needed.
18754
18755         [BZ #19592]
18756         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
18757         high and low parts then use ldbl_canonicalize_int if needed.
18758
18759         [BZ #17899]
18760         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
18761         New function.
18762         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
18763         on high and low parts then use ldbl_canonicalize_int if needed.
18764
18765 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18766
18767         * configure: Regenerated.
18768
18769         * po/libc.pot: Regenerated.
18770
18771         * po/be.po: Updated translation.
18772         * po/bg.po: Likewise.
18773         * po/ca.po: Likewise.
18774         * po/cs.po: Likewise.
18775         * po/da.po: Likewise.
18776         * po/el.po: Likewise.
18777         * po/eo.po: Likewise.
18778         * po/es.po: Likewise.
18779         * po/fi.po: Likewise.
18780         * po/fr.po: Likewise.
18781         * po/gl.po: Likewise.
18782         * po/hr.po: Likewise.
18783         * po/hu.po: Likewise.
18784         * po/ia.po: Likewise.
18785         * po/id.po: Likewise.
18786         * po/it.po: Likewise.
18787         * po/ja.po: Likewise.
18788         * po/lt.po: Likewise.
18789         * po/nb.po: Likewise.
18790         * po/nl.po: Likewise.
18791         * po/pt_BR.po: Likewise.
18792         * po/rw.po: Likewise.
18793         * po/sk.po: Likewise.
18794         * po/sl.po: Likewise.
18795         * po/sv.po: Likewise.
18796         * po/tr.po: Likewise.
18797         * po/zh_CN.po: Likewise.
18798         * po/zh_TW.po: Likewise.
18799
18800         * version.h (RELEAES): Set to "development".
18801         (VERSION): Set to 2.23.90.
18802
18803         * version.h (RELEASE): Set to "stable".
18804         (VERSION): Set to 2.23.
18805         * include/feature.h (__GLIBC_MINOR__): Set to 23.
18806
18807         * NEWS: Updated fixed bugs.
18808
18809 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18810             Wilco Dijkstra  <wdijkstr@arm.com>
18811
18812         [BZ #19462]
18813         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
18814         (_STRING_INLINE_unaligned): This.
18815         * include/string.h: Include <string_private.h>.
18816         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
18817         _STRING_INLINE_unaligned.
18818         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
18819         (_STRING_INLINE_unaligned): New.
18820         * sysdeps/aarch64/string_private.h: New file.
18821         * sysdeps/generic/string_private.h: Likewise.
18822         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
18823         * sysdeps/s390/string_private.h: Likewise.
18824         * sysdeps/x86/string_private.h: Likewise.
18825         * sysdeps/m68k/m680x0/m68020/bits/string.h
18826         (_STRING_ARCH_unaligned): Renamed to ...
18827         (_STRING_INLINE_unaligned): This.
18828         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
18829         to ...
18830         (_STRING_INLINE_unaligned): This.
18831         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
18832         to ...
18833         (_STRING_INLINE_unaligned): This.
18834         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
18835         to ...
18836         (_STRING_INLINE_unaligned): This.
18837
18838 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
18839             H.J. Lu  <hongjiu.lu@intel.com>
18840
18841         [BZ #19590]
18842         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
18843         relocation.
18844
18845 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
18846
18847         [BZ #18665]
18848         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
18849         *herrno_p.
18850         (gaih_getanswer): Document functional behviour. Return tryagain
18851         if any result is tryagain.
18852         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
18853         when freed.
18854         * resolv/res_send.c: Add copyright text.
18855         (__libc_res_nsend): Document that MAXPACKET is expected.
18856         (send_vc): Document. Remove buffer reuse.
18857         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
18858         size of the buffer. Add Dprint for truncated UDP buffer.
18859
18860 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
18861
18862         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
18863         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
18864         * INSTALL: Regenerate.
18865
18866 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
18867             Jonathan Wakely  <jwakely@redhat.com>
18868             Carlos O'Donell  <carlos@redhat.com>
18869
18870         [BZ 19439]
18871         * math/Makefile (tests): Add test-math-isinff.
18872         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
18873         * math/bits/mathcalls.h [__USE_MISC]: Use
18874         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
18875         functions not in C++11 and which don't conflict e.g. isinff,
18876         isinfl etc.
18877         * math/test-math-isinff.cc: New file.
18878
18879 2016-02-12  Florian Weimer  <fweimer@redhat.com>
18880
18881         * misc/bug18240.c (do_test): Set RLIMIT_AS.
18882
18883 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18884
18885         [BZ #19529]
18886         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
18887
18888 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18889
18890         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
18891
18892 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
18893
18894         [BZ #19550]
18895         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
18896         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
18897         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
18898         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
18899         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
18900         New syscall entry.
18901         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
18902         New syscall entry.
18903         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
18904         syscall entry.
18905
18906 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18907
18908         [BZ #18240]
18909         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
18910         unsigned int wraparound.
18911
18912 2016-01-27  Florian Weimer  <fweimer@redhat.com>
18913
18914         [BZ #18240]
18915         * misc/bug18240.c: New test.
18916         * misc/Makefile (tests): Add it.
18917
18918 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
18919             Joseph Myers  <joseph@codesourcery.com>
18920
18921         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
18922         load in branch delay slot when less than a word of input left.
18923
18924 2016-01-27  Andreas Schwab  <schwab@suse.de>
18925
18926         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
18927         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
18928         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
18929         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
18930
18931 2016-01-26  David S. Miller  <davem@davemloft.net>
18932
18933         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
18934
18935 2016-01-25  David S. Miller  <davem@davemloft.net>
18936
18937         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
18938         __sqrtl_finite.
18939         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
18940         instead using versioned_symbol.
18941         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
18942         of entries.
18943
18944         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
18945         __sqrtl_finite to GLIBC_2.23
18946
18947 2016-01-25  Ricchard Henderson  <rth@redhat.com>
18948
18949         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18950
18951 2016-01-25  Andreas Schwab  <schwab@suse.de>
18952
18953         [BZ #17514]
18954         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
18955         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
18956         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
18957         * nptl/tst-mutex-errorcheck.c: New file.
18958
18959 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18960
18961         [BZ #18560]
18962         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
18963         (IPCOP_semop): Likewise.
18964         (IPCOP_semget): Likewise.
18965         (IPCOP_semctl): Likewise.
18966         (IPCOP_msgsnd): Likewise.
18967         (IPCOP_msgrcv): Likewise.
18968         (IPCOP_msgget): Likewise.
18969         (IPCOP_msgctl): Likewise.
18970         (IPCOP_shmat): Likewise.
18971         (IPCOP_shmdt): Likewise.
18972         (IPCOP_shmget): Likewise.
18973         (IPCOP_shmctl): Likewise.
18974
18975 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18976
18977         * string/tst-endian.c: Include <libc-internal.h>.
18978         (do_test): Ignore tautological-compare warnings around
18979         "htobeXX (beXXtoh (i)) != i" and
18980         "htoleXX (leXXtoh (i)) != i" if-statements.
18981
18982 2016-01-24  David S. Miller  <davem@davemloft.net>
18983
18984         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
18985         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
18986         alias.
18987         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18988         __sqrtl_finite.
18989
18990         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18991
18992 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
18993
18994         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
18995         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
18996         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18997
18998 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18999
19000         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
19001         (thread_func): Use new function to simplify barrier check.
19002         (do_test): Use new function to simplify checking barrier exit
19003         code, and actually join the child thread.
19004
19005 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19006
19007         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
19008         semicolon.
19009         (__libc_tend): Likewise.
19010         (__libc_tabort): Likewise.
19011
19012 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
19013
19014         * sysdeps/nios2/libm-test-ulps: Update.
19015         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
19016         (__gtsf2): Likewise.
19017         (__unorddf2): Likewise.
19018         (__unordsf2): Likewise.
19019         (__ledf2): Likewise.
19020
19021 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
19022
19023         * nis/nis_table.c (__follow_path): Disable diagnostic for
19024         uninitialized variable that is a false positive for gcc 4.7.
19025         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
19026
19027 2016-01-20  Roland McGrath  <roland@hack.frob.com>
19028
19029         * sysdeps/nacl/lowlevellock-futex.h
19030         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
19031         Always evaluate PRIVATE argument.
19032
19033 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
19034
19035         [BZ #19490]
19036         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
19037         (pthread_cond_broadcast): Use ENTRY/END
19038         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
19039         (pthread_cond_signal): Likewise.
19040         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
19041         Likewise.
19042         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
19043         Likewise.
19044         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
19045         Likewise.
19046
19047 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
19048
19049         * sysdeps/ieee754/dbl-64/s_finite.c
19050         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
19051         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
19052         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
19053         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
19054         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
19055
19056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
19057         (__gtsf2): Add as optional for libc.so.
19058         (__unordsf2): Likewise.
19059         (__signbit): Remove for libc.so.
19060         (__signbitl): Likewise.
19061
19062 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19063
19064         * iconvdata/bug-iconv11.c (test_ibm93x):
19065         Use %zu printf format specifier for size_t argument.
19066
19067 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
19068
19069         * math/gen-libm-test.pl (parse_ulps): Do not reduce
19070         already-recorded ulps.
19071         * sysdeps/arm/libm-test-ulps: Regenerated.
19072         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
19073         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19074         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
19075
19076 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19077             Paul Pluzhnikov  <ppluzhnikov@google.com>
19078
19079         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
19080         assembler not supporting AVX-512.
19081
19082 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
19083
19084         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19085
19086 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
19087
19088         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
19089         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19090
19091         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
19092
19093         * sysdeps/arm/libm-test-ulps: Regenerated.
19094
19095 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
19096
19097         [BZ #19451]
19098         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
19099
19100 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
19101
19102         [BZ #19486]
19103         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
19104         * sysdeps/generic/fix-fp-int-convert-overflow.h
19105         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
19106         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
19107         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
19108         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
19109         Likewise.
19110         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
19111         Avoid conversions to long int where inexact exceptions
19112         could be raised.
19113         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
19114         Likewise.
19115         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
19116         Avoid conversions to long long int where inexact exceptions
19117         could be raised.
19118         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
19119         Likewise.
19120
19121 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
19122
19123         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
19124         * configure: Regenerated.
19125
19126 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19127
19128         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
19129
19130 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
19131
19132         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
19133         outside of comment.
19134
19135 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19136
19137         * nptl/tst-barrier1.c: Add description on first line.
19138         * nptl/tst-barrier2.c: Likewise.
19139         * nptl/tst-barrier3.c: Likewise.
19140         * nptl/tst-barrier4.c: Likewise.
19141         * nptl/tst-barrier5.c: Likewise.
19142
19143 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19144
19145         [BZ #18868]
19146         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
19147
19148 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19149
19150         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
19151         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19152         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
19153         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
19154         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
19155         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
19156         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19157         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19158         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19159         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19160         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19161
19162 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19163
19164         [BZ #13065]
19165         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
19166         new implementation.
19167         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
19168         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
19169         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
19170         (BARRIER_IN_THRESHOLD): New macro.
19171         * nptl/pthread_barrierattr_setpshared.c
19172         (pthread_barrierattr_setpshared): Clean up.
19173         * nptl/tst-barrier4.c: Correct comment.
19174         * nptl/tst-barrier5.c: New file.
19175         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
19176         (gen-as-const-headers): Remove lowlevelbarrier.sym.
19177         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
19178         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
19179         * nptl/lowlevelbarrier.sym: Remove.
19180         * nptl/DESIGN-barrier.txt: Remove.
19181         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
19182         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
19183         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
19184         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
19185         error.
19186         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
19187         implementation.
19188
19189 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19190
19191         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
19192         (do_child): Mask SIGRTMIN while thr is running.
19193
19194 2016-01-15  Martin Sebor  <msebor@redhat.com>
19195
19196         [BZ #19432]
19197         * iconvdata/Makefile: Add bug-iconv11.
19198         * iconvdata/bug-iconv11.c: New test.
19199         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
19200         * iconvdata/ibm933.c: Same.
19201         * iconvdata/ibm935.c: Same.
19202         * iconvdata/ibm937.c: Same.
19203         * iconvdata/ibm939.c: Same.
19204
19205 2016-01-15  Martin Sebor  <msebor@redhat.com>
19206
19207         [BZ #19443]
19208         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
19209         [DEBUG] (_ufc_set_bits): Declare used.
19210         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
19211         [DEBUG] (print_all): Declare used.
19212         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
19213         operands of the ternary ?: expression to target type.
19214         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
19215         calling the undeclared abort.
19216         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
19217
19218 2016-01-15  Martin Sebor  <msebor@redhat.com>
19219
19220         [BZ #18755]
19221         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
19222         warnings.
19223         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
19224         (__gai_create_helper_thread): Same.
19225         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
19226         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
19227         to suppress -Wmaybe-uninitialized warnings.
19228
19229 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19230
19231         [BZ #19465]
19232         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
19233         inside if.
19234         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19235         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19236         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19237
19238 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19239
19240         [BZ #19466]
19241         * time/tst-mktime2.c (time_t_max): Removed.
19242         (time_t_min): Likewise.
19243         (TYPE_SIGNED): New.
19244         (TYPE_MINIMUM): Likewise.
19245         (TYPE_MAXIMUM): Likewise.
19246         (TIME_T_MIN): Likewise.
19247         (TIME_T_MAX): Likewise.
19248         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
19249         and TIME_T_MIN.
19250         (do_test): Likewise.
19251
19252 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
19253
19254         [BZ #19467]
19255         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19256         index_Fast_Unaligned_Load flag for Excavator family CPUs.
19257
19258 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
19259
19260         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
19261
19262 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
19263
19264         * benchtests/Makefile (PYTHON): Define.
19265         (bench-func): Use $(PYTHON) to run python scripts.
19266         ($(objpfx)bench-%.c): Likewise.
19267
19268 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
19269
19270         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
19271         leading slash when `file_name' is "/".
19272
19273 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
19274
19275         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
19276         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
19277         Likewise.
19278         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
19279         Likewise.
19280         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
19281         Likewise.
19282         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
19283         enum constant and macro.
19284         (PTRACE_SETSIGMASK): Likewise.
19285         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19286         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19287         (PTRACE_GETSIGMASK): Likewise.
19288         (PTRACE_SETSIGMASK): Likewise.
19289         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19290         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
19291         Likewise.
19292         (PTRACE_SETSIGMASK): Likewise.
19293         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19294         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19295         (PTRACE_GETSIGMASK): Likewise.
19296         (PTRACE_SETSIGMASK): Likewise.
19297         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19298         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
19299         Likewise.
19300         (PTRACE_SETSIGMASK): Likewise.
19301         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19302         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
19303         Likewise.
19304         (PTRACE_SETSIGMASK): Likewise.
19305         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19306         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
19307         Likewise.
19308         (PTRACE_SETSIGMASK): Likewise.
19309         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19310
19311 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
19312             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19313
19314         [BZ #19439]
19315         * math/bits/mathcalls.h
19316         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
19317         prototype.
19318         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
19319
19320 2016-01-11  Andreas Schwab  <schwab@suse.de>
19321
19322         [BZ #19253]
19323         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
19324         cache when TZDEFRULES was used.
19325         * time/tst-tzname.c: New file.
19326         * time/Makefile (test): Add tst-tzname.
19327         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
19328         * timezone/Makefile (test-zones): Add $(posixrules-file).
19329         ($(testdata)/$(posixrules-file)): New rule.
19330
19331 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19332
19333         Fix doc quoting problems with Texinfo 5
19334         Without this change, in the info file output, Texinfo 5 quotes code
19335         in text with undirected single quotes 'like this' and generates
19336         code examples that with many PDF readers cannot be cut out of PDFs
19337         and pasted into code.
19338         * manual/libc.texinfo: Configure the libc manual like the GNU
19339         Emacs manual, by using @documentencoding and setting
19340         txicodequoteundirected and txicodequotebacktick.  This way,
19341         Texinfo 5 quotes code in text with directed single quotes ‘like
19342         this’ and produces examples that can be cut out of PDFs.  This
19343         change causes Texinfo 5 to generate info files that contain UTF-8
19344         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
19345         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
19346
19347 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19348
19349         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
19350         __libc_tabort, __libc_tend): New wrappers that enforce compiler
19351         barriers to their respective compiler built-ins.
19352         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
19353         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
19354         * sysdeps/powerpc/sysdep.h: Likewise.
19355         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
19356         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
19357         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
19358
19359 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
19360
19361         * scripts/config.guess: Revert previous shebang change.
19362         * scripts/config.sub: Likewise.
19363         * scripts/mkinstalldirs: Likewise.
19364
19365 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19366
19367         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
19368         PPC_FEATURE2_HAS_IEEE128.
19369         * sysdeps/powerpc/dl-procinfo.c:
19370         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
19371
19372 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
19373
19374         [BZ #19415]
19375         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
19376         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
19377         (_dl_lookup_address): Rewrite using function resolver trampoline.
19378         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
19379         two bits in address.
19380
19381 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19382
19383         * longlong.h: Change !__SHMEDIA__ to
19384         (!defined (__SHMEDIA__) || !__SHMEDIA__).
19385         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
19386
19387 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
19388             Joseph Myers  <joseph@codesourcery.com>
19389             Mark Shinwell  <shinwell@codesourcery.com>
19390             Andrew Stubbs  <ams@codesourcery.com>
19391             Rich Felker <dalias@libc.org>
19392
19393         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
19394
19395 2016-01-07  Richard Henderson  <rth@redhat.com>
19396
19397         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
19398
19399 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19400
19401         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
19402         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
19403         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19404         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19405         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
19406
19407 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
19408             Joseph Myers  <joseph@codesourcery.com>
19409
19410         * timezone/private.h: Update from tzcode 2015g.
19411         * timezone/tzfile.h: Likewise.
19412         * timezone/tzselect.ksh: Likewise.
19413         * timezone/zdump.c: Likewise.
19414         * timezone/zic.c: Likewise.
19415         * timezone/ialloc.c: Remove file.
19416         * timezone/scheck.c: Likewise.
19417         * timezone/Makefile (extra-objs): Remove variable.
19418         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
19419         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
19420         -Wno-maybe-uninitialized.
19421         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
19422         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
19423         (CFLAGS-ialloc.c): Remove variable.
19424         (CFLAGS-scheck.c): Likewise.
19425         * timezone/README: Update list of files from tzcode.
19426
19427 2016-01-07  Khem Raj  <raj.khem@gmail.com>
19428
19429         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
19430         instead of __fxprintf when _LIBC is undefined.
19431
19432 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
19433
19434         * catgets/test-gencat.sh: Remove space after shebang.
19435         * conform/GlibcConform.pm: Likewise.
19436         * conform/check-header-lists.sh: Likewise.
19437         * conform/conformtest.pl: Likewise.
19438         * conform/linknamespace.pl: Likewise.
19439         * conform/list-header-symbols.pl: Likewise.
19440         * debug/catchsegv.sh: Likewise.
19441         * elf/genrtldtbl.awk: Likewise.
19442         * elf/tst-pathopt.sh: Likewise.
19443         * elf/tst-rtld-load-self.sh: Likewise.
19444         * grp/tst_fgetgrent.sh: Likewise.
19445         * iconvdata/gen-8bit-gap-1.sh: Likewise.
19446         * iconvdata/gen-8bit-gap.sh: Likewise.
19447         * iconvdata/gen-8bit.sh: Likewise.
19448         * iconvdata/run-iconv-test.sh: Likewise.
19449         * intl/tst-gettext.sh: Likewise.
19450         * intl/tst-gettext2.sh: Likewise.
19451         * intl/tst-gettext4.sh: Likewise.
19452         * intl/tst-gettext6.sh: Likewise.
19453         * intl/tst-translit.sh: Likewise.
19454         * io/ftwtest-sh: Likewise.
19455         * libio/test-freopen.sh: Likewise.
19456         * locale/gen-translit.pl: Likewise.
19457         * malloc/tst-mtrace.sh: Likewise.
19458         * manual/check-safety.sh: Likewise.
19459         * manual/libc-texinfo.sh: Likewise.
19460         * manual/tsort.awk: Likewise.
19461         * manual/xtract-typefun.awk: Likewise.
19462         * nptl/tst-cancel-wrappers.sh: Likewise.
19463         * nptl/tst-tls6.sh: Likewise.
19464         * posix/globtest.sh: Likewise.
19465         * posix/tst-getconf.sh: Likewise.
19466         * posix/wordexp-tst.sh: Likewise.
19467         * scripts/check-c++-types.sh: Likewise.
19468         * scripts/check-local-headers.sh: Likewise.
19469         * scripts/config.guess: Likewise.
19470         * scripts/config.sub: Likewise.
19471         * scripts/cpp: Likewise.
19472         * scripts/cross-test-ssh.sh: Likewise.
19473         * scripts/documented.sh: Likewise.
19474         * scripts/evaluate-test.sh: Likewise.
19475         * scripts/gen-libc-abis: Likewise.
19476         * scripts/gen-sorted.awk: Likewise.
19477         * scripts/list-fixed-bugs.py: Likewise.
19478         * scripts/merge-test-results.sh: Likewise.
19479         * scripts/mkinstalldirs: Likewise.
19480         * scripts/rellns-sh: Likewise.
19481         * scripts/test-installation.pl: Likewise.
19482         * scripts/update-copyrights: Likewise.
19483         * stdio-common/tst-printf.sh: Likewise.
19484         * stdio-common/tst-unbputc.sh: Likewise.
19485         * stdlib/tst-fmtmsg.sh: Likewise.
19486         * stdlib/tst-setcontext3.sh: Likewise.
19487         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
19488         * sysdeps/unix/make-syscalls.sh: Likewise.
19489
19490 2016-01-06  John David Anglin  <dave.anglin@bell.net>
19491
19492         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
19493         asm stw with atomic_exchange_rel.  Add explanatory comment.
19494         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19495         Likewise.
19496
19497 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19498
19499         [BZ #19122]
19500         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
19501         * sysdeps/generic/dl-unistd.h: New file.
19502         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
19503
19504 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19505
19506          [BZ #19122]
19507          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
19508          * sysdeps/generic/dl-mman.h: New file.
19509          * sysdeps/mach/hurd/dl-mman.h: Likewise.
19510
19511 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
19512
19513         * manual/texinfo.tex: Update to version 2016-01-04.21 with
19514         trailing whitespace removed.
19515         * scripts/config.guess: Update to version 2016-01-01.
19516         * scripts/config.sub: Update to version 2016-01-01.
19517         * scripts/move-if-change: Update from gnulib.
19518
19519 2016-01-04  Anton Blanchard  <anton@samba.org>
19520
19521         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
19522         for array indices.
19523         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
19524
19525 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
19526
19527         * NEWS: Update copyright dates.
19528         * catgets/gencat.c (print_version): Likewise.
19529         * csu/version.c (banner): Likewise.
19530         * debug/catchsegv.sh: Likewise.
19531         * debug/pcprofiledump.c (print_version): Likewise.
19532         * debug/xtrace.sh (do_version): Likewise.
19533         * elf/ldconfig.c (print_version): Likewise.
19534         * elf/ldd.bash.in: Likewise.
19535         * elf/pldd.c (print_version): Likewise.
19536         * elf/sotruss.sh: Likewise.
19537         * elf/sprof.c (print_version): Likewise.
19538         * iconv/iconv_prog.c (print_version): Likewise.
19539         * iconv/iconvconfig.c (print_version): Likewise.
19540         * locale/programs/locale.c (print_version): Likewise.
19541         * locale/programs/localedef.c (print_version): Likewise.
19542         * login/programs/pt_chown.c (print_version): Likewise.
19543         * malloc/memusage.sh (do_version): Likewise.
19544         * malloc/memusagestat.c (print_version): Likewise.
19545         * malloc/mtrace.pl: Likewise.
19546         * manual/libc.texinfo: Likewise.
19547         * nptl/version.c (banner): Likewise.
19548         * nscd/nscd.c (print_version): Likewise.
19549         * nss/getent.c (print_version): Likewise.
19550         * nss/makedb.c (print_version): Likewise.
19551         * posix/getconf.c (main): Likewise.
19552         * scripts/test-installation.pl: Likewise.
19553         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19554
19555         * All files with FSF copyright notices: Update copyright dates
19556         using scripts/update-copyrights.
19557         * intl/plural.c: Regenerated.
19558         * locale/programs/charmap-kw.h: Likewise.
19559         * locale/programs/locfile-kw.h: Likewise.
19560
19561 2016-01-02  Helge Deller  <deller@gmx.de>
19562
19563         [BZ #19285]
19564         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
19565         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
19566         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
19567         (MADV_xxK_PAGES): Remove.
19568
19569 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
19570
19571         [BZ #15421]
19572         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
19573         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
19574         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
19575         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
19576
19577 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
19578
19579         [BZ #19408]
19580         * sysdeps/unix/sysv/linux/personality.c: New file.
19581         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
19582         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
19583         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
19584         (sysdep_routines): Add personality.
19585         (tests): Add tst-personality.
19586         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
19587         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
19588         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
19589         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
19590         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
19591         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
19592         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
19593         Likewise.
19594         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
19595         Likewise.
19596         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
19597         Likewise.
19598         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
19599         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
19600         Likewise.
19601
19602 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
19603
19604         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
19605         (PATH_ARM_SYSTYPE): Remove.
19606         (PATH_CPUINFO): Likewise.
19607         (IO_BASE_FOOTBRIDGE): Likewise.
19608         (IO_SHIFT_FOOTBRIDGE): Likewise.
19609         (struct platform): Likewise.
19610         (init_iosys): Remove compatibility code for 2.4 kernels.
19611         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
19612
19613 2015-12-29  Florian Weimer  <fweimer@redhat.com>
19614
19615         * malloc/tst-malloc-thread-fail.c: New file.
19616         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
19617         (tst-malloc-thread-fail): Link against libpthread.
19618
19619 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
19620
19621         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
19622         (get_parser): New function.
19623         (main): New function.
19624
19625 2015-12-29  Rob Wu  <rob@robwu.nl>
19626
19627         [BZ #19369]
19628         * resolv/res_init.c (__res_vinit): Reset defdname before use.
19629
19630 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
19631
19632         [BZ #19270]
19633         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
19634
19635 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
19636
19637         [BZ #15421]
19638         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
19639
19640 2015-12-23  Torvald Riegel  <triegel@redhat.com>
19641
19642         [BZ #13690]
19643         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
19644         after releasing it.
19645         (__lll_robust_unlock): Likewise.
19646         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
19647         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
19648         (lll_robust_unlock): Likewise.
19649         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
19650         Prevent warnings in callers.
19651
19652 2015-12-23  Florian Weimer  <fweimer@redhat.com>
19653
19654         * malloc/arena.c (list_lock): Update comment.
19655
19656 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19657
19658         * sysdeps/powerpc/hwcapinfo.c: Export symbol
19659         __parse_hwcap_and_convert_at_platform to libc.a.
19660
19661 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19662
19663         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
19664         platform and feature support for POWER9.
19665         * sysdeps/powerpc/dl-procinfo.h: Likewise.
19666         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
19667         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
19668         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
19669         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
19670         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
19671         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
19672         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
19673
19674 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19675
19676         Harmonize generic stdio-lock support with nptl
19677
19678         This fixes build when _IO_funlockfile is a macro, fixes build where
19679         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
19680         stack unwind.
19681
19682         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
19683         _IO_release_lock ): Use cleanup attribute on new
19684         _IO_acquire_lock_file variable instead of assuming that
19685         _IO_release_lock will be called.
19686         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
19687         _IO_acquire_lock_needs_exceptions_enabled.
19688         (_IO_acquire_lock_clear_flags2): New macro.
19689
19690 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19691
19692         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19693
19694 2015-12-21  Florian Weimer  <fweimer@redhat.com>
19695
19696         [BZ #19182]
19697         * malloc/arena.c (list_lock): Document lock ordering requirements.
19698         (free_list_lock): New lock.
19699         (ptmalloc_lock_all): Comment on free_list_lock.
19700         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
19701         (detach_arena): Update comment.  free_list_lock is now needed.
19702         (_int_new_arena): Use free_list_lock around detach_arena call.
19703         Acquire arena lock after list_lock.  Add comment, including FIXME
19704         about incorrect synchronization.
19705         (get_free_list): Switch to free_list_lock.
19706         (reused_arena): Acquire free_list_lock around detach_arena call
19707         and attached threads counter update.  Add two FIXMEs about
19708         incorrect synchronization.
19709         (arena_thread_freeres): Switch to free_list_lock.
19710         * malloc/malloc.c (struct malloc_state): Update comments to
19711         mention free_list_lock.
19712
19713 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
19714
19715         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
19716         Remove functions.
19717         (sloww, sloww1): Accept argument to offset quadrant.
19718         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
19719         quadrant.
19720         (__sin, __cos): Consolidate common code into new functions.
19721         (reduce_sincos_1, do_sincos_1): New functions.
19722         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19723
19724         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
19725         code to new functions.
19726         (reduce_sincos_2, do_sincos_2): New functions.
19727         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19728
19729         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
19730         common code for sincos.
19731         (__cos) [!IN_SINCOS]: Likewise.
19732         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
19733         New function.
19734         (__sincos): Use it.
19735
19736 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
19737
19738         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
19739         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
19740         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19741
19742 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19743
19744         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
19745         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
19746         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19747         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
19748         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19749         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
19750         index_Prefer_No_VZEROUPPER): New feature.
19751         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
19752         Prefer_No_VZEROUPPER for Knights Landing.
19753
19754 015-12-18  Torvald Riegel  <triegel@redhat.com>
19755
19756         * math/atest-exp2.c (mp_exp_m1): Remove.
19757
19758 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19759
19760         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
19761         syscalls.
19762         (__SYSCALL0): New macro.
19763         (__SYSCALL1): Likewise.
19764         (__SYSCALL2): Likewise.
19765         (__SYSCALL3): Likewise.
19766         (__SYSCALL4): Likewise.
19767         (__SYSCALL5): Likewise.
19768         (__SYSCALL6): Likewise.
19769         (__SYSCALL_CONCAT_X): Likewise.
19770         (__SYSCALL_CONCAT): Likewise.
19771         (__SYSCALL_DIST): Likewise.
19772         (__SYSCALL_CALL): Likewise.
19773
19774 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
19775
19776         [BZ #19363]
19777         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
19778
19779 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19780
19781         [BZ #19375]
19782         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
19783         negative subnormals.
19784
19785 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
19786
19787         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
19788         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
19789         (INTERNAL_SYSCALL_NCS): Use it.
19790         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19791
19792 2015-12-16  Florian Weimer  <fweimer@redhat.com>
19793
19794         [BZ #19243]
19795         * malloc/arena.c (get_free_list): Remove assert and adjust
19796         reference count handling.  Add comment about reused_arena
19797         interaction.
19798         (reused_arena): Add comments abount get_free_list interaction.
19799         * malloc/tst-malloc-thread-exit.c: New file.
19800         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
19801         (tst-malloc-thread-exit): Link against libpthread.
19802
19803 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19804
19805         [BZ #19367]
19806         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
19807         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
19808         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
19809         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
19810         (index_Prefer_MAP_32BIT_EXEC): Likewise.
19811
19812 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19813
19814         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
19815         Silvermont optimizations for Knights Landing.
19816
19817 2015-12-15  Andreas Schwab  <schwab@suse.de>
19818
19819         [BZ #17197]
19820         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
19821         immediately after emitting SI.
19822         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
19823         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
19824         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
19825         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
19826         * iconvdata/bug-iconv10.c: New file.
19827         * iconvdata/Makefile (tests): Add bug-iconv10.
19828         ($(objpfx)bug-iconv10.out): New rule.
19829
19830 2015-12-15  Florian Weimer  <fweimer@redhat.com>
19831
19832         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
19833         aliasing violation.
19834
19835 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
19836
19837         [BZ #18472]
19838         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
19839         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
19840         conditionals for them.
19841         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
19842         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
19843         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
19844         sys/kdaemon.h.
19845         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
19846         compat-only syscall, obsoleted in glibc 2.23.
19847         (create_module): Likewise.
19848         (get_kernel_syms): Likewise.
19849         (query_module): Likewise.
19850         (uselib): Likewise.
19851         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
19852
19853 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
19854
19855         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
19856         <linux/version.h>.
19857         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
19858         conditional code.
19859         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
19860         and ioshift_name initialization.
19861
19862 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19863
19864         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
19865         Fix indentation.
19866
19867 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19868
19869         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
19870
19871 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19872
19873         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
19874
19875 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
19876             Jakub Wilk  <jwilk@debian.org>
19877
19878         [BZ #19347]
19879         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
19880         to change the group of the device to the tty group.
19881
19882 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
19883
19884         Split large string section; add truncation advice
19885         * manual/examples/strncat.c: Remove.
19886         This example was misleading, as the code would have undefined
19887         behavior if "hello" was longer than SIZE.  Anyway, the manual
19888         shouldn't encourage strncpy+strncat for this sort of thing.
19889         * manual/string.texi (Copying Strings and Arrays): Split into
19890         three sections Copying Strings and Arrays, Concatenating Strings,
19891         and Truncating Strings, as this section was way too long.  All
19892         cross-referenced changed.  Add advice about string-truncation
19893         functions.  Remove misleading strncat example.
19894
19895 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
19896
19897         * manual/nss.texi (NSS Modules Interface): Document
19898         NSS_STATUS_NOTFOUND and SUCCESS.
19899
19900 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19901
19902         [BZ 18568]
19903         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19904         201505L, for Unicode 8.
19905
19906 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
19907
19908         * locale/C-translit.h: Regenerate.
19909
19910 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19911
19912         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
19913         and U+0153.
19914
19915 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
19916
19917         [BZ #19351]
19918         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
19919         expanding log(1+z), compare z rather than its square with epsilon
19920         to determine when to avoid evaluating the expansion.
19921
19922         [BZ #19350]
19923         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
19924         Increase overflow threshold.
19925
19926         [BZ #19349]
19927         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
19928         when small.
19929
19930         * sysdeps/unix/sysv/linux/i386/kernel-features.h
19931         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19932         New macro.
19933         [__LINUX_KERNEL_VERSION >= 0x040300]
19934         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19935         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19936         Likewise.
19937         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19938         Likewise.
19939         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19940         Likewise.
19941         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19942         Likewise.
19943         [__LINUX_KERNEL_VERSION >= 0x040300]
19944         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19945         [__LINUX_KERNEL_VERSION >= 0x040300]
19946         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19947         [__LINUX_KERNEL_VERSION >= 0x040300]
19948         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19949         [__LINUX_KERNEL_VERSION >= 0x040300]
19950         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19951         [__LINUX_KERNEL_VERSION >= 0x040300]
19952         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19953         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19954         Likewise.
19955         [__LINUX_KERNEL_VERSION >= 0x040300]
19956         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19957         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19958         Likewise.
19959         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19960         Likewise.
19961         [__LINUX_KERNEL_VERSION >= 0x040300]
19962         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19963         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19964         Likewise.
19965         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19966         Likewise.
19967         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
19968         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
19969         Likewise.
19970         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
19971         Likewise.
19972         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19973         Likewise.
19974         [__LINUX_KERNEL_VERSION >= 0x040300]
19975         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19976         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19977         Likewise.
19978         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19979         Likewise.
19980         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19981         Likewise.
19982         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19983         Likewise.
19984         [__LINUX_KERNEL_VERSION >= 0x040300]
19985         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19986         [__LINUX_KERNEL_VERSION >= 0x040300]
19987         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19988         [__LINUX_KERNEL_VERSION >= 0x040300]
19989         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19990         [__LINUX_KERNEL_VERSION >= 0x040300]
19991         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19992         [__LINUX_KERNEL_VERSION >= 0x040300]
19993         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19994         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19995         Likewise.
19996         [__LINUX_KERNEL_VERSION >= 0x040300]
19997         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19998         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19999         Likewise.
20000         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
20001         Likewise.
20002         [__LINUX_KERNEL_VERSION >= 0x040300]
20003         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
20004         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
20005         Likewise.
20006         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
20007         Likewise.
20008         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20009         (__ASSUME_SOCKET_SYSCALL): Likewise.
20010         (__ASSUME_BIND_SYSCALL): Likewise.
20011         (__ASSUME_CONNECT_SYSCALL): Likewise.
20012         (__ASSUME_LISTEN_SYSCALL): Likewise.
20013         (__ASSUME_ACCEPT_SYSCALL): Likewise.
20014         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20015         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20016         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20017         (__ASSUME_SEND_SYSCALL): Likewise.
20018         (__ASSUME_SENDTO_SYSCALL): Likewise.
20019         (__ASSUME_RECV_SYSCALL): Likewise.
20020         (__ASSUME_RECVFROM_SYSCALL): Likewise.
20021         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
20022         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20023         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20024         (__ASSUME_SENDMSG_SYSCALL): Likewise.
20025         (__ASSUME_RECVMSG_SYSCALL): Likewise.
20026         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20027         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
20028         Likewise.
20029         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
20030         Likewise.
20031         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
20032         Likewise.
20033         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
20034         Likewise.
20035         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
20036         Likewise.
20037         [__LINUX_KERNEL_VERSION >= 0x020625]
20038         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20039         [__LINUX_KERNEL_VERSION >= 0x020625]
20040         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20041         [__LINUX_KERNEL_VERSION >= 0x020625]
20042         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20043         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
20044         Likewise.
20045         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
20046         Likewise.
20047         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
20048         Likewise.
20049         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
20050         Likewise.
20051         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
20052         Likewise.
20053         [__LINUX_KERNEL_VERSION >= 0x020625]
20054         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20055         [__LINUX_KERNEL_VERSION >= 0x020625]
20056         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20057         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
20058         Likewise.
20059         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
20060         Likewise.
20061
20062 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20063
20064         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
20065         record the current if the current ABI and CPU support the FP64
20066         extension.
20067         (has-modd-spreg): Define to record the current if the current ABI and
20068         CPU support 32-bit floating point values in odd FPU registers.
20069         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20070         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
20071         $(has-modd-spreg) equals yes.
20072         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
20073         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
20074         $(has-modd-spreg) equal yes.
20075
20076 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20077
20078         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
20079         basename.
20080
20081 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
20082
20083         * benchtests/Makefile (bench-math): Move ffs and ffsll...
20084         (bench-string): ... here.
20085         (bench): Add bench-string.
20086         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
20087         to *-benchset to reflect what they are.
20088         (benchset): Adjust.
20089
20090         * benchtests/sincos-inputs: Add inputs from sin-inputs and
20091         cos-inputs.
20092
20093 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
20094
20095         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
20096         __attribute__ ((__simd__)) for vector math function declarations.
20097
20098 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20099
20100         Fix typo in strncat, wcsncat manual entries
20101         * manual/string.texi (Copying and Concatenation): Fix typos in
20102         sample implementations of strncat and wcsncat, by having them use
20103         the old value of the destination length, not the new one.
20104
20105 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
20106
20107         [BZ #16961]
20108         [BZ #16962]
20109         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
20110         string on the stack for strtod.
20111         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
20112         a string on the stack for strtof.
20113         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
20114         constructing a string on the stack for strtold.
20115         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
20116         __strtold_nan to GLIBC_PRIVATE.
20117         * math/test-nan-overflow.c: New file.
20118         * math/test-nan-payload.c: Likewise.
20119         * math/Makefile (tests): Add test-nan-overflow and
20120         test-nan-payload.
20121
20122 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20123
20124         Consistency about byte vs character in string.texi
20125         * manual/string.texi (String and Array Utilities):
20126         Distinguish more carefully among bytes, multibyte characters,
20127         and wide characters.  Use "byte" when talking about C 'char',
20128         to distinguish it more clearly from multibyte characters.
20129         Say "wide character" or "multibyte character" instead of
20130         "character", when a wide or multibyte character is intended.
20131         Similarly for "multibyte string" versus "string".
20132         Define these terms more carefully.
20133
20134 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
20135
20136         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
20137         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
20138         Likewise.
20139         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20140         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20141         * sysdeps/sh/math_private.h: New file.
20142         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
20143         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
20144         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
20145         long double function name.
20146         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20147         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20148         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20149         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20150         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20152         Remove __finitel, __isinfl, and __isnanl.
20153         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20154         Likewise.
20155         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20156         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20157         Remove __finitel.
20158         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20159         Likewise.
20160         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20161
20162 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
20163
20164         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
20165         installed libmvec_nonshared.a.
20166
20167 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20168
20169         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
20170         (sysdep_routines): Likewise.
20171         (sysdep-rtld-routines): Likewise.
20172         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
20173         [$(subdir) = nptl](tests-static): test-get_hwcap-static
20174         * sysdeps/powerpc/Versions: Added new
20175         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
20176         * sysdeps/powerpc/hwcapinfo.c: New file.
20177         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
20178         and parse hwcap, hwcap2 and platform number information.
20179         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
20180         to store HWCAP+HWCAP2 and platform number.
20181         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
20182         for HWCAP+HWCAP2 and platform number in the TCB.
20183         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
20184         the HWCAP, HWCAP2 and platform number in the TCB.
20185         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
20186         (TLS_INIT_TP): Included calls to add the hwcap and
20187         at_platform values in the TCB in TP initialization.
20188         (TLS_DEFINE_INIT_TP): Likewise.
20189         (THREAD_GET_HWCAP): New macro.
20190         (THREAD_SET_HWCAP): Likewise.
20191         (THREAD_GET_AT_PLATFORM): Likewise.
20192         (THREAD_SET_AT_PLATFORM): Likewise.
20193         * sysdeps/powerpc/powerpc32/dl-machine.h:
20194         (dl_platform_init): New function that calls
20195         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
20196         powerpc32.
20197         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
20198         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
20199         this functionality, static linking case.
20200         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
20201         linking case.
20202         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
20203         __parse_hwcap_and_convert_at_platform for the static linking case.
20204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
20205         Included the new __parse_hwcap_and_convert_at_platform symbol in the
20206         ABI list for GLIBC 2.23.
20207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
20208         Likewise.
20209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
20210         Likewise.
20211
20212 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
20213
20214         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
20215         * configure: Regenerate.
20216         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
20217         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
20218
20219 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
20220
20221         * iconvdata/ibm930.c: Add comment explaining encoding uses.
20222         * iconvdata/ibm933.c: Likewise.
20223         * iconvdata/ibm935.c: Likewise.
20224         * iconvdata/ibm937.c: Likewise.
20225         * iconvdata/ibm939.c: Likewise.
20226
20227 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20228
20229         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
20230         pthread_join.
20231         * nptl/tst-cancel21.c (tf): Likewise.
20232
20233 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20234
20235         [BZ #19313]
20236         * bits/typesizes.h (__CPU_MASK_TYPE): New.
20237         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20238         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20239         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
20240         Likewise.
20241         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
20242         Likewise.
20243         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
20244         Likewise.
20245         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
20246         Likewise.
20247         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
20248         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
20249         unsigned long int with __CPU_MASK_TYPE.
20250
20251 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20252
20253         * sysdeps/aarch64/libm-test-ulps: Regenerated.
20254
20255 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
20256
20257         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
20258         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
20259         t512.x.
20260         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
20261
20262 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
20263
20264         [BZ #19214]
20265         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
20266         argument to return extended model.  Update family and model
20267         with extended family and model when family == 0x0f.
20268         (init_cpu_features): Updated.
20269
20270 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20271
20272         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
20273         signed off_t, so 32bit bigger than 2GiB values are fine actually.
20274
20275         * sysdeps/mach/hurd/mmap64.c: New file.
20276
20277 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
20278
20279         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
20280         rights for its main user thread in NEWTASK.
20281
20282 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
20283
20284         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
20285         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
20286
20287 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
20288
20289         [BZ #14259]
20290         * Makeconfig: Rename localedir to complocaledir.
20291         Rename inst_localedir to inst_complocaledir.
20292         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
20293         * config.make.in: Use complocaledir and libc_cv_complocaledir.
20294         * configure.ac: Use libc_cv_complocaledir.
20295         * configure: Regenerate.
20296         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
20297         -DCOMPLOCALEDIR.
20298         * locale/findlocale.c: Use COMPLOCALEDIR.
20299         * locale/loadarchive.c: Likewise.
20300         * locale/programs/locale.c: Likewise.
20301         * locale/programs/localedef.c: Likewise.
20302         * locale/programs/locarchive.c: Likewise.
20303         * localedata/Makefile: Use inst_complocaledir.
20304         * sysdeps/gnu/configure: Regenerate.
20305         * sysdeps/hppa/configure: Regenerate.
20306         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20307         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20309         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20310         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20311         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20312         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20313
20314 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
20315
20316         [BZ #19058]
20317         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
20318         AS_NEEDED.
20319         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
20320         workaround.
20321         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
20322         libmvec-static-only-routines): Added new file.
20323         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
20324
20325 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20326
20327         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
20328         of interrupted RPC instead of restoring it.
20329
20330         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
20331         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
20332         libc_hidden_def.
20333         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
20334         into initialized data instead of common. Define rtld_hidden_data_def.
20335         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
20336         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
20337         libc_hidden_def.
20338         (if_freenameindex): Add libc_hidden_weak.
20339         (if_nameindex): Add libc_hidden_weak.
20340         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
20341         __open64.
20342         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
20343         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
20344         * sysdeps/mach/nanosleep.c: Include <time.h>
20345         (__nanosleep): Rename to __libc_nanosleep.
20346         (__nanosleep): Add weak_alias.
20347         (nanosleep): Update alias.
20348
20349 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
20350
20351         * stdlib/strtod_nan.c: New file.
20352         * stdlib/strtod_nan_double.h: Likewise.
20353         * stdlib/strtod_nan_float.h: Likewise.
20354         * stdlib/strtod_nan_main.c: Likewise.
20355         * stdlib/strtod_nan_narrow.h: Likewise.
20356         * stdlib/strtod_nan_wide.h: Likewise.
20357         * stdlib/strtof_nan.c: Likewise.
20358         * stdlib/strtold_nan.c: Likewise.
20359         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
20360         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
20361         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
20362         * wcsmbs/wcstod_nan.c: Likewise.
20363         * wcsmbs/wcstof_nan.c: Likewise.
20364         * wcsmbs/wcstold_nan.c: Likewise.
20365         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
20366         strtold_nan.
20367         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
20368         wcstof_nan.
20369         * include/stdlib.h (__strtof_nan): Declare and use
20370         libc_hidden_proto.
20371         (__strtod_nan): Likewise.
20372         (__strtold_nan): Likewise.
20373         (__wcstof_nan): Likewise.
20374         (__wcstod_nan): Likewise.
20375         (__wcstold_nan): Likewise.
20376         * include/wchar.h (____wcstoull_l_internal): Declare.
20377         * stdlib/strtod_l.c: Do not include <ieee754.h>.
20378         (____strtoull_l_internal): Remove declaration.
20379         (STRTOF_NAN): Define macro.
20380         (SET_MANTISSA): Remove macro.
20381         (STRTOULL): Likewise.
20382         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
20383         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
20384         (STRTOF_NAN): Define macro.
20385         (SET_MANTISSA): Remove macro.
20386         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
20387         (SET_MANTISSA): Remove macro.
20388         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
20389         macro.
20390         (SET_MANTISSA): Remove macro.
20391         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
20392         macro.
20393         (SET_MANTISSA): Remove macro.
20394         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
20395         (SET_MANTISSA): Remove macro.
20396         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
20397         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
20398         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
20399
20400         [BZ #19266]
20401         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
20402         upper case and lower case letters inside NAN(), not using TOLOWER.
20403         * stdlib/tst-strtod-nan-locale-main.c: New file.
20404         * stdlib/tst-strtod-nan-locale.c: Likewise.
20405         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
20406         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
20407         Depend on $(gen-locales).
20408         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
20409         * wcsmbs/tst-wcstod-nan-locale.c: New file.
20410         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
20411         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
20412         Depend on $(gen-locales).
20413         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
20414
20415 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
20416
20417         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
20418
20419         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20420         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
20421         __finitel, __isinfl, and __isnanl.
20422         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20423         Likewise.
20424         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20425         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
20426         __finitel.
20427         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20428         Likewise.
20429         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20430
20431 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20432
20433         * malloc/memusage.c (me): Remove redundant getenv call.
20434
20435 2015-10-24  Florian Weimer  <fweimer@redhat.com>
20436
20437         [BZ #19143]
20438         [BZ #19164]
20439         * nptl/check-cpuset.h: Remove.
20440         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20441         Remove CPU set size check.
20442         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20443         Likewise.
20444         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
20445         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
20446         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
20447         (__pthread_setaffinity_new): Remove CPU set size check.
20448         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20449         (__kernel_cpumask_size): Remove.
20450         (__sched_setaffinity_new): Remove CPU set size check.
20451         * manual/threads.texi (Default Thread Attributes): Remove stale
20452         reference to check_cpuset_attr, determine_cpumask_size in comment.
20453         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
20454         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
20455         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
20456         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
20457         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
20458         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
20459         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
20460         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
20461         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
20462         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
20463         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
20464         skeleton test file.
20465         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
20466         tst-affinity-pid.
20467
20468 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20469
20470         * scripts/update-abilist.sh: New file.
20471         * Makefile (+subdir_targets): Add subdir_update-all-abi.
20472         * Makerules (update-all-abi-%, update-all-abi)
20473         (subdir_update-all-abi): New targets.
20474         * elf/Makefile (update-all-abi): New target.
20475
20476 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20477
20478         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
20479         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
20480         (__libc_lock_define_initialized): Use it.
20481         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
20482         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
20483         * malloc/malloc.c (main_arena): Likewise.
20484         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20485         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20486
20487 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
20488
20489         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
20490         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
20491         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20492         (PTRACE_O_MASK): Update value.
20493         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
20494         New value in enum __ptrace_setoptions.
20495         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20496         (PTRACE_O_MASK): Update value.
20497         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
20498         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20499         (PTRACE_O_MASK): Update value.
20500         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
20501         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20502         (PTRACE_O_MASK): Update value.
20503         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
20504         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20505         (PTRACE_O_MASK): Update value.
20506         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
20507         New value in enum __ptrace_setoptions.
20508         (PTRACE_O_MASK): Update value.
20509         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
20510         New value in enum __ptrace_setoptions.
20511         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20512         (PTRACE_O_MASK): Update value.
20513
20514         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
20515         New macro.
20516         (PACKET_AUXDATA): Likewise.
20517         (PACKET_ORIGDEV): Likewise.
20518         (PACKET_VERSION): Likewise.
20519         (PACKET_HDRLEN): Likewise.
20520         (PACKET_RESERVE): Likewise.
20521         (PACKET_TX_RING): Likewise.
20522         (PACKET_LOSS): Likewise.
20523         (PACKET_VNET_HDR): Likewise.
20524         (PACKET_TX_TIMESTAMP): Likewise.
20525         (PACKET_TIMESTAMP): Likewise.
20526         (PACKET_FANOUT): Likewise.
20527         (PACKET_TX_HAS_OFF): Likewise.
20528         (PACKET_QDISC_BYPASS): Likewise.
20529         (PACKET_ROLLOVER_STATS): Likewise.
20530         (PACKET_FANOUT_DATA): Likewise.
20531         (PACKET_MR_UNICAST): Likewise.
20532
20533         [BZ #19242]
20534         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
20535         (TOUPPER): Likewise.
20536         * stdlib/tst-strtol-locale-main.c: New file.
20537         * stdlib/tst-strtol-locale.c: Likewise.
20538         * stdlib/Makefile (tests): Add tst-strtol-locale.
20539         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
20540         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
20541         Depend on $(gen-locales).
20542         * wcsmbs/tst-wcstol-locale.c: New file.
20543         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
20544         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
20545         tr_TR.ISO-8859-9.
20546         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
20547         Depend on $(gen-locales).
20548
20549 2015-11-20  Roland McGrath  <roland@hack.frob.com>
20550
20551         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
20552         __glibc_likely instead of __builtin_expect.  After falling back to
20553         dyncode_create in a non-ET_DYN case, use the allocate_code_data
20554         system interface to register the code pages as occupied.
20555
20556 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
20557
20558         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20559         [!ARM_MATH_PRIVATE_H].
20560         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
20561         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20562         [!HPPA_MATH_PRIVATE_H].
20563         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
20564         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
20565         to [!I386_MATH_PRIVATE_H].
20566         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
20567         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
20568         Change guard to [!M68K_MATH_PRIVATE_H].
20569         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
20570         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
20571         guard to [!MICROBLAZE_MATH_PRIVATE_H].
20572         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
20573         macro.
20574         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20575         [!MIPS_MATH_PRIVATE_H].
20576         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
20577         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20578         [!NIO2_MATH_PRIVATE_H].
20579         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
20580         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20581         [!TILE_MATH_PRIVATE_H].
20582         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
20583
20584         [BZ #15421]
20585         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
20586         initialize with 0 and define as weak alias of __signgam.
20587         * include/math.h [!_ISOMAC] (__signgam): Declare.
20588         * math/Makefile (libm-calls): Add w_lgamma_compat.
20589         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
20590         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
20591         test-signgam-ullong-init.
20592         (tests-static): Add test-signgam-uchar-static,
20593         test-signgam-uchar-init-static, test-signgam-uint-static,
20594         test-signgam-uint-init-static, test-signgam-ullong-static and
20595         test-signgam-ullong-init-static.
20596         (CFLAGS-test-signgam-uchar.c): New variable.
20597         (CFLAGS-test-signgam-uchar-init.c): Likewise.
20598         (CFLAGS-test-signgam-uchar-static.c): Likewise.
20599         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20600         (CFLAGS-test-signgam-uint.c): Likewise.
20601         (CFLAGS-test-signgam-uint-init.c): Likewise.
20602         (CFLAGS-test-signgam-uint-static.c): Likewise.
20603         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20604         (CFLAGS-test-signgam-ullong.c): Likewise.
20605         (CFLAGS-test-signgam-ullong-init.c): Likewise.
20606         (CFLAGS-test-signgam-ullong-static.c): Likewise.
20607         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20608         * math/Versions (libm): Add GLIBC_2.23.
20609         * math/lgamma-compat.h: New file.
20610         * math/test-signgam-main.c: Likewise.
20611         * math/test-signgam-uchar-init-static.c: Likewise.
20612         * math/test-signgam-uchar-init.c: Likewise.
20613         * math/test-signgam-uchar-static.c: Likewise.
20614         * math/test-signgam-uchar.c: Likewise.
20615         * math/test-signgam-uint-init-static.c: Likewise.
20616         * math/test-signgam-uint-init.c: Likewise.
20617         * math/test-signgam-uint-static.c: Likewise.
20618         * math/test-signgam-uint.c: Likewise.
20619         * math/test-signgam-ullong-init-static.c: Likewise.
20620         * math/test-signgam-ullong-init.c: Likewise.
20621         * math/test-signgam-ullong-static.c: Likewise.
20622         * math/test-signgam-ullong.c: Likewise.
20623         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
20624         wrapper of w_lgamma_main.c.
20625         * math/w_lgamma_compat.c: New file.
20626         * math/w_lgamma_compatf.c: Likewise.
20627         * math/w_lgamma_compatl.c: Likewise.
20628         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
20629         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20630         defining compatibility symbols.
20631         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
20632         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
20633         wrapper of w_lgammaf_main.c.
20634         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
20635         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20636         defining compatibility symbols.
20637         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
20638         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
20639         wrapper of w_lgammal_main.c.
20640         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
20641         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20642         defining compatibility symbols.
20643         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
20644         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
20645         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
20646         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
20647         <lgamma-compat.h>.
20648         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
20649         (__ieee754_gamma): Define as alias.
20650         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
20651         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
20652         <lgamma-compat.h>.
20653         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
20654         (__ieee754_gammaf): Define as alias.
20655         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
20656         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
20657         <lgamma-compat.h>.
20658         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
20659         (__ieee754_gammal): Define as alias.
20660         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
20661         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
20662         <math/w_lgamma_compat.c>.
20663         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
20664         Define as alias of __lgamma_compat and use in defining lgammal.
20665         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
20666         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
20667         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
20668         (USE_AS_COMPAT): New macro.
20669         (LGAMMA_OLD_VER): Undefine and redefine.
20670         (lgammal): Do not define here.
20671         (gammal): Only define here if [GAMMA_ALIAS].
20672         * conform/linknamespace.pl (@whitelist): Remove signgam.
20673         * sysdeps/nacl/libm.abilist: Update.
20674         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20675         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20676         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20677         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20678         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20679         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20680         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20681         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20682         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20683         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20684         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20685         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20687         Likewise.
20688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20689         Likewise.
20690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20691         Likewise.
20692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20693         Likewise.
20694         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20695         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20696         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20697         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20698         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20700         Likewise.
20701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20702         Likewise.
20703         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20704         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20705         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20706
20707 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20708
20709         [BZ #16364]
20710         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
20711         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
20712
20713 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20714
20715         * sysdeps/s390/fpu/bits/mathinline.h:
20716         Use __asm__ [__volatile__] instead of asm [volatile].
20717         * sysdeps/s390/abort-instr.h: Likewise.
20718         * sysdeps/s390/atomic-machine.h: Likewise.
20719         * sysdeps/s390/bits/string.h: Likewise.
20720         * sysdeps/s390/dl-tls.h: Likewise.
20721         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20722         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20723         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20724         * sysdeps/s390/fpu/fesetround.c: Likewise.
20725         * sysdeps/s390/fpu/fpu_control.h: Likewise.
20726         * sysdeps/s390/fpu/s_fma.c: Likewise.
20727         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
20728         * sysdeps/s390/memusage.h: Likewise.
20729         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
20730         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
20731         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
20732         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
20733         * sysdeps/s390/nptl/tls.h: Likewise.
20734         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
20735         * sysdeps/s390/s390-32/backtrace.c: Likewise.
20736         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20737         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
20738         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20739         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20740         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
20741         * sysdeps/s390/s390-64/backtrace.c: Likewise.
20742         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20743         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
20744         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
20745         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20746         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20747         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
20748         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20749         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20750         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
20751         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
20752         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
20753         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20754         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
20755         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20756         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
20757
20758 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20759             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20760
20761         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
20762         Add lwarx hint, and use macro for acquire instruction.
20763         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
20764         Likewise.
20765         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
20766         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
20767         update to use new atomic macros.
20768
20769 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20770
20771         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20772         (__lll_trylock_elision): Fix setting of adapt_count.
20773         * sysdeps/unix/sysv/linux/powerpc/htm.h
20774         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
20775         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
20776         (_ABORT_SYSCALL): Renumber, and clarify definition.
20777         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
20778
20779 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20780
20781         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
20782         after system headers to prevent MIN/MAX redefinition.  Define
20783         HAVE_ALLOCA to preserve builtin alloca usage.
20784
20785 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
20786
20787         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
20788         static and don't set or restore rounding.
20789         (__cos)[IN_SINCOS]: Likewise.
20790         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
20791         (__sincos): Set and restore rounding mode.  Remove check for infinite
20792         or NaN input.
20793
20794         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
20795
20796         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
20797         as used.
20798
20799 2015-11-16  Florian Weimer  <fweimer@redhat.com>
20800
20801         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
20802
20803 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
20804
20805         * config.make.in (have-glob-dat-reloc): New.
20806         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
20807         target supports GLOB_DAT relocaton. AC_SUBST.
20808         * configure: Regenerated.
20809         * elf/Makefile (tests): Add tst-prelink.
20810         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20811         (tst-prelink-ENV): New.
20812         ($(objpfx)tst-prelink-conflict.out): Likewise.
20813         ($(objpfx)tst-prelink-cmp.out): Likewise.
20814         * sysdeps/x86/tst-prelink.c: Moved to ...
20815         * elf/tst-prelink.c: Here.
20816         * sysdeps/x86/tst-prelink.exp: Moved to ...
20817         * elf/tst-prelink.exp: Here.
20818         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
20819         (tst-prelink-ENV): Removed.
20820         ($(objpfx)tst-prelink-conflict.out): Likewise.
20821         ($(objpfx)tst-prelink-cmp.out): Likewise.
20822         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
20823
20824 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
20825
20826         [BZ #14551]
20827         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
20828         (__mpn_construct_long_double): If high part overflows to infinity,
20829         set errno and recompute overflowed result of the correct sign.
20830         * sysdeps/ieee754/ldbl-128ibm/Makefile
20831         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
20832         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
20833         $(libm).
20834         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
20835
20836 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
20837
20838         [BZ #15479]
20839         [BZ #19238]
20840         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
20841         floating-point state after first operation on input.  Restore full
20842         state rather than just rounding mode.
20843         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
20844         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
20845         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
20846
20847         [BZ #19235]
20848         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
20849         add 0.5 to integer arguments.
20850         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
20851         Likewise.
20852         (.LC2): New object.
20853
20854 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
20855
20856         * scripts/pylintrc (reports): Set to no.
20857
20858 2015-11-10  Roland McGrath  <roland@hack.frob.com>
20859
20860         * elf/dl-load.c (open_verify): Take new argument FD.
20861         Skip __open call if passed FD is not -1.
20862         (_dl_map_object, open_path): Update callers.
20863         * elf/dl-sysdep-open.h: New file.
20864         * elf/dl-load.c: Include it.
20865         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
20866         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
20867         * sysdeps/nacl/dl-sysdep-open.h: New file.
20868         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
20869         from libc to rtld.
20870
20871 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20872
20873         [BZ #19228]
20874         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
20875         and restore full floating-point state.
20876         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
20877         Likewise.
20878         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
20879         Likewise.
20880         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
20881         Likewise.
20882         * math/test-nearbyint-except-2.c: New file.
20883         * math/Makefile (tests): Add test-nearbyint-except-2.
20884
20885 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
20886
20887         [BZ #19178]
20888         * sysdeps/x86/Makefile (tests): Add tst-prelink.
20889         (tst-prelink-ENV): New.
20890         ($(objpfx)tst-prelink-conflict.out): Likewise.
20891         ($(objpfx)tst-prelink-cmp.out): Likewise.
20892         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20893         * sysdeps/x86/tst-prelink.c: New file.
20894         * sysdeps/x86/tst-prelink.exp: Likewise.
20895
20896 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20897
20898         * math/auto-libm-test-in: Add another test of pow.
20899         * math/auto-libm-test-out: Regenerated.
20900         * math/libm-test.inc (pow_test_data): Add another test.
20901
20902 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20903
20904         [BZ #19219]
20905         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
20906         weak_alias to nearbyintl.
20907
20908 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20909
20910         * sysdeps/aarch64/bits/string.h: New file.
20911         (_STRING_ARCH_unaligned): Define.
20912
20913 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20914
20915         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
20916         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
20917         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
20918         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
20919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
20920
20921 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
20922
20923         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
20924         for original name of the DSO.  Add it to the name list of the DSO
20925         if it is actually given.
20926         (_dl_map_object): Keep track of whether an audit module rewrote
20927         the file name.  If yes, pass the original name to
20928         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
20929         debugging is enabled, log the change of the file name.
20930         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
20931         _dl_map_object_from_fd.
20932         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
20933         * elf/tst-audit11.c: New file
20934         * elf/tst-auditmod11.c: New file.
20935         * elf/tst-audit11mod1.c: New file.
20936         * elf/tst-audit11mod2.c: New file.
20937         * elf/tst-audit11mod2.map: New file.
20938         * elf/tst-audit12.c: New file
20939         * elf/tst-auditmod12.c: New file.
20940         * elf/tst-audit12mod1.c: New file.
20941         * elf/tst-audit12mod2.c: New file.
20942         * elf/tst-audit12mod2.map: New file.
20943         * elf/tst-audit12mod3.c: New file.
20944
20945 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20946
20947         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
20948         Don't create weak aliases,
20949         because versioned symbols are created later.
20950         * sysdeps/s390/s390-32/setjmp.S
20951         (setjmp, _setjmp): Remove weak and rename to an unique name
20952         in SHARED case due to existing versioned symbols.
20953         * sysdeps/s390/s390-64/setjmp.S: Likewise.
20954         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
20955         (getcontext): Create weak alias only in non SHARED case.
20956         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20957
20958 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20959
20960         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
20961         (__ASSUME_*_SYSCALL) Define new macros.
20962         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
20963         Remove socketcall syscalls.
20964         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
20965         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
20966         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
20967         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
20968         * sysdeps/unix/sysv/linux/send.c (__libc_send):
20969         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
20970
20971 2015-11-09  Florian Weimer  <fweimer@redhat.com>
20972
20973         [BZ #12926]
20974         Terminate process on invalid netlink response.
20975         * sysdeps/unix/sysv/linux/netlinkaccess.h
20976         (__netlink_assert_response): Declare.
20977         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
20978         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
20979         (sysdep_routines): Add netlink_assert_response.
20980         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
20981         __netlink_assert_response.
20982         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
20983         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
20984         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
20985         __netlink_assert_response.
20986
20987 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20988
20989         [BZ #19178]
20990         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
20991         (RTYPE_CLASS_PLT): Likewise.
20992         (RTYPE_CLASS_COPY): Likewise.
20993         (RTYPE_CLASS_TLS): Likewise.
20994         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
20995         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
20996         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
20997         DL_DEBUG_PRELINK.
20998
20999 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
21000
21001         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
21002         calls with argument -0.5.
21003         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
21004
21005         * configure.ac (libc_cv_z_nodelete): Remove configure test.
21006         (libc_cv_z_nodlopen): Likewise.
21007         (libc_cv_z_initfirst): Likewise.
21008         * configure: Regenerated.
21009
21010 2015-11-06  Florian Weimer  <fweimer@redhat.com>
21011
21012         Simplify abilist format to be line-based.
21013         * scripts/abilist.awk: Collect descriptors in the descs variable.
21014         (emit): Write descs variable and sort it
21015         externally, with sort.
21016         * sysdeps/**/*.abilist: Convert to new format.
21017
21018 2015-11-06  Mark Wielaard  <mjw@redhat.com>
21019
21020         [BZ #11460]
21021         * io/Makefile (routines): Add fts64.
21022         (tests): Add tst-fts and tst-fts-lfs.
21023         (CFLAGS-fts64.c): New.
21024         * io/Versions (GLIBC_2.23): New.
21025         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
21026         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
21027         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
21028         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
21029         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
21030         (FTSENT64): Likewise.
21031         (fts64_children): Likewise.
21032         (fts64_close): Likewise.
21033         (fts64_open): Likewise.
21034         (fts64_read): Likewise.
21035         (fts64_set): Likewise.
21036         * io/fts64.c: New file.
21037         * io/tst-fts.c: New test.
21038         * io/tst-fts-lfs.c: Likewise.
21039         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
21040         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
21041         fts64_set.
21042         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21043         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21044         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21045         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21046         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21047         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21048         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21049         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21050         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21051         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
21052         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21053         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21054         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21056         Likewise.
21057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21058         Likewise.
21059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
21060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
21061         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21062         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21063         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21064         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21065         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21066         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
21067         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
21068         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21069         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21070         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21071         * sysdeps/wordsize-64/fts.c: New file.
21072         * sysdeps/wordsize-64/fts64.c: Likewise.
21073         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
21074         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
21075         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
21076         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
21077
21078 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21079
21080         * math/libm-test.inc (NON_FINITE): New macro.
21081         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
21082         * math/gen-libm-test.pl (show_exceptions): Add argument
21083         $non_finite.
21084         (parse_args): Update call to show_exceptions.
21085         * math/test-math-finite.h: New file.
21086         * math/test-math-no-finite.h: Likewise.
21087         * math/test-double-finite.c: Likewise.
21088         * math/test-float-finite.c: Likewise.
21089         * math/test-ldouble-finite.c: Likewise.
21090         * math/test-double.c: Include "test-math-no-finite.h".
21091         * math/test-float.c: Include "test-math-no-finite.h".
21092         * math/test-ldouble.c: Include "test-math-no-finite.h".
21093         * math/test-math-inline.h (TEST_FINITE): New macro.
21094         * math/test-math-vector.h (TEST_FINITE): Likewise.
21095         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
21096         (libm-tests): Add test-float-finite and test-double-finite.
21097         ($(objpfx)test-float-finite.o): New dependency on
21098         $(objpfx)libm-test.stmp.
21099         ($(objpfx)test-double-finite.o): Likewise.
21100         ($(objpfx)test-ldouble-finite.o): Likewise.
21101         (libm-test-no-inline-cflags): New variable.
21102         (libm-test-finite-cflags): Likewise.
21103         (CFLAGS-test-float-finite.c): Likewise.
21104         (CFLAGS-test-double-finite.c): Likewise.
21105         (CFLAGS-test-ldouble-finite.c): Likewise.
21106         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
21107         (CFLAGS-test-double.c): Likewise.
21108         (CFLAGS-test-ldouble.c): Likewise.
21109
21110 2015-11-05  Roland McGrath  <roland@hack.frob.com>
21111
21112         * io/fcntl.c (__fcntl): Add ... to prototype.
21113         * misc/ioctl.c (__ioctl): Likewise.
21114         * misc/syscall.c (syscall): Likewise.
21115
21116 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21117
21118         * scripts/list-fixed-bugs.py: New file.
21119
21120         [BZ #19213]
21121         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
21122         returned for argument 1.
21123         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
21124         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
21125         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
21126         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
21127         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
21128         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
21129
21130         [BZ #19211]
21131         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
21132         __USE_XOPEN], not if [!__USE_ISOC99].
21133         (lgammaf): Likewise.
21134         (lgammal): Likewise.
21135         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
21136         (gammaf): Likewise.
21137         (gammal): Likewise.
21138         * math/test-signgam-finite-c11.c: New file.
21139         * math/test-signgam-finite-c99.c: Likewise.
21140         * math/test-signgam-finite.c: Likewise.
21141         * math/Makefile (tests): Add test-signgam-finite,
21142         test-signgam-finite-c99 and test-signgam-finite-c11.
21143         (CFLAGS-test-signgam-finite.c): New variable.
21144         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21145         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21146
21147         [BZ #19212]
21148         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
21149         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
21150         500].
21151         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
21152         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
21153         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
21154         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
21155         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
21156         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
21157         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
21158         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
21159         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
21160         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
21161
21162         [BZ #19209]
21163         * math/bits/math-finite.h (ldexp): Remove declaration.
21164         (ldexpf): Likewise.
21165         (ldexpl): Likewise.
21166
21167         [BZ #19205]
21168         * math/bits/math-finite.h (acosf): Condition declaration on
21169         [__USE_ISOC99].
21170         (acosl): Likewise.
21171         (acoshf): Likewise.
21172         (acoshl): Likewise.
21173         (asinf): Likewise.
21174         (asinl): Likewise.
21175         (atan2f): Likewise.
21176         (atan2l): Likewise.
21177         (atanhf): Likewise.
21178         (atanhl): Likewise.
21179         (coshf): Likewise.
21180         (coshl): Likewise.
21181         (expf): Likewise.
21182         (expl): Likewise.
21183         (fmodf): Likewise.
21184         (fmodl): Likewise.
21185         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
21186         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
21187         (j0l): Likewise.
21188         (y0f): Likewise.
21189         (y0l): Likewise.
21190         (j1f): Likewise.
21191         (j1l): Likewise.
21192         (y1f): Likewise.
21193         (y1l): Likewise.
21194         (jnf): Likewise.
21195         (jnl): Likewise.
21196         (ynf): Likewise.
21197         (ynl): Likewise.
21198         (lgammaf_r): Condition declaration on [__USE_ISOC99].
21199         (lgammal_r): Likewise.
21200         (__lgamma_r_finite): New declaration.
21201         (__lgammaf_r_finite): Likewise.
21202         (__lgammal_r_finite): Likewise.
21203         (lgamma): Use __lgamma_r_finite.
21204         (lgammaf): Condition definition on [__USE_ISOC99].  Use
21205         __lgammaf_r_finite.
21206         (lgammal): Condition definition on [__USE_ISOC99].  Use
21207         __lgammal_r_finite.
21208         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
21209         __lgamma_r_finite.
21210         (gammaf): Condition definition on [__USE_ISOC99].  Use
21211         __lgammaf_r_finite.
21212         (gammal): Condition definition on [__USE_ISOC99].  Use
21213         __lgammal_r_finite.
21214         (logf): Condition declaration on [__USE_ISOC99].
21215         (logl): Likewise.
21216         (log10f): Likewise.
21217         (log10l): Likewise.
21218         (ldexpf): Likewise.
21219         (ldexpl): Likewise.
21220         (powf): Likewise.
21221         (powl): Likewise.
21222         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
21223         __USE_ISOC99].
21224         (remainderf): Condition declaration on [__USE_ISOC99].
21225         (remainderl): Likewise.
21226         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
21227         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
21228         (scalbl): Likewise.
21229         (sinhf): Condition declaration on [__USE_ISOC99].
21230         (sinhl): Likewise.
21231         (sqrtf): Likewise.
21232         (sqrtl): Likewise.
21233
21234 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21235
21236         * sysdeps/arm/atomic-machine.h
21237         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21238         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21239         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
21240         Remove conditional code.
21241         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21242         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21243         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
21244         Change conditional to [__ASSEMBLER__].
21245         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21246         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
21247         [!__ASSEMBLER__].
21248         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
21249         code.
21250         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
21251         conditional macro definitions.
21252         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
21253         (__arch_compare_and_exchange_val_16_acq): Likewise.
21254         (__arch_compare_and_exchange_val_32_acq): Likewise.
21255         (atomic_exchange_and_add): Likewise.
21256         (atomic_add): Likewise.
21257         (atomic_add_negative): Likewise.
21258         (atomic_add_zero): Likewise.
21259         (atomic_bit_set): Likewise.
21260         (atomic_bit_test_set): Likewise.
21261         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
21262         code unconditional.
21263         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21264
21265         * math/test-math-errno.h: New file.
21266         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
21267         empty.
21268         (TEST_ERRNO): New macro.
21269         (TEST_EXCEPTIONS): Likewise.
21270         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
21271         (TEST_EXCEPTIONS): Likewise.
21272         * math/test-math-vector.h (TEST_ERRNO): Likewise.
21273         * math/test-double.c: Include "test-math-errno.h".
21274         * math/test-float.c: Likewise.
21275         * math/test-ldouble.c: Likewise.
21276         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
21277         code unconditional.
21278         (test_exceptions): Only run code if TEST_EXCEPTIONS.
21279         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
21280         unconditional.
21281         (test_errno): Only run code if TEST_ERRNO.
21282         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
21283
21284 2015-11-04  Florian Weimer  <fweimer@redhat.com>
21285
21286         * nptl/tst-once5.cc: Remove attribution.
21287
21288 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21289
21290         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
21291         sqrt, tan, tanh, y0, y1 and yn.
21292         * math/auto-libm-test-out: Regenerated.
21293         * math/libm-test.inc (scalb_test_data): Add more tests.
21294         (scalbn_test_data): Likewise.
21295         (scalbln_test_data): Likewise.
21296         (signbit_test_data): Likewise.
21297         (sin_test_data): Likewise.
21298         (sincos_test_data): Likewise.
21299         (sinh_test_data): Likewise.
21300         (sqrt_test_data): Likewise.
21301         (tan_test_data): Likewise.
21302         (tanh_test_data): Likewise.
21303         (tgamma_test_data): Likewise.
21304         (y0_test_data): Likewise.
21305         (y1_test_data): Likewise.
21306         (yn_test_data): Likewise.
21307         (significand_test_data): Likewise.
21308         * sysdeps/i386/fpu/libm-test-ulps: Update.
21309
21310 2015-11-03  David Kastrup  <dak@gnu.org>
21311
21312         [BZ #18604]
21313         * assert/assert.h (assert): Don't macro-expand failed assertion
21314         expression in error message.
21315         * malloc/malloc.c (assert): Likewise.
21316
21317 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
21318
21319         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
21320         test.
21321         * configure: Regenerated.
21322
21323 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
21324
21325         * math/libm-test.inc (modf_test_data): Add more tests.
21326         (nearbyint_test_data): Likewise.
21327         (nextafter_test_data): Likewise.
21328         (nexttoward_test_data): Likewise.
21329         (pow_test_data): Likewise.
21330         (remainder_test_data): Likewise.
21331         (remquo_test_data): Likewise.
21332         (rint_test_data): Likewise.
21333
21334         [BZ #19201]
21335         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
21336         Check for zero remainder in case of large exponents and ensure
21337         correct sign of result in that case.
21338         * math/libm-test.inc (remainder_test_data): Add more tests.
21339
21340         [BZ #6799]
21341         * math/s_nextafter.c: Include <errno.h>.
21342         (__nextafter): Set errno on overflow and underflow.
21343         * math/s_nexttowardf.c: Include <errno.h>.
21344         (__nexttowardf): Set errno on overflow and underflow.
21345         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
21346         (__nextafterl): Set errno on overflow and underflow.
21347         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
21348         (__nexttoward): Set errno on overflow and underflow.
21349         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
21350         (__nexttowardf): Set errno on overflow and underflow.
21351         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
21352         (__nextafterf): Set errno on overflow and underflow.
21353         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
21354         (__nextafterl): Set errno on overflow and underflow.
21355         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
21356         (__nexttoward): Set errno on overflow and underflow.
21357         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
21358         (__nexttowardf): Set errno on overflow and underflow.
21359         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
21360         (__nextafterl): Set errno on overflow and underflow.
21361         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
21362         (__nexttoward): Set errno on overflow and underflow.
21363         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
21364         (__nexttowardf): Set errno on overflow and underflow.
21365         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
21366         (__nexttoward): Set errno on overflow and underflow.
21367         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
21368         (__nexttowardf): Set errno on overflow and underflow.
21369         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
21370         (__nldbl_nexttowardf): Set errno on overflow and underflow.
21371         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
21372         (__nextafterl): Set errno on overflow and underflow.
21373         * math/libm-test.inc (nextafter_test_data): Do not allow errno
21374         setting to be missing on overflow.  Add more tests.
21375         (nexttoward_test_data): Likewise.
21376
21377         * configure.ac (libc_cv_initfini_array): Remove configure test.
21378         * configure: Regenerated.
21379
21380 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
21381
21382         [BZ #19189]
21383         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
21384         non-finite argument handle arguments with negative sign.
21385
21386         * math/libm-test.inc (j0_test_data): Do not test sign of zero
21387         result from infinite argument.
21388         (j1_test_data): Likewise.
21389         (jn_test_data): Likewise.
21390         (y0_test_data): Likewise.
21391         (y1_test_data): Likewise.
21392         (yn_test_data): Likewise.
21393
21394         [BZ #16171]
21395         * math/w_remainder.c (drem): Define as weak alias of __remainder.
21396         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
21397         * math/w_remainderf.c (dremf): Define as weak alias of
21398         __remainderf.
21399         * math/w_remainderl.c (dreml): Define as weak alias of
21400         __remainderl.
21401         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
21402         __remainder.
21403         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
21404         __remainderf.
21405         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
21406         __remainderl.
21407         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
21408         weak alias of remainderl.
21409         * sysdeps/ieee754/ldbl-opt/w_remainder.c
21410         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
21411         alias of __remainder.
21412         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
21413         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
21414         strong alias of __remainderl.
21415         (dreml): Use long_double_symbol.
21416         * math/Makefile (libm-calls): Remove w_drem.
21417         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
21418         (CFLAGS-nldbl-drem.c): Remove variable.
21419         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
21420         * math/w_drem.c: Remove file.
21421         * math/w_dremf.c: Likewise.
21422         * math/w_dreml.c: Likewise.
21423         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
21424         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
21425         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
21426
21427         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
21428         * sysdeps/i386/configure: Regenerated.
21429         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
21430         * sysdeps/x86_64/configure: Regenerated.
21431
21432         * configure.ac (libc_cv_asm_protected_directive): Remove configure
21433         test.
21434         (libc_cv_visibility_attribute): Likewise.
21435         (libc_cv_protected_data): Test unconditionally.
21436         (libc_cv_broken_visibility_attribute): Remove configure test.
21437         (libc_cv_have_sdata_section): Test unconditionally.
21438         * configure: Regenerated.
21439
21440         * include/libc-internal.h (libc_max_align_t): Remove typedef.
21441         * include/scratch_buffer.h: Include <stddef.h> instead of
21442         <libc-internal.h>.
21443         (struct scratch_buffer): Use max_align_t instead of
21444         libc_max_align_t.
21445
21446 2015-10-29  Florian Weimer  <fweimer@redhat.com>
21447
21448         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
21449         instead of extend_alloca.  Change control flow to avoid a goto.
21450         Remove assert which is trivially always true.
21451
21452 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21453
21454         [BZ #16068]
21455         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
21456         (FE_ALL_EXCEPT_X86): New macro.
21457         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21458         FE_ALL_EXCEPT.  Ensure precision control is included in
21459         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21460         handle "denormal operand exception" and clear FZ and DAZ bits.
21461         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
21462         (FE_ALL_EXCEPT_X86): New macro.
21463         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21464         FE_ALL_EXCEPT.  Ensure precision control is included in
21465         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21466         handle "denormal operand exception" and clear FZ and DAZ bits.
21467         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
21468         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
21469         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21470         test-fenv-x87 and test-fenv-sse-2.
21471         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
21472
21473         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
21474         * math/test-double.h (BUILD_COMPLEX): New macro.
21475         * math/test-float.h (BUILD_COMPLEX): Likewise.
21476         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
21477
21478         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
21479         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
21480         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
21481         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
21482         instead of DBL_DENORM_MIN in comment.
21483         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
21484         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21485         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
21486         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
21487         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
21488         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21489
21490 2015-10-28  Florian Weimer  <fweimer@redhat.com>
21491
21492         [BZ #19048]
21493         * malloc/malloc.c (struct malloc_state): Update comment.  Add
21494         attached_threads member.
21495         (main_arena): Initialize attached_threads.
21496         * malloc/arena.c (list_lock): Update comment.
21497         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
21498         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
21499         (deattach_arena): New function.
21500         (_int_new_arena): Initialize arena reference count and deattach
21501         replaced arena.
21502         (get_free_list, reused_arena): Update reference count and deattach
21503         replaced arena.
21504         (arena_thread_freeres): Update arena reference count and only put
21505         unreferenced arenas on the free list.
21506
21507 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21508
21509         [BZ #19181]
21510         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
21511         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
21512         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
21513         * math/test-fenv-clear-main.c: New file.
21514         * math/test-fenv-clear.c: Likewise.
21515         * math/Makefile (tests): Add test-fenv-clear.
21516         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
21517         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21518         test-fenv-clear-sse.
21519         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
21520
21521         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
21522         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
21523         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
21524
21525 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21526
21527         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
21528         static libc.
21529
21530 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21531
21532         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
21533         test.
21534         * sysdeps/i386/configure: Regenerated.
21535         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
21536         test.
21537         * sysdeps/x86_64/configure: Regenerated.
21538         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
21539         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21540         memset-avx2 unconditionally instead of conditionally on
21541         [$(config-cflags-avx2) = yes].
21542         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21543         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
21544         unconditional.
21545         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
21546         * sysdeps/x86_64/multiarch/memset_chk.S
21547         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
21548         to [IS_IN (libc) && SHARED].
21549
21550 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21551
21552         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
21553         configure test.
21554         * sysdeps/arm/configure: Regenerated.
21555         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
21556         Define variable if not already defined.
21557
21558         [BZ #17404]
21559         * sysdeps/mips/atomic-machine.h
21560         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
21561         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
21562         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21563
21564         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
21565         unconditional.
21566         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
21567         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21568         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
21569         unconditional.
21570         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21571         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
21572         unconditional.
21573         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21574         * stdlib/setenv.c
21575         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
21576         code unconditional.
21577         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
21578         Remove conditional code.
21579         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21580         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
21581         unconditional.
21582         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21583         code.
21584         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
21585         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
21586         unconditional.
21587         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21588         code.
21589         * sysdeps/ieee754/ldbl-128/k_tanl.c
21590         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21591         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21592         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
21593         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21594         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21595         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
21596         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
21597         unconditional.
21598         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21599         code.
21600         * sysdeps/ieee754/ldbl-96/k_tanl.c
21601         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21602         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21603
21604         * nptl/tst-initializers1-c11.c: New file.
21605         * nptl/tst-initializers1-gnu11.c: Likewise.
21606         * nptl/Makefile (tests): Add these new tests.
21607         (CFLAGS-tst-initializers1-c11.c): New variable.
21608         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21609
21610         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
21611         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
21612         instead of -std=gnu99.
21613         * configure.ac (systemtap): Test with -std=gnu11 instead of
21614         -std=gnu99.
21615         * configure: Regenerated.
21616         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
21617         in compilation command in comment.
21618
21619         * sysdeps/nptl/configure.ac: Remove file.
21620         * sysdeps/nptl/configure: Remove generated file.
21621         * configure.ac (libc_cv_forced_unwind): Do not substitute.
21622         * configure: Regenerated.
21623         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
21624         * config.make.in (have-forced-unwind): Remove variable.
21625         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21626         unconditional.
21627         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
21628         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
21629         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
21630         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
21631         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21632         unconditional.
21633
21634 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21635
21636         [BZ #19174]
21637         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
21638         .skip_lock_out_of_tbegin_retries.
21639         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
21640         (__lll_lock_elision): Likewise, and respect a value of
21641         try_tbegin <= 0.
21642
21643 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21644
21645         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
21646         statement.
21647
21648 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21649
21650         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
21651         variable.
21652         (test-xfail-ISO11/stdalign.h/conform): Likewise.
21653         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
21654
21655         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
21656         of -std=c1x -D_ISOC11_SOURCE.
21657
21658         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
21659         * configure: Regenerated.
21660         * manual/install.texi (Tools for Compilation): Document
21661         requirement for GCC 4.7 or later.
21662         * INSTALL: Regenerated.
21663
21664 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
21665
21666         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
21667         on CNT to a conditional jump to 'puntdata'.
21668
21669 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21670
21671         * configure.ac (libc_cv_gcc___thread): Remove configure test.
21672         (libc_cv_gcc_tls_model_attr): Likewise.
21673         * configure: Regenerated.
21674
21675         * configure.ac (libc_cv_need_minus_P): Remove configure test.
21676         * configure: Regenerated.
21677         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
21678
21679 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
21680
21681         * configure.ac (old_glibc_headers): Remove configure test.
21682         * configure: Regenerated.
21683         * config.make.in (old-glibc-headers): Remove variable.
21684         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
21685         (install): Remove dependency on remove-old-headers.
21686         (headers2_0): Remove variable.
21687         (remove-old-headers): Remove rule.
21688
21689         * configure.ac (libc_cv_dot_text): Remove configure test.
21690         (libc_cv_asm_set_directive): Use .text instead of
21691         ${libc_cv_dot_text} in configure test.
21692         * configure: Regenerated.
21693
21694 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21695
21696         [BZ #19168]
21697         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
21698
21699 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21700
21701         * configure.ac (CXX): Clear the variable if the C++ toolchain does
21702         not support static linking.
21703         * configure: Regenerate.
21704
21705 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
21706
21707         * math/libm-test.inc (check_float_internal): Do not special-case
21708         errors up to 0.5 ulp.
21709
21710         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
21711         log2.
21712         * math/auto-libm-test-out: Regenerated.
21713         * math/libm-test.inc (MAX_EXP): New macro.
21714         (ilogb_test_data): Add more tests.
21715         (isfinite_test_data): Likewise.
21716         (isgreater_test_data): Likewise.
21717         (isgreaterequal_test_data): Likewise.
21718         (isinf_test_data): Likewise.
21719         (isless_test_data): Likewise.
21720         (islessequal_test_data): Likewise.
21721         (islessgreater_test_data): Likewise.
21722         (isnan_test_data): Likewise.
21723         (isnormal_test_data): Likewise.
21724         (issignaling_test_data): Likewise.
21725         (isunordered_test_data): Likewise.
21726         (j0_test_data): Likewise.
21727         (j1_test_data): Likewise.
21728         (jn_test_data): Likewise.
21729         (lgamma_test_data): Likewise.
21730         (log_test_data): Likewise.
21731         (log10_test_data): Likewise.
21732         (log1p_test_data): Likewise.
21733         (log2_test_data): Likewise.
21734         (logb_test_data): Likewise.
21735         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21736
21737         [BZ #18611]
21738         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
21739         avoid excess range and precision on underflow.
21740         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21741         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
21742         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21743         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
21744         underflow.
21745         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21746         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21747         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21748         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21749         * math/auto-libm-test-in: Do not allow missing errno setting for
21750         tests of j1 and jn.
21751         * math/auto-libm-test-out: Regenerated.
21752
21753 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
21754
21755         [BZ #15491]
21756         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
21757         floating-point environment instead of clearing all exceptions.
21758         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
21759         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
21760         merging in "invalid" exceptions from frndint.
21761         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
21762         * math/test-nearbyint-except.c: New file.
21763         * math/Makefile (tests): Add test-nearbyint-except.
21764
21765 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
21766
21767         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
21768
21769         * sysdeps/tile/libm-test-ulps: Regenerated.
21770
21771 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21772
21773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
21774         (__NR_sync_file_range2): Assume it is always defined.
21775         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
21776         (__NR_sync_file_range): Assume it is always defined.
21777
21778 2015-10-22  Andreas Schwab  <schwab@suse.de>
21779
21780         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
21781         INTERNAL_SYSCALL_ERRNO.
21782         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21783         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
21784         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21785         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
21786         Likewise.
21787         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21788
21789 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21790
21791         * io/tst-fcntl.c (fd): New static variable.
21792         (do_prepare): Open temporary file here....
21793         (do_test): ...not here.
21794
21795         * io/ftwtest-sh: Also trap on exit to remove temporary files.
21796
21797 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21798
21799         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
21800         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21801         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21802         Moved before "#ifdef __ASSEMBLER__".
21803
21804 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21805
21806         [BZ #19156]
21807         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
21808         arguments very close to 0.
21809
21810 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
21811
21812         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
21813         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
21814
21815 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21816
21817         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21818         New.  Defined for GCC 5 and above when not compiling for
21819         profiling.
21820         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21821
21822         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
21823         Renamed to ...
21824         (CFLAGS-epoll_pwait.o): This.
21825         (CFLAGS-mmap.c): Renamed to ...
21826         (CFLAGS-mmap.o): This.
21827         (CFLAGS-mmap64.c): Renamed to ...
21828         (CFLAGS-mmap64.o): This.
21829         (CFLAGS-epoll_pwait.os): New.
21830         (CFLAGS-mmap.os): Likewise.
21831         (CFLAGS-mmap64.os): Likewise.
21832         (CFLAGS-semtimedop.os): Likewise.
21833         (CFLAGS-semtimedop.c): Renamed to ...
21834         (CFLAGS-semtimedop.o): This.
21835
21836 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21837
21838         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
21839         warning message.
21840
21841 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21842
21843         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
21844         * Makefile ($(objpfx)c++-types-check.out): Filter out
21845         $(+gccwarn-c) instead of -Wstrict-prototypes.
21846
21847         * io/fts.c (fts_open): Convert to prototype-style function
21848         definition.
21849         * malloc/mcheck.c (mcheck): Likewise.
21850         (mcheck_pedantic): Likewise.
21851         * posix/regexec.c (re_search_2_stub): Likewise.  Use
21852         internal_function.
21853         (re_search_internal): Likewise.
21854         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
21855         prototype-style function definition.
21856         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21857         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
21858         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
21859         (xdr_utmpptr): Likewise.
21860         (xdr_utmparr): Likewise.
21861         (xdr_utmpidle): Likewise.
21862         (xdr_utmpidleptr): Likewise.
21863         (xdr_utmpidlearr): Likewise.
21864
21865         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
21866         log, log10 and log2.
21867         * math/auto-libm-test-out: Regenerated.
21868         * math/libm-test.inc (fmod_test_data): Add more tests.
21869         (fpclassify_test_data): Likewise.
21870         (frexp_test_data): Likewise.
21871         (hypot_test_data): Likewise.
21872         (ilogb_test_data): Likewise.
21873
21874 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
21875
21876         * debug/fortify_fail.c (__fortify_fail): Convert to
21877         prototype-style function definition.  Use internal_function.
21878         * libio/genops.c (save_for_backup): Convert to prototype-style
21879         function definition.
21880         * libio/wgenops.c (save_for_wbackup): Likewise.
21881         * login/grantpt.c (grantpt): Likewise.
21882         * login/ptsname.c (ptsname): Likewise.
21883         (__ptsname_r): Likewise.
21884         * login/unlockpt.c (unlockpt): Likewise.
21885         * mach/msgserver.c (__mach_msg_server): Likewise.
21886         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
21887         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
21888         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
21889         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
21890         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
21891         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
21892         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
21893         Likewise.
21894         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
21895         internal_function.
21896         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
21897         prototype-style function definition.
21898         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
21899         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
21900         (__pthread_create_2_0): Likewise.
21901         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
21902         * nptl/register-atfork.c (__register_atfork): Likewise.
21903         * posix/glob.c (glob): Likewise.
21904         * posix/regcomp.c (re_comp): Likewise.
21905         * posix/regexec.c (re_exec): Likewise.
21906         * stdlib/add_n.c [__STDC__]: Make code unconditional.
21907         [!__STDC__]: Remove conditional code.
21908         * stdlib/cmp.c [__STDC__]: Make code unconditional.
21909         [!__STDC__]: Remove conditional code.
21910         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
21911         [!__STDC__]: Remove conditional code.
21912         * stdlib/divrem.c [__STDC__]: Make code unconditional.
21913         [!__STDC__]: Remove conditional code.
21914         * stdlib/lshift.c [__STDC__]: Make code unconditional.
21915         [!__STDC__]: Remove conditional code.
21916         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
21917         [!__STDC__]: Remove conditional code.
21918         * stdlib/mul.c [__STDC__]: Make code unconditional.
21919         [!__STDC__]: Remove conditional code.
21920         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
21921         [!__STDC__]: Remove conditional code.
21922         * stdlib/rshift.c [__STDC__]: Make code unconditional.
21923         [!__STDC__]: Remove conditional code.
21924         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
21925         function definition.
21926         (STRTOF): Likewise.
21927         * stdlib/strtod_l.c (__STRTOF): Likewise.
21928         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
21929         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
21930         (__strtol_l): Likewise.
21931         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
21932         [!__STDC__]: Remove conditional code.
21933         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
21934         definition.
21935         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21936         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21937         type.
21938         (__strcasecmp): Convert to prototype-style function definition.
21939         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
21940         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21941         type.
21942         (__strncasecmp): Convert to prototype-style function definition.
21943         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
21944         * sunrpc/xdr.c (xdr_union): Likewise.
21945         * sunrpc/xdr_array.c (xdr_array): Likewise.
21946         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
21947         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
21948         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
21949         Likewise.
21950         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
21951         Likewise.
21952         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
21953         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
21954         Likewise.
21955         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
21956         (LOCALE_PARAM_PROTO): Likewise.
21957         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
21958         argument type.
21959         (ut_argument_spec): Remove macro.
21960         (ut_argument_spec_iso): Rename to ut_argument_spec.
21961         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
21962         prototype-style function definition.
21963         (memcpy_uppcase): Likewise.
21964         (__strftime_internal): Likewise.
21965         (my_strftime): Likewise.
21966         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
21967         (LOCALE_PARAM_DECL): Likewise.
21968         [_LIBC] (LOCALE_PARAM): Include argument type.
21969         (__strptime_internal): Convert to prototype-style function
21970         definition.
21971         (strptime): Likewise.
21972         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21973         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21974         type.
21975         (__wcscasecmp): Convert to prototype-style function definition.
21976         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
21977         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21978         type.
21979         (__wcsncasecmp): Convert to prototype-style function definition.
21980
21981         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
21982         function definition.
21983         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21984         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21985         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
21986         * elf/dl-minimal.c (_itoa): Likewise.
21987         * hurd/hurdmalloc.c (malloc): Likewise.
21988         (free): Likewise.
21989         (realloc): Likewise.
21990         * inet/inet6_option.c (inet6_option_space): Likewise.
21991         (inet6_option_init): Likewise.
21992         (inet6_option_append): Likewise.
21993         (inet6_option_alloc): Likewise.
21994         (inet6_option_next): Likewise.
21995         (inet6_option_find): Likewise.
21996         * io/ftw.c (FTW_NAME): Likewise.
21997         (NFTW_NAME): Likewise.
21998         (NFTW_NEW_NAME): Likewise.
21999         (NFTW_OLD_NAME): Likewise.
22000         * libio/iofwide.c (_IO_fwide): Likewise.
22001         * libio/strops.c (_IO_str_init_static_internal): Likewise.
22002         (_IO_str_init_static): Likewise.
22003         (_IO_str_init_readonly): Likewise.
22004         (_IO_str_overflow): Likewise.
22005         (_IO_str_underflow): Likewise.
22006         (_IO_str_count): Likewise.
22007         (_IO_str_seekoff): Likewise.
22008         (_IO_str_pbackfail): Likewise.
22009         (_IO_str_finish): Likewise.
22010         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
22011         (_IO_wstr_overflow): Likewise.
22012         (_IO_wstr_underflow): Likewise.
22013         (_IO_wstr_count): Likewise.
22014         (_IO_wstr_seekoff): Likewise.
22015         (_IO_wstr_pbackfail): Likewise.
22016         (_IO_wstr_finish): Likewise.
22017         * locale/programs/localedef.c (normalize_codeset): Likewise.
22018         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
22019         (add_locales_to_archive): Likewise.
22020         (delete_locales_from_archive): Likewise.
22021         * malloc/malloc.c (__libc_mallinfo): Likewise.
22022         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
22023         * misc/tsearch.c (__tfind): Likewise.
22024         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
22025         * nptl/pthread_attr_getdetachstate.c
22026         (__pthread_attr_getdetachstate): Likewise.
22027         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22028         Likewise.
22029         * nptl/pthread_attr_getinheritsched.c
22030         (__pthread_attr_getinheritsched): Likewise.
22031         * nptl/pthread_attr_getschedparam.c
22032         (__pthread_attr_getschedparam): Likewise.
22033         * nptl/pthread_attr_getschedpolicy.c
22034         (__pthread_attr_getschedpolicy): Likewise.
22035         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
22036         Likewise.
22037         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
22038         Likewise.
22039         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22040         Likewise.
22041         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22042         Likewise.
22043         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
22044         (__pthread_attr_init_2_0): Likewise.
22045         * nptl/pthread_attr_setdetachstate.c
22046         (__pthread_attr_setdetachstate): Likewise.
22047         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22048         Likewise.
22049         * nptl/pthread_attr_setinheritsched.c
22050         (__pthread_attr_setinheritsched): Likewise.
22051         * nptl/pthread_attr_setschedparam.c
22052         (__pthread_attr_setschedparam): Likewise.
22053         * nptl/pthread_attr_setschedpolicy.c
22054         (__pthread_attr_setschedpolicy): Likewise.
22055         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
22056         Likewise.
22057         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
22058         Likewise.
22059         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22060         Likewise.
22061         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22062         Likewise.
22063         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
22064         Likewise.
22065         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
22066         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22067         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
22068         use internal_function.
22069         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
22070         prototype-style function definition.
22071         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22072         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
22073         internal_function.
22074         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
22075         Convert to prototype-style function definition.
22076         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
22077         Likewise.
22078         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
22079         Likewise.
22080         (__pthread_mutex_unlock): Likewise.
22081         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
22082         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
22083         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
22084         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
22085         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
22086         * nss/makedb.c (process_input): Likewise.
22087         * posix/fnmatch.c (__strchrnul): Likewise.
22088         (__wcschrnul): Likewise.
22089         (fnmatch): Likewise.
22090         * posix/fnmatch_loop.c (FCT): Likewise.
22091         * posix/glob.c (globfree): Likewise.
22092         (__glob_pattern_type): Likewise.
22093         (__glob_pattern_p): Likewise.
22094         * posix/regcomp.c (re_compile_pattern): Likewise.
22095         (re_set_syntax): Likewise.
22096         (re_compile_fastmap): Likewise.
22097         (regcomp): Likewise.
22098         (regerror): Likewise.
22099         (regfree): Likewise.
22100         * posix/regexec.c (regexec): Likewise.
22101         (re_match): Likewise.
22102         (re_search): Likewise.
22103         (re_match_2): Likewise.
22104         (re_search_2): Likewise.
22105         (re_search_stub): Likewise.  Use internal_function
22106         (re_copy_regs): Likewise.
22107         (re_set_registers): Convert to prototype-style function
22108         definition.
22109         (prune_impossible_nodes): Likewise.  Use internal_function.
22110         * resolv/inet_net_pton.c (inet_net_pton): Convert to
22111         prototype-style function definition.
22112         (inet_net_pton_ipv4): Likewise.
22113         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
22114         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
22115         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
22116         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
22117         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
22118         Make variadic.
22119         * time/strptime_l.c (localtime_r): Convert to prototype-style
22120         function definition.
22121         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
22122         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
22123         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
22124         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
22125
22126         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
22127         definition.
22128         (_ufc_doit_r): Likewise.
22129         * crypt/crypt_util.c (_ufc_copymem): Likewise.
22130         (_ufc_output_conversion_r): Likewise.
22131         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
22132         * inet/rcmd.c (rcmd_af): Likewise.
22133         (rcmd): Likewise.
22134         (ruserok_af): Likewise.
22135         (ruserok): Likewise.
22136         (ruserok2_sa): Likewise.
22137         (ruserok_sa): Likewise.
22138         (iruserok_af): Likewise.
22139         (iruserok): Likewise.
22140         (__ivaliduser): Likewise.
22141         (__validuser2_sa): Likewise.
22142         * inet/rexec.c (rexec_af): Likewise.
22143         (rexec): Likewise.
22144         * inet/ruserpass.c (ruserpass): Likewise.
22145         * locale/programs/xmalloc.c (xcalloc): Likewise.
22146         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
22147         * math/w_drem.c (__drem): Likewise.
22148         * math/w_dremf.c (__dremf): Likewise.
22149         * math/w_dreml.c (__dreml): Likewise.
22150         * misc/daemon.c (daemon): Likewise.
22151         * resolv/res_debug.c (p_fqnname): Likewise.
22152         * stdlib/div.c (div): Likewise.
22153         * string/memcmp.c (memcmp_bytes): Likewise.
22154         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
22155         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
22156
22157         * crypt/cert.c (main): Convert to prototype-style function
22158         definition.
22159         * io/pipe.c (__pipe): Likewise.
22160         * io/pipe2.c (__pipe2): Likewise.
22161         * misc/futimesat.c (futimesat): Likewise.
22162         * misc/utimes.c (__utimes): Likewise.
22163         * posix/execve.c (__execve): Likewise.
22164         * posix/execvp.c (execvp): Likewise.
22165         * posix/execvpe.c (__execvpe): Likewise.
22166         * posix/fexecve.c (fexecve): Likewise.
22167         * socket/socketpair.c (socketpair): Likewise.
22168         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
22169         * stdlib/erand48.c (erand48): Likewise.
22170         * stdlib/erand48_r.c (__erand48_r): Likewise.
22171         * stdlib/jrand48.c (jrand48): Likewise.
22172         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
22173         * stdlib/lcong48.c (lcong48): Likewise.
22174         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
22175         * stdlib/nrand48.c (nrand48): Likewise.
22176         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
22177         * stdlib/seed48.c (seed48): Likewise.
22178         * stdlib/seed48_r.c (__seed48_r): Likewise.
22179         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
22180         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
22181         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
22182
22183 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22184
22185         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
22186         * configure: Regenerated.
22187         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
22188         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
22189         unconditional.
22190         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22191         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22192         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22193         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
22194         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
22195         unconditional.
22196         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22197
22198         * posix/Makefile (CFLAGS-regex.c): Remove variable.
22199         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
22200
22201         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
22202         function definition.
22203         * crypt/crypt_util.c (__encrypt_r): Likewise.
22204         * libio/genops.c (_IO_no_init): Likewise.
22205         * libio/iofopncook.c (_IO_fopencookie): Likewise.
22206         (_IO_old_fopencookie): Likewise.
22207         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22208         * libio/iogetline.c (_IO_getline): Likewise.
22209         (_IO_getline_info): Likewise.
22210         * libio/iogetwline.c (_IO_getwline): Likewise.
22211         (_IO_getwline_info): Likewise.
22212         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
22213         * libio/vswprintf.c (_IO_vswprintf): Likewise.
22214         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
22215         (find_entry): Likewise.
22216         (iterate_table): Likewise.
22217         (lookup): Likewise.
22218         * login/forkpty.c (forkpty): Likewise.
22219         * misc/hsearch_r.c (__hsearch_r): Likewise.
22220         * misc/select.c (__select): Likewise.
22221         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
22222         Likewise.
22223         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
22224         Likewise.
22225         * nptl/old_pthread_cond_timedwait.c
22226         (__pthread_cond_timedwait_2_0): Likewise.
22227         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22228         * nptl/pthread_barrierattr_getpshared.c
22229         (pthread_barrierattr_getpshared): Likewise.
22230         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
22231         Likewise.
22232         * nptl/pthread_mutex_setprioceiling.c
22233         (pthread_mutex_setprioceiling): Likewise.
22234         * nptl/pthread_mutexattr_getprioceiling.c
22235         (pthread_mutexattr_getprioceiling): Likewise.
22236         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22237         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22238         Likewise.
22239         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22240         Likewise.
22241         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
22242         Likewise.
22243         * socket/recvfrom.c (__recvfrom): Likewise.
22244         * socket/sendto.c (__sendto): Likewise.
22245         * socket/setsockopt.c (__setsockopt): Likewise.
22246         * stdio-common/_itoa.c (_itoa): Likewise.
22247         * stdio-common/_itowa.c (_itowa): Likewise.
22248         * stdio-common/reg-printf.c (__register_printf_specifier):
22249         Likewise.
22250         (__register_printf_function): Likewise.
22251         * stdio-common/tempname.c (__path_search): Likewise.
22252         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
22253         * stdlib/mul_1.c (mpn_mul_1): Likewise.
22254         * stdlib/random_r.c (__initstate_r): Likewise.
22255         * stdlib/setenv.c (__add_to_environ): Likewise.
22256         * stdlib/submul_1.c (mpn_submul_1): Likewise.
22257         * streams/getpmsg.c (getpmsg): Likewise.
22258         * streams/putmsg.c (putmsg): Likewise.
22259         * streams/putpmsg.c (putpmsg): Likewise.
22260         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
22261         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
22262         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
22263         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
22264         * sunrpc/pm_getport.c (pmap_getport): Likewise.
22265         * sunrpc/svc_udp.c (cache_get): Likewise.
22266         * sunrpc/xdr_array.c (xdr_vector): Likewise.
22267         * sysdeps/mach/hurd/getcwd.c
22268         (__canonicalize_directory_name_internal): Likewise.
22269         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
22270         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
22271         * sysdeps/mach/hurd/select.c (__select): Likewise.
22272         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22273         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
22274         * sysdeps/sparc/nptl/pthread_barrier_init.c
22275         (__pthread_barrier_init): Likewise.
22276         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
22277         (__pthread_cond_timedwait): Likewise.
22278         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
22279         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
22280         Likewise.
22281         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
22282         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
22283         Likewise.
22284         * sysvipc/semtimedop.c (semtimedop): Likewise.
22285         * time/setitimer.c (__setitimer): Likewise.
22286         * time/strftime_l.c (emacs_strftime): Likewise.
22287
22288 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22289
22290         * config.make.in (have-ssp): Delete.
22291         (stack-protector): New variable.
22292         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
22293         cache test for -fstack-protector-strong.  Export stack_protector to
22294         the best ssp flag.
22295         * configure: Regenerated.
22296         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
22297         * nscd/Makefile (CFLAGS-nscd): Likewise.
22298         * resolv/Makefile (CFLAGS-libresolv): Likewise.
22299
22300 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
22301
22302         [BZ #19122]
22303         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
22304         attribute_hidden.
22305
22306 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22307
22308         [BZ #18743]
22309         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
22310         code to...
22311         (ELIDE_LOCK): ...here.
22312         (__get_new_count): New function with part of the code from
22313         __elide_lock that updates the value of adapt_count after a
22314         transaction abort.
22315         (__elided_trylock): Moved this code to...
22316         (ELIDE_TRYLOCK): ...here.
22317
22318 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22319
22320         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
22321         * configure: Regenerate.
22322         * INSTALL: Regenerate.
22323         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
22324         and tweak grammar.
22325
22326 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
22327
22328         * login/programs/pt_chown.c: Include signal.h
22329         (main): Clear any signal mask from the parent process.
22330
22331 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22332
22333         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
22334         * configure: Regenerated.
22335         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
22336         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
22337         $(gnu89-inline-CFLAGS).
22338
22339         * configure.ac (libc_cv_asm_weak_directive): Remove configure
22340         test.
22341         (libc_cv_asm_weakext_directive): Likewise.
22342         * configure: Regenerated.
22343         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
22344         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
22345         * include/libc-symbols.h
22346         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
22347         #error.
22348         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
22349         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
22350
22351         * sysdeps/arm/backtrace.c (__backtrace): Convert to
22352         prototype-style function definition.
22353         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
22354         * sysdeps/i386/ffs.c (__ffs): Likewise.
22355         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
22356         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
22357         Likewise.
22358         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22359         Likewise.
22360         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22361         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
22362         Likewise.
22363         * sysdeps/m68k/ffs.c (__ffs): Likewise.
22364         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
22365         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
22366         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
22367         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
22368         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
22369         * sysdeps/mach/hurd/access.c (__access): Likewise.
22370         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
22371         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
22372         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
22373         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
22374         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
22375         (cthread_getspecific): Likewise.
22376         (cthread_setspecific): Likewise.
22377         (__libc_getspecific): Likewise.
22378         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
22379         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
22380         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
22381         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
22382         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
22383         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
22384         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
22385         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
22386         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
22387         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
22388         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
22389         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
22390         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
22391         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
22392         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
22393         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
22394         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
22395         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
22396         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
22397         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
22398         * sysdeps/mach/hurd/link.c (__link): Likewise.
22399         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
22400         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
22401         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
22402         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
22403         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
22404         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
22405         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
22406         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
22407         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22408         * sysdeps/mach/hurd/rename.c (rename): Likewise.
22409         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
22410         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22411         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
22412         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
22413         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
22414         * sysdeps/mach/hurd/send.c (__send): Likewise.
22415         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
22416         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
22417         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
22418         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
22419         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
22420         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
22421         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
22422         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
22423         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
22424         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
22425         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
22426         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
22427         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
22428         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
22429         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
22430         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22431         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
22432         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22433         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
22434         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22435         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
22436         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
22437         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
22438         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
22439         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
22440         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
22441         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
22442         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
22443         * sysdeps/posix/alarm.c (alarm): Likewise.
22444         * sysdeps/posix/cuserid.c (cuserid): Likewise.
22445         * sysdeps/posix/dirfd.c (dirfd): Likewise.
22446         * sysdeps/posix/dup.c (__dup): Likewise.
22447         * sysdeps/posix/dup2.c (__dup2): Likewise.
22448         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
22449         (main): Likewise.
22450         * sysdeps/posix/flock.c (__flock): Likewise.
22451         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
22452         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
22453         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
22454         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
22455         * sysdeps/posix/isatty.c (__isatty): Likewise.
22456         * sysdeps/posix/killpg.c (killpg): Likewise.
22457         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
22458         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
22459         * sysdeps/posix/raise.c (raise): Likewise.
22460         * sysdeps/posix/remove.c (remove): Likewise.
22461         * sysdeps/posix/rename.c (rename): Likewise.
22462         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
22463         * sysdeps/posix/seekdir.c (seekdir): Likewise.
22464         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22465         * sysdeps/posix/sigignore.c (sigignore): Likewise.
22466         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
22467         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
22468         * sysdeps/posix/sigset.c (sigset): Likewise.
22469         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
22470         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
22471         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
22472         * sysdeps/posix/time.c (time): Likewise.
22473         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22474         (ttyname): Likewise.
22475         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
22476         * sysdeps/posix/utime.c (utime): Likewise.
22477         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
22478         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
22479         Likewise.
22480         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
22481         (pthread_spin_trylock): Likewise.
22482         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
22483         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
22484         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
22485         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
22486         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
22487         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
22488         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
22489         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
22490         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
22491         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
22492         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
22493         * sysdeps/s390/ffs.c (__ffs): Likewise.
22494         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
22495         Likewise.
22496         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22497         Likewise.
22498         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
22499         Likewise.
22500         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
22501         (pthread_barrier_destroy): Likewise.
22502         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22503         (__pthread_barrier_wait): Likewise.
22504         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
22505         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22506         (__pthread_barrier_wait): Likewise.
22507         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
22508         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
22509         (memcmp_not_common_alignment): Likewise.
22510         (MEMCMP): Likewise.
22511         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
22512         (_wordcopy_fwd_dest_aligned): Likewise.
22513         (_wordcopy_bwd_aligned): Likewise.
22514         (_wordcopy_bwd_dest_aligned): Likewise.
22515         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
22516         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
22517         * sysdeps/unix/bsd/stty.c (stty): Likewise.
22518         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
22519         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
22520         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
22521         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
22522         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
22523         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
22524         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
22525         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
22526         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
22527         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
22528         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
22529         * sysdeps/unix/stime.c (stime): Likewise.
22530         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
22531         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
22532         Likewise.  Use internal_function.
22533         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
22534         Convert to prototype-style function definition.
22535         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22536         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22537         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
22538         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22539         Likewise.  Use internal_function.
22540         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
22541         prototype-style function definition
22542         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22543         Likewise.
22544         (__getlogin_r): Likewise.
22545         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
22546         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
22547         (__pthread_cond_broadcast): Likewise.
22548         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
22549         (__pthread_cond_destroy): Likewise.
22550         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
22551         (__pthread_cond_init): Likewise.
22552         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
22553         (__pthread_cond_signal): Likewise.
22554         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
22555         (__pthread_cond_wait): Likewise.
22556         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
22557         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22558         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
22559         Likewise.
22560         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
22561         Likewise.
22562         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22563         Likewise.
22564         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
22565         Likewise.
22566         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
22567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
22568         (__ftruncate64): Likewise.
22569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
22570         (truncate64): Likewise.
22571         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
22572         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
22573         (pthread_getcpuclockid): Likewise.
22574         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
22575         Likewise.
22576         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
22577         Likewise.
22578         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
22579         Likewise.
22580         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
22581         Likewise.
22582         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
22583         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
22584         (__libc_sigaction): Likewise.
22585         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
22586         Likewise.
22587         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22588         (__sigprocmask): Likewise.
22589         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
22590         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
22591         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
22592         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
22593         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22594         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
22595         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22596         Likewise.
22597         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
22598         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
22599         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22600         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
22601         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
22602         Likewise.
22603         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22604         (__sigprocmask): Likewise.
22605         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
22606         (cfgetispeed): Likewise.
22607         (cfsetospeed): Likewise.
22608         (cfsetispeed): Likewise.
22609         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
22610         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
22611         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22612         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
22613         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
22614         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
22615         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
22616         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
22617         Likewise.
22618         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
22619         Likewise.
22620         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
22621         Likewise.
22622         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22623         Likewise.
22624         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
22625
22626 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22627
22628         sunrpc: Rewrite with explicit TLS access using __thread.
22629         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
22630         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
22631         directly.
22632         (__rpc_thread_variables): Access thread_rpc_vars directly.
22633         Eliminate redundant assignment of the tvp variable.
22634
22635 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22636
22637         malloc: Rewrite with explicit TLS access using __thread.
22638         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
22639         (tsd_setspecific, tsd_getspecific): Remove.
22640         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
22641         (tsd_setspecific, tsd_getspecific): Likewise.
22642         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
22643         (tsd_setspecific, tsd_getspecific): Likewise.
22644         * malloc/arena.c (thread_arena): New TLS variable.
22645         (arena_key): Remove variable.
22646         (arena_get): Use thread_arena.
22647         (arena_lookup): Remove macro.
22648         (malloc_atfork, free_atfork, ptmalloc_lock_all)
22649         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
22650         (_int_new_arena, get_free_list, reused_arena)
22651         (arena_thread_freeres): Use thread_arena.
22652         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
22653         tsd_getspecific, tsd_setspecific from safety annotations.
22654         (Allocating Cleared Space): Remove arena_lookup from safety
22655         annotations.
22656
22657 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22658
22659         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
22660         struct scratch_buffer instead of extend_alloca.
22661
22662 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22663
22664         * sysdeps/unix/sysv/linux/kernel-features.h
22665         (__ASSUME_SOCK_CLOEXEC): Remove.
22666         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
22667         (__have_paccept): Remove unused macro.
22668         * include/unistd.h (__have_sock_cloexec): Remove declaration.
22669         * misc/syslog.c (openlog_internal): Remove fallback code for
22670         !__ASSUME_SOCK_CLOEXEC.
22671         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
22672         missing SOCK_CLOEXEC.
22673         * nscd/connections.c (have_sock_cloexec): Remove definition.
22674         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22675         * nscd/nscd_helper.c (open_socket): Remove fallback code for
22676         !__ASSUME_SOCK_CLOEXEC.
22677         * resolv/res_send.c (__have_o_nonblock): Remove definition.
22678         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22679         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
22680         definition.
22681         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
22682         code for !__ASSUME_SOCK_CLOEXEC.
22683
22684 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22685
22686         [BZ #18982]
22687         * manual/stdio.texi (Variable Arguments Output): Add portability
22688         note, explaining that vfprintf clobbers the va_list pointer.
22689
22690 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22691
22692         * math/libm-test.inc (fabs_test_data): Add more tests.
22693         (fdim_test_data): Likewise.
22694         (fma_test_data): Likewise.
22695         (fmax_test_data): Likewise.
22696         (fmin_test_data): Likewise.
22697         (fmod_test_data): Likewise.
22698
22699 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
22700
22701         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
22702         data.
22703
22704 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22705
22706         * math/libm-test.inc (ceil_test_data): Add more tests and more
22707         expectations for "inexact".
22708         (floor_test_data): Add more tests.
22709         (round_test_data): Likewise.
22710         (trunc_test_data): Likewise.
22711
22712         * crypt/cert.c (good_bye): Convert to prototype-style function
22713         definition.
22714         (get8): Likewise.
22715         (put8): Likewise.
22716         * crypt/crypt-entry.c (crypt): Likewise.
22717         (__fcrypt): Likewise.
22718         * crypt/crypt_util.c (_ufc_prbits): Likewise.
22719         (_ufc_set_bits): Likewise.
22720         (_ufc_clearmem): Likewise.
22721         (__init_des_r): Likewise.
22722         (shuffle_sb): Likewise.
22723         (shuffle_sb): Likewise.
22724         (_ufc_setup_salt_r): Likewise.
22725         (_ufc_mk_keytab_r): Likewise.
22726         (_ufc_dofinalperm_r): Likewise.
22727         (encrypt): Likewise.
22728         (__setkey_r): Likewise.
22729         (setkey): Likewise.
22730         * crypt/md5.c (md5_init_ctx): Likewise.
22731         (md5_read_ctx): Likewise.
22732         (md5_finish_ctx): Likewise.
22733         (md5_stream): Likewise.
22734         (md5_buffer): Likewise.
22735         (md5_process_bytes): Likewise.
22736         * crypt/sha256.c (__sha256_init_ctx): Likewise.
22737         (__sha256_finish_ctx): Likewise.
22738         (__sha256_process_bytes): Likewise.
22739         * crypt/sha512.c (__sha512_init_ctx): Likewise.
22740         (__sha512_finish_ctx): Likewise.
22741         (__sha512_process_bytes): Likewise.
22742         * ctype/isctype.c (__isctype): Likewise.
22743         * debug/backtrace.c (__backtrace): Likewise.
22744         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
22745         * debug/fgets_chk.c (__fgets_chk): Likewise.
22746         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
22747         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
22748         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
22749         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
22750         * debug/memset_chk.c (__memset_chk): Likewise.
22751         * debug/strcat_chk.c (__strcat_chk): Likewise.
22752         * debug/strncat_chk.c (__strncat_chk): Likewise.
22753         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
22754         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
22755         * dirent/dirfd.c (dirfd): Likewise.
22756         * dirent/getdents.c (__getdirentries): Likewise.
22757         * dirent/getdents64.c (getdirentries64): Likewise.
22758         * dirent/rewinddir.c (__rewinddir): Likewise.
22759         * dirent/seekdir.c (seekdir): Likewise.
22760         * dirent/telldir.c (telldir): Likewise.
22761         * elf/sln.c (makesymlinks): Likewise.
22762         (makesymlink): Likewise.
22763         * gmon/gmon.c (__moncontrol): Likewise.
22764         (__monstartup): Likewise.
22765         (write_hist): Likewise.
22766         (write_call_graph): Likewise.
22767         (write_bb_counts): Likewise.
22768         * grp/setgroups.c (setgroups): Likewise.
22769         * inet/inet_lnaof.c (inet_lnaof): Likewise.
22770         * inet/inet_net.c (inet_network): Likewise.
22771         * inet/inet_netof.c (inet_netof): Likewise.
22772         * inet/rcmd.c (rresvport_af): Likewise.
22773         (rresvport): Likewise.
22774         * io/access.c (__access): Likewise.
22775         * io/chdir.c (__chdir): Likewise.
22776         * io/chmod.c (__chmod): Likewise.
22777         * io/chown.c (__chown): Likewise.
22778         * io/close.c (__close): Likewise.
22779         * io/creat.c (creat): Likewise.
22780         * io/creat64.c (creat64): Likewise.
22781         * io/dup.c (__dup): Likewise.
22782         * io/dup2.c (__dup2): Likewise.
22783         * io/dup3.c (__dup3): Likewise.
22784         * io/euidaccess.c (__euidaccess): Likewise.
22785         * io/faccessat.c (faccessat): Likewise.
22786         * io/fchmod.c (__fchmod): Likewise.
22787         * io/fchmodat.c (fchmodat): Likewise.
22788         * io/fchown.c (__fchown): Likewise.
22789         * io/fchownat.c (fchownat): Likewise.
22790         * io/fcntl.c (__fcntl): Likewise.
22791         * io/flock.c (__flock): Likewise.
22792         * io/fts.c (fts_load): Likewise.
22793         (fts_close): Likewise.
22794         (fts_read): Likewise.
22795         (fts_set): Likewise.
22796         (fts_children): Likewise.
22797         (fts_build): Likewise.
22798         (fts_stat): Likewise.
22799         (fts_sort): Likewise.
22800         (fts_alloc): Likewise.
22801         (fts_lfree): Likewise.
22802         (fts_palloc): Likewise.
22803         (fts_padjust): Likewise.
22804         (fts_maxarglen): Likewise.
22805         (fts_safe_changedir): Likewise.
22806         * io/getwd.c (getwd): Likewise.
22807         * io/isatty.c (__isatty): Likewise.
22808         * io/lchown.c (__lchown): Likewise.
22809         * io/link.c (__link): Likewise.
22810         * io/linkat.c (linkat): Likewise.
22811         * io/lseek.c (__libc_lseek): Likewise.
22812         * io/mkdir.c (__mkdir): Likewise.
22813         * io/mkdirat.c (mkdirat): Likewise.
22814         * io/mkfifo.c (mkfifo): Likewise.
22815         * io/mkfifoat.c (mkfifoat): Likewise.
22816         * io/open.c (__libc_open): Likewise.
22817         * io/open64.c (__libc_open64): Likewise.
22818         * io/readlink.c (__readlink): Likewise.
22819         * io/readlinkat.c (readlinkat): Likewise.
22820         * io/rmdir.c (__rmdir): Likewise.
22821         * io/symlink.c (__symlink): Likewise.
22822         * io/symlinkat.c (symlinkat): Likewise.
22823         * io/ttyname.c (ttyname): Likewise.
22824         * io/ttyname_r.c (__ttyname_r): Likewise.
22825         * io/umask.c (__umask): Likewise.
22826         * io/unlink.c (__unlink): Likewise.
22827         * io/unlinkat.c (unlinkat): Likewise.
22828         * io/utime.c (utime): Likewise.
22829         * libio/clearerr.c (clearerr): Likewise.
22830         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
22831         * libio/feof.c (_IO_feof): Likewise.
22832         * libio/feof_u.c (feof_unlocked): Likewise.
22833         * libio/ferror.c (_IO_ferror): Likewise.
22834         * libio/ferror_u.c (ferror_unlocked): Likewise.
22835         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
22836         * libio/fileno.c (__fileno): Likewise.
22837         * libio/fputc.c (fputc): Likewise.
22838         * libio/fputc_u.c (fputc_unlocked): Likewise.
22839         * libio/fputwc.c (fputwc): Likewise.
22840         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
22841         * libio/freopen.c (freopen): Likewise.
22842         * libio/freopen64.c (freopen64): Likewise.
22843         * libio/fseek.c (fseek): Likewise.
22844         * libio/fseeko.c (fseeko): Likewise.
22845         * libio/fseeko64.c (fseeko64): Likewise.
22846         * libio/ftello.c (__ftello): Likewise.
22847         * libio/ftello64.c (ftello64): Likewise.
22848         * libio/fwide.c (fwide): Likewise.
22849         * libio/genops.c (_IO_un_link): Likewise.
22850         (_IO_link_in): Likewise.
22851         (_IO_least_marker): Likewise.
22852         (_IO_switch_to_main_get_area): Likewise.
22853         (_IO_switch_to_backup_area): Likewise.
22854         (_IO_switch_to_get_mode): Likewise.
22855         (_IO_free_backup_area): Likewise.
22856         (_IO_switch_to_put_mode): Likewise.
22857         (__overflow): Likewise.
22858         (__underflow): Likewise.
22859         (__uflow): Likewise.
22860         (_IO_setb): Likewise.
22861         (_IO_doallocbuf): Likewise.
22862         (_IO_default_underflow): Likewise.
22863         (_IO_default_uflow): Likewise.
22864         (_IO_default_xsputn): Likewise.
22865         (_IO_sgetn): Likewise.
22866         (_IO_default_xsgetn): Likewise.
22867         (_IO_sync): Likewise.
22868         (_IO_default_setbuf): Likewise.
22869         (_IO_default_seekpos): Likewise.
22870         (_IO_default_doallocate): Likewise.
22871         (_IO_init): Likewise.
22872         (_IO_old_init): Likewise.
22873         (_IO_default_sync): Likewise.
22874         (_IO_default_finish): Likewise.
22875         (_IO_default_seekoff): Likewise.
22876         (_IO_sputbackc): Likewise.
22877         (_IO_sungetc): Likewise.
22878         (_IO_set_column): Likewise.
22879         (_IO_set_column): Likewise.
22880         (_IO_adjust_column): Likewise.
22881         (_IO_get_column): Likewise.
22882         (_IO_init_marker): Likewise.
22883         (_IO_remove_marker): Likewise.
22884         (_IO_marker_difference): Likewise.
22885         (_IO_marker_delta): Likewise.
22886         (_IO_seekmark): Likewise.
22887         (_IO_unsave_markers): Likewise.
22888         (_IO_nobackup_pbackfail): Likewise.
22889         (_IO_default_pbackfail): Likewise.
22890         (_IO_default_seek): Likewise.
22891         (_IO_default_stat): Likewise.
22892         (_IO_default_read): Likewise.
22893         (_IO_default_write): Likewise.
22894         (_IO_default_showmanyc): Likewise.
22895         (_IO_default_imbue): Likewise.
22896         (_IO_iter_next): Likewise.
22897         (_IO_iter_file): Likewise.
22898         * libio/getc.c (_IO_getc): Likewise.
22899         * libio/getwc.c (_IO_getwc): Likewise.
22900         * libio/iofclose.c (_IO_new_fclose): Likewise.
22901         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22902         * libio/iofflush.c (_IO_fflush): Likewise.
22903         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
22904         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
22905         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
22906         * libio/iofgets.c (_IO_fgets): Likewise.
22907         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
22908         * libio/iofgetws.c (fgetws): Likewise.
22909         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
22910         * libio/iofopen64.c (_IO_fopen64): Likewise.
22911         * libio/iofopncook.c (_IO_cookie_read): Likewise.
22912         (_IO_cookie_write): Likewise.
22913         (_IO_cookie_seek): Likewise.
22914         (_IO_cookie_close): Likewise.
22915         (_IO_cookie_seekoff): Likewise.
22916         (_IO_old_cookie_seek): Likewise.
22917         * libio/iofputs.c (_IO_fputs): Likewise.
22918         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
22919         * libio/iofputws.c (fputws): Likewise.
22920         * libio/iofputws_u.c (fputws_unlocked): Likewise.
22921         * libio/iofread.c (_IO_fread): Likewise.
22922         * libio/iofread_u.c (__fread_unlocked): Likewise.
22923         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
22924         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22925         * libio/ioftell.c (_IO_ftell): Likewise.
22926         * libio/iofwrite.c (_IO_fwrite): Likewise.
22927         * libio/iogetdelim.c (_IO_getdelim): Likewise.
22928         * libio/iogets.c (_IO_gets): Likewise.
22929         * libio/iopadn.c (_IO_padn): Likewise.
22930         * libio/iopopen.c (_IO_new_proc_open): Likewise.
22931         (_IO_new_popen): Likewise.
22932         (_IO_new_proc_close): Likewise.
22933         * libio/ioputs.c (_IO_puts): Likewise.
22934         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
22935         (_IO_seekoff): Likewise.
22936         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
22937         (_IO_seekpos): Likewise.
22938         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
22939         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
22940         * libio/ioungetc.c (_IO_ungetc): Likewise.
22941         * libio/ioungetwc.c (ungetwc): Likewise.
22942         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22943         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
22944         * libio/iowpadn.c (_IO_wpadn): Likewise.
22945         * libio/libc_fatal.c (__libc_fatal): Likewise.
22946         * libio/memstream.c (__open_memstream): Likewise.
22947         (_IO_mem_sync): Likewise.
22948         (_IO_mem_finish): Likewise.
22949         * libio/oldfileops.c (_IO_old_file_init): Likewise.
22950         (_IO_old_file_close_it): Likewise.
22951         (_IO_old_file_finish): Likewise.
22952         (_IO_old_file_fopen): Likewise.
22953         (_IO_old_file_attach): Likewise.
22954         (_IO_old_file_setbuf): Likewise.
22955         (_IO_old_do_write): Likewise.
22956         (old_do_write): Likewise.
22957         (_IO_old_file_underflow): Likewise.
22958         (_IO_old_file_overflow): Likewise.
22959         (_IO_old_file_sync): Likewise.
22960         (_IO_old_file_seekoff): Likewise.
22961         (_IO_old_file_write): Likewise.
22962         (_IO_old_file_xsputn): Likewise.
22963         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
22964         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22965         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
22966         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
22967         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
22968         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
22969         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
22970         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
22971         (_IO_old_popen): Likewise.
22972         (_IO_old_proc_close): Likewise.
22973         * libio/oldpclose.c (__old_pclose): Likewise.
22974         * libio/pclose.c (__new_pclose): Likewise.
22975         * libio/peekc.c (_IO_peekc_locked): Likewise.
22976         * libio/putc.c (_IO_putc): Likewise.
22977         * libio/putc_u.c (putc_unlocked): Likewise.
22978         * libio/putchar.c (putchar): Likewise.
22979         * libio/putchar_u.c (putchar_unlocked): Likewise.
22980         * libio/putwc.c (putwc): Likewise.
22981         * libio/putwc_u.c (putwc_unlocked): Likewise.
22982         * libio/putwchar.c (putwchar): Likewise.
22983         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
22984         * libio/rewind.c (rewind): Likewise.
22985         * libio/setbuf.c (setbuf): Likewise.
22986         * libio/setlinebuf.c (setlinebuf): Likewise.
22987         * libio/vasprintf.c (_IO_vasprintf): Likewise.
22988         * libio/vscanf.c (_IO_vscanf): Likewise.
22989         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
22990         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
22991         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
22992         * libio/wgenops.c (_IO_least_wmarker): Likewise.
22993         (_IO_switch_to_main_wget_area): Likewise.
22994         (_IO_switch_to_wbackup_area): Likewise.
22995         (_IO_wsetb): Likewise.
22996         (_IO_wdefault_pbackfail): Likewise.
22997         (_IO_wdefault_finish): Likewise.
22998         (_IO_wdefault_uflow): Likewise.
22999         (__woverflow): Likewise.
23000         (__wuflow): Likewise.
23001         (__wunderflow): Likewise.
23002         (_IO_wdefault_xsputn): Likewise.
23003         (_IO_wdefault_xsgetn): Likewise.
23004         (_IO_wdoallocbuf): Likewise.
23005         (_IO_wdefault_doallocate): Likewise.
23006         (_IO_switch_to_wget_mode): Likewise.
23007         (_IO_free_wbackup_area): Likewise.
23008         (_IO_switch_to_wput_mode): Likewise.
23009         (_IO_sputbackwc): Likewise.
23010         (_IO_sungetwc): Likewise.
23011         (_IO_adjust_wcolumn): Likewise.
23012         (_IO_init_wmarker): Likewise.
23013         (_IO_wmarker_delta): Likewise.
23014         (_IO_seekwmark): Likewise.
23015         (_IO_unsave_wmarkers): Likewise.
23016         * libio/wmemstream.c (open_wmemstream): Likewise.
23017         (_IO_wmem_sync): Likewise.
23018         (_IO_wmem_finish): Likewise.
23019         * locale/nl_langinfo.c (nl_langinfo): Likewise.
23020         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
23021         * locale/programs/simple-hash.c (init_hash): Likewise.
23022         (delete_hash): Likewise.
23023         (insert_entry): Likewise.
23024         (set_entry): Likewise.
23025         (next_prime): Likewise.
23026         (is_prime): Likewise.
23027         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
23028         (xmalloc): Likewise.
23029         (xrealloc): Likewise.
23030         * locale/programs/xstrdup.c (xstrdup): Likewise.
23031         * localedata/collate-test.c (xstrcoll): Likewise.
23032         * localedata/xfrm-test.c (xstrcmp): Likewise.
23033         * login/getlogin_r.c (__getlogin_r): Likewise.
23034         * login/getpt.c (__posix_openpt): Likewise.
23035         * login/login_tty.c (login_tty): Likewise.
23036         * login/setlogin.c (setlogin): Likewise.
23037         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
23038         (mach_msg_destroy_port): Likewise.
23039         (mach_msg_destroy_memory): Likewise.
23040         * malloc/mcheck.c (flood): Likewise.
23041         * misc/acct.c (acct): Likewise.
23042         * misc/brk.c (__brk): Likewise.
23043         * misc/chflags.c (chflags): Likewise.
23044         * misc/chroot.c (chroot): Likewise.
23045         * misc/fchflags.c (fchflags): Likewise.
23046         * misc/fstab.c (getfsspec): Likewise.
23047         (getfsfile): Likewise.
23048         * misc/fsync.c (fsync): Likewise.
23049         * misc/ftruncate.c (__ftruncate): Likewise.
23050         * misc/ftruncate64.c (__ftruncate64): Likewise.
23051         * misc/getdomain.c (getdomainname): Likewise.
23052         (getdomainname): Likewise.
23053         * misc/gethostname.c (__gethostname): Likewise.
23054         * misc/getpass.c (getpass): Likewise.
23055         * misc/getttyent.c (skip): Likewise.
23056         (value): Likewise.
23057         * misc/gtty.c (gtty): Likewise.
23058         * misc/hsearch.c (hsearch): Likewise.
23059         (hcreate): Likewise.
23060         * misc/hsearch_r.c (__hcreate_r): Likewise.
23061         (__hdestroy_r): Likewise.
23062         * misc/ioctl.c (__ioctl): Likewise.
23063         * misc/mkdtemp.c (mkdtemp): Likewise.
23064         * misc/mkostemp.c (mkostemp): Likewise.
23065         * misc/mkostemp64.c (mkostemp64): Likewise.
23066         * misc/mkostemps.c (mkostemps): Likewise.
23067         * misc/mkostemps64.c (mkostemps64): Likewise.
23068         * misc/mkstemp.c (mkstemp): Likewise.
23069         * misc/mkstemp64.c (mkstemp64): Likewise.
23070         * misc/mkstemps.c (mkstemps): Likewise.
23071         * misc/mkstemps64.c (mkstemps64): Likewise.
23072         * misc/mktemp.c (__mktemp): Likewise.
23073         * misc/preadv.c (preadv): Likewise.
23074         * misc/preadv64.c (preadv64): Likewise.
23075         * misc/pwritev.c (pwritev): Likewise.
23076         * misc/pwritev64.c (pwritev64): Likewise.
23077         * misc/readv.c (__readv): Likewise.
23078         * misc/revoke.c (revoke): Likewise.
23079         * misc/setdomain.c (setdomainname): Likewise.
23080         * misc/setegid.c (setegid): Likewise.
23081         * misc/seteuid.c (seteuid): Likewise.
23082         * misc/sethostid.c (sethostid): Likewise.
23083         * misc/sethostname.c (sethostname): Likewise.
23084         * misc/setregid.c (__setregid): Likewise.
23085         * misc/setreuid.c (__setreuid): Likewise.
23086         * misc/sstk.c (sstk): Likewise.
23087         * misc/stty.c (stty): Likewise.
23088         * misc/syscall.c (syscall): Likewise.
23089         * misc/syslog.c (setlogmask): Likewise.
23090         * misc/truncate.c (__truncate): Likewise.
23091         * misc/truncate64.c (truncate64): Likewise.
23092         * misc/ualarm.c (ualarm): Likewise.
23093         * misc/usleep.c (usleep): Likewise.
23094         * misc/ustat.c (ustat): Likewise.
23095         * misc/writev.c (__writev): Likewise.
23096         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
23097         * nptl/old_pthread_cond_broadcast.c
23098         (__pthread_cond_broadcast_2_0): Likewise.
23099         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
23100         Likewise.
23101         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
23102         Likewise.
23103         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
23104         Likewise.
23105         * nptl/pt-raise.c (raise): Likewise.
23106         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
23107         Likewise.
23108         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
23109         * nptl/pthread_barrierattr_destroy.c
23110         (pthread_barrierattr_destroy): Likewise.
23111         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23112         Likewise.
23113         * nptl/pthread_barrierattr_setpshared.c
23114         (pthread_barrierattr_setpshared): Likewise.
23115         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
23116         Likewise.
23117         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
23118         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23119         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
23120         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
23121         Likewise.
23122         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
23123         Likewise.
23124         * nptl/pthread_condattr_getpshared.c
23125         (pthread_condattr_getpshared): Likewise.
23126         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
23127         Likewise.
23128         * nptl/pthread_condattr_setpshared.c
23129         (pthread_condattr_setpshared): Likewise.
23130         * nptl/pthread_detach.c (pthread_detach): Likewise.
23131         * nptl/pthread_equal.c (__pthread_equal): Likewise.
23132         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
23133         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
23134         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
23135         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
23136         Likewise.
23137         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
23138         Likewise.
23139         * nptl/pthread_mutex_getprioceiling.c
23140         (pthread_mutex_getprioceiling): Likewise.
23141         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
23142         Likewise.
23143         * nptl/pthread_mutexattr_getprotocol.c
23144         (pthread_mutexattr_getprotocol): Likewise.
23145         * nptl/pthread_mutexattr_getpshared.c
23146         (pthread_mutexattr_getpshared): Likewise.
23147         * nptl/pthread_mutexattr_getrobust.c
23148         (pthread_mutexattr_getrobust): Likewise.
23149         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23150         Likewise.
23151         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
23152         Likewise.
23153         * nptl/pthread_mutexattr_setprioceiling.c
23154         (pthread_mutexattr_setprioceiling): Likewise.
23155         * nptl/pthread_mutexattr_setprotocol.c
23156         (pthread_mutexattr_setprotocol): Likewise.
23157         * nptl/pthread_mutexattr_setpshared.c
23158         (pthread_mutexattr_setpshared): Likewise.
23159         * nptl/pthread_mutexattr_setrobust.c
23160         (pthread_mutexattr_setrobust): Likewise.
23161         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
23162         Likewise.
23163         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
23164         Likewise.
23165         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
23166         Likewise.
23167         * nptl/pthread_rwlockattr_getkind_np.c
23168         (pthread_rwlockattr_getkind_np): Likewise.
23169         * nptl/pthread_rwlockattr_getpshared.c
23170         (pthread_rwlockattr_getpshared): Likewise.
23171         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
23172         Likewise.
23173         * nptl/pthread_rwlockattr_setkind_np.c
23174         (pthread_rwlockattr_setkind_np): Likewise.
23175         * nptl/pthread_rwlockattr_setpshared.c
23176         (pthread_rwlockattr_setpshared): Likewise.
23177         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
23178         Likewise.
23179         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
23180         Likewise.
23181         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
23182         Likewise.
23183         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
23184         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
23185         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
23186         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
23187         * nptl/sem_close.c (sem_close): Likewise.
23188         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
23189         * nptl/sem_init.c (__old_sem_init): Likewise.
23190         * nptl/sigaction.c (__sigaction): Likewise.
23191         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
23192         * posix/_exit.c (_exit): Likewise.
23193         * posix/alarm.c (alarm): Likewise.
23194         * posix/confstr.c (confstr): Likewise.
23195         * posix/fpathconf.c (__fpathconf): Likewise.
23196         * posix/getgroups.c (__getgroups): Likewise.
23197         * posix/getpgid.c (__getpgid): Likewise.
23198         * posix/group_member.c (__group_member): Likewise.
23199         * posix/pathconf.c (__pathconf): Likewise.
23200         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
23201         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
23202         * posix/setgid.c (__setgid): Likewise.
23203         * posix/setpgid.c (__setpgid): Likewise.
23204         * posix/setuid.c (__setuid): Likewise.
23205         * posix/sleep.c (__sleep): Likewise.
23206         * posix/sysconf.c (__sysconf): Likewise.
23207         * posix/times.c (__times): Likewise.
23208         * posix/uname.c (__uname): Likewise.
23209         * posix/waitid.c (__waitid): Likewise.
23210         * pwd/getpw.c (__getpw): Likewise.
23211         * resolv/base64.c (b64_pton): Likewise.
23212         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
23213         * resolv/gethnamaddr.c (Dprintf): Likewise.
23214         (gethostbyname): Likewise.
23215         (gethostbyname2): Likewise.
23216         (gethostbyaddr): Likewise.
23217         (_sethtent): Likewise.
23218         (_gethtbyname): Likewise.
23219         (_gethtbyname2): Likewise.
23220         (_gethtbyaddr): Likewise.
23221         (map_v4v6_address): Likewise.
23222         (map_v4v6_hostent): Likewise.
23223         (addrsort): Likewise.
23224         (ht_sethostent): Likewise.
23225         (ht_gethostbyname): Likewise.
23226         (ht_gethostbyaddr): Likewise.
23227         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
23228         (inet_net_ntop_ipv4): Likewise.
23229         * resolv/inet_neta.c (inet_neta): Likewise.
23230         * resolv/inet_ntop.c (inet_ntop): Likewise.
23231         (inet_ntop4): Likewise.
23232         (inet_ntop6): Likewise.
23233         * resolv/inet_pton.c (__inet_pton): Likewise.
23234         (inet_pton4): Likewise.
23235         (inet_pton6): Likewise.
23236         * resolv/res_debug.c (loc_aton): Likewise.
23237         (loc_ntoa): Likewise.
23238         * resource/getpriority.c (__getpriority): Likewise.
23239         * resource/getrusage.c (__getrusage): Likewise.
23240         * resource/nice.c (nice): Likewise.
23241         * resource/setpriority.c (__setpriority): Likewise.
23242         * resource/setrlimit64.c (setrlimit64): Likewise.
23243         * resource/vlimit.c (vlimit): Likewise.
23244         * resource/vtimes.c (vtimes): Likewise.
23245         * rt/aio_error.c (aio_error): Likewise.
23246         * rt/aio_return.c (aio_return): Likewise.
23247         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
23248         * signal/kill.c (__kill): Likewise.
23249         * signal/killpg.c (killpg): Likewise.
23250         * signal/raise.c (raise): Likewise.
23251         * signal/sigaction.c (__sigaction): Likewise.
23252         * signal/sigaddset.c (sigaddset): Likewise.
23253         * signal/sigaltstack.c (sigaltstack): Likewise.
23254         * signal/sigandset.c (sigandset): Likewise.
23255         * signal/sigblock.c (__sigblock): Likewise.
23256         * signal/sigdelset.c (sigdelset): Likewise.
23257         * signal/sigempty.c (sigemptyset): Likewise.
23258         * signal/sigfillset.c (sigfillset): Likewise.
23259         * signal/sighold.c (sighold): Likewise.
23260         * signal/sigignore.c (sigignore): Likewise.
23261         * signal/sigintr.c (siginterrupt): Likewise.
23262         * signal/sigisempty.c (sigisemptyset): Likewise.
23263         * signal/sigismem.c (sigismember): Likewise.
23264         * signal/signal.c (signal): Likewise.
23265         * signal/sigorset.c (sigorset): Likewise.
23266         * signal/sigpause.c (__sigpause): Likewise.
23267         * signal/sigpending.c (sigpending): Likewise.
23268         * signal/sigprocmask.c (__sigprocmask): Likewise.
23269         * signal/sigrelse.c (sigrelse): Likewise.
23270         * signal/sigreturn.c (__sigreturn): Likewise.
23271         * signal/sigset.c (sigset): Likewise.
23272         * signal/sigsetmask.c (__sigsetmask): Likewise.
23273         * signal/sigstack.c (sigstack): Likewise.
23274         * signal/sigsuspend.c (__sigsuspend): Likewise.
23275         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
23276         * signal/sysv_signal.c (__sysv_signal): Likewise.
23277         * socket/accept.c (accept): Likewise.
23278         * socket/accept4.c (__libc_accept4): Likewise.
23279         * socket/bind.c (__bind): Likewise.
23280         * socket/connect.c (__connect): Likewise.
23281         * socket/getpeername.c (getpeername): Likewise.
23282         * socket/getsockname.c (__getsockname): Likewise.
23283         * socket/getsockopt.c (getsockopt): Likewise.
23284         * socket/listen.c (__listen): Likewise.
23285         * socket/recv.c (__recv): Likewise.
23286         * socket/recvmsg.c (__recvmsg): Likewise.
23287         * socket/send.c (__send): Likewise.
23288         * socket/sendmsg.c (__sendmsg): Likewise.
23289         * socket/shutdown.c (shutdown): Likewise.
23290         * socket/sockatmark.c (sockatmark): Likewise.
23291         * socket/socket.c (__socket): Likewise.
23292         * stdio-common/ctermid.c (ctermid): Likewise.
23293         * stdio-common/cuserid.c (cuserid): Likewise.
23294         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
23295         * stdio-common/remove.c (remove): Likewise.
23296         * stdio-common/rename.c (rename): Likewise.
23297         * stdio-common/renameat.c (renameat): Likewise.
23298         * stdio-common/tempname.c (__gen_tempname): Likewise.
23299         * stdio-common/xbug.c (InitBuffer): Likewise.
23300         (AppendToBuffer): Likewise.
23301         (ReadFile): Likewise.
23302         * stdlib/a64l.c (a64l): Likewise.
23303         * stdlib/drand48_r.c (drand48_r): Likewise.
23304         * stdlib/getcontext.c (getcontext): Likewise.
23305         * stdlib/getenv.c (getenv): Likewise.
23306         * stdlib/l64a.c (l64a): Likewise.
23307         * stdlib/llabs.c (llabs): Likewise.
23308         * stdlib/lldiv.c (lldiv): Likewise.
23309         * stdlib/lrand48_r.c (lrand48_r): Likewise.
23310         * stdlib/mrand48_r.c (mrand48_r): Likewise.
23311         * stdlib/putenv.c (putenv): Likewise.
23312         * stdlib/random.c (__srandom): Likewise.
23313         (__initstate): Likewise.
23314         (__setstate): Likewise.
23315         * stdlib/random_r.c (__srandom_r): Likewise.
23316         (__setstate_r): Likewise.
23317         (__random_r): Likewise.
23318         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
23319         * stdlib/setcontext.c (setcontext): Likewise.
23320         * stdlib/setenv.c (setenv): Likewise.
23321         (unsetenv): Likewise.
23322         * stdlib/srand48.c (srand48): Likewise.
23323         * stdlib/srand48_r.c (__srand48_r): Likewise.
23324         * stdlib/swapcontext.c (swapcontext): Likewise.
23325         * stdlib/system.c (__libc_system): Likewise.
23326         * stdlib/tst-strtod.c (expand): Likewise.
23327         * stdlib/tst-strtol.c (expand): Likewise.
23328         * stdlib/tst-strtoll.c (expand): Likewise.
23329         * streams/fattach.c (fattach): Likewise.
23330         * streams/fdetach.c (fdetach): Likewise.
23331         * streams/getmsg.c (getmsg): Likewise.
23332         * streams/isastream.c (isastream): Likewise.
23333         * string/ffs.c (__ffs): Likewise.
23334         * string/ffsll.c (ffsll): Likewise.
23335         * string/memcmp.c (memcmp_common_alignment): Likewise.
23336         (memcmp_not_common_alignment): Likewise.
23337         (MEMCMP): Likewise.
23338         * string/memcpy.c (memcpy): Likewise.
23339         * string/memmove.c (MEMMOVE): Likewise.
23340         * string/memset.c (memset): Likewise.
23341         * string/rawmemchr.c (RAWMEMCHR): Likewise.
23342         * string/strchrnul.c (STRCHRNUL): Likewise.
23343         * string/strerror.c (strerror): Likewise.
23344         * string/strndup.c (__strndup): Likewise.
23345         * string/strverscmp.c (__strverscmp): Likewise.
23346         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
23347         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
23348         (clnttcp_freeres): Likewise.
23349         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
23350         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
23351         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
23352         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
23353         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
23354         (xdr_callhdr): Likewise.
23355         * sunrpc/rpcinfo.c (udpping): Likewise.
23356         (tcpping): Likewise.
23357         (pstatus): Likewise.
23358         (pmapdump): Likewise.
23359         (brdcst): Likewise.
23360         (deletereg): Likewise.
23361         (getprognum): Likewise.
23362         (getvers): Likewise.
23363         (get_inet_address): Likewise.
23364         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
23365         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23366         (svcudp_stat): Likewise.
23367         (svcudp_recv): Likewise.
23368         (svcudp_reply): Likewise.
23369         (svcudp_getargs): Likewise.
23370         (svcudp_freeargs): Likewise.
23371         (svcudp_destroy): Likewise.
23372         * sunrpc/xdr.c (xdr_bytes): Likewise.
23373         (xdr_netobj): Likewise.
23374         (xdr_string): Likewise.
23375         (xdr_wrapstring): Likewise.
23376         * sunrpc/xdr_float.c (xdr_float): Likewise.
23377         (xdr_double): Likewise.
23378         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
23379         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
23380         * sysvipc/ftok.c (ftok): Likewise.
23381         * sysvipc/msgctl.c (msgctl): Likewise.
23382         * sysvipc/msgget.c (msgget): Likewise.
23383         * sysvipc/msgrcv.c (msgrcv): Likewise.
23384         * sysvipc/msgsnd.c (msgsnd): Likewise.
23385         * sysvipc/semget.c (semget): Likewise.
23386         * sysvipc/semop.c (semop): Likewise.
23387         * sysvipc/shmat.c (shmat): Likewise.
23388         * sysvipc/shmctl.c (shmctl): Likewise.
23389         * sysvipc/shmdt.c (shmdt): Likewise.
23390         * sysvipc/shmget.c (shmget): Likewise.
23391         * termios/cfmakeraw.c (cfmakeraw): Likewise.
23392         * termios/speed.c (cfgetospeed): Likewise.
23393         (cfgetispeed): Likewise.
23394         (cfsetospeed): Likewise.
23395         (cfsetispeed): Likewise.
23396         * termios/tcflow.c (tcflow): Likewise.
23397         * termios/tcflush.c (tcflush): Likewise.
23398         * termios/tcgetattr.c (__tcgetattr): Likewise.
23399         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
23400         * termios/tcgetsid.c (tcgetsid): Likewise.
23401         * termios/tcsendbrk.c (tcsendbreak): Likewise.
23402         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
23403         * time/adjtime.c (__adjtime): Likewise.
23404         * time/dysize.c (dysize): Likewise.
23405         * time/ftime.c (ftime): Likewise.
23406         * time/getitimer.c (__getitimer): Likewise.
23407         * time/gettimeofday.c (__gettimeofday): Likewise.
23408         * time/gmtime.c (__gmtime_r): Likewise.
23409         (gmtime): Likewise.
23410         * time/localtime.c (__localtime_r): Likewise.
23411         (localtime): Likewise.
23412         * time/offtime.c (__offtime): Likewise.
23413         * time/settimeofday.c (__settimeofday): Likewise.
23414         * time/stime.c (stime): Likewise.
23415         * time/strftime_l.c (tm_diff): Likewise.
23416         (iso_week_days): Likewise.
23417         * time/strptime.c (strptime): Likewise.
23418         * time/time.c (time): Likewise.
23419         * time/timespec_get.c (timespec_get): Likewise.
23420         * time/tzset.c (tzset_internal): Likewise.
23421         (compute_change): Likewise.
23422         (__tz_compute): Likewise.
23423         * wcsmbs/btowc.c (__btowc): Likewise.
23424         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
23425         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
23426         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
23427         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
23428         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
23429         * wcsmbs/wcscat.c (__wcscat): Likewise.
23430         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23431         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
23432         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
23433         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23434         * wcsmbs/wcsdup.c (wcsdup): Likewise.
23435         * wcsmbs/wcslen.c (__wcslen): Likewise.
23436         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
23437         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
23438         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
23439         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
23440         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23441         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
23442         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23443         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23444         * wcsmbs/wcstok.c (wcstok): Likewise.
23445         * wcsmbs/wctob.c (wctob): Likewise.
23446         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
23447         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23448         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
23449         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
23450         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
23451         * wcsmbs/wmemset.c (__wmemset): Likewise.
23452         * wctype/wcfuncs.c (__towlower): Likewise.
23453         (__towupper): Likewise.
23454
23455         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
23456         (lll_unlock_elision): Add adapt_count parameter.
23457
23458 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23459
23460         * sysdeps/nptl/configure.ac: Do not give errors based on the
23461         results of top-level configure tests.
23462         * sysdeps/nptl/configure: Regenerated.
23463
23464         * configure.ac (libc_cv_Bgroup): Remove configure test.
23465         * configure: Regenerated.
23466         * config.make.in (have-Bgroup): Remove variable.
23467
23468         * configure.ac (sizeof_long_double): Remove configure test.
23469         * configure: Regenerated.
23470         * config.make.in (sizeof-long-double): Remove variable.
23471
23472         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
23473         * configure: Regenerated.
23474         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
23475         variable.
23476         (exceptions): Likewise.
23477         * sysdeps/arm/configure: Regenerated.
23478         * config.make.in (exceptions): Remove variable.
23479         * Makeconfig (uses-callbacks): Use -fexceptions instead of
23480         $(exceptions).
23481         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
23482         (CFLAGS-vdprintf_chk.c): Likewise.
23483         (CFLAGS-printf_chk.c): Likewise.
23484         (CFLAGS-fprintf_chk.c): Likewise.
23485         (CFLAGS-vprintf_chk.c): Likewise.
23486         (CFLAGS-vfprintf_chk.c): Likewise.
23487         (CFLAGS-gets_chk.c): Likewise.
23488         (CFLAGS-fgets_chk.c): Likewise.
23489         (CFLAGS-fgets_u_chk.c): Likewise.
23490         (CFLAGS-fread_chk.c): Likewise.
23491         (CFLAGS-fread_u_chk.c): Likewise.
23492         (CFLAGS-wprintf_chk.c): Likewise.
23493         (CFLAGS-fwprintf_chk.c): Likewise.
23494         (CFLAGS-vwprintf_chk.c): Likewise.
23495         (CFLAGS-vfwprintf_chk.c): Likewise.
23496         (CFLAGS-fgetws_chk.c): Likewise.
23497         (CFLAGS-fgetws_u_chk.c): Likewise.
23498         * libio/Makefile (CFLAGS-fileops.c): Likewise.
23499         (CFLAGS-fputc.c): Likewise.
23500         (CFLAGS-fputwc.c): Likewise.
23501         (CFLAGS-freopen64.c): Likewise.
23502         (CFLAGS-freopen.c): Likewise.
23503         (CFLAGS-fseek.c): Likewise.
23504         (CFLAGS-fseeko64.c): Likewise.
23505         (CFLAGS-fseeko.c): Likewise.
23506         (CFLAGS-ftello64.c): Likewise.
23507         (CFLAGS-ftello.c): Likewise.
23508         (CFLAGS-fwide.c): Likewise.
23509         (CFLAGS-genops.c): Likewise.
23510         (CFLAGS-getc.c): Likewise.
23511         (CFLAGS-getchar.c): Likewise.
23512         (CFLAGS-getwc.c): Likewise.
23513         (CFLAGS-getwchar.c): Likewise.
23514         (CFLAGS-iofclose.c): Likewise.
23515         (CFLAGS-iofflush.c): Likewise.
23516         (CFLAGS-iofgetpos64.c): Likewise.
23517         (CFLAGS-iofgetpos.c): Likewise.
23518         (CFLAGS-iofgets.c): Likewise.
23519         (CFLAGS-iofgetws.c): Likewise.
23520         (CFLAGS-iofputs.c): Likewise.
23521         (CFLAGS-iofputws.c): Likewise.
23522         (CFLAGS-iofread.c): Likewise.
23523         (CFLAGS-iofsetpos64.c): Likewise.
23524         (CFLAGS-iofsetpos.c): Likewise.
23525         (CFLAGS-ioftell.c): Likewise.
23526         (CFLAGS-iofwrite.c): Likewise.
23527         (CFLAGS-iogetdelim.c): Likewise.
23528         (CFLAGS-iogetline.c): Likewise.
23529         (CFLAGS-iogets.c): Likewise.
23530         (CFLAGS-iogetwline.c): Likewise.
23531         (CFLAGS-ioputs.c): Likewise.
23532         (CFLAGS-ioseekoff.c): Likewise.
23533         (CFLAGS-ioseekpos.c): Likewise.
23534         (CFLAGS-iosetbuffer.c): Likewise.
23535         (CFLAGS-iosetvbuf.c): Likewise.
23536         (CFLAGS-ioungetc.c): Likewise.
23537         (CFLAGS-ioungetwc.c): Likewise.
23538         (CFLAGS-oldfileops.c): Likewise.
23539         (CFLAGS-oldiofclose.c): Likewise.
23540         (CFLAGS-oldiofgetpos64.c): Likewise.
23541         (CFLAGS-oldiofgetpos.c): Likewise.
23542         (CFLAGS-oldiofsetpos64.c): Likewise.
23543         (CFLAGS-oldiofsetpos.c): Likewise.
23544         (CFLAGS-peekc.c): Likewise.
23545         (CFLAGS-putc.c): Likewise.
23546         (CFLAGS-putchar.c): Likewise.
23547         (CFLAGS-putwc.c): Likewise.
23548         (CFLAGS-putwchar.c): Likewise.
23549         (CFLAGS-rewind.c): Likewise.
23550         (CFLAGS-wfileops.c): Likewise.
23551         (CFLAGS-wgenops.c): Likewise.
23552         (CFLAGS-oldiofopen.c): Likewise.
23553         (CFLAGS-iofopen.c): Likewise.
23554         (CFLAGS-iofopen64.c): Likewise.
23555         (CFLAGS-oldtmpfile.c): Likewise.
23556         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23557         (CFLAGS-fprintf.c): Likewise.
23558         (CFLAGS-printf.c): Likewise.
23559         (CFLAGS-vfwprintf.c): Likewise.
23560         (CFLAGS-vfscanf.c): Likewise.
23561         (CFLAGS-vfwscanf.c): Likewise.
23562         (CFLAGS-fscanf.c): Likewise.
23563         (CFLAGS-scanf.c): Likewise.
23564         (CFLAGS-isoc99_vfscanf.c): Likewise.
23565         (CFLAGS-isoc99_vscanf.c): Likewise.
23566         (CFLAGS-isoc99_fscanf.c): Likewise.
23567         (CFLAGS-isoc99_scanf.c): Likewise.
23568         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
23569         (CFLAGS-isoc99_fwscanf.c): Likewise.
23570         (CFLAGS-isoc99_vwscanf.c): Likewise.
23571         (CFLAGS-isoc99_vfwscanf.c): Likewise.
23572
23573         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
23574         after mkstemp64.
23575         * login/tst-utmp.c (do_prepare): Likewise.
23576         * rt/tst-aio.c (do_prepare): Likewise.
23577         * rt/tst-aio64.c (do_prepare): Likewise.
23578
23579 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23580
23581         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
23582         (__lll_lock_elision): Remove adapt_count decrement...
23583         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
23584         (__lll_trylock_elision): Likewise.
23585         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
23586         (__lll_unlock_elision): ... to here. And utilize
23587         new adapt_count parameter.
23588         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23589         (__lll_unlock_elision): Update to include adapt_count
23590         parameter.
23591         (lll_unlock_elision): Pass pointer to adapt_count
23592         variable.
23593
23594 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23595
23596         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
23597         Add elision adapt_count parameter to list of arguments.
23598         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23599         (lll_unlock_elision): Update with new parameter list
23600         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
23601         (lll_unlock_elision): Likewise.
23602         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
23603         (lll_unlock_elision): Likewise.
23604
23605 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23606
23607         [BZ #19122]
23608         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
23609         attribute_hidden.
23610
23611         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
23612         attribute_hidden.
23613         [IS_IN (rtld)] (__strdup): Likewise.
23614         [IS_IN (rtld)] (__strerror_r): Likewise.
23615         [IS_IN (rtld)] (__strsep_g): Likewise.
23616         [IS_IN (rtld)] (memchr): Likewise.
23617         [IS_IN (rtld)] (memcmp): Likewise.
23618         [IS_IN (rtld)] (memcpy): Likewise.
23619         [IS_IN (rtld)] (memmove): Likewise.
23620         [IS_IN (rtld)] (memset): Likewise.
23621         [IS_IN (rtld)] (rawmemchr): Likewise.
23622         [IS_IN (rtld)] (stpcpy): Likewise.
23623         [IS_IN (rtld)] (strchr): Likewise.
23624         [IS_IN (rtld)] (strcmp): Likewise.
23625         [IS_IN (rtld)] (strlen): Likewise.
23626         [IS_IN (rtld)] (strnlen): Likewise.
23627         [IS_IN (rtld)] (strsep): Likewise.
23628
23629         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
23630         attribute_hidden.
23631         [IS_IN (rtld)] (__strtoul_internal): Likewise.
23632
23633         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
23634         attribute_hidden.
23635         [IS_IN (rtld)] (__libc_sigaction): Likewise.
23636
23637         * include/setjmp.h (__longjmp): Add attribute_hidden.
23638         [IS_IN (rtld)] (__sigsetjmp): Likewise.
23639
23640         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
23641         Add attribute_hidden.
23642
23643         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
23644         [IS_IN (rtld)] (__open): Likewise.
23645         [IS_IN (rtld)] (__fcntl): Likewise.
23646
23647         * include/dirent.h (__opendirat): Add attribute_hidden.
23648         (__getdents): Likewise.
23649         (__getdents64): Likewise.
23650         (__alloc_dir): Likewise.
23651         [IS_IN (rtld)] (__closedir): Likewise.
23652         [IS_IN (rtld)] (__fdopendir): Likewise.
23653         [IS_IN (rtld)] (__readdir): Likewise.
23654         [IS_IN (rtld)] (__readdir64): Likewise.
23655         [IS_IN (rtld)] (__rewinddir): Likewise.
23656
23657         * include/dlfcn.h (_dl_catch_error): Moved to ...
23658         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
23659         attribute_hidden.
23660
23661         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
23662         (_itoa_word): Likewise.
23663
23664         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
23665         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
23666         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
23667         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
23668         (_dl_higher_prime_number): Likewise.
23669         (_dl_debug_printf_c): Likewise.
23670         (_dl_signal_cerror): Likewise.
23671         (_dl_receive_error): Likewise.
23672         (_dl_reloc_bad_type): Likewise.
23673         (_dl_resolve_conflicts): Likewise.
23674         (_dl_check_all_versions): Likewise.
23675         (_dl_check_map_versions): Likewise.
23676         (_dl_sort_fini): Likewise.
23677         (_dl_debug_initialize): Likewise.
23678         (_dl_init_paths): Likewise.
23679         (_dl_show_auxv): Likewise.
23680         (_dl_next_ld_env_entry): Likewise.
23681         (_dl_important_hwcaps): Likewise.
23682         (_dl_load_cache_lookup): Likewise.
23683         (_dl_update_slotinfo): Likewise.
23684         (_dl_show_scope): Likewise.
23685
23686         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
23687         attribute_hidden.
23688         (_wordcopy_fwd_dest_aligned): Likewise.
23689         (_wordcopy_bwd_aligned): Likewise.
23690         (_wordcopy_bwd_dest_aligned): Likewise.
23691
23692         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
23693         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23694         Likewise.
23695         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23696         Likewise.
23697         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
23698
23699 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23700
23701         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
23702         GCC 5 requirement.
23703
23704 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23705
23706         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
23707         test.
23708         * sysdeps/i386/configure: Regenerated.
23709         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
23710         code unconditional.
23711
23712         * configure.ac (libc_cv_asm_previous_directive): Remove configure
23713         test.
23714         (libc_cv_asm_popsection_directive): Likewise.
23715         * configure: Regenerated.
23716         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
23717         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
23718         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
23719         (__make_section_unallocated): Make definition unconditional.
23720         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
23721         Remove conditional definition.
23722         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
23723         (__make_section_unallocated): Likewise.
23724
23725         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
23726         * configure: Regenerated.
23727         * config.make.in (static-libgcc): Remove variable.
23728         * Makerules (build-shlib-helper): Use -static-libgcc instead of
23729         $(static-libgcc).
23730         (build-module-helper): Likewise.
23731
23732         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
23733         * configure: Regenerated.
23734
23735 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23736
23737         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
23738         (struct char_buffer): New type.
23739         (char_buffer_start, char_buffer_size, char_buffer_error)
23740         (char_buffer_rewind, char_buffer_add): New functions.
23741         (ADDW): Remove macro, replaced by the char_buffer_add function.
23742         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
23743         of extend_alloca.  Make control flow more explicit.
23744
23745 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23746
23747         [BZ #19137]
23748         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
23749         Add -fomit-frame-pointer.
23750         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
23751
23752 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23753
23754         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
23755         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
23756         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
23757         only if !__GNUC_PREREQ (5,0).
23758         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
23759         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
23760         (INTERNAL_SYSCALL_NCS): Likewise.
23761         (LOADREGS_0): New macro for GCC 5.
23762         (ASMARGS_0): Likewise.
23763         (LOADREGS_1): Likewise.
23764         (ASMARGS_1): Likewise.
23765         (LOADREGS_2): Likewise.
23766         (ASMARGS_2): Likewise.
23767         (LOADREGS_3): Likewise.
23768         (ASMARGS_3): Likewise.
23769         (LOADREGS_4): Likewise.
23770         (ASMARGS_4): Likewise.
23771         (LOADREGS_5): Likewise.
23772         (ASMARGS_5): Likewise.
23773         (LOADREGS_6): Likewise.
23774         (ASMARGS_6): Likewise.
23775
23776 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23777
23778         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
23779         -fomit-frame-pointer.
23780         (CFLAGS-mmap64.c): Likewise.
23781         (CFLAGS-semtimedop.c): Likewise.
23782         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
23783         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
23784         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
23785         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
23786
23787 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23788
23789         [BZ #18928]
23790         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
23791         _dl_pointer_guard member.
23792         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
23793         initializer.
23794         (security_init): Always set up pointer guard.
23795         (process_envvars): Do not process LD_POINTER_GUARD.
23796
23797 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
23798
23799         [BZ #19134]
23800         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
23801         (.LC2): Likewise.
23802         (.LC3): Likewise.
23803         (__lround): Do not add 0.5 to integer or out-of-range arguments.
23804
23805 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23806
23807         [BZ #19129]
23808         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
23809         r0 and r1.
23810
23811 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
23812
23813         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
23814
23815 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
23816
23817         * include/stap-probe.h: Fix macro definition formatting.
23818
23819 2015-10-14  Florian Weimer  <fweimer@redhat.com>
23820
23821         [BZ #19074]
23822         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
23823         load and store num_ifs.
23824
23825 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23826
23827         [BZ #18822]
23828         * sysdeps/unix/sysv/linux/sched_getaffinity.c
23829         (__sched_getaffinity_new): Add libc_hidden_proto and
23830         libc_hidden_def.
23831
23832 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23833
23834         [BZ #19007]
23835         * scripts/localplt.awk: Also allow GOT references.
23836         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
23837         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
23838         with "+ REL R_386_GLOB_DAT".
23839         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
23840         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
23841
23842 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23843
23844         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
23845         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23846         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
23847         Likewise.
23848         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
23849         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
23850         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
23851         INTERNAL_SYSCALLINTERNAL_SYSCALL and
23852         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23853         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
23854         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23855         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
23856         Likewise.
23857         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23858
23859 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23860
23861         [BZ #19125]
23862         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
23863         <math_private.h> and <stdint.h>.
23864         (__llround): Avoid conversions to and from long long int, and
23865         subtractions, where those might raise spurious exceptions.
23866         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
23867         <math_private.h> and <stdint.h>.
23868         (__llroundf): Avoid conversions to and from long long int, and
23869         subtractions, where those might raise spurious exceptions.
23870
23871 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23872
23873         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
23874         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23875         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
23876         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
23877         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
23878         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
23879         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
23880         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
23881         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
23882         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
23883         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
23884         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23885         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
23886         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23887         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23888         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
23889         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
23890         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
23891         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
23892         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
23893         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
23894         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
23895         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
23896         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
23897         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
23898         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
23899         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
23900         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
23901         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23902         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
23903         (__xstat64_conv): Likewise.
23904         (__xstat32_conv): Likewise.
23905
23906 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23907
23908         * sysdeps/unix/sysv/linux/sysdep.h: New file.
23909         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
23910         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
23911         <sysdeps/unix/sysv/linux/sysdep.h>.
23912         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23913         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
23914         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
23915         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23916         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23917         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
23918         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
23919         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
23920         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
23921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23923         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23924         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23925         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23926         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23927         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23928         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
23929         (sysdep-dl-routines): Add sysdep.
23930         [$(subdir) == nptl] (libpthread-routines): Likewise.
23931         [$(subdir) == rt] (librt-routines): Likewise.
23932         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
23933         PIC when branching to SYSCALL_ERROR_LABEL.
23934         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
23935         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
23936         <sysdeps/unix/sysv/linux/sysdep.h>.
23937         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
23938         (SYSCALL_ERROR_ERRNO): Removed.
23939         (SYSCALL_ERROR_HANDLER): Changed to empty.
23940         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
23941         (__syscall_error): New prototype.
23942         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
23943         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
23944
23945 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23946
23947         [BZ #19124]
23948         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
23949         (_dl_runtime_resolve_avx512): Make it a hidden alias of
23950         _dl_runtime_resolve_avx.
23951         (_dl_runtime_profile_avx512): Make it a hidden alias of
23952         _dl_runtime_profile_avx.
23953
23954 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23955
23956         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
23957         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
23958         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
23959         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
23960
23961         [BZ #16422]
23962         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
23963         New configure test.
23964         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
23965         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
23966         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
23967         <math_private.h> and <stdint.h>.
23968         (__llrint): Avoid conversions to long long int where those might
23969         raise spurious exceptions.
23970         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
23971         <math_private.h> and <stdint.h>.
23972         (__llrintf): Avoid conversions to long long int where those might
23973         raise spurious exceptions.
23974
23975 2015-10-12  Andreas Schwab  <schwab@suse.de>
23976
23977         [BZ #18969]
23978         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
23979         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
23980         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
23981         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
23982         $(gen-locales).
23983         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
23984         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
23985         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
23986         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
23987         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
23988         $(gen-locales).
23989         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
23990         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
23991         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
23992         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
23993         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
23994         ($(objpfx)tst-ftell-active-handler.out)
23995         ($(objpfx)tst-ftell-append.out)
23996         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
23997         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
23998         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
23999         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
24000         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
24001         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
24002         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
24003         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
24004         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
24005         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
24006         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
24007         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
24008         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
24009         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
24010         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
24011         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
24012         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
24013         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
24014         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
24015         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
24016         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
24017         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
24018         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
24019         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
24020         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
24021         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
24022         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
24023         $(gen-locales).
24024         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
24025         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
24026         $(gen-locales).
24027         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
24028         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
24029         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
24030         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
24031         $(gen-locales).
24032         * libio/tst_wprintf2.c (main): Use explicit locale.
24033         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
24034
24035 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24036
24037         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
24038         __msg_sig_post.
24039         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
24040
24041 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24042
24043         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
24044         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24045
24046         * sysdeps/arm/libm-test-ulps: Regenerated.
24047
24048         [BZ #15470]
24049         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
24050
24051         [BZ #16399]
24052         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
24053         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
24054         and <fix-fp-int-convert-overflow.h>.
24055         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
24056         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24057         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
24058         and <fix-fp-int-convert-overflow.h>.
24059         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
24060         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24061         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
24062         <fix-fp-int-convert-overflow.h>.
24063         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
24064         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24065         * sysdeps/ieee754/dbl-64/s_lround.c: Include
24066         <fix-fp-int-convert-overflow.h>.
24067         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
24068         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24069         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
24070         and <fix-fp-int-convert-overflow.h>.
24071         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24072         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24073         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
24074         <limits.h> and <fix-fp-int-convert-overflow.h>.
24075         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24076         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24077         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
24078         and <fix-fp-int-convert-overflow.h>.
24079         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24080         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24081         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
24082         and <fix-fp-int-convert-overflow.h>.
24083         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24084         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24085         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
24086
24087 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
24088
24089         [BZ #18589]
24090         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
24091         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
24092         $(gen-locales).
24093
24094 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24095             Phil Blundell <pb@pbcl.net>
24096
24097         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
24098         * nptl/tst-cancel26.c: New file.
24099         * nptl/tst-cancel27.c: Likewise.
24100
24101 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
24102
24103         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
24104         __ILP32__ isn't defined.
24105         (lrint): Likewise.
24106         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
24107         (lrintf): Likewise.
24108         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
24109         (lrintl): Likewise.
24110         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
24111         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
24112         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
24113
24114 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24115
24116         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
24117         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
24118
24119         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
24120         file.
24121         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
24122         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
24123
24124 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24125
24126         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
24127         configure test.
24128         * sysdeps/i386/configure: Regenerated.
24129         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
24130         configure test.
24131         * sysdeps/x86_64/configure: Regenerated.
24132         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
24133         Make code unconditional.
24134
24135         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
24136         test.
24137         * sysdeps/i386/configure: Regenerated.
24138         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
24139         test.
24140         * sysdeps/x86_64/configure: Regenerated.
24141         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
24142         Make code unconditional.
24143         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
24144         Likewise.
24145         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
24146         Likewise.
24147         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24148         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
24149         code unconditional.
24150         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24151         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
24152         code unconditional.
24153         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24154         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
24155         code unconditional.
24156         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
24157         code unconditional.
24158         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24159         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
24160         code unconditional.
24161         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24162         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
24163         code unconditional.
24164         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24165         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
24166         code unconditional.
24167         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24168         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
24169         code unconditional.
24170         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24171         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
24172
24173         [BZ #19095]
24174         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
24175         mantissa to long int before shifting left.
24176
24177 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24178
24179         [BZ #19094]
24180         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
24181         <limits.h>.
24182         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24183         when result overflows but exception would not result from cast.
24184         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
24185         <limits.h>.
24186         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24187         when result overflows but exception would not result from cast.
24188         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
24189         <limits.h>.
24190         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24191         when result overflows but exception would not result from cast.
24192         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
24193         <limits.h>.
24194         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24195         when result overflows but exception would not result from cast.
24196         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
24197         <limits.h>.
24198         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24199         when result overflows but exception would not result from cast.
24200         * math/libm-test.inc (lrint_test_data): Add more tests.
24201         (llrint_test_data): Likewise.
24202
24203 2015-10-08  Roland McGrath  <roland@hack.frob.com>
24204
24205         [BZ #18872]
24206         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
24207         Move out from under [$(run-built-tests) = yes] conditional.
24208         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
24209         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
24210
24211 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
24212
24213         [BZ #18589]
24214         * string/Makefile (tests): Add bug-strcoll2.
24215         (LOCALES): Add cs_CZ.UTF-8.
24216         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
24217
24218         [BZ #18589]
24219         * string/bug-strcoll2.c: New file.
24220         * locale/categories.def: Revert commit
24221         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
24222         * locale/langinfo.h: Likewise.
24223         * locale/localeinfo.h: Likewise.
24224         * locale/C-collate.c: Likewise.
24225         * locale/programs/ld-collate.c (collate_output): Likewise.
24226         * string/strcoll_l.c (STRDIFF): Likewise.
24227         (STRCOLL): Likewise.
24228         * wcsmbs/wcscoll_l.c: Likewise.
24229
24230 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24231
24232         * math/libm-test.inc (lround_test_data): Do not expect the absence
24233         of "inexact" for some tests with non-integer arguments.
24234         (llround_test_data): Likewise.
24235
24236         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
24237         test.
24238         (libc_cv_cc_sse2avx): Likewise.
24239         * sysdeps/i386/configure: Regenerated.
24240         * sysdeps/i386/i686/multiarch/Makefile
24241         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
24242         [$(subdir) = math].
24243         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
24244         code unconditional.
24245         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24246         Likewise.
24247         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
24248         Likewise.
24249         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24250         Likewise.
24251         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
24252         test.
24253         (libc_cv_cc_sse2avx): Likewise.
24254         * sysdeps/x86_64/configure: Regenerated.
24255         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
24256         unconditional.
24257         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
24258         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
24259         unconditional.
24260         (_dl_runtime_profile)
24261         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
24262         conditional code.
24263         * sysdeps/x86_64/fpu/multiarch/Makefile
24264         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
24265         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
24266         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24267         * sysdeps/x86_64/fpu/multiarch/e_exp.c
24268         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24269         * sysdeps/x86_64/fpu/multiarch/e_log.c
24270         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24271         * sysdeps/x86_64/fpu/multiarch/s_atan.c
24272         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24273         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24274         Likewise.
24275         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24276         Likewise.
24277         * sysdeps/x86_64/fpu/multiarch/s_sin.c
24278         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24279         * sysdeps/x86_64/fpu/multiarch/s_tan.c
24280         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24281         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
24282         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
24283         (HAVE_SSE2AVX_SUPPORT): Likewise.
24284
24285 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
24286
24287         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
24288         instead of #pragma optimize.
24289
24290 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24291
24292         [BZ #17195]
24293         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
24294         as is similarly done in systrim and _int_free already.
24295
24296 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24297
24298         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
24299
24300 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24301
24302         [BZ #19088]
24303         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
24304         <limits.h>.
24305         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24306         overflows but exception would not result from cast.
24307         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
24308         and <limits.h>.
24309         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24310         overflows but exception would not result from cast.
24311         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
24312         <limits.h>.
24313         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24314         overflows but exception would not result from cast.
24315         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
24316         <limits.h>.
24317         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24318         overflows but exception would not result from cast.
24319         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
24320         <limits.h>.
24321         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24322         overflows but exception would not result from cast.
24323         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
24324         <limits.h>.
24325         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24326         overflows but exception would not result from cast.
24327         * math/libm-test.inc (lround_test_data): Add more tests.
24328         (llround_test_data): Likewise.
24329
24330 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
24331
24332         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
24333         (CFLAGS-ialloc.c): Ditto.
24334         (CFLAGS-scheck.c): Ditto.
24335
24336 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24337
24338         [BZ #19086]
24339         * manual/filesys.texi (Storage Allocation): Fix argument order for
24340         posix_fallocate64.
24341
24342 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24343
24344         [BZ #19085]
24345         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
24346         exponent below 48 inside case for non-overflowing exponent.
24347         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
24348
24349 2015-10-07  Florian Weimer  <fweimer@redhat.com>
24350
24351         * iconvdata/cp737.h (from_idx): Add const.
24352         * iconvdata/cp775.h (from_idx): Likewise.
24353
24354 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24355
24356         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
24357         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
24358         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
24359
24360         [BZ #19079]
24361         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
24362         file, conditioned on [!_LP64].
24363         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
24364         [!_LP64] (__lround): Do not define as function or alias.
24365         [!_LP64] (lround): Likewise.
24366         [!_LP64] (__lroundl): Likewise.
24367         [!_LP64] (lroundl): Likewise.
24368         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
24369         macro.
24370         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
24371         Likewise.
24372
24373 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24374
24375         * math/libm-test.inc (lrint_test_data): Add more tests.
24376         (llrint_test_data): Likewise.
24377         (lround_test_data): Likewise.
24378         (llround_test_data): Likewise.
24379
24380         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
24381         (llrint_test_data): Add tests used for lrint.
24382
24383         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
24384         test.
24385         * sysdeps/i386/configure: Regenerated.
24386         * sysdeps/i386/i686/multiarch/Makefile
24387         [$(config-cflags-sse4) = yes]: Make code unconditional.
24388         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24389         Likewise.
24390         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
24391         Likewise.
24392         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
24393         test.
24394         * sysdeps/x86_64/configure: Regenerated.
24395         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
24396         Make code unconditional.
24397         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24398         Likewise.
24399         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
24400         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
24401
24402         * scripts/rpm2dynsym.sh: Remove file.
24403
24404 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24405
24406         * configure.ac (libc_cv_cxx_thread_local): Define.
24407         * configure: Regenerate.
24408         * config.make.in (have-cxx-thread_local): Define.
24409         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
24410         (LDLIBS-tst-thread_local1): Define.
24411         (tests): Add tst-thread_local1.
24412         [have-cxx-thread_local != yes] (tests-unsupported): Add
24413         tst-thread_local1.
24414         * nptl/tst-thread_local1.cc: New file.
24415
24416 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24417
24418         [BZ #19078]
24419         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
24420         (u_thres): Likewise.
24421         (__expl): Determine whether to call __kernel_standard_l based on
24422         value of result, not argument.
24423
24424         * math/libm-test.inc (scalb_test_data): Add more expectations for
24425         the "inexact" exception.
24426
24427         [BZ #19077]
24428         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
24429         0.0L for argument 1.0L.
24430
24431         [BZ #19076]
24432         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
24433         constant 0.0L when computing infinite result.
24434
24435 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24436
24437         [BZ #10432]
24438         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
24439         malloc_usable_size.
24440
24441 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24442
24443         [BZ #19018]
24444         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
24445         Mangle function pointer before storing it.
24446         (__call_tls_dtors): Demangle function pointer before calling it.
24447
24448 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24449
24450         [BZ #19012]
24451         * iconv/gconv_db.c (gen_steps): Check for additional errors.
24452         Clean up on failure.
24453
24454 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
24455
24456         [BZ #19071]
24457         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
24458         long int variable to store possibly incremented high part of
24459         mantissa.
24460         * math/libm-test.inc (lround_test_data): Add tests used for
24461         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
24462         for tests requiring 64-bit long.  Do not condition tests on
24463         [TEST_FLOAT] unnecessarily.
24464         (llround_test_data): Add tests used for lround.  Add another
24465         expectation for the "inexact" exception.  Do not condition tests
24466         on [TEST_FLOAT] unnecessarily.
24467
24468         [BZ #887]
24469         [BZ #19049]
24470         [BZ #19050]
24471         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
24472         * sysdeps/ieee754/dbl-64/e_log10.c: Include
24473         <fix-int-fp-convert-zero.h>.
24474         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24475         * sysdeps/ieee754/dbl-64/e_log2.c: Include
24476         <fix-int-fp-convert-zero.h>.
24477         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24478         * sysdeps/ieee754/dbl-64/s_erf.c: Include
24479         <fix-int-fp-convert-zero.h>.
24480         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24481         * sysdeps/ieee754/dbl-64/s_logb.c: Include
24482         <fix-int-fp-convert-zero.h>.
24483         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24484         * sysdeps/ieee754/flt-32/e_log10f.c: Include
24485         <fix-int-fp-convert-zero.h>.
24486         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24487         * sysdeps/ieee754/flt-32/e_log2f.c: Include
24488         <fix-int-fp-convert-zero.h>.
24489         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24490         * sysdeps/ieee754/flt-32/s_erff.c: Include
24491         <fix-int-fp-convert-zero.h>.
24492         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24493         * sysdeps/ieee754/flt-32/s_logbf.c: Include
24494         <fix-int-fp-convert-zero.h>.
24495         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24496         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
24497         <fix-int-fp-convert-zero.h>.
24498         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24499         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
24500         <fix-int-fp-convert-zero.h>.
24501         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24502         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
24503         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
24504         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
24505         file.
24506         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
24507
24508 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
24509
24510         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24511
24512 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
24513
24514         [BZ #19059]
24515         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
24516         overflowing computation.
24517         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24518         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24519         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24520         Likewise.
24521         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24522         Likewise.
24523         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24524         Likewise.
24525         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24526         Likewise.
24527         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24528         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24529         Likewise.
24530         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24531         Likewise.
24532         * math/libm-test.inc (nexttoward_test_data): Add more tests.
24533
24534         * nss/rewrite_field.c (__nss_rewrite_field): Use
24535         internal_function.
24536         * nss/valid_field.c (__nss_valid_field): Likewise.
24537         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24538
24539 2015-10-02  Florian Weimer  <fweimer@redhat.com>
24540
24541         [BZ #18724]
24542         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
24543         (__nss_invalid_field_characters, __nss_valid_field)
24544         (__nss_valid_list_field, __nss_rewrite_field): Declare.
24545         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
24546         tst-field.c: New file.
24547         * nss/Makefile (routines): Add valid_field, rewrite_field.
24548         (tests-static): Define unconditionally.
24549         (tests): Include tests-static.
24550         [build-static-nss] (tests-static): Use append.
24551         [build-static-nss] (tests): Remove modification.
24552         * nss/getent.c (print_group): Call putgrent.  Report error.
24553         (print_gshadow): Call putsgent.  Report error.
24554         (print_passwd): Call putpwent.  Report error.
24555         (print_shadow): Call putspent.  Report error.
24556         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
24557         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
24558         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
24559         name, password, directory, shell fields for valid syntax.  Rewrite
24560         GECOS field to match syntax.
24561         * pwd/Makefile (tests): Add tst-putpwent.
24562         * pwd/tst-putpwent.c: New file.
24563         * grp/putgrent.c (putgrent): Convert to ISO function definition.
24564         Check grName, grpasswd, gr_mem fields for valid syntax.
24565         Change loop variable i to size_t.
24566         * grp/Makefile (tests): Add tst-putgrent.
24567         * grp/tst-putgrent.c: New file.
24568         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
24569         valid syntax.
24570         * shadow/Makefile (tests): Add tst-putspent.
24571         * shadow/tst-putspent.c: New file.
24572         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
24573         sg_mem fields for valid syntax.
24574         * gshadow/Makefile (tests): Add tst-putsgent.
24575         * gshadow/tst-putsgent.c: New file.
24576
24577 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24578
24579         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
24580         assembly instructions.
24581
24582 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24583
24584         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
24585         prefix from operands.
24586
24587 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
24588
24589         [BZ #16347]
24590         [BZ #19046]
24591         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
24592         <libc-internal.h>.
24593         (MAXLGM): Do not use diagnostic control macros.
24594         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
24595         threshold for ldbl-128ibm.
24596         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
24597         instead of multiplying by log then subtracting.
24598         * math/auto-libm-test-in: Add more tests of lgamma.
24599         * math/auto-libm-test-out: Regenerated.
24600
24601         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
24602         (TYPE_HEX_DIG): Likewise.
24603         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
24604         precisions when printing floating-point numbers.
24605         (check_float_internal): Likewise.
24606
24607 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24608
24609         [BZ #16620]
24610         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
24611         of log (10) rounded downward to 48 bits.
24612         (log10_low): Use corresponding low part of log (10).
24613
24614         [BZ #19032]
24615         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
24616         compute result as (x - x) / (x - x) not as 0 / 0.
24617         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
24618         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
24619
24620         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
24621         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
24622         and expm1.
24623         * math/auto-libm-test-out: Regenerated.
24624         * math/libm-test.inc (acos_test_data): Add more tests.
24625         (asin_test_data): Likewise.
24626         (asinh_test_data): Likewise.
24627         (atan_test_data): Likewise.
24628         (atanh_test_data): Likewise.
24629         (atan2_test_data): Likewise.
24630         (cbrt_test_data): Likewise.
24631         (ceil_test_data): Likewise.
24632         (copysign_test_data): Likewise.
24633         (cos_test_data): Likewise.
24634         (cosh_test_data): Likewise.
24635         (erf_test_data): Likewise.
24636         (erfc_test_data): Likewise.
24637         (exp_test_data): Likewise.
24638         (exp10_test_data): Likewise.
24639         (exp2_test_data): Likewise.
24640         (expm1_test_data): Likewise.
24641         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24642
24643 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
24644
24645         [BZ #19006]
24646         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
24647         to ...
24648         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
24649         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
24650         to ...
24651         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
24652         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
24653         to ...
24654         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
24655         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
24656         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
24657         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
24658         to ...
24659         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
24660         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
24661         Moved to ...
24662         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
24663         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
24664         Moved to ...
24665         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
24666         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
24667         to ...
24668         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
24669         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
24670         Moved to ...
24671         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
24672         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
24673         to ...
24674         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
24675         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
24676         Removed.
24677         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
24678         Likewise.
24679         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
24680         Likewise.
24681         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
24682         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
24683         Likewise.
24684         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
24685         Likewise.
24686         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
24687         Likewise.
24688         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
24689         Likewise.
24690         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
24691         Likewise.
24692         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
24693         Likewise.
24694         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
24695         Likewise.
24696         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
24697         Likewise.
24698         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
24699         Likewise.
24700         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
24701         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
24702         Likewise.
24703         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
24704         Likewise.
24705         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
24706         Likewise.
24707         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
24708         Likewise.
24709         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
24710         Likewise.
24711         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
24712         Replace ../i486/pthread_cond_timedwait.S with
24713         ../pthread_cond_timedwait.S.
24714
24715 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24716
24717         * math/libm-test.inc (acos_test_data): Refine expectations for
24718         errno and "inexact" exceptions.
24719         (acosh_test_data): Likewise.
24720         (asin_test_data): Likewise.
24721         (asinh_test_data): Likewise.
24722         (atan_test_data): Likewise.
24723         (atanh_test_data): Likewise.
24724         (atan2_test_data): Likewise.
24725         (cbrt_test_data): Likewise.
24726         (ceil_test_data): Likewise.
24727         (copysign_test_data): Likewise.
24728         (cosh_test_data): Likewise.
24729         (erf_test_data): Likewise.
24730         (erfc_test_data): Likewise.
24731         (exp_test_data): Likewise.
24732         (exp10_test_data): Likewise.
24733         (exp2_test_data): Likewise.
24734         (expm1_test_data): Likewise.
24735         (fabs_test_data): Likewise.
24736         (floor_test_data): Likewise.
24737         (fma_test_data): Likewise.
24738         (fmax_test_data): Likewise.
24739         (fmin_test_data): Likewise.
24740         (fmod_test_data): Likewise.
24741         (fpclassify_test_data): Likewise.
24742         (frexp_test_data): Likewise.
24743         (hypot_test_data): Likewise.
24744         (ilogb_test_data): Likewise.
24745         (isgreater_test_data): Likewise.
24746         (isgreaterequal_test_data): Likewise.
24747         (isinf_test_data): Likewise.
24748         (isless_test_data): Likewise.
24749         (islessequal_test_data): Likewise.
24750         (islessgreater_test_data): Likewise.
24751         (isnan_test_data): Likewise.
24752         (isnormal_test_data): Likewise.
24753         (issignaling_test_data): Likewise.
24754         (isunordered_test_data): Likewise.
24755         (j0_test_data): Likewise.
24756         (j1_test_data): Likewise.
24757         (jn_test_data): Likewise.
24758         (lgamma_test_data): Likewise.
24759         (lrint_test_data): Likewise.
24760         (llrint_test_data): Likewise.
24761         (log_test_data): Likewise.
24762         (log10_test_data): Likewise.
24763         (log1p_test_data): Likewise.
24764         (log2_test_data): Likewise.
24765         (logb_test_data): Likewise.
24766         (lround_test_data): Likewise.
24767         (llround_test_data): Likewise.
24768         (modf_test_data): Likewise.
24769         (nearbyint_test_data): Likewise.
24770         (nextafter_test_data): Likewise.
24771         (nexttoward_test_data): Likewise.
24772         (pow_test_data): Likewise.
24773         (remainder_test_data): Likewise.
24774         (remquo_test_data): Likewise.
24775         (rint_test_data): Likewise.
24776         (round_test_data): Likewise.
24777         (signbit_test_data): Likewise.
24778         (sinh_test_data): Likewise.
24779         (sqrt_test_data): Likewise.
24780         (tanh_test_data): Likewise.
24781         (tgamma_test_data): Likewise.
24782         (trunc_test_data): Likewise.
24783         (y0_test_data): Likewise.
24784         (y1_test_data): Likewise.
24785         (yn_test_data): Likewise.
24786         (significand_test_data): Likewise.
24787
24788 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
24789
24790         * manual/filesys.texi (Storage Allocation): Document that
24791         posix_fallocate emulation fails when fd is open with O_WRONLY.
24792
24793 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
24794
24795         [BZ #19016]
24796         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
24797         allow more cases with X^2 + Y^2 >= 0.5.
24798         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
24799         normal element in sum instead of special-casing based on values of
24800         arguments.
24801         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
24802         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
24803         -1 as normal element in sum instead of special-casing based on
24804         values of arguments.
24805         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
24806         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
24807         (__x2y2m1): Update comment.
24808         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
24809         as normal element in sum instead of special-casing based on values
24810         of arguments.
24811         * math/s_clog.c (__clog): Handle more cases using log1p without
24812         hypot.
24813         * math/s_clog10.c (__clog10): Likewise.
24814         * math/s_clog10f.c (__clog10f): Likewise.
24815         * math/s_clog10l.c (__clog10l): Likewise.
24816         * math/s_clogf.c (__clogf): Likewise.
24817         * math/s_clogl.c (__clogl): Likewise.
24818         * math/auto-libm-test-in: Add more tests of clog and clog10.
24819         * math/auto-libm-test-out: Regenerated.
24820         * sysdeps/i386/fpu/libm-test-ulps: Update.
24821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24822
24823 2015-09-28  Martin Sebor  <msebor@redhat.com>
24824
24825         [BZ #18969]
24826         * string/Makefile (LOCALES): Define.
24827         (gen-locales.mk): Include.
24828         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
24829         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
24830         * string/tst-strxfrm2.c (do_test): Print the name of the locale
24831         on setlocale failure.
24832
24833 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
24834
24835         [BZ #18985]
24836         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
24837         (__strftime_internal): Likewise.
24838         * time/tst-strftime.c (do_bz18985): New test.
24839         (do_test): Call it.
24840
24841 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
24842
24843         [BZ #18956]
24844         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
24845         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
24846         extracting high part.
24847         * math/auto-libm-test-in: Add another test of pow.
24848         * math/auto-libm-test-out: Regenerated.
24849         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24850
24851 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24852
24853         [BZ #18825]
24854         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
24855         New macro.
24856         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
24857         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24858         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
24859         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
24860         DBL_NARROW_EVAL, reloading the PIC register as needed.
24861         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
24862         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
24863         FLT_NARROW_EVAL.  Use separate return path for case when first
24864         argument is NaN.
24865         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
24866         DEFINE_LDBL_MIN.
24867         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
24868         PIC register.
24869         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
24870         math_check_force_underflow_nonneg.
24871         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
24872         underflow for subnormal result.
24873         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
24874         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
24875         math_check_force_underflow_nonneg.
24876         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
24877         math_check_force_underflow.
24878         * sysdeps/x86_64/fpu/x86_64-math-asm.h
24879         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
24880         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
24881         DEFINE_LDBL_MIN.
24882         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
24883         * math/auto-libm-test-in: Add more tests of pow.
24884         * math/auto-libm-test-out: Regenerated.
24885
24886 2015-09-25  Florian Weimer  <fweimer@redhat.com>
24887
24888         * nss/bug17079.c (init_test_items): Add diagnostic for
24889         inconsistent entries.
24890         (test_buffer_size): Skip inconsistent entries.
24891
24892 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24893
24894         [BZ #13304]
24895         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
24896         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24897         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
24898
24899         [BZ #13304]
24900         * sysdeps/microblaze/s_fma.c: New file.
24901         * sysdeps/microblaze/s_fmaf.c: Likewise.
24902         * sysdeps/microblaze/sfp-machine.h: Likewise.
24903
24904 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
24905
24906         [BZ #17250]
24907         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
24908         member.
24909
24910 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24911
24912         [BZ #18803]
24913         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
24914         (MO): New macro.
24915         (__ieee754_hypot) [PIC]: Load PIC register.
24916         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
24917         DBL_NARROW_EVAL.
24918         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
24919         math_check_force_underflow_nonneg in case where result might be
24920         tiny.
24921         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
24922         Likewise.
24923         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24924         Likewise.
24925         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
24926         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
24927         * math/auto-libm-test-in: Add more tests of hypot.
24928         * math/auto-libm-test-out: Regenerated.
24929
24930 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
24931
24932         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
24933
24934 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24935
24936         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
24937         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
24938         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24939         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24940         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
24941         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24942         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24943
24944         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
24945         LOAD_PIC_REG.
24946
24947         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
24948         (FLT_CHECK_FORCE_UFLOW): Likewise.
24949         (DBL_CHECK_FORCE_UFLOW): Likewise.
24950         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
24951         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
24952         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
24953         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24954         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24955         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24956         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24957         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24958         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
24959         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24960         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
24961         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
24962         (flt_min): Replace with use of DEFINE_FLT_MIN.
24963         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
24964         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
24965         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24966         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
24967         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
24968         (flt_min): Replace with use of DEFINE_FLT_MIN.
24969         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
24970         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
24971         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24972         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
24973         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
24974         (flt_min): Replace with use of DEFINE_FLT_MIN.
24975         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
24976         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
24977         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24978         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24979         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
24980         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24981         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24982         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
24983         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24984         (__atan): Use DBL_CHECK_FORCE_UFLOW.
24985         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
24986         (flt_min): Replace with use of DEFINE_FLT_MIN.
24987         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
24988         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
24989         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24990         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
24991         main computation.
24992         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
24993         (flt_min): Replace with use of DEFINE_FLT_MIN.
24994         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
24995         main computation.
24996         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
24997         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24998         (MO): New macro.
24999         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
25000         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
25001         (flt_min): Replace with use of DEFINE_FLT_MIN.
25002         (MO): New macro.
25003         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
25004         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
25005         (__log1pl): Use MO.
25006
25007         [BZ #19003]
25008         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
25009         $(config-cflags-nofma).
25010
25011 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25012
25013         * sysdeps/aarch64/libm-test-ulps: Regenerated.
25014
25015 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
25016
25017         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
25018         (TWO127): Likewise.
25019
25020         * sysdeps/generic/math_private.h (fabs_tg): New macro.
25021         (min_of_type): Likewise.
25022         (math_check_force_underflow): Likewise.
25023         (math_check_force_underflow_nonneg): Likewise.
25024         (math_check_force_underflow_complex): Likewise.
25025         * math/e_exp2l.c (__ieee754_exp2l): Use
25026         math_check_force_underflow_nonneg.
25027         * math/k_casinh.c (__kernel_casinh): Likewise.
25028         * math/k_casinhf.c (__kernel_casinhf): Likewise.
25029         * math/k_casinhl.c (__kernel_casinhl): Likewise.
25030         * math/s_catan.c (__catan): Use
25031         math_check_force_underflow_complex.
25032         * math/s_catanf.c (__catanf): Likewise.
25033         * math/s_catanh.c (__catanh): Likewise.
25034         * math/s_catanhf.c (__catanhf): Likewise.
25035         * math/s_catanhl.c (__catanhl): Likewise.
25036         * math/s_catanl.c (__catanl): Likewise.
25037         * math/s_ccosh.c (__ccosh): Likewise.
25038         * math/s_ccoshf.c (__ccoshf): Likewise.
25039         * math/s_ccoshl.c (__ccoshl): Likewise.
25040         * math/s_cexp.c (__cexp): Likewise.
25041         * math/s_cexpf.c (__cexpf): Likewise.
25042         * math/s_cexpl.c (__cexpl): Likewise.
25043         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
25044         * math/s_clog10.c (__clog10): Likewise.
25045         * math/s_clog10f.c (__clog10f): Likewise.
25046         * math/s_clog10l.c (__clog10l): Likewise.
25047         * math/s_clogf.c (__clogf): Likewise.
25048         * math/s_clogl.c (__clogl): Likewise.
25049         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
25050         * math/s_csinf.c (__csinf): Likewise.
25051         * math/s_csinh.c (__csinh): Likewise.
25052         * math/s_csinhf.c (__csinhf): Likewise.
25053         * math/s_csinhl.c (__csinhl): Likewise.
25054         * math/s_csinl.c (__csinl): Likewise.
25055         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
25056         * math/s_csqrtf.c (__csqrtf): Likewise.
25057         * math/s_csqrtl.c (__csqrtl): Likewise.
25058         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
25059         * math/s_ctanf.c (__ctanf): Likewise.
25060         * math/s_ctanh.c (__ctanh): Likewise.
25061         * math/s_ctanhf.c (__ctanhf): Likewise.
25062         * math/s_ctanhl.c (__ctanhl): Likewise.
25063         * math/s_ctanl.c (__ctanl): Likewise.
25064         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
25065         instead of volatile.
25066         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
25067         math_check_force_underflow.
25068         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
25069         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
25070         volatile when forcing underflow.
25071         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
25072         math_check_force_underflow_nonneg.
25073         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
25074         Likewise.
25075         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
25076         math_check_force_underflow.
25077         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25078         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25079         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
25080         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
25081         math_check_force_underflow_nonneg.
25082         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
25083         math_check_force_underflow.
25084         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25085         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
25086         instead of volatile.
25087         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
25088         math_check_force_underflow.
25089         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
25090         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
25091         math_check_force_underflow_nonneg.
25092         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
25093         math_check_force_underflow.
25094         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
25095         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
25096         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
25097         math_check_force_underflow_nonneg.
25098         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25099         Likewise.
25100         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
25101         math_check_force_underflow.
25102         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
25103         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25104         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
25105         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
25106         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
25107         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
25108         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25109         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25110         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
25111         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
25112         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
25113         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25114         Likewise.
25115         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
25116         math_check_force_underflow_nonneg.
25117         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25118         Likewise.
25119         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
25120         math_check_force_underflow.
25121         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25122         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25123         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25124         Likewise.
25125         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25126         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
25127         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
25128         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
25129         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
25130         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
25131         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
25132         instead of volatile.
25133         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
25134         math_check_force_underflow.
25135         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25136         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
25137         math_check_force_underflow.
25138         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
25139         Likewise.
25140         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25141         Use math_check_force_underflow_nonneg.
25142         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
25143         math_check_force_underflow.
25144         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
25145         Likewise.
25146         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
25147         Likewise.
25148         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25149         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
25150         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
25151         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
25152         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
25153         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
25154         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25155         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25156         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
25157         math_check_force_underflow_nonneg.
25158         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
25159         math_check_force_underflow.
25160         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25161         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25162         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
25163         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
25164         math_check_force_underflow_nonneg.
25165         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
25166         math_check_force_underflow.
25167         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25168         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
25169         instead of volatile.
25170         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
25171         math_check_force_underflow.
25172
25173         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
25174         * stdlib/strtod_l.c: Include <math_private.h>.
25175         (overflow_value): Use math_narrow_eval.
25176         (underflow_value): Likewise.
25177         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25178         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25179         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
25180         (__ieee754_gamma_r): Likewise.
25181         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
25182         Likewise.
25183         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
25184         Likewise.
25185         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
25186         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
25187         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25188         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25189         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
25190         (__ieee754_gammaf_r): Likewise.
25191         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
25192         Likewise.
25193         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
25194         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
25195         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25196         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25197         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
25198         volatile.
25199         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25200         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
25201         math_narrow_eval.
25202         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
25203         Likewise.
25204         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25205         Likewise.
25206         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
25207         Likewise.
25208         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
25209         volatile.
25210         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25211         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
25212         math_narrow_eval.
25213         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25214         Likewise.
25215         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25216         Likewise.
25217
25218 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
25219
25220         * nptl/Versions: Remove ignored symbols.
25221
25222 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25223
25224         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
25225         * nss/Makefile (tests): Update.
25226
25227 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25228
25229         * nss/bug18287.c: New file.
25230         * nss/Makefile (tests): Add bug18287.
25231
25232 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25233
25234         * mach/Versions (__mach_host_self_): Add symbol.
25235
25236 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25237
25238         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
25239         vm_page_size.
25240
25241 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25242
25243         Really fix sysdeps/i386/fpu/s_scalbn.S build
25244
25245         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
25246         (libc: GLIBC_2_22): Remove unused version set.
25247
25248 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25249
25250         * config.make.in (enable-timezone-tools): New variable.
25251         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
25252         (enable_timezone_tools): Export to generated files.
25253         * configure: Regenerate.
25254         * INSTALL: Regenerate.
25255         * manual/install.texi (--disable-timezone-tools): Document new flag.
25256         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
25257         ifeq ($(enable-timezone-tools),yes) check.
25258
25259 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25260
25261         * timezone/Makefile: Revert previous change.
25262
25263         [BZ #18980]
25264         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
25265         (DEFINE_DBL_MIN): Likewise.
25266         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25267         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25268         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25269         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25270         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
25271         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25272         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25273         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
25274         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
25275         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25276         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25277         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
25278         (flt_min): Replace with use of DEFINE_FLT_MIN.
25279         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25280         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
25281         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25282         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25283         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
25284         (flt_min): Replace with use of DEFINE_FLT_MIN.
25285         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25286         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
25287         (flt_min): Replace with use of DEFINE_FLT_MIN.
25288         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25289         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
25290         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
25291         (__ieee754_hypot): Use DBL_NARROW_EVAL.
25292         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
25293         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
25294         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
25295         (__ieee754_pow): Use DBL_NARROW_EVAL.
25296         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
25297         (__ieee754_powf): Use FLT_NARROW_EVAL.
25298         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
25299         (__ieee754_expf_sse2): Convert double-precision result to single
25300         precision.
25301         * sysdeps/i386/fpu/libm-test-ulps: Update.
25302
25303 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25304
25305         * timezone/Makefile: Ignore unused variable errors due to private.h
25306         (time_t_min) and (time_t_max).
25307         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
25308         Likewise.
25309
25310 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25311
25312         [BZ #18981]
25313         * sysdeps/i386/fpu/i386-math-asm.h: New file.
25314         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
25315         (__ieee754_scalb): Use DBL_NARROW_EVAL.
25316         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
25317         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
25318         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
25319         (__scalbn): Use DBL_NARROW_EVAL.
25320         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
25321         (__scalbnf): Use FLT_NARROW_EVAL.
25322
25323 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25324
25325         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
25326         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
25327         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
25328         * stdio-common/printf_fp.c (___printf_fp):
25329         Use signbit to get the sign. Use isinf macro to allow inlining.
25330         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
25331         * stdio-common/printf_size.c (__printf_size): Likewise.
25332
25333 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25334
25335         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
25336
25337 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25338
25339         [BZ #18980]
25340         * sysdeps/generic/math_private.h: Include <float.h>.
25341         (math_narrow_eval): New macro.
25342         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
25343         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
25344         math_narrow_eval on overflowing return value.
25345         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
25346         Likewise.
25347         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25348         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
25349         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
25350         Likewise.
25351         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25352
25353 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25354
25355         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
25356         * math/Makefile: Remove isinf_ns.c.
25357         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
25358         * math/multc3.c (__multc3): Likewise.
25359         * math/s_casin.c (__casin): Likewise.
25360         * math/s_casinf.c (__casinf): Likewise.
25361         * math/s_casinl.c (__casinl): Likewise.
25362         * math/s_cproj.c (__cproj): Likewise.
25363         * math/s_cprojf.c (__cprojf): Likewise.
25364         * math/s_cprojl.c (__cprofl): Likewise.
25365         * math/s_ctan.c (__ctan): Likewise.
25366         * math/s_ctanf.c (__ctanf): Likewise.
25367         * math/s_ctanh.c (__ctanh): Likewise.
25368         * math/s_ctanhf.c (__ctanhf): Likewise.
25369         * math/s_ctanhl.c (__ctanhl): Likewise.
25370         * math/s_ctanl.c (__ctanl): Likewise.
25371         * math/w_fmod.c (__fmod): Likewise.
25372         * math/w_fmodf.c (__fmodf): Likewise.
25373         * math/w_fmodl.c (_fmodl): Likewise.
25374         * math/w_remainder.c (__remainder): Likewise.
25375         * math/w_remainderf.c (__remainderf): Likewise.
25376         * math/w_remainderl.c (__remainderl): Likewise.
25377         * math/w_scalb.c (__scalb): Likewise.
25378         * math/w_scalbf.c (__scalbf): Likewise.
25379         * math/w_scalbl.c (__scalbl): Likewise.
25380         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
25381         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
25382         with isinf.
25383         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
25384         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
25385         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
25386         __isinf_nsf with isinf.
25387         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
25388         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
25389         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
25390         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
25391         with isinf.
25392         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
25393         __isinf_nsl with isinf.
25394         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
25395         with isinf.
25396         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
25397         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
25398         __isinf_nsl with isinf.
25399         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
25400         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
25401         with isinf.
25402
25403 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25404
25405         * resolv/base64.c (rcsid): Remove unused static.
25406         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
25407         static.  (tqpi1): Likewise.
25408         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
25409         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
25410         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
25411         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
25412         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
25413         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
25414         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
25415         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
25416         Likewise.
25417
25418 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
25419
25420         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
25421         <nptl/pthreadP.h>.
25422         (_longjmp_unwind): Use __libc_ptf_call.
25423         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
25424
25425 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
25426
25427         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
25428         * sysdeps/arm/__longjmp.S: Likewise.
25429
25430 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25431
25432         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
25433         Use __builtin_signbit.
25434         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
25435         Use __builtin_signbitf.
25436         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
25437         Use __builtin_signbitl.
25438         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
25439         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
25440
25441 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25442
25443         [BZ #15367]
25444         [BZ #17441]
25445
25446         * math/Makefile: Build test-snan.c with -fsignaling-nans.
25447         * math/math.h (fpclassify): Use __builtin_fpclassify when
25448         available.  (signbit): Use __builtin_signbit(f/l).
25449         (isfinite): Use__builtin_isfinite.  (isnormal): Use
25450         __builtin_isnormal.  (isnan): Use __builtin_isnan.
25451         (isinf): Use __builtin_isinf_sign.
25452
25453 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25454
25455         * benchtests/Makefile: Add bench-math-inlines, link with libm.
25456         * benchtests/bench-math-inlines.c: New benchmark.
25457         * benchtests/bench-util.h: New file.
25458         * benchtests/bench-util.c: New file.
25459         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
25460
25461 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
25462
25463         * elf/tst-dlmopen1.c: Define TEST_SO.
25464         (do_test): Use TEST_SO.
25465
25466         * elf/dl-load.c: Include libc-internal.h.
25467         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
25468
25469 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25470
25471         [BZ #17887]
25472         * time/strptime_l.c (__strptime_internal): Make %z accept
25473         [+-]HH:MM time zones.
25474
25475 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25476
25477         [BZ #17886]
25478         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
25479         valid time zone.
25480
25481 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
25482
25483         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
25484         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
25485         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
25486         (__ASSUME_FDATASYNC): Delete.
25487
25488 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25489
25490         * conform/linknamespace.pl: Require weak undefined symbols to be
25491         in the standard namespace.
25492         (%strong_syms): Rename to %seen_syms.
25493         (%strong_seen): Rename to %seen_where.
25494
25495 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
25496
25497         [BZ #18970]
25498         * misc/error.c (error): Replace pthread_setcancelstate with
25499         __pthread_setcancelstate.
25500         (error_at_line): Likewise.
25501         * posix/wordexp.c (parse_comm): Likewise.
25502         * stdlib/fmtmsg.c (fmtmsg): Likewise.
25503         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
25504         (__pthread_setcancelstate): This.
25505         (pthread_setcancelstate): Add an alias.
25506         * nptl/nptl-init.c (pthread_functions): Replace
25507         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
25508         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
25509         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
25510         hidden_proto.
25511         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
25512         it with hidden_def.
25513         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
25514         (pthread_setcancelstate): Renamed to ...
25515         (__pthread_setcancelstate): This.
25516         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
25517         __libc_ptf_call with __pthread_setcancelstate.
25518
25519 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25520             Andreas Schwab  <schwab@suse.de>
25521
25522         [BZ #17118]
25523         * math/s_ctan.c (__ctan): Determine sign of zero real part of
25524         result when imaginary part of argument is infinite using sine and
25525         cosine.
25526         * math/s_ctanf.c (__ctanf): Likewise.
25527         * math/s_ctanl.c (__ctanl): Likewise.
25528         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
25529         of result when real part of argument is infinite using sine and
25530         cosine.
25531         * math/s_ctanhf.c (__ctanhf): Likewise.
25532         * math/s_ctanhl.c (__ctanhl): Likewise.
25533         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
25534         (ctanh_test_data): Add more tests of ctanh.
25535
25536 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25537
25538         [BZ #15384]
25539         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
25540         bit-mask as in subtraction.
25541         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
25542         Likewise.
25543         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25544         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25545         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
25546
25547         [BZ #18951]
25548         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
25549         underflow exception for small results.
25550         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25551         Likewise.
25552         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25553         Likewise.
25554         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25555         Likewise.
25556         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25557         Likewise.
25558         * math/auto-libm-test-in: Add more tests of tgamma.
25559         * math/auto-libm-test-out: Regenerated.
25560
25561 2015-09-17  Andreas Schwab  <schwab@suse.de>
25562
25563         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
25564
25565 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25566
25567         [BZ #18977]
25568         * math/bits/mathcalls.h
25569         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
25570         not declare.
25571         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
25572         Likewise.
25573         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
25574         Likewise.
25575         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
25576         Likewise.
25577         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
25578         Likewise.
25579         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
25580         Likewise.
25581         * conform/data/math.h-data
25582         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
25583         function.
25584         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
25585         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
25586         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
25587         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
25588         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
25589         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
25590         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
25591         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
25592         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
25593         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
25594         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
25595
25596         [BZ #6803]
25597         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
25598         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
25599         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
25600         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
25601         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
25602         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
25603         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
25604         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
25605         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25606         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
25607         Likewise.
25608         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25609         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
25610         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
25611         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
25612         long_double_symbol calls.
25613         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
25614         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
25615         strong alias of __ldexpl.
25616         (scalbnl): Define using long_double_symbol.
25617         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
25618         Remove alias.
25619         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
25620         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
25621         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
25622         (scalbln_test_data): Add more errno expectations.
25623
25624 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
25625
25626         Cache the host port like we cache the task port.  This way we do not
25627         need to call the kernel just to get the port.  Furthermore, we no
25628         longer increase the reference count on every invocation of
25629         `mach_host_self'.
25630
25631         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
25632         Protect declarations against the macro expansion.
25633         * mach/mach_init.c (__mach_host_self_): New variable.
25634         (mach_init): Initialize `__mach_host_self_'.
25635         * mach/mach_init.h (__mach_host_self_): New declaration.
25636         (__mach_host_self, mach_host_self): New macros.
25637         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
25638         Release reference.
25639
25640 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25641
25642         [BZ #4404]
25643         * po/de.po: Update from Translation Project.
25644
25645         [BZ #16415]
25646         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
25647         (__expm1l): Remove code to handle positive infinity and overflow.
25648         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
25649         variable.
25650         (__expm1l): Remove code to handle positive infinity and overflow.
25651
25652 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25653             Paul Pluzhnikov  <ppluzhnikov@google.com>
25654
25655         [BZ #18872]
25656         * stdio-common/Makefile (tst-printf-bz18872): New test.
25657         (tst-printf-bz18872-mem.out): Likewise.
25658         * stdio-common/tst-printf-bz18872.sh: Generate new test.
25659         * stdio-common/vfprintf.c: Fix memory leaks.
25660
25661 2015-09-16  Andreas Schwab  <schwab@suse.de>
25662
25663         [BZ #17244]
25664         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
25665         Remove extra va_start/va_end calls.
25666
25667         [BZ #17243]
25668         * posix/execl.c (execl): Add missing va_end.
25669         * posix/execle.c (execle): Likewise.
25670         * posix/execlp.c (execlp): Likewise.
25671
25672 2015-09-15  Roland McGrath  <roland@hack.frob.com>
25673
25674         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
25675         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
25676
25677 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
25678
25679         [BZ #18967]
25680         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
25681         undefine around includes of <bits/mathcalls.h>.
25682         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
25683         not declare function.
25684         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
25685         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
25686         (scalb): Likewise.
25687         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
25688         not define macro.
25689         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
25690         variable.
25691         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
25692         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
25693         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
25694
25695         [BZ #18857]
25696         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
25697         return non-finite argument without doing ordered comparisons on
25698         it.
25699
25700         [BZ #16296]
25701         * math/fenv.h (fegetround): Use __attribute_pure__.
25702         * include/fenv.h (__fegetround): Likewise.
25703
25704         [BZ #18595]
25705         * math/s_ctan.c (__ctan): Force underflow exception for results
25706         whose real or imaginary part has small absolute value.
25707         * math/s_ctanf.c (__ctanf): Likewise.
25708         * math/s_ctanh.c (__ctanh): Likewise.
25709         * math/s_ctanhf.c (__ctanhf): Likewise.
25710         * math/s_ctanhl.c (__ctanhl): Likewise.
25711         * math/s_ctanl.c (__ctanl): Likewise.
25712         * math/auto-libm-test-in: Do not allow missing underflow for ctan
25713         and ctanh.  Add more tests of ctan and ctanh.
25714
25715         [BZ #15918]
25716         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
25717         handling of cases where one argument is an infinity.
25718
25719         [BZ #18875]
25720         [BZ #18966]
25721         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
25722         (MO): New macro.
25723         (__ieee754_exp10): For small results, force underflow exception
25724         and remove excess range and precision from return value.
25725         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
25726         (MO): New macro.
25727         (__ieee754_exp10f): For small results, force underflow exception
25728         and remove excess range and precision from return value.
25729         * math/auto-libm-test-in: Add more tests of exp10.
25730         * math/auto-libm-test-out: Regenerated.
25731
25732 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
25733
25734         [BZ #18875]
25735         [BZ #18961]
25736         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
25737         (MO): New macro.
25738         (__ieee754_exp): For small results, force underflow exception and
25739         remove excess range and precision from return value.
25740         (__exp_finite): Likewise.
25741         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
25742         (MO): New macro.
25743         (__ieee754_expf): For small results, force underflow exception and
25744         remove excess range and precision from return value.
25745         (__expf_finite): Likewise.
25746         * math/auto-libm-test-in: Add more tests of exp.
25747         * math/auto-libm-test-out: Regenerated.
25748
25749         [BZ #16521]
25750         [BZ #18875]
25751         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
25752         small results.
25753         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
25754         (MO): New macro.
25755         (__ieee754_exp2): For small results, force underflow exception and
25756         remove excess range and precision from return value.
25757         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
25758         (MO): New macro.
25759         (__ieee754_exp2f): For small results, force underflow exception
25760         and remove excess range and precision from return value.
25761         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
25762         (MO): New macro.
25763         (__ieee754_exp2l): Force underflow exception for small results.
25764         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
25765         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
25766         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
25767         (MO): New macro.
25768         (__ieee754_exp2l): Force underflow exception for small results.
25769         * math/auto-libm-test-in: Add more tests or exp2.
25770         * math/auto-libm-test-out: Regenerated.
25771
25772 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
25773
25774         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
25775
25776         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
25777         /dev/null.
25778
25779 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25780
25781         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25782         io fs process)): Drop spurious backslash.
25783
25784 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25785
25786         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
25787         Use sysinfo system call instead of parsing /proc/meminfo.
25788         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
25789         Likewise.
25790
25791 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
25792
25793         [BZ #16985]
25794         * programs/localedef.c (main): Display argv[remaining] when
25795         output_path is NULL.
25796
25797 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25798
25799         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
25800         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
25801         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
25802         tanh.
25803         * math/auto-libm-test-out: Regenerated.
25804         * sysdeps/i386/fpu/libm-test-ulps: Update.
25805         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25806         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25808
25809 2015-09-11  Roland McGrath  <roland@hack.frob.com>
25810
25811         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
25812         Use 'override' keyword to freeze the value here, preventing
25813         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
25814
25815 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25816
25817         [BZ #14912]
25818         * sysdeps/aarch64/bits/atomic.h: Move to ...
25819         * sysdeps/aarch64/atomic-machine.h: ...here.
25820         (_AARCH64_BITS_ATOMIC_H): Rename macro to
25821         _AARCH64_ATOMIC_MACHINE_H.
25822         * sysdeps/alpha/bits/atomic.h: Move to ...
25823         * sysdeps/alpha/atomic-machine.h: ...here.
25824         * sysdeps/arm/bits/atomic.h: Move to ...
25825         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
25826         * bits/atomic.h: Move to ...
25827         * sysdeps/generic/atomic-machine.h: ...here.
25828         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25829         * sysdeps/i386/bits/atomic.h: Move to ...
25830         * sysdeps/i386/atomic-machine.h: ...here.
25831         * sysdeps/ia64/bits/atomic.h: Move to ...
25832         * sysdeps/ia64/atomic-machine.h: ...here.
25833         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
25834         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
25835         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25836         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
25837         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
25838         * sysdeps/microblaze/bits/atomic.h: Move to ...
25839         * sysdeps/microblaze/atomic-machine.h: ...here.
25840         * sysdeps/mips/bits/atomic.h: Move to ...
25841         * sysdeps/mips/atomic-machine.h: ...here.
25842         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
25843         * sysdeps/powerpc/bits/atomic.h: Move to ...
25844         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
25845         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
25846         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
25847         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
25848         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
25849         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
25850         <atomic-machine.h> instead of <bits/atomic.h>.
25851         * sysdeps/s390/bits/atomic.h: Move to ...
25852         * sysdeps/s390/atomic-machine.h: ...here.
25853         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
25854         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
25855         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25856         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
25857         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
25858         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
25859         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
25860         * sysdeps/tile/bits/atomic.h: Move to ...
25861         * sysdeps/tile/atomic-machine.h: ...here.
25862         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
25863         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
25864         <sysdeps/tile/atomic-machine.h> instead of
25865         <sysdeps/tile/bits/atomic.h>.
25866         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25867         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
25868         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
25869         <sysdeps/tile/atomic-machine.h> instead of
25870         <sysdeps/tile/bits/atomic.h>.
25871         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25872         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
25873         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
25874         <sysdeps/arm/atomic-machine.h> instead of
25875         <sysdeps/arm/bits/atomic.h>.
25876         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
25877         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
25878         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25879         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
25880         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
25881         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25882         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
25883         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
25884         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
25885         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
25886         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
25887         * sysdeps/x86_64/bits/atomic.h: Move to ...
25888         * sysdeps/x86_64/atomic-machine.h: ...here.
25889         * include/atomic.h: Include <atomic-machine.h> instead of
25890         <bits/atomic.h>.
25891
25892         * sysdeps/mips/mips32/libm-test-ulps: Update.
25893         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25894
25895         [BZ #18952]
25896         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
25897         not convert non-integer negative arguments to int to determine the
25898         value of signgam.
25899         * math/auto-libm-test-in: Add more tests of lgamma.
25900         * math/auto-libm-test-out: Regenerated.
25901
25902         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
25903         cosh, csqrt, erfc, expm1 and lgamma.
25904         * math/auto-libm-test-out: Regenerated.
25905         * sysdeps/i386/fpu/libm-test-ulps: Update.
25906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25907
25908 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
25909
25910         [BZ #2542]
25911         [BZ #2543]
25912         [BZ #2558]
25913         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
25914         __lgamma_neg for arguments from -28.0 to -2.0.
25915         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
25916         __lgamma_negf for arguments from -15.0 to -2.0.
25917         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
25918         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
25919         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
25920         Call __lgamma_negl for arguments from -33.0 to -2.0.
25921         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
25922         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
25923         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
25924         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
25925         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
25926         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
25927         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
25928         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
25929         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
25930         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
25931         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
25932         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
25933         (__lgamma_neg): Likewise.
25934         (__lgamma_negl): Likewise.
25935         (__lgamma_product): Likewise.
25936         (__lgamma_productl): Likewise.
25937         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
25938         * math/auto-libm-test-in: Add more tests of lgamma.
25939         * math/auto-libm-test-out: Regenerated.
25940         * sysdeps/i386/fpu/libm-test-ulps: Update.
25941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25942
25943 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
25944
25945         [BZ #18675]
25946         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
25947
25948 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25949
25950         [BZ #14912]
25951         * bits/libc-lock.h: Move to ...
25952         * sysdeps/generic/libc-lock.h: ...here.
25953         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25954         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
25955         * sysdeps/mach/hurd/libc-lock.h: ...here.
25956         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25957         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
25958         * sysdeps/mach/bits/libc-lock.h: Move to ...
25959         * sysdeps/mach/libc-lock.h: ...here.
25960         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25961         * sysdeps/nptl/bits/libc-lock.h: Move to ...
25962         * sysdeps/nptl/libc-lock.h: ...here.
25963         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25964         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
25965         * sysdeps/nptl/libc-lockP.h: ...here.
25966         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
25967         * crypt/crypt_util.c: Include <libc-lock.h> instead of
25968         <bits/libc-lock.h>.
25969         * dirent/scandir-tail.c: Likewise.
25970         * dlfcn/dlerror.c: Likewise.
25971         * elf/dl-close.c: Likewise.
25972         * elf/dl-iteratephdr.c: Likewise.
25973         * elf/dl-lookup.c: Likewise.
25974         * elf/dl-open.c: Likewise.
25975         * elf/dl-support.c: Likewise.
25976         * elf/dl-writev.h: Likewise.
25977         * elf/rtld.c: Likewise.
25978         * grp/fgetgrent.c: Likewise.
25979         * gshadow/fgetsgent.c: Likewise.
25980         * gshadow/sgetsgent.c: Likewise.
25981         * iconv/gconv_conf.c: Likewise.
25982         * iconv/gconv_db.c: Likewise.
25983         * iconv/gconv_dl.c: Likewise.
25984         * iconv/gconv_int.h: Likewise.
25985         * iconv/gconv_trans.c: Likewise.
25986         * include/link.h: Likewise.
25987         * inet/getnameinfo.c: Likewise.
25988         * inet/getnetgrent.c: Likewise.
25989         * inet/getnetgrent_r.c: Likewise.
25990         * intl/bindtextdom.c: Likewise.
25991         * intl/dcigettext.c: Likewise.
25992         * intl/finddomain.c: Likewise.
25993         * intl/gettextP.h: Likewise.
25994         * intl/loadmsgcat.c: Likewise.
25995         * intl/localealias.c: Likewise.
25996         * intl/textdomain.c: Likewise.
25997         * libidn/idn-stub.c: Likewise.
25998         * libio/libioP.h: Likewise.
25999         * locale/duplocale.c: Likewise.
26000         * locale/freelocale.c: Likewise.
26001         * locale/newlocale.c: Likewise.
26002         * locale/setlocale.c: Likewise.
26003         * login/getutent_r.c: Likewise.
26004         * login/getutid_r.c: Likewise.
26005         * login/getutline_r.c: Likewise.
26006         * login/utmp-private.h: Likewise.
26007         * login/utmpname.c: Likewise.
26008         * malloc/mtrace.c: Likewise.
26009         * misc/efgcvt.c: Likewise.
26010         * misc/error.c: Likewise.
26011         * misc/fstab.c: Likewise.
26012         * misc/getpass.c: Likewise.
26013         * misc/mntent.c: Likewise.
26014         * misc/syslog.c: Likewise.
26015         * nis/nis_call.c: Likewise.
26016         * nis/nis_callback.c: Likewise.
26017         * nis/nss-default.c: Likewise.
26018         * nis/nss_compat/compat-grp.c: Likewise.
26019         * nis/nss_compat/compat-initgroups.c: Likewise.
26020         * nis/nss_compat/compat-pwd.c: Likewise.
26021         * nis/nss_compat/compat-spwd.c: Likewise.
26022         * nis/nss_nis/nis-alias.c: Likewise.
26023         * nis/nss_nis/nis-ethers.c: Likewise.
26024         * nis/nss_nis/nis-grp.c: Likewise.
26025         * nis/nss_nis/nis-hosts.c: Likewise.
26026         * nis/nss_nis/nis-network.c: Likewise.
26027         * nis/nss_nis/nis-proto.c: Likewise.
26028         * nis/nss_nis/nis-pwd.c: Likewise.
26029         * nis/nss_nis/nis-rpc.c: Likewise.
26030         * nis/nss_nis/nis-service.c: Likewise.
26031         * nis/nss_nis/nis-spwd.c: Likewise.
26032         * nis/nss_nisplus/nisplus-alias.c: Likewise.
26033         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
26034         * nis/nss_nisplus/nisplus-grp.c: Likewise.
26035         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
26036         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
26037         * nis/nss_nisplus/nisplus-network.c: Likewise.
26038         * nis/nss_nisplus/nisplus-proto.c: Likewise.
26039         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
26040         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
26041         * nis/nss_nisplus/nisplus-service.c: Likewise.
26042         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
26043         * nis/ypclnt.c: Likewise.
26044         * nptl/libc_pthread_init.c: Likewise.
26045         * nss/getXXbyYY.c: Likewise.
26046         * nss/getXXent.c: Likewise.
26047         * nss/getXXent_r.c: Likewise.
26048         * nss/nss_db/db-XXX.c: Likewise.
26049         * nss/nss_db/db-netgrp.c: Likewise.
26050         * nss/nss_db/nss_db.h: Likewise.
26051         * nss/nss_files/files-XXX.c: Likewise.
26052         * nss/nss_files/files-alias.c: Likewise.
26053         * nss/nsswitch.c: Likewise.
26054         * posix/regex_internal.h: Likewise.
26055         * posix/wordexp.c: Likewise.
26056         * pwd/fgetpwent.c: Likewise.
26057         * resolv/res_hconf.c: Likewise.
26058         * resolv/res_libc.c: Likewise.
26059         * shadow/fgetspent.c: Likewise.
26060         * shadow/lckpwdf.c: Likewise.
26061         * shadow/sgetspent.c: Likewise.
26062         * socket/opensock.c: Likewise.
26063         * stdio-common/reg-modifier.c: Likewise.
26064         * stdio-common/reg-printf.c: Likewise.
26065         * stdio-common/reg-type.c: Likewise.
26066         * stdio-common/vfprintf.c: Likewise.
26067         * stdio-common/vfscanf.c: Likewise.
26068         * stdlib/abort.c: Likewise.
26069         * stdlib/cxa_atexit.c: Likewise.
26070         * stdlib/fmtmsg.c: Likewise.
26071         * stdlib/random.c: Likewise.
26072         * stdlib/setenv.c: Likewise.
26073         * string/strsignal.c: Likewise.
26074         * sunrpc/auth_none.c: Likewise.
26075         * sunrpc/bindrsvprt.c: Likewise.
26076         * sunrpc/create_xid.c: Likewise.
26077         * sunrpc/key_call.c: Likewise.
26078         * sunrpc/rpc_thread.c: Likewise.
26079         * sysdeps/arm/backtrace.c: Likewise.
26080         * sysdeps/generic/ldsodefs.h: Likewise.
26081         * sysdeps/generic/stdio-lock.h: Likewise.
26082         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
26083         * sysdeps/i386/backtrace.c: Likewise.
26084         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
26085         * sysdeps/m68k/backtrace.c: Likewise.
26086         * sysdeps/mach/hurd/cthreads.c: Likewise.
26087         * sysdeps/mach/hurd/dirstream.h: Likewise.
26088         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26089         * sysdeps/nptl/malloc-machine.h: Likewise.
26090         * sysdeps/nptl/stdio-lock.h: Likewise.
26091         * sysdeps/posix/dirstream.h: Likewise.
26092         * sysdeps/posix/getaddrinfo.c: Likewise.
26093         * sysdeps/posix/system.c: Likewise.
26094         * sysdeps/pthread/aio_suspend.c: Likewise.
26095         * sysdeps/s390/s390-32/backtrace.c: Likewise.
26096         * sysdeps/s390/s390-64/backtrace.c: Likewise.
26097         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
26098         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
26099         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
26100         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
26101         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
26102         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26103         * sysdeps/unix/sysv/linux/system.c: Likewise.
26104         * sysdeps/x86_64/backtrace.c: Likewise.
26105         * time/alt_digit.c: Likewise.
26106         * time/era.c: Likewise.
26107         * time/tzset.c: Likewise.
26108         * wcsmbs/wcsmbsload.c: Likewise.
26109         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
26110         instead of <bits/libc-lock.h> in comment.
26111
26112 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
26113
26114         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
26115         Only use .set mips2 if the current ISA is below mips2.
26116         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
26117         Likewise.
26118         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
26119         mips32r2 if the current ISA is below mips32r2.
26120         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
26121         (TLS_IE): Updated to use the TLD_RDHWR macro.
26122         (TLS_LE): Likewise.
26123         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
26124         __ASSEMBLER__ condition.
26125
26126 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26127
26128         Fix parallel build of before-compile targets.
26129
26130         * sysdeps/mach/Makefile ($(patsubst
26131         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
26132         mach-before-compile target.
26133         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26134         io fs process)): Move rule to dedicated hurd-before-compile target.
26135
26136 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26137
26138         Fix rules generating headers in hurd/ and mach/ when initial make call
26139         has subdir= explicitly set.
26140
26141         * sysdeps/mach/Makefile ($(patsubst
26142         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
26143         calling $(MAKE).
26144         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26145         io fs process)): Force subdir to hurd when calling $(MAKE).
26146         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
26147         subdir to mach when calling $(MAKE).
26148
26149 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
26150
26151         Check sysheaders when looking for Mach and Hurd headers
26152
26153         * sysdeps/mach/configure.ac: Add sysheaders check.
26154         * sysdeps/mach/configure: Regenerate.
26155         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
26156         * sysdeps/mach/hurd/configure: Regenerate.
26157
26158 2015-09-04  Roland McGrath  <roland@hack.frob.com>
26159
26160         [BZ #18921]
26161         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
26162         Fix inverted sense of test of 'o_directory_works' value.
26163         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
26164         Bernhard Voelker <mail@bernhard-voelker.de>.
26165
26166 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26167
26168         [BZ #14912]
26169         * bits/linkmap.h: Move to ...
26170         * sysdeps/generic/linkmap.h: ...here.
26171         * sysdeps/aarch64/bits/linkmap.h: Move to ...
26172         * sysdeps/aarch64/linkmap.h: ...here.
26173         * sysdeps/arm/bits/linkmap.h: Move to ...
26174         * sysdeps/arm/linkmap.h: ...here.
26175         * sysdeps/hppa/bits/linkmap.h: Move to ...
26176         * sysdeps/hppa/linkmap.h: ...here.
26177         * sysdeps/ia64/bits/linkmap.h: Move to ...
26178         * sysdeps/ia64/linkmap.h: ...here.
26179         * sysdeps/mips/bits/linkmap.h: Move to ...
26180         * sysdeps/mips/linkmap.h: ...here.
26181         * sysdeps/s390/bits/linkmap.h: Move to ...
26182         * sysdeps/s390/linkmap.h: ...here.
26183         * sysdeps/sh/bits/linkmap.h: Move to ...
26184         * sysdeps/sh/linkmap.h: ...here.
26185         * sysdeps/x86/bits/linkmap.h: Move to ...
26186         * sysdeps/x86/linkmap.h: ...here.
26187         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
26188
26189 2015-09-04  Andreas Schwab  <schwab@suse.de>
26190
26191         [BZ #18635]
26192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
26193         (__makecontext): Terminate FDE before return label.
26194         (__novec_makecontext): Likewise.
26195
26196 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26197
26198         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
26199         first member of struct sv in syscall macro.
26200
26201 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26202
26203         [BZ #14912]
26204         * bits/stdio-lock.h: Move to ...
26205         * sysdeps/generic/stdio-lock.h: ...here.
26206         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26207         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
26208         * sysdeps/nptl/stdio-lock.h: ...here.
26209         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26210         * include/libio.h: Include <stdio-lock.h> instead of
26211         <bits/stdio-lock.h>.
26212         * sysdeps/nptl/fork.c: Likewise.
26213         * sysdeps/pthread/flockfile.c: Likewise.
26214         * sysdeps/pthread/ftrylockfile.c: Likewise.
26215         * sysdeps/pthread/funlockfile.c: Likewise.
26216
26217         [BZ #14912]
26218         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
26219         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
26220         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
26221         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
26222         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
26223         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
26224         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
26225
26226 2015-09-03  Roland McGrath  <roland@hack.frob.com>
26227
26228         * elf/Makefile (test-xfail-tst-protected1a): New variable.
26229         (test-xfail-tst-protected1b): New variable.
26230
26231 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
26232
26233         [BZ #14912]
26234         * bits/libc-tsd.h: Move to ...
26235         * sysdeps/generic/libc-tsd.h: ...here.
26236         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
26237         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
26238         * sysdeps/mach/hurd/libc-tsd.h: ...here.
26239         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
26240         * include/ctype.h: Include <libc-tsd.h> instead of
26241         <bits/libc-tsd.h>.
26242         * include/rpc/rpc.h: Likewise.
26243         * locale/localeinfo.h: Likewise.
26244         * sunrpc/rpc_thread.c: Likewise.
26245         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26246         * sysdeps/nptl/malloc-machine.h: Likewise.
26247
26248         * Makefile (headers): Remove bits/libc-lock.h.
26249         * libio/Makefile (headers): Remove bits/stdio-lock.h.
26250
26251         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
26252         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
26253         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
26254         <bits/stdio-lock.h>.
26255         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
26256         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
26257
26258 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26259
26260         [BZ #18757]
26261         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
26262         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
26263         BZ #18757.
26264
26265 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26266
26267         * malloc/mtrace.pl: Filter out NULL entries.
26268
26269 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
26270
26271         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
26272         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
26273         macro.
26274
26275         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
26276         (TCP_CC_INFO): Likewise.
26277         (TCP_SAVE_SYN): Likewise.
26278         (TCP_SAVED_SYN): Likewise.
26279
26280 2015-08-31  Brett Neumeier <brett@neumeier.us>
26281
26282         [BZ #18870]
26283         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
26284
26285 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         [BZ #18873]
26288         Fix broken overflow check in posix_fallocate
26289         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
26290         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
26291         Fix parenthesization typo.
26292
26293 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
26294
26295         [BZ #18887]
26296         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
26297         tst-mntent-blank-passno.
26298         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
26299         * misc/tst-mntent-blank-corrupt.c: New test.
26300         * misc/tst-mntent-blank-passno.c: New test ripped from ...
26301         * misc/tst-mntent.c (do_test): ... here.
26302
26303 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
26304
26305         [BZ #4404]
26306         * po/de.po: Fix SIGALRM typo.
26307
26308 2015-08-28  James Perkins  <james@loowit.net>
26309
26310         * time/tst-strptime2.c (tests): Replace short list of test
26311         strings for strptime %z specifier with code which exhaustively
26312         tests every combination of sign and 0 to 5 digits. Tests for
26313         rejection of invalid strings.
26314
26315 2015-08-28  James Perkins  <james@loowit.net>
26316
26317         [BZ #16141]
26318         * time/strptime_l.c (__strptime_internal): Fix %z minutes
26319         calculation, removing incorrect decimal time rounding, so that
26320         all minute values result in a valid seconds value.
26321         * time/strptime_l.c (__strptime_internal): Extend %z time zone
26322         offset range limits to UTC-99:59 through UTC+99:59 to parse
26323         current and historical use cases.
26324         * time/tst-strptime2.c (tests): Modify and add tests for the
26325         strptime %z input field descriptor, specifically conversion of
26326         minutes to seconds and validating an offset range of -9959 to
26327         +9959.
26328
26329 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26330             Dmitry V. Levin  <ldv@altlinux.org>
26331
26332         [BZ #18877]
26333         * posix/Makefile (tests): Add tst-mmap-offset.
26334         * posix/tst-mmap.c: New file.
26335         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
26336         offset calculation for negative values.
26337
26338 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26339
26340         * sysdeps/i386/init-arch.h: New file.
26341         * sysdeps/i386/i586/init-arch.h: Likewise.
26342         * sysdeps/i386/i686/init-arch.h: Likewise.
26343         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
26344         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
26345         * sysdeps/x86/cpu-features.h (bit_I586): New.
26346         (bit_I686): Likewise.
26347         (bit_CX8): Likewise.
26348         (bit_CMOV): Likewise.
26349         (index_CX8): Likewise.
26350         (index_CMOV): Likewise.
26351         (index_I586): Likewise.
26352         (index_I686): Likewise.
26353         (reg_CX8): Likewise.
26354         (reg_CMOV): Likewise.
26355         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
26356         available at compile-time.
26357         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
26358         available at compile-time.
26359         * sysdeps/x86/init-arch.h (USE_I586): New macro.
26360         (USE_I686): Likewise.
26361
26362 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26363
26364         * sysdeps/i386/bcopy.S: New file.
26365         * sysdeps/i386/bzero.S: Likewise.
26366         * sysdeps/i386/memcpy.S: Likewise.
26367         * sysdeps/i386/memmove.S: Likewise.
26368         * sysdeps/i386/mempcpy.S: Likewise.
26369         * sysdeps/i386/memset.S: Likewise.
26370         * sysdeps/i386/bzero.c: Removed.
26371         * sysdeps/i386/memset.c: Likewise.
26372         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
26373         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
26374         * sysdeps/i386/i586/memset_chk.S: Likewise.
26375         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
26376         * sysdeps/i386/memcpy_chk.S: Here.
26377         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
26378         * sysdeps/i386/memmove_chk.S: Here.
26379         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
26380         * sysdeps/i386/mempcpy_chk.S: Likewise.
26381         * sysdeps/i386/i686/memset_chk.S: Moved to ...
26382         * sysdeps/i386/memset_chk.S: Likewise.
26383
26384 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
26385
26386         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
26387         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
26388         file, move DIAG_POP_NEEDS_COMMENT to end of file.
26389         * soft-fp/fmadf4.c: Ditto.
26390         * soft-fp/fmatf4.c: Ditto.
26391
26392 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26393
26394         * sysdeps/i386/i586/Implies: Removed.
26395         * sysdeps/i386/i686/Implies: Likewise.
26396
26397 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26398
26399         * sysdeps/i386/i486/strlen.S: Moved to ...
26400         * sysdeps/i386/strlen.S: Here.
26401
26402 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26403
26404         * sysdeps/i386/i486/strcat.S: Moved to ...
26405         * sysdeps/i386/strcat.S: Here.
26406
26407 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26408
26409         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
26410         * sysdeps/i386/pthread_spin_trylock.S: Here.
26411         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
26412         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
26413
26414 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26415
26416         * sysdeps/i386/i486/string-inlines.c: Moved to ...
26417         * sysdeps/i386/string-inlines.c: Here.
26418
26419 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26420
26421         * sysdeps/i386/i486/htonl.S: Moved ...
26422         * sysdeps/i386/htonl.S: here.
26423
26424 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26425
26426         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
26427         * sysdeps/i386/bits/atomic.h: Here.
26428
26429 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26430
26431         * sysdeps/i386/i486/Versions: Removed.
26432
26433 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
26434
26435         [BZ #2898]
26436         * misc/mktemp.c: Add mkdtemp to the link_warning message.
26437         Based on patch by Aurelien Jarno.
26438
26439 2015-08-26  Stan Shebs  <stanshebs@google.com>
26440
26441         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
26442         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
26443
26444 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26445
26446         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
26447         * sysdeps/powerpc/dl-procinfo.c:
26448         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
26449         feature so it shows when LD_SHOW_AUXV=1.
26450
26451 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26452
26453         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26454         (__arch_compare_and_exchange_val_32_acq): Remove and use common
26455         definition.  ISA 2.07B no longer requires full sync.
26456
26457 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
26458
26459         [BZ #18863]
26460         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
26461         (si_call_addr): Define.
26462         (si_syscall): Define.
26463         (si_arch): Define.
26464
26465 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26466
26467         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
26468         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
26469         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
26470         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26471         (__memset_zero_constant_len_parameter): New.
26472         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
26473         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26474         (__memset_zero_constant_len_parameter): Don't define if
26475         __memset_chk or USE_AS_BZERO are defined.
26476
26477         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
26478         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
26479         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
26480
26481         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
26482         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
26483         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
26484         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
26485         comments.
26486         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
26487         -mno-mmx for $(all-rtld-routines).
26488         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
26489         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
26490         i386.
26491
26492 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
26493
26494         * sysdeps/generic/unwind.h
26495         (_Unwind_Word): Use __mode__(__unwind_word__)
26496         instead of __mode__(__word__).
26497         (_Unwind_Sword): Likewise.
26498
26499         * sysdeps/s390/s390-64/utf8-utf16-z9.c
26500         (MAX_NEEDED_INPUT): New define.
26501         (MAX_NEEDED_OUTPUT): New define.
26502
26503         * NEWS: New item for IBM z13 string optimizations.
26504
26505         * sysdeps/s390/multiarch/memrchr-c.c: New File.
26506         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
26507         * sysdeps/s390/multiarch/memrchr.c: Likewise.
26508         * sysdeps/s390/multiarch/Makefile
26509         (sysdep_routines): Add memrchr functions.
26510         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26511         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
26512
26513         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
26514         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
26515         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
26516         * sysdeps/s390/multiarch/Makefile
26517         (sysdep_routines): Add wmemcmp functions.
26518         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26519         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
26520         * benchtests/bench-wmemcmp.c: New File.
26521         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
26522
26523         * sysdeps/s390/multiarch/wmemset-c.c: New File.
26524         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
26525         * sysdeps/s390/multiarch/wmemset.c: Likewise.
26526         * sysdeps/s390/multiarch/Makefile
26527         (sysdep_routines): Add wmemset functions.
26528         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26529         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
26530         * wcsmbs/wmemset.c: Use WMEMSET if defined.
26531         * string/test-memset.c: Add wmemset support.
26532         * wcsmbs/test-wmemset.c: New File.
26533         * wcsmbs/Makefile (strop-tests): Add wmemset.
26534         * benchtests/bench-memset.c: Add wmemset support.
26535         * benchtests/bench-wmemset.c: New File.
26536         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
26537
26538         * sysdeps/s390/multiarch/memccpy-c.c: New File.
26539         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
26540         * sysdeps/s390/multiarch/memccpy.c: Likewise.
26541         * sysdeps/s390/multiarch/Makefile
26542         (sysdep_routines): Add memccpy functions.
26543         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26544         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
26545         * string/memccpy.c: Use MEMCCPY if defined.
26546
26547         * sysdeps/s390/multiarch/memchr-vx.S: New File.
26548         * sysdeps/s390/multiarch/memchr.c: Likewise.
26549         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
26550         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
26551         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
26552         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
26553         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
26554         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
26555         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
26556         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
26557         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
26558         and rawmemchr functions.
26559         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26560         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
26561         and wmemchr.
26562         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
26563         * string/test-memchr.c: Add wmemchr support.
26564         * wcsmbs/test-wmemchr.c: New File.
26565         * wcsmbs/Makefile (strop-tests): Add wmemchr.
26566         * benchtests/bench-memchr.c: Add wmemchr support.
26567         * benchtests/bench-wmemchr.c: New File.
26568         * benchtests/Makefile (wcsmbs-bench): wmemchr.
26569
26570         * sysdeps/s390/multiarch/strcspn-c.c: New File.
26571         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
26572         * sysdeps/s390/multiarch/strcspn.c: Likewise.
26573         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
26574         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
26575         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
26576         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
26577         wcscspn functions.
26578         * sysdeps/s390/multiarch/ifunc-impl-list.c
26579         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
26580         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
26581         * string/test-strcspn.c: Add wcscspn support.
26582         * wcsmbs/test-wcscspn.c: New File.
26583         * wcsmbs/Makefile (strop-tests): Add wcscspn.
26584         * benchtests/bench-strcspn.c: Add wcscspn support.
26585         * benchtests/bench-wcscspn.c: New File.
26586         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
26587
26588         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
26589         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
26590         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
26591         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
26592         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
26593         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
26594         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
26595         wcspbrk functions.
26596         * sysdeps/s390/multiarch/ifunc-impl-list.c
26597         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
26598         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
26599         * string/test-strpbrk.c: Add wcspbrk support.
26600         * wcsmbs/test-wcspbrk.c: New File.
26601         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
26602         * benchtests/bench-strpbrk.c: Add wcspbrk support.
26603         * benchtests/bench-wcspbrk.c: New File.
26604         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
26605
26606         * sysdeps/s390/multiarch/strspn-c.c: New File.
26607         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
26608         * sysdeps/s390/multiarch/strspn.c: Likewise.
26609         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
26610         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
26611         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
26612         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
26613         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
26614         wcsspn functions.
26615         * sysdeps/s390/multiarch/ifunc-impl-list.c
26616         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
26617         * string/test-strspn.c: Add wcsspn support.
26618         * wcsmbs/test-wcsspn.c: New File.
26619         * wcsmbs/Makefile (strop-tests): Add wcsspn.
26620         * benchtests/bench-strspn.c: Add wcsspn support.
26621         * benchtests/bench-wcsspn.c: New File.
26622         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
26623
26624         * sysdeps/s390/multiarch/strrchr-c.c: New File.
26625         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
26626         * sysdeps/s390/multiarch/strrchr.c: Likewise.
26627         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
26628         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
26629         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
26630         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
26631         wcsrchr functions.
26632         * sysdeps/s390/multiarch/ifunc-impl-list.c
26633         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
26634         * benchtests/bench-wcsrchr.c: New File.
26635         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
26636
26637         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
26638         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
26639         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
26640         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
26641         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
26642         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
26643         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
26644         wcschrnul functions.
26645         * sysdeps/s390/multiarch/ifunc-impl-list.c
26646         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
26647         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
26648         * string/test-strchr.c: Add wcschrnul support.
26649         * wcsmbs/test-wcschrnul.c: New File.
26650         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
26651         * benchtests/bench-strchr.c: Add wcschrnul support.
26652         * benchtests/bench-wcschrnul.c: New File.
26653         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
26654
26655         * sysdeps/s390/multiarch/strchr-c.c: New File.
26656         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
26657         * sysdeps/s390/multiarch/strchr.c: Likewise.
26658         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
26659         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
26660         * sysdeps/s390/multiarch/wcschr.c: Likewise.
26661         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
26662         wcschr functions.
26663         * sysdeps/s390/multiarch/ifunc-impl-list.c
26664         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
26665         * string/strchr.c (STRCHR): Define and use macro.
26666         * benchtests/bench-wcschr.c: New File.
26667         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
26668
26669         * sysdeps/s390/multiarch/strncmp-c.c: New File.
26670         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
26671         * sysdeps/s390/multiarch/strncmp.c: Likewise.
26672         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
26673         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
26674         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
26675         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
26676         wcsncmp functions.
26677         * sysdeps/s390/multiarch/ifunc-impl-list.c
26678         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
26679         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
26680         * benchtests/bench-strncmp.c: Add wcsncmp support.
26681         * benchtests/bench-wcsncmp.c: New File.
26682         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
26683
26684         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
26685         * sysdeps/s390/multiarch/strcmp.c: Likewise.
26686         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
26687         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
26688         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
26689         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
26690         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
26691         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
26692         wcscmp functions.
26693         * sysdeps/s390/multiarch/ifunc-impl-list.c
26694         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
26695         * string/strcmp.c (STRCMP): Define and use macro.
26696         * benchtests/bench-wcscmp.c: New File.
26697         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
26698         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
26699         instead of _HAVE_STRING_ARCH_memchr.
26700
26701         * sysdeps/s390/multiarch/strncat-c.c: New File.
26702         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
26703         * sysdeps/s390/multiarch/strncat.c: Likewise.
26704         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
26705         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
26706         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
26707         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
26708         wcsncat functions.
26709         * sysdeps/s390/multiarch/ifunc-impl-list.c
26710         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
26711         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
26712         * string/test-strncat.c: Add wcsncat support.
26713         * wcsmbs/test-wcsncat.c: New File.
26714         * wcsmbs/Makefile (strop-tests): Add wcsncat.
26715         * benchtests/bench-strncat.c: Add wcsncat support.
26716         * benchtests/bench-wcsncat.c: New File.
26717         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
26718
26719         * sysdeps/s390/multiarch/strcat-c.c: New File.
26720         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
26721         * sysdeps/s390/multiarch/strcat.c: Likewise.
26722         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
26723         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
26724         * sysdeps/s390/multiarch/wcscat.c: Likewise.
26725         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
26726         wcscat functions.
26727         * sysdeps/s390/multiarch/ifunc-impl-list.c
26728         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
26729         * string/strcat.c (STRCAT): Define and use macro.
26730         * wcsmbs/wcscat.c: Use WCSCAT if defined.
26731         * string/test-strcat.c: Add wcscat support.
26732         * wcsmbs/test-wcscat.c: New File.
26733         * wcsmbs/Makefile (strop-tests): Add wcscat.
26734         * benchtests/bench-strcat.c: Add wcscat support.
26735         * benchtests/bench-wcscat.c: New File.
26736         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
26737
26738         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
26739         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
26740         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
26741         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
26742         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
26743         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
26744         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
26745         wcpncpy functions.
26746         * sysdeps/s390/multiarch/ifunc-impl-list.c
26747         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
26748         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
26749         * string/test-stpncpy.c: Add wcpncpy support.
26750         * wcsmbs/test-wcpncpy.c: New File.
26751         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
26752         * benchtests/bench-stpncpy.c: Add wcpncpy support.
26753         * benchtests/bench-wcpncpy.c: New File.
26754         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
26755
26756         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
26757         * sysdeps/s390/multiarch/strncpy.c: Likewise.
26758         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
26759         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
26760         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
26761         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
26762         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
26763         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
26764         wcsncpy functions.
26765         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
26766         * sysdeps/s390/multiarch/ifunc-impl-list.c
26767         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
26768         * string/test-strncpy.c: Add wcsncpy support.
26769         * wcsmbs/test-wcsncpy.c: New File.
26770         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
26771         * benchtests/bench-strncpy.c: Add wcsncpy support.
26772         * benchtests/bench-wcsncpy.c: New File.
26773         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
26774
26775         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
26776         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
26777         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
26778         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
26779         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
26780         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
26781         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
26782         wcpcpy functions.
26783         * string/stpcpy.c: Use STPCPY if defined.
26784         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
26785         * sysdeps/s390/multiarch/ifunc-impl-list.c
26786         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
26787         * string/test-stpcpy.c: Add wcpcpy support.
26788         * wcsmbs/test-wcpcpy.c: New File.
26789         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
26790         * benchtests/bench-stpcpy.c: Add wcpcpy support.
26791         * benchtests/bench-wcpcpy.c: New File.
26792         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
26793
26794         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
26795         * sysdeps/s390/multiarch/strcpy.c: Likewise.
26796         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
26797         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
26798         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
26799         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
26800         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
26801         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
26802         wcscpy functions.
26803         * sysdeps/s390/multiarch/ifunc-impl-list.c
26804         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
26805         * benchtests/bench-wcscpy.c: New File.
26806         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
26807
26808         * sysdeps/s390/multiarch/strnlen-c.c: New File.
26809         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
26810         * sysdeps/s390/multiarch/strnlen.c: Likewise.
26811         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
26812         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
26813         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
26814         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
26815         wcsnlen functions.
26816         * sysdeps/s390/multiarch/ifunc-impl-list.c
26817         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
26818         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
26819         * string/test-strnlen.c: Add wcsnlen support.
26820         * wcsmbs/test-wcsnlen.c: New File.
26821         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
26822         * benchtests/bench-strnlen.c: Add wcsnlen support.
26823         * benchtests/bench-wcsnlen.c: New File.
26824         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
26825
26826         * sysdeps/s390/multiarch/Makefile: New File.
26827         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
26828         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
26829         * sysdeps/s390/multiarch/strlen.c: Likewise.
26830         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
26831         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
26832         * sysdeps/s390/multiarch/wcslen.c: Likewise.
26833         * string/strlen.c (STRLEN): Define and use macro.
26834         * sysdeps/s390/multiarch/ifunc-impl-list.c
26835         (IFUNC_VX_IMPL): New macro function.
26836         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
26837         * benchtests/Makefile (wcsmbs-bench): New variable.
26838         (string-bench-all): Added wcsmbs-bench.
26839         * benchtests/bench-wcslen.c: New File.
26840
26841         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
26842         s390_vx_libc_ifunc2): New macro function.
26843
26844         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
26845         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
26846         assembler support.
26847         * sysdeps/s390/configure: Regenerated.
26848
26849         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
26850         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
26851
26852         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
26853         * sysdeps/s390/dl-procinfo.h: Add vector capability.
26854         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
26855
26856         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
26857         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
26858         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
26859         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
26860         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
26861         (memcmp, bcmp): Use __memcmp_default as alias source.
26862         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
26863         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
26864         Rename to __memcmp_default.
26865         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
26866         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
26867         (memcpy): Use __memcpy_default as alias source.
26868         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
26869         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
26870         Rename to __memcpy_default.
26871         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
26872         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
26873         (memset): Use __memset_default as alias source.
26874         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
26875         * sysdeps/s390/s390-32/memset.S (__memset_g5):
26876         Rename to __memset_default.
26877         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
26878         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
26879         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
26880         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
26881         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
26882         (memcmp, bcmp): Use __memcmp_default as alias source.
26883         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
26884         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
26885         Rename to __memcmp_default.
26886         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
26887         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
26888         (memcpy): Use __memcpy_default as alias source.
26889         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
26890         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
26891         Rename to __memcpy_default.
26892         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
26893         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
26894         (memset): Use __memset_default as alias source.
26895         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
26896         * sysdeps/s390/s390-64/memset.S (__memset_z900):
26897         Rename to __memset_default.
26898         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
26899         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
26900
26901         [BZ #18610]
26902         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
26903         __ieee_instruction_pointer to __unused.
26904         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
26905         __ieee_instruction_pointer.
26906         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
26907         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
26908         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
26909         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
26910         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
26911         Mark dxc-field as reserved.
26912
26913 2015-08-25  Roland McGrath  <roland@hack.frob.com>
26914
26915         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
26916         if the weak reference is not null.
26917
26918 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26919
26920         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
26921
26922         [BZ #11214]
26923         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
26924
26925 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26926
26927         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
26928         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
26929         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
26930         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
26931         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
26932         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
26933         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
26934         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
26935         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
26936         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
26937         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
26938         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
26939         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
26940         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
26941         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
26942         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
26943         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
26944         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
26945
26946 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26947
26948         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
26949         register other than r0 for tabort, it has special meaning.
26950         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
26951         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
26952         transaction before starting syscall.
26953
26954 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26955
26956         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
26957
26958 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26959
26960         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
26961
26962         * sysdeps/x86_64/rtld-memcmp.c: Removed.
26963         * sysdeps/x86_64/rtld-memset.S: Likewise.
26964         * sysdeps/x86_64/rtld-strchr.S: Likewise.
26965         * sysdeps/x86_64/rtld-strlen.S: Likewise.
26966         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
26967         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
26968
26969         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
26970
26971 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
26972
26973         * debug/strcpy_chk.c: Improve performance.
26974         * debug/stpcpy_chk.c: Likewise.
26975         * sysdeps/x86_64/strcpy_chk.S: Remove.
26976         * sysdeps/x86_64/stpcpy_chk.S: Remove.
26977
26978         [BZ #18240]
26979         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
26980
26981 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26982
26983         [BZ #15128]
26984         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
26985         ifuncmain8.
26986         (modules-names): Add ifuncmod8.
26987         ($(objpfx)ifuncmain8): New rule.
26988         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
26989         <cpuid.h>.
26990         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
26991         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
26992         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
26993         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
26994         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
26995         * sysdeps/x86_64/dl-trampoline.h: Likewise.
26996         * sysdeps/x86_64/ifuncmain8.c: New file.
26997         * sysdeps/x86_64/ifuncmod8.c: Likewise.
26998         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
26999         Removed.
27000         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
27001         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
27002         Change rtld_savespace_sse to __glibc_unused2.
27003         (RTLD_CHECK_FOREIGN_CALL): Removed.
27004         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
27005         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
27006         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
27007
27008 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
27009
27010         * sysdeps/aarch64/bzero.S (__bzero): Remove.
27011
27012 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
27013
27014         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
27015         Unconditionally set __fpcr to avoid uninialized warning.
27016         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
27017
27018 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27019
27020         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
27021         is corrupt.
27022
27023         * malloc/arena.c (arena_get2): Drop unused argument.
27024         (arena_lock): Adjust.
27025         (arena_get_retry): Likewise.
27026
27027 2015-08-24  Andreas Schwab  <schwab@suse.de>
27028
27029         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
27030         Don't define.
27031         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
27032         (__ASSUME_IPC64): Don't undef.
27033         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
27034         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
27035         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
27036         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
27037         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
27038         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
27039         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
27040         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
27041         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
27042         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
27043         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
27044         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
27045         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
27046         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
27047         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
27048         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
27049         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
27050         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
27051         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
27052         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
27053         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
27054
27055 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
27056
27057         * manual/Makefile (install): Only build manual when perl is available.
27058
27059 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27060
27061         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
27062         '#undef memcpy' by '#undef memchr'.
27063
27064 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27065
27066         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
27067         memchr not point to the internal __GI_memchr implementation.
27068
27069 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27070
27071         * timezone/Makefile (CFLAGS-zdump.c): Remove
27072         -Wno-strict-prototypes.
27073         (CFLAGS-zic.c): Likewise.
27074         (CFLAGS-ialloc.c): Likewise.
27075         (CFLAGS-scheck.c): Likewise.
27076
27077         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
27078         -Wno-error=undef.
27079
27080 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27081
27082         * i386/i686/multiarch/strcasestr-c.c: Removed.
27083         * x86_64/multiarch/strcasestr.c: Likewise.
27084         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27085         Remove strcasestr.
27086
27087 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27088
27089         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
27090
27091         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
27092         variables for high and low parts before possibly modifying them.
27093
27094 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27095
27096         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
27097         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
27098         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
27099         of "multiarch/init-arch.h".
27100         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
27101         * sysdeps/x86/init-arch.h: This.
27102
27103 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27104
27105         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
27106         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
27107
27108 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
27109
27110         [BZ #17787]
27111         * manual/macros.texi: Add twoexp macro.
27112         * manual/filesys.texi: Fix exponents.
27113         * manual/llio.texi: Likewise.
27114         * manual/stdio.texi: Likewise.
27115
27116 2015-08-20  Florian Weimer  <fweimer@redhat.com>
27117
27118         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
27119         incorrect use.
27120
27121 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27122
27123         [BZ #18370]
27124         * math/s_csqrt.c (__csqrt): Force underflow exception for results
27125         whose real or imaginary part has small absolute value.
27126         * math/s_csqrtf.c (__csqrtf): Likewise.
27127         * math/s_csqrtl.c (__csqrtl): Likewise.
27128         * math/auto-libm-test-in: Add more tests of csqrt.
27129         * math/auto-libm-test-out: Regenerated.
27130         * sysdeps/i386/fpu/libm-test-ulps: Update.
27131
27132 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
27133
27134         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
27135         __ppc_set_ppr_very_low): New functions.
27136         * manual/platform.texi: Add documentation about
27137         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
27138
27139 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
27140
27141         * string/stpncpy.c (stpncpy): Improve performance using
27142         __strnlen/memcpy/memset.
27143
27144 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
27145
27146         [BZ #18796]
27147         * scripts/test-installation.pl: Don't add -lmvec to build options if
27148         libmvec wasn't built.
27149
27150 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27151
27152         [BZ #14341]
27153         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
27154         case when there is a gap between DT_REL and DT_JMPREL sections.
27155         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
27156         (LDFLAGS-tst-split-dynreloc): New.
27157         (tst-split-dynreloc-ENV): Likewise.
27158         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
27159         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
27160
27161 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27162
27163         [BZ #18822]
27164         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
27165         attribute_hidden.
27166         (__xstat64_conv): Likewise.
27167         (__xstat32_conv): Likewise.
27168
27169 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27170
27171         [BZ #18822]
27172         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
27173         Don't load %ebx when calling __setcontext.  Call __setcontext
27174         with HIDDEN_JUMPTARGET.
27175         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
27176         libc_hidden_def.
27177
27178 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27179
27180         * sysdeps/i386/i686/Makefile
27181         [$(subdir) == string] (sysdep_routines): Moved to ...
27182         * sysdeps/i386/Makefile: Here.
27183         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
27184         * sysdeps/i386/cacheinfo.c: Here.
27185         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
27186         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
27187         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
27188         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
27189
27190 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27191
27192         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
27193         __i586__ is defined.
27194         (HAS_I686): Defined to 1 if __i686__ is defined.
27195
27196 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27197
27198         * elf/Makefile [$(have-z-execstack) = yes]
27199         (CPPFLAGS-tst-execstack.c): New variable.
27200
27201         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
27202         conditional to [defined UTMPX || _HAVE_UT_TYPE].
27203         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
27204         UTMPX || _HAVE_UT_TV].
27205         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
27206         UTMPX || _HAVE_UT_TV - 0].
27207
27208 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
27209
27210         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
27211         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
27212         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
27213
27214 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27215
27216         * sysdeps/powerpc/dl-procinfo.c:
27217         (_dl_powerpc_cap_flags): Added missing strings for some
27218         hwcap features.
27219         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
27220
27221 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27222
27223         Port the 0x7efe...feff pattern to GCC 6.
27224         See Steve Ellcey's bug report in:
27225         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
27226         * string/memrchr.c (MEMRCHR):
27227         * string/rawmemchr.c (RAWMEMCHR):
27228         * string/strchr.c (strchr):
27229         * string/strchrnul.c (STRCHRNUL):
27230         Rewrite code to avoid issues with signed shift overflow.
27231
27232 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
27233
27234         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
27235         whether cpuid is available only if HAS_CPUID is 0.
27236         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
27237         (HAS_I586): Likewise.
27238         (HAS_I686): Likewise.
27239
27240 2015-08-18  Zack Weinberg  <zackw@panix.com>
27241
27242         * misc/Versions (libc): Add GLIBC_2.23.
27243
27244 2015-08-18  Alan Modra  <amodra@gmail.com>
27245
27246         [BZ #18421]
27247         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
27248         .Lp__global.
27249         (_start): Load %dp via .Lp__global.
27250         [!SHARED]: Use .section .rodata.
27251
27252 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27253
27254         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
27255         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
27256
27257 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27258
27259         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
27260         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
27261
27262 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27263
27264         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
27265         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
27266
27267 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27268
27269         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
27270         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
27271
27272 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27273
27274         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
27275         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
27276
27277 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27278
27279         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
27280         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
27281
27282 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27283
27284         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
27285
27286 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27287
27288         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
27289         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
27290         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27291         (__ASSUME_LWS_CAS): Delete.
27292
27293 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27294
27295         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
27296         * sysdeps/hppa/configure: Regenerated.
27297         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
27298         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
27299         * sysdeps/hppa/nptl/tls.h: Likewise.
27300
27301 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
27302
27303         [BZ #18823]
27304         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
27305         for scaling up small arguments.
27306         * math/s_csqrtf.c (__csqrtf): Likewise.
27307         * math/s_csqrtl.c (__csqrtl): Likewise.
27308         * math/auto-libm-test-in: Add more tests of csqrt.
27309         * math/auto-libm-test-out: Regenerated.
27310
27311 2015-08-17  Andreas Schwab  <schwab@suse.de>
27312
27313         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
27314         version set GLIBC_2.19.
27315
27316 2015-08-16  Zack Weinberg  <zackw@panix.com>
27317
27318         [BZ #18681]
27319         * misc/regexp.h: This interface is no longer supported.
27320         Remove all contents, leaving only an #error directive.
27321         * misc/regexp.c (loc1, loc2, locs, step, advance):
27322         Demote to compatibility symbols.
27323
27324 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
27325
27326         [BZ #18084]
27327         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
27328         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
27329         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
27330         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
27331         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
27332         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
27333         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
27334         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
27335         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
27336
27337 2015-08-15  Zack Weinberg  <zackw@panix.com>
27338
27339         [BZ #18795]
27340         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
27341         buffer length is known to be too large, not if it's known to be
27342         small enough.
27343         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
27344         overflow at runtime, involving a length parameter, twice: once
27345         with a compile-time constant length parameter, once without.
27346
27347 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
27348
27349         [BZ #18824]
27350         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
27351         scaling x * y up instead of down.
27352         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27353         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27354         * math/auto-libm-test-in: Add more tests of fma.
27355         * math/auto-libm-test-out: Regenerated.
27356
27357 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
27358
27359         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27360
27361 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27362
27363         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
27364         unnecessary movq.
27365         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
27366         Likewise.
27367
27368 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
27369
27370         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
27371         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
27372         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
27373         and tgamma.
27374         * math/auto-libm-test-out: Regenerated.
27375         * sysdeps/i386/fpu/libm-test-ulps: Update.
27376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27377
27378         [BZ #16520]
27379         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
27380         (__tanh): Force underflow exception for arguments with small
27381         absolute value.
27382         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
27383         (__tanhf): Force underflow exception for arguments with small
27384         absolute value.
27385         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
27386         (__tanhl): Force underflow exception for arguments with small
27387         absolute value.
27388         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
27389         (__tanhl): Force underflow exception for arguments with small
27390         absolute value.
27391         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
27392         (__tanhl): Force underflow exception for arguments with small
27393         absolute value.
27394         * math/auto-libm-test-in: Add more tests of tanh.
27395         * math/auto-libm-test-out: Regenerated.
27396         * sysdeps/i386/fpu/libm-test-ulps: Update.
27397
27398 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27399
27400         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
27401         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
27402
27403 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27404
27405         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
27406         <cpuid.h>.
27407
27408 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27409
27410         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
27411         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
27412
27413 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27414
27415         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
27416         Remove $(objpfx)init-arch.o.
27417         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
27418         init-arch.
27419         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
27420         (INIT_ARCH_EXT): Defined as empty.
27421         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
27422         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
27423         __init_cpu_features call.  Replace HAS_XXX with
27424         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27425         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
27426         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
27427         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
27428         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
27429         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27430         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
27431         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
27432         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27433         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
27434         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
27435         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27436         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
27437         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
27438         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27439         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
27440         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
27441         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27442         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27443         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
27444         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
27445         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27446         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
27447         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
27448         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27449         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
27450         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
27451         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27452         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
27453         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
27454         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27455         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
27456         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
27457         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27458         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
27459         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
27460
27461 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27462
27463         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
27464         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27465         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27466         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27467         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
27468         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
27469         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
27470         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
27471         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
27472         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
27473         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
27474         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
27475         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27476         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27477         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27478         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27479         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27480         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27481         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27482         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27483         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27484         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27485         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27486         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27487         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27488         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27489         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27490         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27491         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27492         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27493         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27494         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27495         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27496         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27497         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27498         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27499         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27500         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27501         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27502         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27503         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27504         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27505         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27506
27507 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27508
27509         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
27510         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27511         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27512         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27513         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27514         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27515         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27516         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
27517         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27518         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27519         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27520         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
27521         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
27522         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
27523         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
27524         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
27525         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
27526         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
27527         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
27528         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
27529         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
27530         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
27531         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
27532         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27533         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27534         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
27535         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
27536         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
27537         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27538         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27539         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27540         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27541         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27542         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27543         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27544         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27545         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27546         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27547         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27548         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27549         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27550         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27551         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27552
27553 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27554
27555         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
27556         (dl_platform_init): Call init_cpu_features.
27557         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
27558         * sysdeps/i386/i686/cacheinfo.c
27559         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
27560         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
27561         * sysdeps/i386/i686/multiarch/Versions: Removed.
27562         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
27563         Removed.
27564         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
27565         * sysdeps/unix/sysv/linux/x86/Makefile
27566         (libpthread-sysdep_routines): Remove init-arch.
27567         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
27568         <sysdeps/x86_64/dl-procinfo.c> instead of
27569         sysdeps/generic/dl-procinfo.c>.
27570         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
27571         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
27572         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
27573         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
27574         [$(subdir) == elf] (tests-static): Add
27575         tst-get-cpu-features-static.
27576         * sysdeps/x86/Versions: New file.
27577         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
27578         * sysdeps/x86/cpu-features.c: Likewise.
27579         * sysdeps/x86/cpu-features.h: Likewise.
27580         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
27581         * sysdeps/x86/libc-start.c: Likewise.
27582         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
27583         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
27584         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
27585         * sysdeps/x86_64/dl-procinfo.c: Likewise.
27586         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
27587         Assume USE_MULTIARCH is defined and don't check it.
27588         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
27589         (is_amd): Likewise.
27590         (max_cpuid): Likewise.
27591         (intel_check_word): Likewise.
27592         (__cache_sysconf): Don't call __init_cpu_features.
27593         (__x86_preferred_memory_instruction): Removed.
27594         (init_cacheinfo): Don't call __init_cpu_features. Replace
27595         __cpu_features with GLRO(dl_x86_cpu_features).
27596         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
27597         (dl_platform_init): Call init_cpu_features.
27598         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
27599         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
27600         * sysdeps/x86_64/multiarch/Versions: Removed.
27601         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
27602         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
27603         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
27604         Removed.
27605         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
27606
27607 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27608
27609         [BZ #18820]
27610         * libio/Makefile (test-fmemopen-mem): New test.
27611         * libio/test-fmemopen.c (do_bz18820): New test.
27612         * libio/fmemopen.c (__fmemopen): Fix memory leak.
27613         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
27614
27615 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27616
27617         [BZ #16734]
27618         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
27619         (FREE_BUF): Delete.
27620         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
27621         * libio/genops.c (_IO_setb): Use malloc and free directly.
27622         (_IO_default_doallocate, _IO_default_finish): Likewise.
27623         ( _IO_unbuffer_all): Likewise.
27624         ( libc_freeres_fn): Likewise.
27625         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
27626         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
27627         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
27628         (_IO_wdefault_doallocate): Likewise.
27629
27630 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
27631
27632         [BZ #18086]
27633         * sysdeps/posix/nice.c (nice): Restore old errno.
27634         * posix/tst-nice.c (do_test): Add test for BZ #18086.
27635
27636 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
27637
27638         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
27639
27640 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27641
27642         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
27643         __bcopy and add a weak_alias to bcopy.
27644         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
27645         for static build.
27646
27647         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
27648         cleanup macro usage.
27649         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
27650         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
27651         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27652         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
27653         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27654         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
27655         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
27656         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27657         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
27658         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
27659         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27660         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
27661         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27662         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
27663         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
27664         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
27665         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
27666         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
27667         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27668
27669         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
27670         libc_hidden_def.
27671         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
27672
27673         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
27674         (sysdep_routines): Add strstr-ppc64.
27675         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
27676
27677 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
27678
27679         [BZ #18778]
27680         * elf/Makefile (tests): Add Add tst-nodelete2.
27681         (modules-names): Add tst-nodelete2mod.
27682         (tst-nodelete2mod.so-no-z-defs): New.
27683         ($(objpfx)tst-nodelete2): Likewise.
27684         ($(objpfx)tst-nodelete2.out): Likewise.
27685         (LDFLAGS-tst-nodelete2): Likewise.
27686         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
27687         out of loop through all loaded libraries.
27688         * elf/tst-nodelete2.c: New file.
27689         * elf/tst-nodelete2mod.c: Likewise.
27690         * elf/tst-znodelete-zlib.cc: Delete.
27691
27692 2015-08-11  Andreas Schwab  <schwab@suse.de>
27693
27694         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
27695         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
27696         (__openat64_nocancel): Likewise.
27697
27698 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
27699
27700         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
27701         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
27702         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
27703         * math/auto-libm-test-out: Regenerated.
27704         * sysdeps/i386/fpu/libm-test-ulps: Update.
27705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27706
27707 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27708
27709         [BZ #18790]
27710         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
27711         threshold for returning +/- 1.
27712         * math/auto-libm-test-in: Add more tests of tanh.
27713         * math/auto-libm-test-out: Regenerated.
27714         * sysdeps/i386/fpu/libm-test-ulps: Update.
27715
27716 2015-08-10  Andreas Schwab  <schwab@suse.de>
27717
27718         [BZ #18781]
27719         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
27720         MORE_OFLAGS to oflag.
27721         * io/test-lfs.c (do_test): Test openat64.
27722
27723 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27724
27725         [BZ #18789]
27726         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
27727         smaller threshold for returning the argument.
27728         * math/auto-libm-test-in: Add more tests of sinh.
27729         * math/auto-libm-test-out: Regenerated.
27730         * sysdeps/i386/fpu/libm-test-ulps: Update.
27731
27732 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
27733
27734         [BZ #18674]
27735         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
27736         break.
27737
27738 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
27739
27740         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
27741         (generated): Don't add $(addprefix z.,$(tzfiles)).
27742
27743 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27744
27745         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
27746         * scripts/sysd-rules.awk: Likewise.
27747
27748 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27749
27750         * iconvdata/tst-tables.sh: Change echo -n to printf.
27751         * nss/db-Makefile: Likewise.
27752         * posix/tst-getconf.sh: Likewise.
27753         * stdio-common/tst-unbputc.sh: Likewise.
27754
27755 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27756
27757         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
27758         MADV_*_PAGES defines behind this feature check.
27759
27760 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
27761
27762         [BZ #18480]
27763         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
27764         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
27765         Define.
27766         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
27767         LOAD_REGS_5, LOAD_REGS_6): Update.
27768         (INTERNAL_SYSCALL): Update using new LOAD defines.
27769         (INTERNAL_SYSCALL_NCS): Likewise.
27770         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
27771
27772 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27773
27774         [BZ #16734]
27775         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
27776
27777 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27778
27779         [BZ #17905]
27780         * catgets/Makefile (tst-catgets-mem): New test.
27781         * catgets/catgets.c (catopen): Don't use unbounded alloca.
27782         * catgets/open_catalog.c (__open_catalog): Likewise.
27783         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
27784
27785 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
27786
27787         [BZ #18787]
27788         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
27789         clobber registers.
27790         (atomic_compare_and_exchange_val_acq): Use register asms to assign
27791         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
27792         Cast return to __typeof (oldval).
27793
27794 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
27795
27796         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
27797         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
27798         and delete sys/syscall.h include.
27799
27800 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
27801
27802         [BZ #16517]
27803         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
27804         (tan): Force underflow exception for arguments with small absolute
27805         value.
27806         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
27807         (__kernel_tanf): Force underflow exception for arguments with
27808         small absolute value.
27809         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
27810         (__kernel_tanl): Force underflow exception for arguments with
27811         small absolute value.
27812         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
27813         (__kernel_tanl): Force underflow exception for arguments with
27814         small absolute value.
27815         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
27816         (__kernel_tanl): Force underflow exception for arguments with
27817         small absolute value.
27818         * math/auto-libm-test-in: Add more tests of tan.
27819         * math/auto-libm-test-out: Regenerated.
27820
27821 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27822
27823         Fix sysdeps/i386/fpu/s_scalbn.S build
27824
27825         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
27826
27827 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
27828
27829         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
27830
27831 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27832
27833         Fix gcrt0.o compilation
27834
27835         When static-start-installed-name is different from
27836         start-installed-name, we must not use the shared objects.
27837
27838         * csu/Makefile
27839         (extra-objs): Add gmon-start.o when building shared library and
27840         $(static-start-installed-name) is different from
27841         $(start-installed-name).
27842         $(objpfx)g$(static-start-installed-name): When building shared
27843         library and $(static-start-installed-name) is different from
27844         $(static-start-installed-name), revert to non-shared rule,
27845         i.e. using $(objpfx)% and gmon-start.o.
27846
27847 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
27848
27849         [BZ #16519]
27850         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
27851         (__ieee754_sinh): Force underflow exception for arguments with
27852         small absolute value.
27853         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
27854         (__ieee754_sinhf): Force underflow exception for arguments with
27855         small absolute value.
27856         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
27857         (__ieee754_sinhl): Force underflow exception for arguments with
27858         small absolute value.
27859         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
27860         (__ieee754_sinhl): Force underflow exception for arguments with
27861         small absolute value.
27862         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
27863         (__ieee754_sinhl): Force underflow exception for arguments with
27864         small absolute value.
27865         * math/auto-libm-test-in: Add more tests of sinh.
27866         * math/auto-libm-test-out: Regenerated.
27867         * sysdeps/i386/fpu/libm-test-ulps: Update.
27868
27869 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27870
27871         * libio/oldfileops.c: Include unistd.h.
27872
27873 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
27874
27875         * stdlib/isomac.c: Include ctype.h.
27876
27877 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
27878
27879         * dirent/tst-seekdir.c (main): Converted to ...
27880         (do_test): ... this.
27881         (TEST_FUNCTION): New macro.
27882         Include test-skeleton.c.
27883         * elf/tst-dlmodcount.c (main): Converted to ...
27884         (do_test): ... this.
27885         (TEST_FUNCTION): New macro.
27886         Include test-skeleton.c.
27887         * elf/tst-order-main.c (main): Converted to ...
27888         (do_test): ... this.
27889         (TEST_FUNCTION): New macro.
27890         Include test-skeleton.c.
27891         * elf/tst-pie2.c (main): Converted to ...
27892         (do_test): ... this.
27893         (TEST_FUNCTION): New macro.
27894         Include test-skeleton.c.
27895         * inet/tst-ether_aton.c (main): Converted to ...
27896         (do_test): ... this.
27897         (TEST_FUNCTION): New macro.
27898         Include test-skeleton.c.
27899         * misc/tst-mntent.c (main): Converted to ...
27900         (do_test): ... this.
27901         (TEST_FUNCTION): New macro.
27902         Include test-skeleton.c.
27903         * misc/tst-tsearch.c (main): Converted to ...
27904         (do_test): ... this.
27905         (TEST_FUNCTION): New macro.
27906         Include test-skeleton.c.
27907         * posix/tst-regexloc.c (main): Converted to ...
27908         (do_test): ... this.
27909         (TEST_FUNCTION): New macro.
27910         Include test-skeleton.c.
27911         * resolv/tst-aton.c (main): Converted to ...
27912         (do_test): ... this.
27913         (TEST_FUNCTION): New macro.
27914         Include test-skeleton.c.
27915         * stdio-common/test-fwrite.c (main): Converted to ...
27916         (do_test): ... this.
27917         (TEST_FUNCTION): New macro.
27918         Include test-skeleton.c.
27919         * stdio-common/tst-ferror.c (main): Converted to ...
27920         (do_test): ... this.
27921         (TEST_FUNCTION): New macro.
27922         Include test-skeleton.c.
27923         * stdio-common/tst-printf.c (main): Converted to ...
27924         (do_test): ... this.
27925         (TEST_FUNCTION): New macro.
27926         Include test-skeleton.c.
27927         * stdio-common/tst-printfsz.c (main): Converted to ...
27928         (do_test): ... this.
27929         (TEST_FUNCTION): New macro.
27930         Include test-skeleton.c.
27931         * stdlib/tst-strtod.c (main): Converted to ...
27932         (do_test): ... this.
27933         (TEST_FUNCTION): New macro.
27934         Include test-skeleton.c.
27935         * string/tst-strlen.c (main): Converted to ...
27936         (do_test): ... this.
27937         (TEST_FUNCTION): New macro.
27938         Include test-skeleton.c.
27939         * string/tst-svc.c (main): Converted to ...
27940         (do_test): ... this.
27941         (TEST_FUNCTION): New macro.
27942         Include test-skeleton.c.
27943         * time/tst-strptime.c (main): Converted to ...
27944         (do_test): ... this.
27945         (TEST_FUNCTION): New macro.
27946         Include test-skeleton.c.
27947         * timezone/tst-timezone.c (main): Converted to ...
27948         (do_test): ... this.
27949         (TEST_FUNCTION): New macro.
27950         Include test-skeleton.c.
27951
27952 2015-08-05  Zack Weinberg  <zackw@panix.com>
27953
27954         * misc/regexp.h: Update comments.
27955
27956 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
27957
27958         [BZ #18635]
27959         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
27960         before return label.
27961
27962 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27963
27964         [BZ #18661]
27965         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
27966         when calling __errno_location.
27967         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
27968         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
27969
27970 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27971
27972         [BZ #18661]
27973         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
27974         (__lll_timedwait_tid): Align stack to 16 bytes when calling
27975         __gettimeofday.
27976
27977 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27978
27979         [BZ #18661]
27980         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27981         (__start_context): Don't use pop to restore %rdi so that stack
27982         is aligned to 16 bytes when calling __setcontext.
27983
27984 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27985
27986         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
27987         only for libc.
27988         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
27989
27990 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27991
27992         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
27993         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
27994         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
27995
27996 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27997
27998         * string/memccpy.c (memccpy):
27999         Improve performance by using memchr/memcpy/__mempcpy.
28000
28001 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28002
28003         * string/strncpy.c (strncpy):
28004         Improve performance by using __strnlen/memcpy.
28005
28006 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28007
28008         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28009         Optimize to avoid an unnecessary FPCR read.
28010
28011 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28012
28013         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28014         Optimize to reduce FPCR/FPSR accesses.
28015
28016 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28017
28018         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
28019         dead->data[category] != NULL.
28020
28021 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
28022
28023         [BZ #18647]
28024         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
28025         and |x| close to 1, use absolute value of x when computing log.
28026         * math/auto-libm-test-in: Add more tests of pow.
28027         * math/auto-libm-test-out: Regenerated.
28028
28029 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28030
28031         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
28032         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
28033         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
28034
28035 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
28036
28037         [BZ #18525]
28038         * locales/km_KH: Remove timezone definition.
28039         * locales/lo_LA: Likewise.
28040         * locales/my_MM: Likewise.
28041         * locales/nan_TW@latin: Likewise.
28042         * locales/th_TH: Likewise.
28043         * locales/uk_UA: Likewise.
28044
28045 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
28046
28047         [BZ #18265]
28048         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
28049         (wcsncat): Likewise.
28050         (wcscmp): Likewise.
28051         (wcsncmp): Likewise.
28052
28053 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28054
28055         * test-skeleton.c (usage): New function.
28056         (main): Call usage when opt is '?'.
28057
28058 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28059
28060         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
28061         before first use.
28062
28063 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28064
28065         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
28066         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
28067         in there too.
28068
28069 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
28070
28071         * version.h (RELEASE): Set to "development".
28072         (VERSION): Set to "2.22.90"
28073
28074         * version.h (RELEASE): Set to "stable".
28075         (VERSION): Set to "2.22"
28076         * include/features.h (__GLIBC_MINOR__): Set to 22.
28077
28078 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
28079
28080         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
28081         Restructure macro to avoid "value computed is not used" warning.
28082         (atomic_compare_and_exchange_val_acq): Likewise.
28083
28084 2015-08-04  Andreas Schwab  <schwab@suse.de>
28085
28086         [BZ #18635]
28087         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
28088         ret.
28089         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
28090
28091 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
28092
28093         * po/pl.po: Updated translation.
28094         * po/uk.po: Likewise.
28095         * po/fi.po: Likewise.
28096         * po/ko.po: Likewise.
28097         * po/ru.po: Likewise.
28098         * po/vi.po: Likewise.
28099
28100 2015-07-31  Zack Weinberg  <zackw@panix.com>
28101
28102         [BZ #18681]
28103         * regexp.h: Add unconditional #warning stating that this header
28104         will be removed soon.  Revise banner comment to match.
28105         (compile): Consistently use ERROR instead of RETURN to report
28106         errors (partial fix for BZ #18681).
28107         * regexp.c: Don't include regexp.h. Remove some unnecessary
28108         declarations.
28109
28110 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
28111
28112         * po/libc.pot: Regenerated.
28113
28114 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28115
28116         [BZ #18740]
28117         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
28118         float-vlen4-arch-ext-cflags): Removed.
28119         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
28120         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
28121
28122 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28123
28124         [BZ #14113]
28125         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
28126         aligned to __aligned__.
28127         (pthread_cond_t, pthread_rwlock_t): Likewise.
28128
28129 2015-07-30  Torvald Riegel  <triegel@redhat.com>
28130
28131         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
28132
28133 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28134
28135         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
28136         (struct sigaction): Change sa_flags from a long to an int, and add
28137         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
28138
28139 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28140
28141         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
28142         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
28143         sysdeps/generic/sysdep.h include.
28144         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
28145         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
28146         sysdeps/hppa/sysdep.h.
28147         (ENTRY, PSEUDO): Undefine before defining.
28148
28149 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28150
28151         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
28152         from scratch to use INTERNAL_SYSCALL.
28153
28154 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
28155
28156         [BZ #18078]
28157         * scripts/check-localplt.awk: Support alternate relocations.
28158         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
28159         sections.
28160         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
28161         malloc entries with + REL R_386_GLOB_DAT.
28162         * sysdeps/x86_64/localplt.data: New file.
28163
28164 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
28165
28166         [BZ #18731]
28167         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
28168         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
28169         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
28170
28171 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28172
28173         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
28174
28175 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28176
28177         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
28178         directly in terms of __sync_fetch_and_add and delete (int) cast.
28179
28180 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28181
28182         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
28183         the -D_ASM_IA64_CURRENT_H flag.
28184
28185 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28186
28187         [BZ #18641]
28188         * pwd/pwd.h (putpwent): Delete __nonnull markings.
28189
28190 2015-07-27  Andreas Schwab  <schwab@suse.de>
28191
28192         * conform/conformtest.pl (checknamespace): Filter out string
28193         literals while tokenizing.
28194
28195 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28196
28197         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28198         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
28199         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28200
28201 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28202
28203         * nptl/tst-join7mod.c: Add #include <string.h>.
28204
28205 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28206
28207         * sysdeps/nios2/libm-test-ulps: Update.
28208
28209 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28210
28211         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
28212         Fix order of arguments to the rt_sigprocmask syscall.
28213         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
28214         Likewise.
28215
28216 2015-07-24  Roland McGrath  <roland@hack.frob.com>
28217
28218         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
28219
28220 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28221
28222         [BZ #18457]
28223         * nptl/Makefile (tests): New test case tst-join7.
28224         (modules-names): New test case module tst-join7mod.
28225         * nptl/tst-join7.c: New file.
28226         * nptl/tst-join7mod.c: New file.
28227         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
28228         all translation units in libc.so, libpthread.so and rtld.
28229
28230 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28231
28232         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28233
28234 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
28235
28236         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
28237         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
28238         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
28239         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
28240         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
28241         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
28242         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
28243         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
28244         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
28245         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
28246         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
28247         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
28248         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
28249         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
28250         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
28251         implementation.
28252
28253 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28254
28255         [BZ #17711]
28256         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28257         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
28258         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28259         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28260         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
28261         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28262
28263 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28264
28265         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
28266         instead of just saying load lock in the comments.
28267
28268 2015-07-23  Roland McGrath  <roland@hack.frob.com>
28269
28270         * sysdeps/unix/Subdirs: Moved ...
28271         * sysdeps/posix/Subdirs: ... here.
28272         * login/pty.h (struct termios, struct winsize): Add forward decls.
28273         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
28274         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
28275         * sysdeps/arm/nacl/libc.abilist: Updated.
28276         * sysdeps/nacl/libutil.abilist: New file.
28277
28278         * bits/signum.h: Update comments to mention 1003.1-2013 too.
28279         (SIGWINCH): New macro.
28280
28281         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
28282         * sysdeps/arm/nacl/libc.abilist: Add it.
28283
28284 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28285
28286         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
28287
28288 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28289
28290         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28291         Swap __glibc_reserved0 and sa_flags order.
28292
28293 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
28294
28295         [BZ #18657]
28296         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
28297         are pending TLS destructor calls.
28298         * include/link.h (struct link_map): Add concurrency note for
28299         L_TLS_DTOR_COUNT.
28300         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
28301         Don't touch the link map flag.  Atomically increment
28302         l_tls_dtor_count.
28303         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
28304         Avoid taking the load lock and don't touch the link map flag.
28305         * stdlib/tst-tls-atexit-nodelete.c: New test case.
28306         * stdlib/Makefile (tests): Use it.
28307         * stdlib/tst-tls-atexit.c (do_test): dlopen
28308         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
28309         to allow tst-tls-atexit-nodelete test case to use it.
28310
28311 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28312
28313         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
28314         to bits/types.h.
28315         (msgqnum_t): New typedef.
28316         (msglen_t): Likewise.
28317         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
28318         and msg_qbytes type to msglen_t.
28319
28320 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28321
28322         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
28323         pad0 to __glibc_reserved0.
28324         (struct stat64): Likewise.
28325
28326 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28327
28328         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28329         Change sa_flags from a long to an int and add __glibc_reserved0 before
28330         it for padding.
28331
28332 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28333
28334         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
28335         anonymous by deleting "siginfo" name.
28336
28337 2015-07-21  Roland McGrath  <roland@hack.frob.com>
28338
28339         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
28340         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
28341         rather than __nacl_irt_filename.
28342         * sysdeps/nacl/xstat.c (__xstat): Likewise.
28343
28344         * NEWS: New item for arm-nacl port.
28345         * sysdeps/arm/nacl/libc.abilist: New file.
28346         * sysdeps/nacl/ld.abilist: New file.
28347         * sysdeps/nacl/libBrokenLocale.abilist: New file.
28348         * sysdeps/nacl/libanl.abilist: New file.
28349         * sysdeps/nacl/libcrypt.abilist: New file.
28350         * sysdeps/nacl/libdl.abilist: New file.
28351         * sysdeps/nacl/libm.abilist: New file.
28352         * sysdeps/nacl/libpthread.abilist: New file.
28353         * sysdeps/nacl/libresolv.abilist: New file.
28354         * sysdeps/nacl/librt.abilist: New file.
28355
28356 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
28357
28358         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
28359         __startcontext to initialize the new context.
28360         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
28361         up CFI directive to forbid further backtracing.
28362
28363 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
28364
28365         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
28366         reference.
28367         * charmaps/ANSI_X3.4-1968: Likewise.
28368         * charmaps/BS_4730: Likewise.
28369         * charmaps/BS_VIEWDATA: Likewise.
28370         * charmaps/CP1250: Likewise.
28371         * charmaps/CP1251: Likewise.
28372         * charmaps/CP1252: Likewise.
28373         * charmaps/CP1253: Likewise.
28374         * charmaps/CP1254: Likewise.
28375         * charmaps/CP1255: Likewise.
28376         * charmaps/CP1256: Likewise.
28377         * charmaps/CSN_369103: Likewise.
28378         * charmaps/EBCDIC-DK-NO: Likewise.
28379         * charmaps/GB_1988-80: Likewise.
28380         * charmaps/GREEK-CCITT: Likewise.
28381         * charmaps/GREEK7: Likewise.
28382         * charmaps/INIS-8: Likewise.
28383         * charmaps/ISIRI-3342: Likewise.
28384         * charmaps/ISO_2033-1983: Likewise.
28385         * charmaps/ISO_5427-EXT: Likewise.
28386         * locales/POSIX: Likewise.
28387         * locales/ar_SA: Likewise.
28388         * locales/be_BY: Likewise.
28389         * locales/be_BY@latin: Likewise.
28390         * locales/ca_ES: Likewise.
28391         * locales/cs_CZ: Likewise.
28392         * locales/da_DK: Likewise.
28393         * locales/de_BE: Likewise.
28394         * locales/de_CH: Likewise.
28395         * locales/de_LU: Likewise.
28396         * locales/en_AU: Likewise.
28397         * locales/en_BW: Likewise.
28398         * locales/en_CA: Likewise.
28399         * locales/en_DK: Likewise.
28400         * locales/en_GB: Likewise.
28401         * locales/en_IE: Likewise.
28402         * locales/en_NZ: Likewise.
28403         * locales/en_ZA: Likewise.
28404         * locales/en_ZW: Likewise.
28405         * locales/es_AR: Likewise.
28406         * locales/es_BO: Likewise.
28407         * locales/es_CL: Likewise.
28408         * locales/es_CO: Likewise.
28409         * locales/es_DO: Likewise.
28410         * locales/es_EC: Likewise.
28411         * locales/es_ES: Likewise.
28412         * locales/es_HN: Likewise.
28413         * locales/es_MX: Likewise.
28414         * locales/es_PA: Likewise.
28415         * locales/es_PE: Likewise.
28416         * locales/es_PY: Likewise.
28417         * locales/es_SV: Likewise.
28418         * locales/es_US: Likewise.
28419         * locales/es_UY: Likewise.
28420         * locales/es_VE: Likewise.
28421         * locales/et_EE: Likewise.
28422         * locales/fa_IR: Likewise.
28423         * locales/fo_FO: Likewise.
28424         * locales/fr_CA: Likewise.
28425         * locales/fr_CH: Likewise.
28426         * locales/gv_GB: Likewise.
28427         * locales/he_IL: Likewise.
28428         * locales/hr_HR: Likewise.
28429         * locales/id_ID: Likewise.
28430         * locales/is_IS: Likewise.
28431         * locales/it_CH: Likewise.
28432         * locales/iw_IL: Likewise.
28433         * locales/kl_GL: Likewise.
28434         * locales/ko_KR: Likewise.
28435         * locales/kw_GB: Likewise.
28436         * locales/lg_UG: Likewise.
28437         * locales/lt_LT: Likewise.
28438         * locales/lv_LV: Likewise.
28439         * locales/mi_NZ: Likewise.
28440         * locales/nhn_MX: Likewise.
28441         * locales/nl_BE: Likewise.
28442         * locales/pl_PL: Likewise.
28443         * locales/sk_SK: Likewise.
28444         * locales/sl_SI: Likewise.
28445         * locales/sv_FI: Likewise.
28446         * locales/tl_PH: Likewise.
28447         * locales/tr_TR: Likewise.
28448         * locales/vi_VN: Likewise.
28449
28450 2015-07-21  Khem Raj  <raj.khem@gmail.com>
28451
28452         [BZ #17475]
28453         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
28454         of tu_IN and bh_IN.
28455
28456 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
28457
28458         [BZ #18694]
28459         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
28460         bits/wordsize.h.
28461         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
28462
28463 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28464
28465         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
28466         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
28467         (spawn_thread): New function.
28468         (load): Rename to reg_dtor_and_close.  Move dlopen to...
28469         (do_test): ... here.  Use IS_LOADED to test for its
28470         availability.
28471
28472 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
28473
28474         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28475
28476 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
28477
28478         [BZ #18696]
28479         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
28480         si_addr_bnd.
28481         (si_lower): New.
28482         (si_upper): Likewise.
28483
28484 2015-07-16  David S. Miller  <davem@davemloft.net>
28485
28486         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
28487
28488 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28489
28490         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
28491         buffer.
28492         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
28493         fail output information.
28494
28495 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28496
28497         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
28498         and strstr-ppc64..
28499         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
28500         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
28501         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
28502         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
28503         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
28504
28505 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28506
28507         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28508         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28509         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28510         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28511
28512 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28513
28514         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28515         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
28516         rtld_hidden_proto.
28517         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
28518
28519 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28520
28521         * tst-nodelete-opened.c (do_test): Add comment to clarify how
28522         the test can fail.
28523
28524         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
28525
28526         [BZ #18676]
28527         * elf/tst-nodelete-opened.c: New test case.
28528         * elf/tst-nodelete-opened-lib.c: New test case module.
28529         * elf/Makefile (tests, modules-names): Use them.
28530         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
28531         early.
28532
28533 2015-07-15  David S. Miller  <davem@davemloft.net>
28534
28535         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
28536         futex-intenal.h
28537         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
28538         * sysdeps/sparc/sparc64/Makefile: Likewise.
28539         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28540         Remove space from macro define.
28541         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
28542
28543 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
28544
28545         [BZ #17475]
28546         * locale/iso-639.def: Update Bhili and Tulu language codes as
28547         per iso639-3.
28548
28549 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
28550
28551         * elf/tst-leaks1.c (main): Converted to ...
28552         (do_test): ... this.
28553         (TEST_FUNCTION): New macro.
28554         Include test-skeleton.c.
28555         * localedata/tst-langinfo.c (main): Converted to ...
28556         (do_test): ... this.
28557         (TEST_FUNCTION): New macro.
28558         Include test-skeleton.c.
28559         * math/test-fpucw.c (main): Converted to ...
28560         (do_test): ... this.
28561         (TEST_FUNCTION): New macro.
28562         Include test-skeleton.c.
28563         * math/test-tgmath.c (main): Converted to ...
28564         (do_test): ... this.
28565         (TEST_FUNCTION): New macro.
28566         Include test-skeleton.c.
28567         * math/test-tgmath2.c (main): Converted to ...
28568         (do_test): ... this.
28569         (TEST_FUNCTION): New macro.
28570         Include test-skeleton.c.
28571         * setjmp/tst-setjmp.c (main): Converted to ...
28572         (do_test): ... this.
28573         (TEST_FUNCTION): New macro.
28574         Include test-skeleton.c.
28575         * stdio-common/tst-sscanf.c (main): Converted to ...
28576         (do_test): ... this.
28577         (TEST_FUNCTION): New macro.
28578         Include test-skeleton.c.
28579         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
28580         (do_test): ... this.
28581         (TEST_FUNCTION): New macro.
28582         Include test-skeleton.c.
28583
28584         * elf/tst-audit9.c (main): Converted to ...
28585         (do_test): ... this.
28586         (TEST_FUNCTION): New macro.
28587         Include test-skeleton.c.
28588
28589 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
28590
28591         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
28592
28593 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28594
28595         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
28596         New variable.
28597
28598 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28599
28600         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28601
28602 2015-07-14  Roland McGrath  <roland@hack.frob.com>
28603
28604         * sysdeps/generic/dl-fileid.h: New file.
28605         * sysdeps/posix/dl-fileid.h: New file.
28606         * sysdeps/nacl/dl-fileid.h: New file.
28607         * include/link.h: Include <dl-fileid.h>.
28608         (struct link_map): Replace l_dev and l_ino with l_file_id.
28609         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
28610         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
28611         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
28612
28613 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28614
28615         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
28616
28617 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28618
28619         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
28620         Add iff $CXX is set.
28621         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
28622         Likewise.
28623         (tst-nodelete-zmodiff): Likewise.
28624         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
28625
28626 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28627
28628         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
28629
28630 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28631
28632         * sysdeps/aarch64/fpu/math_private.h
28633         (define math_opt_barrier): Add AArch64 version.
28634         (math_force_eval): Likewise.
28635
28636 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28637
28638         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
28639
28640 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
28641
28642         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
28643         %ld with %jd and cast to intmax_t.
28644         (do_test_length_zero): Likewise.
28645
28646 2015-07-10  Roland McGrath  <roland@hack.frob.com>
28647
28648         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
28649
28650 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
28651
28652         * sysdeps/tile/libm-test-ulps: Regenerated.
28653
28654         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
28655         Comment out the whole function, not just its body.
28656
28657 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28658
28659         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
28660         locks.
28661
28662         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
28663
28664 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28665
28666         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
28667         (sem_assume_only_signals_cause_futex_EINTR): Remove.
28668
28669 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28670
28671         * sysdeps/nptl/futex-internal.h: New file.
28672         * sysdeps/nacl/futex-internal.h: New file.
28673         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
28674         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
28675         error checking.
28676         (setxid_unmark_thread): Likewise.
28677         (__nptl_setxid): Likewise.
28678         (__wait_lookup_done): Likewise.
28679         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28680         * nptl/nptl-init.c (sighandler_setxid): Likewise.
28681         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28682         * nptl/pthread_once.c (clear_once_control): Likewise.
28683         (__pthread_once_slow): Likewise.
28684         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
28685         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
28686         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
28687         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28688         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
28689         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
28690         Likewise.
28691         (__pthread_rwlock_rdlock): Likewise.
28692         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
28693         Likewise.
28694         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
28695         Likewise.
28696         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
28697         Likewise.
28698         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
28699         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
28700         Likewise.
28701         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
28702         __ASSUME_PRIVATE_FUTEX check.
28703         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
28704         Check that shared futexes are supported.
28705         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
28706         wrappers with error checking.
28707         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
28708         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
28709         * nptl/pthread_barrierattr_setpshared.c
28710         (pthread_barrierattr_setpshared): Check that shared futexes are
28711         supported.
28712         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
28713         Likewise.
28714         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
28715         Likewise.
28716         * nptl/sem_init.c (futex_private_if_supported): Remove.
28717         (__new_sem_init): Adapt and check that shared futexes are supported.
28718         * nptl/sem_open.c (sem_open): Likewise.
28719         * nptl/sem_post.c (futex_wake): Remove.
28720         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
28721         (do_futex_wait): Use futex wrappers with error checking.
28722         * nptl/sem_wait.c: Include lowlevellock.h.
28723         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
28724         Use futex_supports_pshared.
28725         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
28726         Use futex wrappers with error checking.
28727         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
28728         Likewise.
28729         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
28730         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
28731         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
28732         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
28733         (futex_wake): Likewise.
28734         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
28735         (do_futex_wait): Use futex wrappers with error checking.
28736         (__new_sem_wait_slow): Update EINTR handling.
28737         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
28738
28739 2015-07-09  Martin Sebor  <msebor@redhat.com>
28740
28741         [BZ #18435]
28742         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28743         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
28744         * nptl/Makefile (test-xfail-tst-once5): Define.
28745
28746 2015-07-09  Roland McGrath  <roland@hack.frob.com>
28747
28748         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
28749         * elf/dl-minimal.c: For readability, reorder some definitions and
28750         introduce more page breaks.  Include <stdio.h>.
28751         (__libc_fatal): New function.
28752
28753         * include/unistd.h: Add rtld_hidden_proto for _exit.
28754         * posix/_exit.c: Add rtld_hidden_def.
28755         * sysdeps/mach/hurd/_exit.c: Likewise.
28756         * sysdeps/nacl/_exit.c: Likewise.
28757         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
28758         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
28759
28760 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
28761
28762         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
28763         bndmov encoding with zero displacement.
28764
28765 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
28766             H.J. Lu  <hongjiu.lu@intel.com>
28767
28768         [BZ #18134]
28769         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
28770         * sysdeps/i386/configure: Regenerated.
28771         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
28772         (_dl_runtime_profile): Save and restore Intel MPX return bound
28773         registers when calling _dl_call_pltexit.  Add
28774         PRESERVE_BND_REGS_PREFIX before return.
28775         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
28776         (LRV_BND1_OFFSET): Likewise.
28777         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
28778         lrv_bnd1.
28779         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
28780         typo in bndmov encoding.
28781         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
28782         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
28783         branch instructions to preserve bounds.
28784
28785 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28786
28787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
28788         [GLIBC_2.22]: Add fmemopen.
28789
28790 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28791
28792         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
28793         returns an error, also try to use host port from __mach_host_self for
28794         the __vm_wire call.
28795         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
28796
28797 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28798
28799         [BZ #18400]
28800         [BZ #18648]
28801         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
28802         Fix pr_uid and pr_gid members.
28803         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
28804         definition to elf_greg_t.
28805
28806 2015-07-08  Roland McGrath  <roland@hack.frob.com>
28807
28808         [BZ #18383]
28809         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
28810         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
28811         * sysdeps/arm/configure: Regenerated.
28812         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
28813         (test-xfail-tst-tlsalign-static): Variable removed.
28814
28815         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
28816         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
28817         rather than explicit 'ln -s'.
28818
28819         * resolv/rpc/netdb.h: New file.
28820         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
28821
28822 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28823
28824         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
28825         length buffers.
28826         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
28827         test-skeleton.c.
28828
28829         [BZ #6544]
28830         [BZ #11216]
28831         [BZ #12836]
28832         [BZ #13151]
28833         [BZ #13152]
28834         [BZ #14292]
28835         * include/stdio.h (fmemopen): Remove hidden prototype.
28836         (__fmemopen): Add new hidden prototype.
28837         * libio/Makefile: Add oldfmemopen object.
28838         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
28839         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
28840         compliance.
28841         * libio/oldfmemopen.c: New file: old fmemopen implementation for
28842         symbol compatibility.
28843         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
28844         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
28845         fmemopen.
28846         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
28847         on append and read mode.
28848         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
28849         fmemopen.
28850         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
28851         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
28852         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
28853         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
28854         Likewise.
28855         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
28856         [GLIBC_2.22]: Likewise.
28857         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
28858         Likewise.
28859         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
28860         Likewise.
28861         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
28862         [GLIBC_2.22]: Likewise.
28863         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
28864         [GLIBC_2.22]: Likewise.
28865         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
28866         [GLIBC_2.22]: Likewise.
28867         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
28868         [GLIBC_2.22]: Likewise.
28869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
28870         [GLIBC_2.22]: Likewise.
28871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
28872         [GLIBC_2.22]: Likewise.
28873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
28874         [GLIBC_2.22]: Likewise.
28875         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
28876         Likewise.
28877         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
28878         Likewise.
28879         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
28880         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
28881         [GLIBC_2.22]: Likewise.
28882         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
28883         [GLIBC_2.22]: Likewise.
28884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
28885         [GLIBC_2.22]: Likewise.
28886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
28887         [GLIBC_2.22]: Likewise.
28888         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
28889         Likewise.
28890         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
28891         Likewise.
28892         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
28893         Likewise.
28894         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
28895         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
28896
28897 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28898
28899         [BZ #18643]
28900         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
28901         IPV6_PATHMTU, and IPV6_DONTFRAG.
28902
28903 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
28904
28905         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
28906         and _IO_UNBUFFERED.
28907         * libio/oldfileops.c: Likewise.
28908         * libio/wfileops.c: Likewise.
28909
28910 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28911
28912         * nscd/selinux.c: Delete selinux/flask.h include.
28913
28914 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28915
28916         [BZ #18641]
28917         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
28918         (putpwent): Likewise.
28919         (getpwnam): Likewise.
28920         (getpwent_r): Likewise.
28921         (getpwuid_r): Likewise.
28922         (getpwnam_r): Likewise.
28923         (fgetpwent_r): Likewise.
28924
28925 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28926
28927         [BZ #18557]
28928         * inet/rcmd.c (__validuser2_sa): Check user first to
28929         short-circuit host check.
28930
28931 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
28932             Mikhail Ilin  <m.ilin@samsung.com>
28933
28934         [BZ #17833]
28935         * elf/Makefile (tests): Add tst-nodelete.
28936         (modules-names): Add tst-nodelete-uniquemod.
28937         (tst-nodelete-uniquemod.so-no-z-defs): New.
28938         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
28939         (tst-nodelete-zmod.so-no-z-defs): Likewise.
28940         ($(objpfx)tst-nodelete): Likewise.
28941         ($(objpfx)tst-nodelete.out): Likewise.
28942         (LDFLAGS-tst-nodelete): Likewise.
28943         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
28944         * elf/dl-close.c (_dl_close_worker): Add a parameter to
28945         implement forced object deletion.
28946         (_dl_close): Pass false to _dl_close_worker.
28947         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
28948         * elf/tst-nodelete.cc: New file.
28949         * elf/tst-nodeletelib.cc: Likewise.
28950         * elf/tst-znodeletelib.cc: Likewise.
28951         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
28952
28953 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28954
28955         [BZ #18508]
28956         * stdlib/Makefile ($(objpfx)tst-makecontext3):
28957         Depend on $(libdl).
28958         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
28959         is not called infinitely times.
28960         (backtrace_helper): New function.
28961         (trace_arg): New struct.
28962         (st1): Enlarge stack size.
28963         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
28964         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
28965         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
28966         Likewise.
28967
28968 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28969
28970         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28971
28972 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28973
28974         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
28975         Include sys/types.h instead of bits/types.h.
28976         Remove inclusion of bits/wordsize.h.
28977
28978 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28979
28980         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
28981         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
28982         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
28983         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
28984         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
28985         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
28986
28987 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28988
28989         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
28990         link-defines.sym.
28991         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
28992         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
28993         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
28994         and LR_SIZE.
28995         * sysdeps/i386/link-defines.sym: New file.
28996
28997 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28998
28999         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
29000         (modules-names): Add tst-auditmod3a tst-auditmod3b.
29001         ($(objpfx)tst-audit3): New rule.
29002         ($(objpfx)tst-audit3.out): Likewise.
29003         * sysdeps/i386/tst-audit3.c: New file.
29004         * sysdeps/i386/tst-audit3.h: Likewise.
29005         * sysdeps/i386/tst-auditmod3a.c: Likewise.
29006         * sysdeps/i386/tst-auditmod3b.c: Likewise.
29007
29008 2015-07-07  Torvald Riegel  <triegel@redhat.com>
29009
29010         [BZ #18633]
29011         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
29012         pointer in C code.
29013         (__strcat_c): Likewise.
29014         (__strcat_g): Likewise.
29015
29016 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
29017
29018         [BZ #18592]
29019         * misc/sbrk.c: Set errno to ENOMEM on overflow.
29020
29021 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
29022
29023         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
29024         New function.  (__ieee754_sqrtf): New function.
29025         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
29026         New function.
29027         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
29028         New function.
29029
29030 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
29031
29032         * sysdeps/ieee754/support.c: Remove unused file.
29033
29034 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29035
29036         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
29037         registers instead of d ones so the layout is kernel abi compatible.
29038         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
29039         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
29040         Likewise.
29041
29042 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29043
29044         * sysdeps/aarch64/libm-test-ulps: Regenerated.
29045
29046 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
29047
29048         [BZ #18619]
29049         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
29050         and return argument in case of subnormal argument.
29051
29052 2015-07-01  Martin Sebor  <msebor@redhat.com>
29053
29054         [BZ #18435]
29055         * nptl/Makefile: Add tst-once5.cc.
29056         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
29057         Remove macro redefinitions.
29058         * nptl/tst-once5.cc: New test.
29059
29060 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
29061
29062         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29063
29064         * sysdeps/arm/libm-test-ulps: Regenerated.
29065
29066         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29067         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29068
29069 2015-06-30  Torvald Riegel  <triegel@redhat.com>
29070
29071         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
29072         lll_lock_wait_private and lll_futex_wake probes.
29073
29074         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29075         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
29076         Likewise.
29077         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
29078         atomic_spin_nop.
29079         * sysdeps/x86_64/bits/atomic.h: Likewise.
29080         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
29081         to atomic_spin_nop and move ...
29082         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
29083         ... here and ...
29084         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
29085         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
29086         atomic_spin_nop instead of BUSY_WAIT_NOP.
29087         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
29088         Likewise.
29089         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
29090         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29091         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
29092         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
29093         instead of atomic_delay.
29094
29095 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
29096
29097         [BZ #18613]
29098         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
29099         X_ADJ not X when adjusting exponent.
29100         (__ieee754_gamma_r): Do intermediate computations in
29101         round-to-nearest then adjust overflowing and underflowing results
29102         as needed.
29103         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
29104         of X_ADJ not X when adjusting exponent.
29105         (__ieee754_gammaf_r): Do intermediate computations in
29106         round-to-nearest then adjust overflowing and underflowing results
29107         as needed.
29108         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
29109         log of X_ADJ not X when adjusting exponent.
29110         (__ieee754_gammal_r): Do intermediate computations in
29111         round-to-nearest then adjust overflowing and underflowing results
29112         as needed.  Use 1.0L not 1.0f as numerator of division.
29113         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
29114         log of X_ADJ not X when adjusting exponent.
29115         (__ieee754_gammal_r): Do intermediate computations in
29116         round-to-nearest then adjust overflowing and underflowing results
29117         as needed.  Use 1.0L not 1.0f as numerator of division.
29118         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
29119         of X_ADJ not X when adjusting exponent.
29120         (__ieee754_gammal_r): Do intermediate computations in
29121         round-to-nearest then adjust overflowing and underflowing results
29122         as needed.  Use 1.0L not 1.0f as numerator of division.
29123         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
29124         to auto-libm-test-in.
29125         (tgamma_test): Use ALL_RM_TEST.
29126         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
29127         tests of tgamma with spurious-overflow.
29128         * math/auto-libm-test-out: Regenerated.
29129         * math/gen-libm-have-vector-test.sh: Do not check for START.
29130         * sysdeps/i386/fpu/libm-test-ulps: Update.
29131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29132
29133         [BZ #18612]
29134         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
29135         arguments, just return 0.5 times the argument, with underflow
29136         forced as needed.
29137         * math/auto-libm-test-in: Add more tests of j1.
29138         * math/auto-libm-test-out: Regenerated.
29139
29140         [BZ #16559]
29141         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
29142         (__ieee754_j1): Force underflow exception for small results.
29143         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
29144         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
29145         (__ieee754_j1f): Force underflow exception for small results.
29146         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29147         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29148         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29149         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
29150         (__ieee754_j1l): Force underflow exception for small results.
29151         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29152         * math/auto-libm-test-in: Add more tests of j1 and jn.
29153         * math/auto-libm-test-out: Regenerated.
29154
29155         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
29156         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
29157         (PF_MPLS): Likewise.
29158         (AF_IB): Likewise.
29159         (AF_MPLS): Likewise.
29160         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
29161         value and macro.
29162         (MS_RMT_MASK): Include MS_LAZYTIME.
29163
29164 2015-06-26  Mel Gorman  <mgorman@suse.de>
29165
29166         [BZ #18502]
29167         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
29168         already minimal.
29169
29170 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
29171
29172         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
29173         (DT_MIPS_NUM): Update.
29174         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
29175         DT_MIPS_RLD_MAP_REL.
29176
29177 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
29178
29179         [BZ #16559]
29180         [BZ #18602]
29181         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
29182         round-to-nearest internally then recompute results that
29183         underflowed to zero in the original rounding mode.
29184         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29185         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29186         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29187         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29188         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
29189         * sysdeps/i386/fpu/libm-test-ulps: Update.
29190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29191
29192 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
29193
29194         * NEWS: Fixed description of link with vector math library.
29195
29196 2015-06-25  Andreas Schwab  <schwab@suse.de>
29197
29198         [BZ #18549]
29199         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
29200         * libio/test-fmemopen.c (do_test): Add test for it.
29201
29202 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29203
29204         [BZ #17841]
29205         * Makeconfig (no-pie-ldflag): New.
29206         (+link): Set to $(+link-pie) if default to PIE.
29207         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
29208         * config.make.in (build-pie-default): New.
29209         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
29210         is default.  AC_SUBST.
29211         * configure: Regenerated.
29212         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
29213
29214 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29215
29216         * nptl/descr.h (struct pthread): Change type of field setxid_futex
29217         to 'unsigned int'.
29218
29219         * resolv/gai_misc.h (struct waitlist): Change type of field
29220         counterp to 'volatile unsigned int *'.
29221         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
29222         FUTEXADDR and OLDVAL.
29223         * resolv/getaddrinfo_a.c (getaddrinfo_a):
29224         Give local variable TOTAL type 'volatile unsigned int'.
29225         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29226         * resolv/gai_suspend.c (gai_suspend):
29227         Give local variable CNTR type 'unsigned int'.
29228
29229         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
29230         counterp to 'volatile unsigned int *'.
29231         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
29232         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
29233         (aio_suspend): Give local variable CNTR type 'unsigned int'.
29234         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
29235         Give local variable TOTAL type 'volatile unsigned int'.
29236         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29237
29238 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29239
29240         [BZ #18383]
29241         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
29242         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
29243         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
29244         comment for i386/x86-64.
29245         (test-xfail-tst-tlsalign-extern-static): Removed.
29246
29247 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29248
29249         * math/test-double.h: New file.
29250         * math/test-float.h: Likewise.
29251         * math/test-ldouble.h: Likewise.
29252         * math/test-math-inline.h: Likewise.
29253         * math/test-math-no-inline.h: Likewise.
29254         * math/test-math-scalar.h: Likewise.
29255         * math/test-math-vector.h: Likewise.
29256         * math/test-vec-loop.h: Remove file.  Contents moved into
29257         test-math-vector.h.
29258         * math/libm-test.inc (MATHCONST): Do not document macro.
29259         * math/test-double.c: Include test-double.h, test-math-no-inline.h
29260         and test-math-scalar.h.
29261         (FUNC): Remove macro.
29262         (FUNC_TEST): Likewise.
29263         (FLOAT): Likewise.
29264         (MATHCONST): Likewise.
29265         (PRINTF_EXPR): Likewise.
29266         (PRINTF_XEXPR): Likewise.
29267         (PRINTF_NEXPR): Likewise.
29268         (TEST_DOUBLE): Likewise.
29269         (TEST_MATHVEC): Likewise.
29270         (__NO_MATH_INLINES): Likewise.
29271         * math/test-float.c: Include test-float.h, test-math-no-inline.h
29272         and test-math-scalar.h.
29273         (FUNC): Remove macro.
29274         (FUNC_TEST): Likewise.
29275         (FLOAT): Likewise.
29276         (MATHCONST): Likewise.
29277         (PRINTF_EXPR): Likewise.
29278         (PRINTF_XEXPR): Likewise.
29279         (PRINTF_NEXPR): Likewise.
29280         (TEST_FLOAT): Likewise.
29281         (TEST_MATHVEC): Likewise.
29282         (__NO_MATH_INLINES): Likewise.
29283         * math/test-idouble.c: Include test-double.h, test-math-inline.h
29284         and test-math-scalar.h.
29285         (FUNC): Remove macro.
29286         (FUNC_TEST): Likewise.
29287         (FLOAT): Likewise.
29288         (MATHCONST): Likewise.
29289         (PRINTF_EXPR): Likewise.
29290         (PRINTF_XEXPR): Likewise.
29291         (PRINTF_NEXPR): Likewise.
29292         (TEST_DOUBLE): Likewise.
29293         (TEST_MATHVEC): Likewise.
29294         (TEST_INLINE): Likewise.
29295         (__NO_MATH_INLINES): Likewise.
29296         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
29297         test-math-scalar.h.
29298         (FUNC): Remove macro.
29299         (FUNC_TEST): Likewise.
29300         (FLOAT): Likewise.
29301         (MATHCONST): Likewise.
29302         (PRINTF_EXPR): Likewise.
29303         (PRINTF_XEXPR): Likewise.
29304         (PRINTF_NEXPR): Likewise.
29305         (TEST_FLOAT): Likewise.
29306         (TEST_MATHVEC): Likewise.
29307         (TEST_INLINE): Likewise.
29308         (__NO_MATH_INLINES): Likewise.
29309         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
29310         and test-math-scalar.h.
29311         (FUNC): Remove macro.
29312         (FUNC_TEST): Likewise.
29313         (FLOAT): Likewise.
29314         (MATHCONST): Likewise.
29315         (PRINTF_EXPR): Likewise.
29316         (PRINTF_XEXPR): Likewise.
29317         (PRINTF_NEXPR): Likewise.
29318         (TEST_LDOUBLE): Likewise.
29319         (TEST_MATHVEC): Likewise.
29320         (TEST_INLINE): Likewise.
29321         (__NO_MATH_INLINES): Likewise.
29322         * math/test-ldouble.c: Include test-ldouble.h,
29323         test-math-no-inline.h and test-math-scalar.h.
29324         (FUNC): Remove macro.
29325         (FUNC_TEST): Likewise.
29326         (FLOAT): Likewise.
29327         (MATHCONST): Likewise.
29328         (PRINTF_EXPR): Likewise.
29329         (PRINTF_XEXPR): Likewise.
29330         (PRINTF_NEXPR): Likewise.
29331         (TEST_LDOUBLE): Likewise.
29332         (TEST_MATHVEC): Likewise.
29333         (__NO_MATH_INLINES): Likewise.
29334         * math/test-double-vlen2.h: Include test-double.h,
29335         test-math-no-inline.h and test-math-vector.h.
29336         (FLOAT): Remove macro.
29337         (FUNC): Likewise.
29338         (MATHCONST): Likewise.
29339         (PRINTF_EXPR): Likewise.
29340         (PRINTF_XEXPR): Likewise.
29341         (PRINTF_NEXPR): Likewise.
29342         (TEST_DOUBLE): Likewise.
29343         (TEST_MATHVEC): Likewise.
29344         (__NO_MATH_INLINES): Likewise.
29345         (CNCT): Likewise.
29346         (CONCAT): Likewise.
29347         (WRAPPER_NAME): Likewise.
29348         (WRAPPER_DECL): Likewise.
29349         (WRAPPER_DECL_ff): Likewise.
29350         (WRAPPER_DECL_fFF): Likewise.
29351         (VECTOR_WRAPPER): Likewise.
29352         (VECTOR_WRAPPER_ff): Likewise.
29353         (VECTOR_WRAPPER_fFF): Likewise.
29354         (VEC_LEN): New macro.
29355         * math/test-double-vlen4.h: Include test-double.h,
29356         test-math-no-inline.h and test-math-vector.h.
29357         (FLOAT): Remove macro.
29358         (FUNC): Likewise.
29359         (MATHCONST): Likewise.
29360         (PRINTF_EXPR): Likewise.
29361         (PRINTF_XEXPR): Likewise.
29362         (PRINTF_NEXPR): Likewise.
29363         (TEST_DOUBLE): Likewise.
29364         (TEST_MATHVEC): Likewise.
29365         (__NO_MATH_INLINES): Likewise.
29366         (CNCT): Likewise.
29367         (CONCAT): Likewise.
29368         (WRAPPER_NAME): Likewise.
29369         (WRAPPER_DECL): Likewise.
29370         (WRAPPER_DECL_ff): Likewise.
29371         (WRAPPER_DECL_fFF): Likewise.
29372         (VECTOR_WRAPPER): Likewise.
29373         (VECTOR_WRAPPER_ff): Likewise.
29374         (VECTOR_WRAPPER_fFF): Likewise.
29375         (VEC_LEN): New macro.
29376         * math/test-double-vlen8.h: Include test-double.h,
29377         test-math-no-inline.h and test-math-vector.h.
29378         (FLOAT): Remove macro.
29379         (FUNC): Likewise.
29380         (MATHCONST): Likewise.
29381         (PRINTF_EXPR): Likewise.
29382         (PRINTF_XEXPR): Likewise.
29383         (PRINTF_NEXPR): Likewise.
29384         (TEST_DOUBLE): Likewise.
29385         (TEST_MATHVEC): Likewise.
29386         (__NO_MATH_INLINES): Likewise.
29387         (CNCT): Likewise.
29388         (CONCAT): Likewise.
29389         (WRAPPER_NAME): Likewise.
29390         (WRAPPER_DECL): Likewise.
29391         (WRAPPER_DECL_ff): Likewise.
29392         (WRAPPER_DECL_fFF): Likewise.
29393         (VECTOR_WRAPPER): Likewise.
29394         (VECTOR_WRAPPER_ff): Likewise.
29395         (VECTOR_WRAPPER_fFF): Likewise.
29396         (VEC_LEN): New macro.
29397         * math/test-float-vlen4.h: Include test-float.h,
29398         test-math-no-inline.h and test-math-vector.h.
29399         (FLOAT): Remove macro.
29400         (FUNC): Likewise.
29401         (MATHCONST): Likewise.
29402         (PRINTF_EXPR): Likewise.
29403         (PRINTF_XEXPR): Likewise.
29404         (PRINTF_NEXPR): Likewise.
29405         (TEST_FLOAT): Likewise.
29406         (TEST_MATHVEC): Likewise.
29407         (__NO_MATH_INLINES): Likewise.
29408         (CNCT): Likewise.
29409         (CONCAT): Likewise.
29410         (WRAPPER_NAME): Likewise.
29411         (WRAPPER_DECL): Likewise.
29412         (WRAPPER_DECL_ff): Likewise.
29413         (WRAPPER_DECL_fFF): Likewise.
29414         (VECTOR_WRAPPER): Likewise.
29415         (VECTOR_WRAPPER_ff): Likewise.
29416         (VECTOR_WRAPPER_fFF): Likewise.
29417         (VEC_LEN): New macro.
29418         * math/test-float-vlen8.h: Include test-float.h,
29419         test-math-no-inline.h and test-math-vector.h.
29420         (FLOAT): Remove macro.
29421         (FUNC): Likewise.
29422         (MATHCONST): Likewise.
29423         (PRINTF_EXPR): Likewise.
29424         (PRINTF_XEXPR): Likewise.
29425         (PRINTF_NEXPR): Likewise.
29426         (TEST_FLOAT): Likewise.
29427         (TEST_MATHVEC): Likewise.
29428         (__NO_MATH_INLINES): Likewise.
29429         (CNCT): Likewise.
29430         (CONCAT): Likewise.
29431         (WRAPPER_NAME): Likewise.
29432         (WRAPPER_DECL): Likewise.
29433         (WRAPPER_DECL_ff): Likewise.
29434         (WRAPPER_DECL_fFF): Likewise.
29435         (VECTOR_WRAPPER): Likewise.
29436         (VECTOR_WRAPPER_ff): Likewise.
29437         (VECTOR_WRAPPER_fFF): Likewise.
29438         (VEC_LEN): New macro.
29439         * math/test-float-vlen16.h: Include test-float.h,
29440         test-math-no-inline.h and test-math-vector.h.
29441         (FLOAT): Remove macro.
29442         (FUNC): Likewise.
29443         (MATHCONST): Likewise.
29444         (PRINTF_EXPR): Likewise.
29445         (PRINTF_XEXPR): Likewise.
29446         (PRINTF_NEXPR): Likewise.
29447         (TEST_FLOAT): Likewise.
29448         (TEST_MATHVEC): Likewise.
29449         (__NO_MATH_INLINES): Likewise.
29450         (CNCT): Likewise.
29451         (CONCAT): Likewise.
29452         (WRAPPER_NAME): Likewise.
29453         (WRAPPER_DECL): Likewise.
29454         (WRAPPER_DECL_ff): Likewise.
29455         (WRAPPER_DECL_fFF): Likewise.
29456         (VECTOR_WRAPPER): Likewise.
29457         (VECTOR_WRAPPER_ff): Likewise.
29458         (VECTOR_WRAPPER_fFF): Likewise.
29459         (VEC_LEN): New macro.
29460         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
29461         test-vec-loop.h.
29462         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29463         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29464         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29465         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29466         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29467         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29468         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29469
29470 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29471
29472         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
29473         (__getlogin_r): ... this.
29474
29475 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29476
29477         [BZ #18594]
29478         * math/s_ccosh.c (__ccosh): Compare with least normal value
29479         instead of comparing class with FP_SUBNORMAL.
29480         * math/s_ccoshf.c (__ccoshf): Likewise.
29481         * math/s_ccoshl.c (__ccoshl): Likewise.
29482         * math/s_cexp.c (__cexp): Likewise.
29483         * math/s_cexpf.c (__cexpf): Likewise.
29484         * math/s_cexpl.c (__cexpl): Likewise.
29485         * math/s_csin.c (__csin): Likewise.
29486         * math/s_csinf.c (__csinf): Likewise.
29487         * math/s_csinh.c (__csinh): Likewise.
29488         * math/s_csinhf.c (__csinhf): Likewise.
29489         * math/s_csinhl.c (__csinhl): Likewise.
29490         * math/s_csinl.c (__csinl): Likewise.
29491         * math/s_ctan.c (__ctan): Likewise.
29492         * math/s_ctanf.c (__ctanf): Likewise.
29493         * math/s_ctanh.c (__ctanh): Likewise.
29494         * math/s_ctanhf.c (__ctanhf): Likewise.
29495         * math/s_ctanhl.c (__ctanhl): Likewise.
29496         * math/s_ctanl.c (__ctanl): Likewise.
29497         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
29498         csin, csinh, ctan and ctanh.
29499         * math/auto-libm-test-out: Regenerated.
29500         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
29501         * sysdeps/i386/fpu/libm-test-ulps: Update.
29502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29503
29504 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29505
29506         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
29507         return value is wrong, print the expected value too.
29508
29509 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29510
29511         [BZ #18585]
29512         * elf/readlib.c (is_gdb_python_file): New.
29513         (process_file): Don't issue errors on filenames with -gdb.py
29514         suffix.
29515
29516 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29517
29518         * math/auto-libm-test-in: Add more tests of csin and csinh.
29519         * math/auto-libm-test-out: Regenerated.
29520         * math/libm-test.inc (csin_test_data): Remove tests moved to
29521         auto-libm-test-in.
29522         (csinh_test_data): Likewise.
29523
29524         [BZ #18593]
29525         * math/s_csin.c (__csin): Negate before rather than after possibly
29526         overflowing multiplication.
29527         * math/s_csinf.c (__csinf): Likewise.
29528         * math/s_csinh.c (__csinh): Likewise.
29529         * math/s_csinhf.c (__csinhf): Likewise.
29530         * math/s_csinhl.c (__csinhl): Likewise.
29531         * math/s_csinl.c (__csinl): Likewise.
29532         * math/auto-libm-test-in: Add some tests of csin and csinh.
29533         * math/auto-libm-test-out: Regenerated.
29534         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
29535         (csinh_test_data): Likewise.
29536         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29537
29538         [BZ #18586]
29539         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
29540         underflow exception for small results.
29541
29542 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
29543
29544         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29545         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
29546         variable and included header.
29547         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
29548         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
29549         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
29550         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
29551         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
29552         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
29553         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
29554         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
29555         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
29556         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
29557         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
29558         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
29559         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
29560         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
29561         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
29562         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
29563
29564 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29565
29566         [BZ #16526]
29567         [BZ #16538]
29568         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
29569         (__sin): Force underflow exception for arguments with small
29570         absolute value.
29571         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
29572         (__kernel_sinf): Force underflow exception for arguments with
29573         small absolute value.
29574         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
29575         (__kernel_sincosl): Force underflow exception for arguments with
29576         small absolute value.
29577         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
29578         (__kernel_sinl): Force underflow exception for arguments with
29579         small absolute value.
29580         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
29581         (__kernel_sincosl): Force underflow exception for arguments with
29582         small absolute value.
29583         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
29584         (__kernel_sinl): Force underflow exception for arguments with
29585         small absolute value.
29586         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
29587         (__kernel_sinl): Force underflow exception for arguments with
29588         small absolute value.
29589         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
29590         (__kernel_sinf): Force underflow exception for arguments with
29591         small absolute value.
29592         * math/auto-libm-test-in: Add more tests of sin and sincos.
29593         * math/auto-libm-test-out: Regenerated.
29594
29595         [BZ #18245]
29596         [BZ #18583]
29597         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
29598         (__kernel_standard_l): Use feholdexcept and fesetenv around
29599         conversion to double instead of special-casing overflow and
29600         underflow.
29601         * math/libm-test.inc (fmod_test_data): Add more tests.
29602         (remainder_test_data): Likewise.
29603         (sqrt_test_data): Likewise.
29604
29605 2015-06-23  Torvald Riegel  <triegel@redhat.com>
29606
29607         [BZ #17403]
29608         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
29609         atomic_read_barrier, atomic_write_barrier): Define.
29610         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
29611         atomic_read_barrier, atomic_write_barrier): Define.
29612
29613 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29614
29615         * math/Makefile [$(PERL) != no]
29616         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
29617         dependency on libm-test.stmp below the inclusion of Rules.
29618
29619 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
29620
29621         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29622         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
29623         and included header.
29624         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
29625         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
29626         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
29627         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
29628         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
29629         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
29630         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
29631         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
29632         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
29633         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
29634         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
29635         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
29636         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
29637         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
29638         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
29639         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
29640         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
29641         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
29642         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
29643
29644 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29645
29646         [BZ #18371]
29647         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
29648         intermediate but not final result might underflow.
29649         * math/s_csqrtf.c (__csqrtf): Likewise.
29650         * math/s_csqrtl.c (__csqrtl): Likewise.
29651         * math/auto-libm-test-in: Add more tests of csqrt.
29652         * math/auto-libm-test-out: Regenerated.
29653         * sysdeps/i386/fpu/libm-test-ulps: Update.
29654
29655         [BZ #18219]
29656         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
29657         threshold on absolute value of exponent for which scaling is used.
29658         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
29659         * math/auto-libm-test-in: Add more tests of exp2.
29660         * math/auto-libm-test-out: Regenerated.
29661
29662 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
29663
29664         [BZ #17977]
29665         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
29666         when initializing interface list, based on the bug analysis
29667         and the patch proposed by Eric Newton.
29668         * resolv/tst-res_hconf_reorder.c: New test.
29669         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
29670         tst-res_hconf_reorder.
29671         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
29672         and $(shared-thread-library).
29673         (tst-res_hconf_reorder-ENV): New variable.
29674
29675         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
29676         in comment.
29677
29678 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
29679
29680         [BZ #16353]
29681         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
29682         (__expm1): Force underflow exception for arguments with small
29683         absolute value.
29684         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
29685         (__expm1f): Force underflow exception for arguments with small
29686         absolute value.
29687         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
29688         (__expm1): Force underflow exception for arguments with small
29689         absolute value.
29690         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
29691         (__expm1f): Force underflow exception for arguments with small
29692         absolute value.
29693         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29694         Check for small arguments before calling __expm1.
29695         * math/auto-libm-test-in: Do not mark underflow exceptions as
29696         possibly missing for bug 16353.
29697         * math/auto-libm-test-out: Regenerated.
29698
29699 2015-06-22  Andreas Schwab  <schwab@suse.de>
29700
29701         [BZ #18513]
29702         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
29703         PTR queries.
29704
29705 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
29706
29707         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
29708
29709         * string/strcoll_l.c: Remove unused struct element idxnow.
29710
29711 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
29712
29713         [BZ #18569]
29714         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
29715         underflow and return argument in case of subnormal argument.
29716         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29717         Likewise.
29718         * math/auto-libm-test-in: Add more tests of expm1.
29719         * math/auto-libm-test-out: Regenerated.
29720
29721         [BZ #16361]
29722         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29723         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29724         tiny results.
29725         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29726         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29727         tiny results.
29728         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
29729         mark underflow exceptions as possibly missing for bug 16361.
29730         * math/auto-libm-test-out: Regenerated.
29731
29732 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
29733
29734         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
29735         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
29736         Remove variable.
29737         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
29738         (test-xfail-XOPEN2K8/utmpx.h/conform).
29739
29740         * conform/conformtest.pl ($xerrors): New variable.
29741         (note_error): New function.
29742         (compiletest): New argument $xfail.  Use not_error.
29743         (runtest): Likewise.
29744         (top level): Handle xfail- lines.  Update calls to compiletest and
29745         runtest.  Handle xfail- and optional- in headers listed with
29746         allow-header.
29747         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
29748         (O_EXEC): Likewise.
29749         (O_SEARCH): Likewise.
29750         * conform/data/stropts.h-data (ioctl): Likewise.
29751         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
29752         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
29753         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
29754         (msghdr.msg_controllen): Likewise.
29755         (cmsghdr.cmsg_len): Likewise.
29756         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
29757         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
29758         variable.
29759         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
29760         (test-xfail-XPG4/stropts.h/conform): Likewise.
29761         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
29762         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
29763         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
29764         (test-xfail-UNIX98/stropts.h/conform): Likewise.
29765         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
29766         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
29767         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
29768         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
29769         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
29770         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
29771         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
29772         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
29773         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
29774         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
29775         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
29776         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
29777         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
29778         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
29779         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
29780
29781 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
29782
29783         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
29784         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
29785         definitions for proper unfolding of __MATHDECL_VEC.
29786
29787 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29788
29789         * benchtests/bench-strcoll.c:
29790         Include string.h.
29791         (main): Remove unused variable res.
29792
29793 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29794
29795         * timezone/Makefile (%/UTC %/Universal):
29796         Generate test-result files for UTC and Universal.
29797
29798 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29799
29800         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29801
29802 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
29803
29804         [BZ #16350]
29805         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
29806         for arguments with small absolute value.
29807         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
29808         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
29809         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
29810         (__asinh): Force underflow exception for arguments with small
29811         absolute value.
29812         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
29813         (__asinhf): Force underflow exception for arguments with small
29814         absolute value.
29815         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
29816         (__asinhl): Force underflow exception for arguments with small
29817         absolute value.
29818         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
29819         (__asinhl): Force underflow exception for arguments with small
29820         absolute value.
29821         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
29822         (__asinhl): Force underflow exception for arguments with small
29823         absolute value.
29824         * math/auto-libm-test-in: Do not mark underflow exceptions as
29825         possibly missing for bug 16350.
29826         * math/auto-libm-test-out: Regenerated.
29827
29828         * include/bits/ipc.h: Remove file.
29829         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
29830         variable.
29831         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
29832         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
29833         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
29834         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
29835         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
29836         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
29837         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
29838         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
29839         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
29840
29841         * math/auto-libm-test-in: Remove spurious underflow allowance for
29842         tests of cexp.
29843         * math/auto-libm-test-out: Regenerated.
29844
29845         [BZ #18558]
29846         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
29847         unconditional definition.
29848         (MCAST_BLOCK_SOURCE): Likewise.
29849         (MCAST_UNBLOCK_SOURCE): Likewise.
29850         (MCAST_LEAVE_GROUP): Likewise.
29851         (MCAST_JOIN_SOURCE_GROUP): Likewise.
29852         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
29853         (MCAST_MSFILTER): Likewise.
29854         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
29855         Remove variable.
29856         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
29857         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
29858         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
29859         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
29860         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
29861
29862 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
29863
29864         * NEWS: Mention addition of x86_64 vector sincosf.
29865         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
29866         * math/test-float-vlen4.h: Likewise.
29867         * math/test-float-vlen8.h: Likewise.
29868         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29869         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
29870         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29871         * sysdeps/x86_64/fpu/Versions: New versions added.
29872         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29873         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29874         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29875         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
29876         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
29877         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
29878         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
29879         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
29880         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
29881         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
29882         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
29883         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
29884         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
29885         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
29886         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
29887         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
29888         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
29889         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29890         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29891         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29892         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29893         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29894         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29895         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29896
29897         * NEWS: Mention addition of x86_64 vector sincos.
29898         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
29899         * math/math.h (__MATHDECL_VEC): New macro.
29900         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
29901         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
29902         declaration under condition.
29903         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
29904         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
29905         TEST_VEC_LOOP change.
29906         * math/test-double-vlen4.h: Likewise.
29907         * math/test-double-vlen8.h: Likewise.
29908         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
29909         * math/test-float-vlen4.h: Likewise.
29910         * math/test-float-vlen8.h: Likewise.
29911         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29912         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
29913         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29914         * sysdeps/x86_64/fpu/Versions: New versions added.
29915         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29916         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29917         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29918         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
29919         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
29920         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
29921         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
29922         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
29923         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
29924         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
29925         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
29926         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
29927         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
29928         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
29929         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
29930         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
29931         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
29932         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29933         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29934         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29935         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29936         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29937         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29938         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29939
29940         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29941         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29942         redirections for powf.
29943         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29944         * sysdeps/x86_64/fpu/Versions: New versions added.
29945         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29946         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29947         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29948         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
29949         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
29950         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
29951         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
29952         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
29953         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
29954         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
29955         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
29956         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
29957         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
29958         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
29959         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
29960         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
29961         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
29962         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29963         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29964         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29965         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29966         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29967         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29968         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29969         * math/test-float-vlen16.h: Fixed 2 argument macro.
29970         * math/test-float-vlen4.h: Likewise.
29971         * math/test-float-vlen8.h: Likewise.
29972         * NEWS: Mention addition of x86_64 vector powf.
29973
29974 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
29975
29976         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29977         and redefine.
29978         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29979         and redefine.
29980         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
29981         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29982         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29983
29984         [BZ #18553]
29985         * resource/getpriority.c (getpriority): Rename to __getpriority
29986         and define as weak alias of __getpriority.
29987         * resource/setpriority.c (setpriority): Rename to __setpriority
29988         and define as weak alias of __setpriority.
29989         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
29990         __getpriority and define as weak alias of __getpriority.
29991         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
29992         __setpriority and define as weak alias of __setpriority.
29993         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
29994         strong name.
29995         (setpriority): Use __setpriority as strong name.
29996         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
29997         __getpriority and define as weak alias of __getpriority.
29998         * include/sys/resource.h (__getpriority): Declare.  Use
29999         libc_hidden_proto.
30000         (__setpriority): Likewise.
30001         (getpriority): Don't use libc_hidden_proto.
30002         (setpriority): Likewise.
30003         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
30004         getpriority.  Call __setpriority instead of setpriority.
30005         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
30006         Remove variable.
30007
30008         [BZ #18547]
30009         * misc/getttyent.c (getttynam): Rename to __getttynam and define
30010         as weak alias of __getttynam.  Use prototype function definition.
30011         Call __setttyent, __getttyent and __endttyent instead of
30012         setttyent, getttyent and endttyent.
30013         (getttyent): Rename to __getttyent and define as weak alias of
30014         __getttyent.  Call __setttyent instead of setttyent.  Call
30015         __fgets_unlocked instead of fgets_unlocked.
30016         (setttyent): Rename to __setttyent and define as weak alias of
30017         __setttyent.
30018         (endttyent): Rename to __endttyent and define as weak alias of
30019         __endttyent.
30020         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
30021         (__setttyent): Likewise.
30022         (__endttyent): Likewise.
30023         (getttyent): Don't use libc_hidden_proto.
30024         (setttyent): Likewise.
30025         (endttyent): Likewise.
30026         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
30027         __endttyent instead of setttyent, getttyent and endttyent.
30028         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
30029         Remove variable.
30030
30031         [BZ #18546]
30032         * socket/recv.c (__recv): Use libc_hidden_def.
30033         * socket/socket.c (__socket): Likewise.
30034         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
30035         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
30036         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
30037         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
30038         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
30039         libc_hidden_def.
30040         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
30041         libc_hidden_weak.
30042         * include/sys/socket.h (__socket): Do not use attribute_hidden.
30043         Use libc_hidden_proto.
30044         (__recv): Likewise.
30045         * socket/Versions (libc): Export __recv and __socket at version
30046         GLIBC_PRIVATE.
30047         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
30048         instead of recv.
30049         (init_mq_netlink): Call __socket instead of socket.
30050         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
30051         Remove variable.
30052
30053         [BZ #18545]
30054         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
30055         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
30056         hidden_weak.
30057         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
30058         define as alias of __mq_timedsend.  Use hidden_weak.
30059         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
30060         __mq_timedsend as strong name.
30061         (mq_timedreceive): Use __mq_timedreceive as strong name.
30062         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
30063         (__mq_timedreceive): Likewise.
30064         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
30065         __mq_timedreceive instead of mq_timedreceive.
30066         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
30067         instead of mq_timedsend.
30068         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
30069         Remove variable.
30070
30071         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
30072         hidden_def and hidden_weak instead of libc_hidden_def and
30073         libc_hidden_weak.
30074         (top level): Refer to hidden_def in comment.
30075         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
30076         macro.  Use it instead of libc_hidden_def.
30077         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
30078         specify __GI_* name explicitly.
30079         (mq_timedreceive): Likewise.
30080         (mq_setattr): Likewise.
30081
30082         [BZ #18544]
30083         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
30084         __pthread_barrier_init and define as weak alias of
30085         __pthread_barrier_init.
30086         * sysdeps/sparc/nptl/pthread_barrier_init.c
30087         (pthread_barrier_init): Likewise.
30088         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
30089         __pthread_barrier_wait and define as weak alias of
30090         __pthread_barrier_wait.
30091         * sysdeps/sparc/nptl/pthread_barrier_wait.c
30092         (pthread_barrier_wait): Likewise.
30093         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
30094         (pthread_barrier_wait): Likewise.
30095         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
30096         (pthread_barrier_wait): Likewise.
30097         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
30098         (pthread_barrier_wait): Likewise.
30099         * nptl/Versions (libpthread): Export __pthread_barrier_init and
30100         __pthread_barrier_wait at version GLIBC_PRIVATE.
30101         * include/pthread.h (__pthread_barrier_init): Declare.
30102         (__pthread_barrier_wait): Likewise.
30103         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
30104         Call __pthread_barrier_wait instead of pthread_barrier_wait.
30105         (helper_thread): Likewise.
30106         (init_mq_netlink): Call __pthread_barrier_init instead of
30107         pthread_barrier_init.
30108
30109         [BZ #18542]
30110         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
30111         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
30112         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
30113         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
30114         vswscanf.
30115         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
30116         Remove variable.
30117
30118         [BZ #18540]
30119         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
30120         strong alias of _IO_fflush.  Use libc_hidden_def.
30121         * libio/iofflush_u.c (fflush_unlocked): Rename to
30122         __fflush_unlocked and define as weak alias of __fflush_unlocked.
30123         Use libc_hidden_weak.
30124         * include/stdio.h (__fflush_unlocked): Declare.  Use
30125         libc_hidden_proto.
30126         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
30127         fflush_unlocked.
30128         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
30129         Remove variable.
30130
30131         [BZ #18539]
30132         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
30133         define as weak alias of __addseverity.
30134         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
30135         Remove variable.
30136         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
30137         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
30138         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
30139
30140         [BZ #18536]
30141         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
30142         (__tfind): Likewise.
30143         (__tdelete): Likewise.
30144         (__twalk): Likewise.
30145         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
30146         __twalk to GLIBC_PRIVATE.
30147         * include/search.h (__tsearch): Use libc_hidden_proto.
30148         (__tfind): Likewise.
30149         (__tdelete): Likewise.
30150         (__twalk): Likewise.
30151         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
30152         Call __tdelete instead of tdelete.
30153         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
30154         tfind.  Call __tsearch instead of tsearch.
30155         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
30156         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
30157         Remove variable.
30158         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
30159
30160         [BZ #18534]
30161         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
30162         (dprintf): Define as a weak alias of __dprintf, not a strong
30163         alias.
30164         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
30165         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
30166         dprintf.
30167         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
30168         Remove variable.
30169         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
30170         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
30171
30172         [BZ #18533]
30173         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
30174         not a strong alias.
30175         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
30176         Remove variable.
30177
30178         [BZ #18532]
30179         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
30180         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
30181         (in6addr_loopback): Rename to __in6addr_loopback and define as
30182         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
30183         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
30184         libc_hidden_proto.
30185         (__in6addr_any): Likewise.
30186         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
30187         in6addr_any.
30188         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
30189         variable.
30190         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
30191
30192 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
30193
30194         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
30195         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
30196         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30197         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30198         redirections for pow.
30199         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30200         * sysdeps/x86_64/fpu/Versions: New versions added.
30201         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30202         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30203         build of SSE, AVX2 and AVX512 IFUNC versions.
30204         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
30205         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
30206         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
30207         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
30208         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
30209         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
30210         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
30211         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
30212         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
30213         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
30214         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
30215         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
30216         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
30217         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
30218         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30219         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30220         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30221         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30222         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30223         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30224         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30225         * NEWS: Mention addition of x86_64 vector pow.
30226
30227         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30228         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30229         redirections for expf.
30230         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30231         * sysdeps/x86_64/fpu/Versions: New versions added.
30232         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30233         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30234         build of SSE, AVX2 and AVX512 IFUNC versions.
30235         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
30236         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
30237         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
30238         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
30239         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
30240         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
30241         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
30242         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
30243         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
30244         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
30245         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
30246         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
30247         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
30248         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30249         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30250         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30251         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30252         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30253         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30254         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30255         * NEWS: Mention addition of x86_64 vector expf.
30256
30257         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
30258         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
30259         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30260         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30261         redirections for exp.
30262         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30263         * sysdeps/x86_64/fpu/Versions: New versions added.
30264         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30265         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30266         build of SSE, AVX2 and AVX512 IFUNC versions.
30267         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
30268         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
30269         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
30270         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
30271         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
30272         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
30273         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
30274         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
30275         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
30276         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
30277         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
30278         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
30279         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
30280         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30281         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30282         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30283         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30284         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30285         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30286         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30287         * NEWS: Mention addition of x86_64 vector exp.
30288
30289         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30290         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30291         redirections for logf.
30292         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30293         * sysdeps/x86_64/fpu/Versions: New versions added.
30294         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30295         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30296         build of SSE, AVX2 and AVX512 IFUNC versions.
30297         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
30298         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
30299         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
30300         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
30301         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
30302         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
30303         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
30304         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
30305         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
30306         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
30307         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
30308         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
30309         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
30310         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30311         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30312         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30313         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30314         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30315         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30316         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30317         * NEWS: Mention addition of x86_64 vector logf.
30318
30319         * bits/libm-simd-decl-stubs.h: Added stubs for log.
30320         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
30321         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30322         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30323         redirections for log.
30324         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30325         * sysdeps/x86_64/fpu/Versions: New versions added.
30326         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30327         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30328         build of SSE, AVX2 and AVX512 IFUNC versions.
30329         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
30330         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
30331         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
30332         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
30333         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
30334         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
30335         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
30336         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
30337         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
30338         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
30339         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
30340         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
30341         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
30342         test.
30343         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30344         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30345         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30346         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30347         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30348         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30349         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30350         * NEWS: Mention addition of x86_64 vector log.
30351
30352 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30353
30354         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
30355         cfi_adjust_cfa_offset argument.
30356         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
30357         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
30358
30359         [BZ #18034]
30360         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
30361         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
30362         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
30363         ordering using ldar.
30364         (_dl_tlsdesc_dynamic): Likewise.
30365         (_dl_tlsdesc_return_lazy): Likewise.
30366         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
30367         relaxed atomics instead of volatile and synchronize with release store.
30368         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
30369         volatile.
30370         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
30371
30372 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
30373
30374         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30375         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
30376         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30377         * sysdeps/x86_64/fpu/Versions: New versions added.
30378         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30379         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30380         build of SSE, AVX2 and AVX512 IFUNC versions.
30381         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
30382         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
30383         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
30384         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
30385         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
30386         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
30387         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
30388         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
30389         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
30390         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
30391         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
30392         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
30393         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
30394         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30395         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30396         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30397         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30398         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30399         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30400         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30401         * NEWS: Mention addition of x86_64 vector sinf.
30402
30403 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
30404
30405         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
30406         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
30407         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
30408         Remove variable.
30409         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
30410         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
30411
30412 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30413
30414         [BZ #18530]
30415         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
30416         strong alias of _IO_fputs.  Use libc_hidden_def.
30417         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
30418         and define as weak alias of __fputs_unlocked.  Use
30419         libc_hidden_weak.
30420         * include/stdio.h (__fputs_unlocked): Declare.  Use
30421         libc_hidden_proto.
30422         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
30423         fputs_unlocked.
30424
30425         [BZ #18529]
30426         * resolv/netdb.h [__USE_POSIX]: Change condition to
30427         [__USE_XOPEN2K].
30428         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
30429         not expect.
30430         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
30431         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
30432         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
30433         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
30434         [XPG4 || UNIX98] (AI_ALL): Likewise.
30435         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
30436         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
30437         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
30438         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
30439         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
30440         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
30441         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
30442         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
30443         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
30444         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
30445         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
30446         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
30447         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
30448         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
30449         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
30450         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30451         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30452         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
30453         [XPG4 || UNIX98] (gai_strerror): Likewise.
30454         [XPG4 || UNIX98] (getaddrinfo): Likewise.
30455         [XPG4 || UNIX98] (getnameinfo): Likewise.
30456
30457         [BZ #18528]
30458         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
30459         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
30460         __USE_XOPEN2K8].
30461         (getgrent): Likewise.
30462         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
30463         expect.
30464         [XPG3 || POSIX2008] (endgrent): Likewise.
30465         [XPG3] (setgrent): Likewise.
30466         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
30467         variable.
30468         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
30469
30470         [BZ #18527]
30471         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
30472         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
30473         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
30474         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
30475         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
30476         * include/unistd.h (__getlogin_r): Declare.  Use
30477         libc_hidden_proto.
30478         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
30479         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
30480         variable.
30481         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30482         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30483         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30484
30485 2015-06-12  Martin Sebor  <msebor@redhat.com>
30486
30487         [BZ #18512]
30488         * Makerules (check-install-supported): New target.
30489         (install): Add check-install-supported as a dependency.
30490         * manual/install.texi (Installing the C Library): Document
30491         that overriding prefix and exec_prefix is not supported.
30492         Mention DESTDIR.
30493         * INSTALL: Regenerate from the above.
30494
30495 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30496
30497         [BZ #18519]
30498         * posix/Versions (libc): Export __libc_pread at version
30499         GLIBC_PRIVATE.
30500         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
30501         instead of pread.
30502         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
30503         variable.
30504
30505         [BZ #18522]
30506         * misc/efgcvt_r.c
30507         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
30508         (cvt_symbol): Use weak_alias instead of strong_alias.
30509         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
30510         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
30511         Remove variable.
30512         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30513         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
30514
30515         [BZ #18520]
30516         * inet/herrno.c (h_errno): Rename to __h_errno.
30517         (__libc_h_errno): Define as alias of __h_errno not h_errno.
30518         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
30519         to __h_errno instead of h_errno.
30520         * nptl/herrno.c (h_errno): Rename to __h_errno.
30521         (__h_errno_location): Refer to __h_errno not h_errno.
30522         * resolv/Versions (h_errno): Rename to __h_errno.
30523         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
30524         Remove variable.
30525         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
30526
30527 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
30528
30529         * configure.ac: More strict check for AVX512 assembler support.
30530         * configure: Regenerated.
30531
30532         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
30533         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
30534         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30535         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
30536         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30537         * sysdeps/x86_64/fpu/Versions: New versions added.
30538         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30539         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30540         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30541         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
30542         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
30543         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
30544         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
30545         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
30546         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
30547         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
30548         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
30549         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
30550         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
30551         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
30552         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
30553         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
30554         test.
30555         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30556         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30557         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30558         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30559         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30560         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30561         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30562         * NEWS: Mention addition of x86_64 vector sin.
30563
30564 2015-06-11  Florian Weimer  <fweimer@redhat.com>
30565
30566         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
30567         comment.
30568
30569 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
30570
30571         [BZ #18479]
30572         * nptl/pt-interp.c: New file.
30573         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
30574         Add pt-interp.
30575         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
30576         $(common-objpfx)runtime-linker.h.
30577
30578 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
30579
30580         * Makeconfig (+interp): Remove unused variable.
30581         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
30582         only.  Depend on $(common-objpfx)runtime-linker.h instead of
30583         $(elf-objpfx)runtime-linker.h.
30584         ($(elf-objpfx)runtime-linker.h): Rename to
30585         $(common-objpfx)runtime-linker.h and move ...
30586         * Makerules [$(build-shared) = yes]: ... here.
30587         * elf/interp.c: Include <runtime-linker.h> instead of
30588         <elf/runtime-linker.h>.
30589
30590 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30591
30592         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
30593         (__gettimeofday_syscall): Remove vsyscall fallback.
30594         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
30595         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
30596         Add syscall fallback function.
30597         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
30598         if vDSO is not present.
30599         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
30600         fallback function.
30601         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
30602         present.
30603         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
30604         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30605
30606 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30607
30608         [BZ #18497]
30609         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
30610         of wcscmp.
30611         (wcscmp): Define as weak alias of WCSCMP.
30612         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
30613         wcscoll.
30614         (USE_HIDDEN_DEF): Define.
30615         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
30616         __wcscoll.  Don't use libc_hidden_weak.
30617         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
30618         wcscmp.
30619         * sysdeps/i386/i686/multiarch/wcscmp-c.c
30620         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
30621         __GI_wcscmp.
30622         (weak_alias): Undefine and redefine.
30623         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
30624         __wcscmp and define as weak alias of __wcscmp.
30625         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
30626         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
30627         (__wcscoll): Likewise.
30628         (wcscmp): Don't use libc_hidden_proto.
30629         (wcscoll): Likewise.
30630         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
30631         wcscoll.
30632         * posix/regexec.c (check_node_accept_bytes): Likewise.
30633         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
30634         variable.
30635         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
30636         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
30637
30638         [BZ #18507]
30639         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
30640         __fstatvfs and define as weak alias of __fstatvfs.  Use
30641         libc_hidden_weak.
30642         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
30643         and define as weak alias of __statvfs.  Use libc_hidden_weak.
30644         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
30645         Define as alias of __fstatvfs, not fstatvfs.
30646         (fstatvfs64): Likewise.
30647         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
30648         Define as alias of __statvfs, not statvfs.
30649         (statvfs64): Likewise.
30650         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
30651         Remove variable.
30652
30653 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30654
30655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
30656         (HAVE_GETCPU_VSYSCALL): Define.
30657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30658         (HAVE_GETCPU_VSYSCALL): Likewise.
30659         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
30660         * sysdeps/unix/sysv/linux/sched_getcpu.c
30661         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
30662         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
30663         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
30664         prototype.
30665         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30666         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
30667         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
30668         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
30669         Define.
30670         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
30671         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
30672         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
30673         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30674
30675 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
30676
30677         * sysdeps/x86_64/fpu/Makefile: New file.
30678         * sysdeps/x86_64/fpu/Versions: New file.
30679         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
30680         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
30681         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
30682         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
30683         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
30684         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
30685         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
30686         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
30687         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
30688         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
30689         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
30690         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
30691         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
30692         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30693         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30694         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
30695         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
30696         * sysdeps/x86_64/configure.ac: Options for libmvec build.
30697         * sysdeps/x86_64/configure: Regenerated.
30698         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
30699         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
30700         * manual/install.texi (Configuring and compiling): Document
30701         --disable-mathvec.
30702         * INSTALL: Regenerated.
30703         * NEWS: Mention addition of libmvec and x86_64 vector cos.
30704
30705         * math/Makefile: Added rules for vector tests.
30706         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
30707         declaration under condition.
30708         * math/test-double-vlen2.h: New file.
30709         * math/test-double-vlen4.h: New file.
30710         * math/test-double-vlen8.h: New file.
30711         * math/test-vec-loop.h: Added initialization macro.
30712         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
30713         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
30714         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
30715         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
30716         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
30717         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
30718         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
30719         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
30720         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
30721         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
30722         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
30723
30724         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30725         * sysdeps/x86_64/fpu/Versions: New versions added.
30726         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
30727         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
30728         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
30729         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
30730         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
30731         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
30732         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
30733         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
30734         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
30735         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
30736         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
30737         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
30738         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
30739         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30740         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30741         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30742         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
30743         * NEWS: Mention addition of x86_64 vector cosf.
30744
30745         * math/Makefile: Added CFLAGS for new tests.
30746         * math/test-float-vlen16.h: New file.
30747         * math/test-float-vlen4.h: New file.
30748         * math/test-float-vlen8.h: New file.
30749         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
30750         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
30751         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30752         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
30753         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
30754         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
30755         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
30756         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
30757         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
30758         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
30759         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
30760
30761 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
30762
30763         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
30764         * locale/programs/ld-ctype.c: Likewise.
30765
30766 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
30767
30768         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
30769         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
30770         bit_ZMM16_31_state): New macro.
30771         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30772         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
30773
30774 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
30775
30776         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
30777
30778 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
30779
30780         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
30781
30782 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30783
30784         [BZ #18498]
30785         * libio/memstream.c (open_memstream): Rename to __open_memstream
30786         and define as weak alias of __open_memstream.
30787         * include/stdio.h (__open_memstream): Declare.  Use
30788         libc_hidden_proto.
30789         (open_memstream): Don't use libc_hidden_proto.
30790         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
30791         open_memstream.
30792         * posix/getopt.c (_getopt_internal_r): Likewise.
30793         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
30794         variable.
30795         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
30796         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
30797         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
30798
30799         [BZ #18496]
30800         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30801         instead of wcrtomb.
30802
30803         [BZ #18483]
30804         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
30805         [__USE_XOPEN2K8].  Remove redundant #endif.
30806         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
30807         Remove redundant #if.
30808         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
30809         Remove variable.
30810         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
30811         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
30812
30813         [BZ #18495]
30814         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
30815         (__iswlower): Likewise.
30816         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
30817         (__iswlower): Likewise.
30818         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
30819         instead of towlower.
30820         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30821         instead of iswlower.  Call __towupper instead of towupper.
30822         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30823         instead of iswalnum.
30824
30825 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30826
30827         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
30828         errors to stderr.
30829
30830 2015-06-05  Florian Weimer  <fweimer@redhat.com>
30831
30832         [BZ #15661]
30833         [BZ #17322]
30834         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
30835         Check for overflow properly.  Check for O_APPEND.  Ignore large
30836         file system block sizes.  Add comments about problems.
30837         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
30838         * manual/filesys.texi (Storage Allocation): New node.
30839
30840 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30841
30842         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
30843         cancellable syscalls.
30844         (SYS_ify): Add guard to no redefine it.
30845         (INLINE_SYSCALL): Likewise.
30846         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
30847         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
30848         SYSCALL_CANCEL instead.
30849         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
30850         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
30851         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
30852         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
30853         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
30854         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
30855         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
30856         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
30857         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
30858         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
30859         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
30860         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
30861         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
30862         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
30863         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
30864         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
30865         Likewise.
30866         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
30867         (__libc_pread64): Likewise.
30868         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
30869         (__libc_preadv): Likewise.
30870         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
30871         (__libc_readv64): Likewise.
30872         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
30873         (__libc_pwrite): Likewise.
30874         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
30875         (__libc_pwrite64): Likewise.
30876         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
30877         (__libc_pwritev): Likewise.
30878         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
30879         (__libc_pwritev64): Likewise.
30880         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
30881         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
30882         (sync_file_range): Likewise.
30883         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
30884         Likewise.
30885         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
30886         Likewise.
30887         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
30888         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
30889         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
30890         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
30891         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
30892         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
30893         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
30894         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
30895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
30896         Likewise.
30897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
30898         (__libc_read64): Likewise.
30899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
30900         Likewise.
30901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
30902         Likewise.
30903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
30904         Likewise.
30905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
30906         Likewise.
30907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
30908         (__libc_pread64): Likewise.
30909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
30910         Likewise.
30911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
30912         (__libc_pwrite64): Likewise.
30913         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
30914         (sync_file_range): Likewise.
30915         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
30916         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
30917         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
30918         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
30919         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
30920         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
30921         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
30922         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
30923         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
30924         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
30925         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
30926         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
30927         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
30928         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
30929         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
30930         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
30931         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
30932         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
30933         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
30934         Likewise.
30935         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
30936         Likewise.
30937         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
30938         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
30939         Likewise.
30940         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
30941         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
30942         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
30943         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
30944         Likewise.
30945         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
30946         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
30947         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
30948         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
30949         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
30950
30951 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
30952
30953         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
30954         Include dl-vdso.
30955         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
30956         Use VDSO routines for gettimeofday, clock_gettime if
30957         available.
30958         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
30959         Declare VDSO symbols.
30960         * sysdeps/unix/sysv/linux/arm/sysdep.h:
30961         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
30962         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30963         * sysdeps/unix/sysv/linux/arm/Versions: Add
30964         __vdso_clock_gettime.
30965
30966 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30967
30968         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
30969         be an inline implementation regardless of library is built within.
30970         (open_not_cancel_2): Likewise.
30971         (__read_nocancel): Likewise.
30972         (__write_nocancel): Likewise.
30973         (openat_not_cancel): Likewise.
30974         (openat_not_cancel_3): Likewise.
30975         (openat64_not_cancel): Likewise.
30976         (openat64_not_cancel_3): Likewise.
30977         (__close_nocancel): Likewise.
30978         (pause_not_cancel): Likewise.
30979         (nanosleep_not_cancel): Likewise.
30980         (sigsuspend_not_cancel): Likewise.
30981
30982 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30983
30984         [BZ #14958]
30985         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
30986         wake-up.
30987         (__pthread_rwlock_rdlock_slow): Likewise.
30988         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
30989         Likewise.
30990         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
30991         Likewise.
30992         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
30993         * nptl/tst-rwlock16.c: New file.
30994         * nptl/Makefile (tests): Add new test.
30995
30996 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30997
30998         [BZ #18324]
30999         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
31000         missing wake-up of readers.
31001         * nptl/tst-rwlock15.c: New file.
31002         * nptl/Makefile (tests): Add new test.
31003
31004 2015-06-03  Roland McGrath  <roland@hack.frob.com>
31005
31006         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
31007         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
31008         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
31009         and __nacl_supply_interface_rtld.
31010         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
31011         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
31012         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
31013         Add __nacl_supply_interface_rtld.
31014         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
31015
31016 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
31017
31018         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
31019         isfinite.
31020         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
31021         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
31022
31023 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
31024
31025         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
31026         __signbit* with standard C99 macros.
31027         * math/e_exp10l.c: Likewise.
31028         * math/e_exp2l.c: Likewise.
31029         * math/e_scalb.c: Likewise.
31030         * math/e_scalbf.c: Likewise.
31031         * math/e_scalbl.c: Likewise.
31032         * math/s_ldexp.c: Likewise.
31033         * math/s_ldexpf.c: Likewise.
31034         * math/s_ldexpl.c: Likewise.
31035         * math/w_atan2.c: Likewise.
31036         * math/w_atan2f.c: Likewise.
31037         * math/w_atan2l.c: Likewise.
31038         * math/w_cosh.c: Likewise.
31039         * math/w_coshf.c: Likewise.
31040         * math/w_coshl.c: Likewise.
31041         * math/w_exp10.c: Likewise.
31042         * math/w_exp10f.c: Likewise.
31043         * math/w_exp10l.c: Likewise.
31044         * math/w_exp2.c: Likewise.
31045         * math/w_exp2f.c: Likewise.
31046         * math/w_exp2l.c: Likewise.
31047         * math/w_fmod.c: Likewise.
31048         * math/w_fmodf.c: Likewise.
31049         * math/w_fmodl.c: Likewise.
31050         * math/w_hypot.c: Likewise.
31051         * math/w_hypotf.c: Likewise.
31052         * math/w_hypotl.c: Likewise.
31053         * math/w_jnl.c: Likewise.
31054         * math/w_lgamma.c: Likewise.
31055         * math/w_lgamma_r.c: Likewise.
31056         * math/w_lgammaf.c: Likewise.
31057         * math/w_lgammaf_r.c: Likewise.
31058         * math/w_lgammal.c: Likewise.
31059         * math/w_lgammal_r.c: Likewise.
31060         * math/w_pow.c: Likewise.
31061         * math/w_powf.c: Likewise.
31062         * math/w_powl.c: Likewise.
31063         * math/w_remainder.c: Likewise.
31064         * math/w_remainderf.c: Likewise.
31065         * math/w_remainderl.c: Likewise.
31066         * math/w_scalb.c: Likewise.
31067         * math/w_scalbf.c: Likewise.
31068         * math/w_scalbl.c: Likewise.
31069         * math/w_scalbln.c: Likewise.
31070         * math/w_scalblnf.c: Likewise.
31071         * math/w_scalblnl.c: Likewise.
31072         * math/w_sinh.c: Likewise.
31073         * math/w_sinhf.c: Likewise.
31074         * math/w_sinhl.c: Likewise.
31075         * math/w_tgamma.c: Likewise.
31076         * math/w_tgammaf.c: Likewise.
31077         * math/w_tgammal.c: Likewise.
31078         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31079         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
31080         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
31081         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
31082         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
31083         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31084         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
31085         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
31086         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
31087         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
31088         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
31089         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
31090         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
31091         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
31092         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
31093         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
31094         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
31095         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
31096         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31097         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31098         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31099         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
31100         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
31101         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31102         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
31103         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
31104         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
31105         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
31106         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
31107         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
31108         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
31109         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
31110         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
31111         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
31112         * stdio-common/printf_fp.c: Likewise.
31113         * stdio-common/printf_fphex.c: Likewise.
31114         * stdio-common/printf_size.c: Likewise.
31115
31116 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
31117
31118         [BZ #18470]
31119         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
31120         strnlen.
31121         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
31122         Remove variable.
31123         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31124         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31125         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31126         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31127         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31128         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31129         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31130         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31131         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31132         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31133
31134         [BZ #18468]
31135         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
31136         weak alias of __wmemchr.  Use libc_hidden_weak.
31137         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
31138         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
31139         instead of wmemchr.
31140
31141 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31142
31143         [BZ #18383]
31144         * elf/tst-tlsalign-extern.c: New file.
31145         * elf/tst-tlsalign-extern-static.c: New file.
31146         * elf/tst-tlsalign-vars.c: New file.
31147         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
31148         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
31149         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
31150         ($(objpfx)tst-tlsalign-extern-static): Likewise.
31151         (test-xfail-tst-tlsalign-extern-static): New variable.
31152
31153 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
31154
31155         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
31156         Use variable name _sc_err instead of err.
31157         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
31158         instead of ret.
31159         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
31160         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
31161         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
31162         (INLINE_SYSCALL): Likewise.
31163
31164         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
31165         * include/string.h (__strnlen): Use libc_hidden_proto.
31166         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
31167         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
31168         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
31169         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
31170         (libc_hidden_def): Undefine and redefine.
31171         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
31172         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
31173         __GI_strnlen.
31174         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
31175         libc_hidden_def.
31176         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
31177
31178         [BZ #18469]
31179         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
31180         weak alias of __towlower.  Use libc_hidden_weak.
31181         (towupper): Rename to __towupper and define as weak alias of
31182         __towupper.  Use libc_hidden_weak.
31183         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
31184         (__towupper): Likewise.
31185         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
31186         __towlower instead of towlower.
31187
31188 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31189
31190         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
31191         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
31192
31193 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31194
31195         * sysdeps/aarch64/libm-test-ulps: Update.
31196
31197 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31198
31199         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
31200         Define.
31201         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31202         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31203         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31204         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31205         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
31206         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
31207         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
31208
31209 2015-06-01  Martin Sebor  <msebor@redhat.com>
31210
31211         [BZ #18116]
31212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
31213         (__setcontext): Use extended four-operand version of mtsf whenever
31214         possible.
31215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
31216         (__novec_swapcontext): Likewise.
31217
31218 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31219
31220         * benchtests/scripts/compare_bench.py: New file.
31221         * benchtests/scripts/import_bench.py (mean): New function.
31222         (split_list): Likewise.
31223         (do_for_all_timings): Likewise.
31224         (compress_timings): Likewise.
31225
31226         * benchtests/scripts/import_bench.py: New file.
31227         * benchtests/scripts/validate_benchout.py: Import import_bench
31228         instead of jsonschema.
31229         (validate_bench): Remove function.
31230         (main): Use import_bench.
31231
31232 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
31233
31234         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
31235         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
31236
31237 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31238
31239         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31240
31241 2015-05-28  Roland McGrath  <roland@hack.frob.com>
31242
31243         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
31244         set THREAD_SELF->tid to a magic value and futex-wake it.
31245         Pass its address to the thread_exit system call.
31246         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
31247         bit is clear.
31248         * sysdeps/nacl/lowlevellock.h: New file.
31249         * sysdeps/nacl/lll_timedwait_tid.c: New file.
31250
31251         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
31252         Add TIMEOUT to current time, don't subtract it.
31253
31254 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
31255
31256         [BZ #2981]
31257         [BZ #18422]
31258         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
31259         ($(objpfx)tst-audit2.out): Also depend on
31260         $(objpfx)tst-auditmod9b.so.
31261         * elf/tst-audit2.c: Include <dlfcn.h>.
31262         (calloc_called): New.
31263         (calloc): Allow to be called more than once.
31264         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
31265
31266 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
31267
31268         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
31269         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
31270
31271 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
31272
31273         * stdlib/monetary.h: Fix comment.
31274
31275 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
31276
31277         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
31278         Avoid using variables in #defines that might cause shadowing.
31279         (INTERNAL_VSYSCALL_CALL): Likewise.
31280
31281 2015-05-26  Roland McGrath  <roland@hack.frob.com>
31282
31283         * sysdeps/nacl/lll_timedlock_wait.c: New file.
31284
31285         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
31286         * nptl/lll_timedlock_wait.c: ... to this new file.
31287         * nptl/Makefile (libpthread-routines): Add it.
31288         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
31289         * nptl/lll_timedwait_tid.c: ... to this new file.
31290         * nptl/Makefile (libpthread-routines): Add it.
31291         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
31292         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
31293         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
31294         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
31295         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
31296         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
31297         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
31298         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
31299         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
31300         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
31301
31302 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31303
31304         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
31305         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31306         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31307         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
31308         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
31309         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31310         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31311         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31312         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31313         * sysdeps/unix/sysv/linux/tile/sysdep.h
31314         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31315         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
31316         using vDSO syscall macro.
31317
31318 2015-05-26  Andriy Rysin  <arysin@gmail.com>
31319
31320         [BZ #17293]
31321         * uk_UA: Fix sorting order for Ukrainian locale
31322
31323 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
31324
31325         * stdlib/monetary.h: Fix comment.
31326
31327 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31328
31329         [BZ #18234]
31330         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
31331         st_mtim and st_ctim members.
31332         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
31333         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
31334         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
31335         (struct stat64): Likewise.
31336         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
31337         (struct stat64): Likewise.
31338         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
31339         (struct stat64): Likewise.
31340
31341 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31342
31343         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
31344         Define and include sysdep-vdso.h.
31345         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
31346         Likewise.
31347         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
31348         Likewise.
31349         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
31350         Define with VDSO_SYMBOL and use PTR_MANGLE.
31351         (__vdso_clock_gettime): Likewise.
31352         (__vdso_clock_getres): Likewise.
31353         (_libc_vdso_platform_setup): Likewise.
31354         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
31355         Likewise.
31356         (_libc_vdso_platform_setup): Likewise.
31357         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
31358         Likewise.
31359         (__vdso_clock_gettime): Likewise.
31360         (__vdso_clock_getres): Likewise.
31361         (__vdso_get_tbfreq): Likewise.
31362         (__vdso_getcpu): Likewise.
31363         (__vdso_time): Likewise.
31364         (__vdso_sigtramp_rt64): Likewise.
31365         (__vdso_signtramp32): Likewise.
31366         (__vdso_sigtramp_rt32): Likewise.
31367         (_libc_vdso_platform_setup): Likewise.
31368         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
31369         Likewise.
31370         (__vdso_clock_gettime): Likewise.
31371         (__vdso_clock_getres): Likewise.
31372         (_libc_vdso_platform_setup): Likewise.
31373         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
31374         Likewise.
31375         (__vdso_clock_gettime): Likewise.
31376         (_libc_vdso_platform_setup): Likewise.
31377         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
31378         Likewise.
31379         (__vdso_getcpu): Likewise.
31380         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
31381         Use VDSO_SYMBOL macro to define.
31382         (__vdso_clock_gettime): Likewise.
31383         (__vdso_clock_getres): Likewise.
31384         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
31385         Likewise.
31386         (__vdso_clock_gettime): Likewise.
31387         (__vdso_clock_getres): Likewise.
31388         (__vdso_get_tbfreq): Likewise.
31389         (__vdso_getcpu): Likewise.
31390         (__vdso_time): Likewise.
31391         (__vdso_sigtramp_rt64): Likewise.
31392         (__vdso_signtramp32): Likewise.
31393         (__vdso_sigtramp_rt32): Likewise.
31394         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
31395         Likewise.
31396         (__vdso_clock_gettime): Likewise.
31397         (__vdso_clock_getres): Likewise.
31398         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
31399         Likewise.
31400         (__vdso_clock_gettime): Likewise.
31401         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
31402         Likewise.
31403         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
31404         macro.
31405         (INTERNAL_VSYSCALL): Likewise.
31406         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
31407         Remove macro.
31408         (INTERNAL_VSYSCALL): Likewise.
31409         (INTERNAL_VSYSCALL_NCS): Likewise.
31410         (INTERNAL_VSYSCALL_CALL): New macro.
31411         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31412         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
31413         Likewise.
31414         (INTERNAL_VSYSCALL): Likewise.
31415         (INTERNAL_VSYSCALL_NCS): Likewise.
31416         (INTERNAL_VSYSCALL_CALL): New macro.
31417         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31419         (INLINE_VSYSCALL): Remove macro.
31420         (INTERNAL_VSYSCALL): Remove macro.
31421         (INTERNAL_VSYSCALL_NCS): Remove macro.
31422         (INTERNAL_VSYSCALL_CALL): New macro.
31423         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
31424         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
31425         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31426         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
31427         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31429         (INLINE_VSYSCALL): Remove macro.
31430         (INTERNAL_VSYSCALL): Likewise.
31431         (INTERNAL_VSYSCALL_NCS): Likewise.
31432         (INTERNAL_VSYSCALL_CALL): New macro.
31433         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
31434         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
31435         PTR_DEMANGLE on vDSO pointer.
31436         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31437         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
31438         macro.
31439         (INTERNAL_SYSCALL): Likewise.
31440         (INTERNAL_VSYSCALL_NCS): Remove macro.
31441         (INTERNAL_VSYSCALL_CALL): New macro.
31442         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
31443         Remove macro.
31444         (INTERNAL_VSYSCALL): Likewise.
31445         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
31446         sysdep-vdso.h instead of libc-vdso.h.
31447         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
31448         definition.
31449         (INLINE_VSYSCALL): Likewise.
31450         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
31451         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
31452         definition.
31453         (INLINE_VSYSCALL): Likewise.
31454         (INTERNAL_VSYSCALL): Likewise.
31455         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31456         * sysdeps/unix/sysv/linux/timespec_get.c
31457         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31458         (timespec_get): Use ANSI prototype.
31459         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
31460         and definition for Linux.
31461
31462 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
31463
31464         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
31465         * include/libc-symbols.h: libmvec_hidden_* macro series added.
31466
31467 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31468
31469         [BZ #2981]
31470         [BZ #18410]
31471         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
31472         for missing DT_PLTRELSZ.
31473
31474 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31475
31476         Remove obsolete aliases that broke 'locale -a'
31477         [BZ #18412]
31478         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
31479         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
31480         breaking some applications that use 'locale -a' output.
31481         Change the encoding of this file from Latin-1 to ASCII to avoid
31482         other potential problems with people grepping this file.
31483
31484 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31485
31486         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
31487         -fasynchronous-unwind-tables.
31488         (CFLAGS-sendto.c): Likewise.
31489         (CFLAGS-sendmsg.c): Likewise.
31490         (CFLAGS-connect.c): Likewise.
31491         (CFLAGS-recvmsg.c): Likewise.
31492         (CFLAGS-recvfrom.c): Likewise.
31493         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
31494         (SOCKETCALL): New macro: non-cancellable socketcall.
31495         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
31496         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
31497         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
31498         * sysdeps/unix/sysv/linux/accept.c: New file.
31499         * sysdeps/unix/sysv/linux/bind.c: Likewise.
31500         * sysdeps/unix/sysv/linux/connect.c: Likewise.
31501         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
31502         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
31503         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
31504         * sysdeps/unix/sysv/linux/listen.c: Likewise.
31505         * sysdeps/unix/sysv/linux/recv.c: Likewise.
31506         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
31507         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
31508         * sysdeps/unix/sysv/linux/send.c: Likewise.
31509         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
31510         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
31511         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
31512         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
31513         * sysdeps/unix/sysv/linux/socket.c: Likewise.
31514         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
31515         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
31516         prototype.
31517         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
31518         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31519         instead of __internal_xxx function.
31520         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
31521         prototype.
31522         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
31523         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31524         instead of __internal_xxx function.
31525         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
31526         prototype.
31527         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
31528         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31529         instead of __internal_xxx function.
31530         * sysdeps/unix/sysv/linux/accept.S: Remove file.
31531         * sysdeps/unix/sysv/linux/bind.S: Likewise.
31532         * sysdeps/unix/sysv/linux/connect.S: Likewise.
31533         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
31534         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
31535         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
31536         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
31537         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
31538         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
31539         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
31540         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
31541         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31542         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
31543         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
31544         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
31545         * sysdeps/unix/sysv/linux/listen.S: Likewise.
31546         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
31547         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
31548         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
31549         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
31550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
31551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
31552         * sysdeps/unix/sysv/linux/recv.S: Likewise.
31553         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
31554         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
31555         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
31556         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
31557         * sysdeps/unix/sysv/linux/send.S: Likewise.
31558         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
31559         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
31560         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
31561         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
31562         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
31563         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
31564         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
31565         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
31566         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
31567         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
31568         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
31569         socketcall is implemented in GLIBC.
31570
31571 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31572
31573         * soft-fp/fmadf4.c: Include <libc-internal.h>.
31574         (__fma): Ignore uninitialized warnings around packing.
31575         * soft-fp/fmasf4.c: Include <libc-internal.h>.
31576         (__fmaf): Ignore uninitialized warnings around packing.
31577         * soft-fp/fmatf4.c: Include <libc-internal.h>.
31578         (__fmal): Ignore uninitialized warnings around packing.
31579
31580         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
31581         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31582         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
31583         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31584
31585         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
31586         switch statement into default case.
31587         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
31588
31589         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
31590         a conditional in forcing "inexact".
31591         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
31592         Likewise.
31593
31594 2015-05-22  Roland McGrath  <roland@hack.frob.com>
31595
31596         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
31597         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
31598         for each INTERNAL_SYSCALL use.
31599
31600 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31601
31602         [BZ #438]
31603         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
31604         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
31605         variable.
31606
31607         [BZ #18444]
31608         * string/basename.c (basename): Rename to __basename and define as
31609         weak alias of __basename.  Use libc_hidden_weak.
31610         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
31611         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
31612         __basename instead of basename.
31613         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
31614         Remove variable.
31615         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31616
31617 2015-05-18  Florian Weimer  <fweimer@redhat.com>
31618
31619         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
31620         (_IO_JUMPS_FILE_plus): New.
31621         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
31622         _IO_CAST_FIELD_ACCESS.
31623         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
31624         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
31625         * libio/freopen.c (freopen): Likewise.
31626         * libio/freopen64.c (freopen64): Likewise.
31627         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
31628         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
31629         * libio/iofwide.c (_IO_fwide): Likewise.
31630         * libio/memstream.c (open_memstream): Likewise.
31631         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31632         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
31633         * libio/oldiopopen.c (_IO_old_popen): Likewise.
31634
31635 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
31636
31637         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
31638         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
31639         NADJ.
31640         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
31641         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
31642         NADJ.
31643         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
31644         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
31645         NADJ.
31646
31647         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
31648         (p == 4) case.
31649
31650         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
31651         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
31652         Remove variable.
31653         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31654         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31655         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31656
31657 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31658
31659         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
31660         Adjust jump table label generation macros.
31661
31662 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31663
31664         * stdio-common/vfprintf.c (vfprintf): Move local variables
31665         args_malloced, specs, specs_malloced, and the code after
31666         do_positional to the printf_positional function.
31667         (printf_positional): New function.
31668
31669 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31670
31671         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
31672         function.
31673         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
31674         STEP4_TABLE, process_arg): Move macro definitions
31675         out of the vfprintf function.  (Cosmetic change only.)
31676
31677 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
31678
31679         * benchtests/Makefile (stdio-common-bench): Define.
31680         (benchset): Add stdio-common-bench.
31681         * sprintf-inputs: New file.
31682         * sprintf-source.c: New file.
31683
31684 2015-05-21  Andreas Schwab  <schwab@suse.de>
31685
31686         [BZ #13028]
31687         [BZ #17053]
31688         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
31689         of struct __res_state.
31690         * resolv/res_send.c (__libc_res_nsend): Likewise.
31691         (get_nsaddr): New function.
31692         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
31693         statp directly.
31694
31695 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
31696
31697         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
31698         -D_POSIX_C_SOURCE=199506L.
31699
31700         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
31701
31702         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
31703         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
31704         Do not mention otherwise.
31705         [POSIX] (_XOPEN_VERSION): Do not expect.
31706         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
31707         [POSIX] (_POSIX2_C_BIND): Likewise.
31708         [POSIX] (_POSIX2_VERSION): Likewise.
31709         [POSIX] (_XOPEN_XPG2): Likewise.
31710         [POSIX] (_XOPEN_XPG3): Likewise.
31711         [POSIX] (_XOPEN_XPG4): Likewise.
31712         [POSIX] (_XOPEN_UNIX): Likewise.
31713         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
31714         [POSIX] (_POSIX_BARRIERS): Likewise.
31715         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
31716         [POSIX] (_POSIX_CPUTIME): Likewise.
31717         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
31718         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
31719         [POSIX] (_POSIX_SHELL): Likewise.
31720         [POSIX] (_POSIX_SPAWN): Likewise.
31721         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
31722         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
31723         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
31724         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
31725         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
31726         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
31727         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
31728         [POSIX] (_XBS5_LP64_OFF64): Likewise.
31729         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
31730         [POSIX] (_POSIX_TIMEOUTS): Likewise.
31731         [POSIX] (_POSIX2_PBS): Likewise.
31732         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
31733         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
31734         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
31735         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
31736         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
31737         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
31738         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
31739         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
31740         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
31741         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
31742         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
31743         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
31744         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
31745         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
31746         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
31747         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
31748         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
31749         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
31750         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
31751         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
31752         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
31753         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
31754         [POSIX] (_SC_2_C_BIND): Likewise.
31755         [POSIX] (_SC_2_C_VERSION): Likewise.
31756         [POSIX] (_SC_2_PBS): Likewise.
31757         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
31758         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
31759         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
31760         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
31761         [POSIX] (_SC_2_PBS_TRACK): Likewise.
31762         [POSIX] (_SC_ATEXIT_MAX): Likewise.
31763         [POSIX] (_SC_BARRIERS): Likewise.
31764         [POSIX] (_SC_BASE): Likewise.
31765         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
31766         [POSIX] (_SC_DEVICE_IO): Likewise.
31767         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
31768         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
31769         [POSIX] (_SC_FD_MGMT): Likewise.
31770         [POSIX] (_SC_FIFO): Likewise.
31771         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
31772         [POSIX] (_SC_FILE_LOCKING): Likewise.
31773         [POSIX] (_SC_FILE_SYSTEM): Likewise.
31774         [POSIX] (_SC_IOV_MAX): Likewise.
31775         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
31776         [POSIX] (_SC_NETWORKING): Likewise.
31777         [POSIX] (_SC_PAGE_SIZE): Likewise.
31778         [POSIX] (_SC_PASS_MAX): Likewise.
31779         [POSIX] (_SC_PIPE): Likewise.
31780         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
31781         [POSIX] (_SC_REGEXP): Likewise.
31782         [POSIX] (_SC_SHELL): Likewise.
31783         [POSIX] (_SC_SIGNALS): Likewise.
31784         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
31785         [POSIX] (_SC_SPIN_LOCKS): Likewise.
31786         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
31787         [POSIX] (_SC_USER_GROUPS): Likewise.
31788         [POSIX] (_SC_USER_GROUPS_R): Likewise.
31789         [POSIX] (_SC_STREAMS): Likewise.
31790         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
31791         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
31792         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
31793         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
31794         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
31795         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
31796         [POSIX] (_PC_FILESIZEBITS): Likewise.
31797         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
31798         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
31799         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
31800         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
31801         [POSIX] (uid_t): Likewise.
31802         [POSIX] (gid_t): Likewise.
31803         [POSIX] (off_t): Likewise.
31804         [POSIX] (pid_t): Likewise.
31805         [POSIX] (cuserid): Allow.
31806         (_SC_2_CHAR_TERM): Require constant.
31807         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
31808         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
31809         variable.
31810
31811 2015-05-20  Roland McGrath  <roland@hack.frob.com>
31812
31813         * sysdeps/nacl/pthread-pids.h: New file.
31814         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
31815         (create_thread): Use __nacl_get_tid to initialize PD->tid.
31816
31817         * nptl/pthread-pids.h: New file.
31818         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
31819         * nptl/nptl-init.c: Include <pthread-pids.h>.
31820         (__pthread_initialize_minimal_internal):
31821         Call __pthread_initialize_pids instead of set_tid_address syscall.
31822
31823         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
31824         * sysdeps/posix/usleep.c: ... here.
31825
31826 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31827
31828         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
31829         call_pselect6 object.
31830         [$(subdir) = io]: Remove call_sync_file_range object.
31831         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
31832         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
31833         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
31834         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
31835
31836 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
31837
31838         * math/s_cproj.c: Add include "math_private.h".
31839         * math/s_cprojf.c: Likewise.
31840         * math/s_cprojl.c: Likewise.
31841
31842 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
31843
31844         [BZ #18244]
31845         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
31846         high mantissa bit when testing whether P is a NaN.
31847         * math/libm-test.inc (remainder_test_data): Add more tests.
31848         (remquo_test_data): Likewise.
31849
31850         [BZ #18049]
31851         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
31852         below -32, return the argument, with underflow if subnormal.
31853         * math/auto-libm-test-in: Add more tests of atanh.
31854         * math/auto-libm-test-out: Regenerated.
31855
31856 2015-05-19  Roland McGrath  <roland@hack.frob.com>
31857
31858         [BZ #18434]
31859         * nptl/tst-sem15.c: New file.
31860         * nptl/Makefile (tests): Add it.
31861         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
31862         s/<</>>/ to fix typo in EOVERFLOW check.
31863         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
31864
31865 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31866
31867         * manual/strings.texi (envz_remove): Fix typo in safety
31868         annotations.
31869
31870 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31871             Steve Ellcey  <sellcey@imgtec.com>
31872
31873         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
31874         in order to avoid strict alias warnings.
31875         (iruserok_af): Ditto for ra.
31876
31877 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
31878
31879         [BZ #17581]
31880         * malloc/hooks.c
31881         (magicbyte): Convert to a function and avoid returning 0x01.
31882         (mem2mem_check): Avoid using a length byte equal to the magic byte.
31883         (mem2chunk_check): Fix unsigned comparisons to zero.
31884         Hoist defs of sz and magic.
31885
31886 2015-05-19  Richard Henderson  <rth@redhat.com>
31887
31888         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
31889
31890         * sysdeps/alpha/fpu/libm-test-ulps: Update.
31891
31892 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31893
31894         [BZ #16159]
31895         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
31896         * malloc/arena.c (arena_lock): Check if arena is corrupt.
31897         (reused_arena): Find a non-corrupt arena.
31898         (heap_trim): Pass arena to unlink.
31899         * malloc/hooks.c (malloc_check_get_size): Pass arena to
31900         malloc_printerr.
31901         (top_check): Likewise.
31902         (free_check): Likewise.
31903         (realloc_check): Likewise.
31904         * malloc/malloc.c (malloc_printerr): Add arena argument.
31905         (unlink): Likewise.
31906         (munmap_chunk): Adjust.
31907         (ARENA_CORRUPTION_BIT): New macro.
31908         (arena_is_corrupt): Likewise.
31909         (set_arena_corrupt): Likewise.
31910         (sysmalloc): Use mmap if there are no usable arenas.
31911         (_int_malloc): Likewise.
31912         (__libc_malloc): Don't fail if arena_get returns NULL.
31913         (_mid_memalign): Likewise.
31914         (__libc_calloc): Likewise.
31915         (__libc_realloc): Adjust for additional argument to
31916         malloc_printerr.
31917         (_int_free): Likewise.
31918         (malloc_consolidate): Likewise.
31919         (_int_realloc): Likewise.
31920         (_int_memalign): Don't touch corrupt arenas.
31921         * malloc/tst-malloc-backtrace.c: New test case.
31922
31923         * Makefile (summarize-tests): Fix return value on success.
31924
31925         * manual/string.texi (Envz Functions): Add envz_remove.
31926
31927 2015-05-18  Roland McGrath  <roland@hack.frob.com>
31928
31929         * sysdeps/posix/opendir.c: Include <stdbool.h>.
31930         (invalid_name): New function, broken out of ...
31931         (__opendirat): ... here.  Call it.
31932         (need_isdir_precheck): New function, broken out of ...
31933         (__opendirat): ... here.  Call it.
31934         Use __fxstatat64, not __xstatat64.
31935         (opendir_oflags): New function, broken out of ...
31936         (__opendirat): ... here.  Call it.
31937         (opendir_tail): New function, broken out of ...
31938         (__opendirat): ... here.  Call it.
31939         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
31940         opendir_tail, rather than punting to __opendirat.
31941         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
31942
31943 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
31944
31945         * .gitignore: Ignore generated *.pyc.
31946
31947 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
31948
31949         * include/stdio.h: Define __need_wint_t.
31950         * test-skeleton.c: Avoid `for' loop initial declaration.
31951         * nptl/tst-initializers1.c: Use test-skeleton.c.
31952
31953 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31954
31955         [BZ #18418]
31956         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
31957
31958 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31959
31960         [BZ #16352]
31961         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
31962         (__ieee754_atanh): Force underflow exception for results with
31963         small absolute value.
31964         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
31965         (__ieee754_atanhf): Force underflow exception for results with
31966         small absolute value.
31967         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
31968         (__ieee754_atanh): Force underflow exception for results with
31969         small absolute value.
31970         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
31971         (__ieee754_atanhf): Force underflow exception for results with
31972         small absolute value.
31973         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
31974         (__ieee754_atanhl): Force underflow exception for results with
31975         small absolute value.
31976         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
31977         (__ieee754_atanhl): Force underflow exception for results with
31978         small absolute value.
31979         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
31980         (__ieee754_atanhl): Force underflow exception for results with
31981         small absolute value.
31982         * math/auto-libm-test-in: Do not allow missing underflow
31983         exceptions from atanh.
31984         * math/auto-libm-test-out: Regenerated.
31985
31986         [BZ #18221]
31987         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
31988         2**-28 as threshold for returning x or +/- 1/x.
31989         * math/auto-libm-test-in: Add more tests of tan.
31990         * math/auto-libm-test-out: Regenerated.
31991
31992         [BZ #18220]
31993         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
31994         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
31995         * math/auto-libm-test-in: Add another test of lgamma.
31996         * math/auto-libm-test-out: Regenerated.
31997
31998 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
31999
32000         * stdio-common/printf_fp.c (___printf_fp): Use abs.
32001         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
32002         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
32003         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
32004         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
32005         (ADD2A): Use fabs.  (SUB2A): Use fabs.
32006         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
32007         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
32008         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
32009         (log1): Use fabs.  (my_log2): Use fabs.
32010         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
32011         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
32012         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
32013         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
32014         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
32015         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
32016         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
32017         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
32018         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
32019         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
32020         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
32021
32022 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
32023
32024         [BZ #18217]
32025         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
32026         as threshold for returning 1 - x.
32027         * math/auto-libm-test-in: Add more tests of erfc.
32028         * math/auto-libm-test-out: Regenerated.
32029
32030 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
32031
32032         [BZ #18196]
32033         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
32034         threshold for large arguments.
32035         * math/auto-libm-test-in: Add another test of atan.
32036         * math/auto-libm-test-out: Regenerated.
32037
32038         [BZ #16339]
32039         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
32040         (__log1p): Force underflow exception for results with small
32041         absolute value.
32042         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
32043         (__log1pf): Force underflow exception for results with small
32044         absolute value.
32045         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
32046         (__log1p): Force underflow exception for results with small
32047         absolute value.
32048         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
32049         (__log1pf): Force underflow exception for results with small
32050         absolute value.
32051         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
32052         (__log1pl): Force underflow exception for results with small
32053         absolute value.
32054         * math/auto-libm-test-in: Do not allow missing underflow
32055         exceptions from log1p.
32056         * math/auto-libm-test-out: Regenerated.
32057
32058 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
32059             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32060
32061         [BZ #16704]
32062         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
32063
32064 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
32065
32066         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
32067         (libmvec): New variable.
32068         * configure.ac: Added option for mathvec build.
32069         * configure: Regenerated.
32070         * mathvec/Depend: New file.
32071         * mathvec/Makefile: New file.
32072         * shlib-versions: Added libmvec.
32073         * math/Makefile: Added rule for libm.so installation.
32074
32075         * bits/math-vector.h: New file.
32076         * bits/libm-simd-decl-stubs.h: New header.
32077         * math/Makefile (headers): Added new header
32078         libm-simd-decl-stubs.h.
32079         * math/math.h (__MATHCALL_VEC): New macro.
32080
32081         * math/gen-libm-have-vector-test.sh: Script generates series of macros
32082         for conditions in testing functions.
32083         * math/Makefile: Added call of libm-have-vector-test.sh.
32084         * math/libm-test.inc (HAVE_VECTOR): New macros.
32085
32086         * math/libm-test.inc: START refactored.
32087         * math/test-double.c (TEST_MATHVEC): Add define.
32088         * math/test-float.c: Likewise.
32089         * math/test-idouble.c: Likewise.
32090         * math/test-ifloat.c: Likewise.
32091         * math/test-ildoubl.c: Likewise.
32092         * math/test-ldouble.c: Likewise.
32093         * sysdeps/generic/math-tests-arch.h
32094         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
32095         architecture check.
32096
32097         * math/test-double.c (FUNC_TEST): New macro.
32098         * math/test-float.c: Likewise.
32099         * math/test-idouble.c: Likewise.
32100         * math/test-ifloat.c: Likewise.
32101         * math/test-ildoubl.c: Likewise.
32102         * math/test-ldouble.c: Likewise.
32103         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
32104
32105 2015-05-13  Roland McGrath  <roland@hack.frob.com>
32106
32107         * sysdeps/nacl/fdopendir.c: New file.
32108
32109         * dirent/scandir-tail.c: New file.
32110         * dirent/scandir64-tail.c: New file.
32111         * dirent/Makefile (routines): Add them.
32112         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
32113         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
32114         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
32115         [!SCANDIR] (SCANDIR_TAIL): New macro.
32116         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
32117         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
32118         (SCANDIRAT): Macro removed.
32119         (SCANDIR_TAIL): New macro.
32120         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
32121         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
32122         (SCANDIRAT): Just call __opendirat and __scandir_tail.
32123         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
32124         (READDIR): Macro removed.
32125         (SCANDIR_TAIL): New macro.
32126         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
32127         (SCANDIR_TAIL): New macro.
32128
32129         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
32130         * dirent/scandir-cancel.c: ... to this new file.
32131         * dirent/Makefile (routines): Add it.
32132         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
32133         * sysdeps/unix/sysv/linux/i386/scandir64.c
32134         (SKIP_SCANDIR_CANCEL): Macro removed.
32135         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
32136
32137         * dirent/tst-scandir.c: New file.
32138         * dirent/tst-scandir64.c: New file.
32139         * dirent/Makefile (tests): Add them.
32140
32141 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
32142
32143         [BZ #18409]
32144         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
32145
32146 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32147
32148         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
32149         list.
32150
32151 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
32152
32153         * benchtests/bench-strcoll.c: New benchmark.
32154         * benchtests/Makefile: Generate locales and run benchmark.
32155         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
32156         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
32157         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
32158         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
32159         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
32160         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
32161         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
32162         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
32163         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
32164         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
32165         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
32166         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
32167         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
32168         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
32169         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
32170         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
32171         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
32172         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
32173         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
32174         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
32175         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
32176         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
32177         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
32178         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
32179
32180 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
32181
32182         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
32183         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
32184
32185 2015-05-12  Roland McGrath  <roland@hack.frob.com>
32186
32187         * posix/uname-values.h: New file.
32188         * posix/uname.c: Include that instead of <config-name.h>.
32189         * sysdeps/nacl/uname-values.h: New file.
32190         * sysdeps/arm/nacl/uname-values.h: New file.
32191
32192 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
32193
32194         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
32195         splitting into fields.
32196
32197 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
32198
32199         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
32200         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
32201         * locale/localeinfo.h: Add enum collation_encoding_type.
32202         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
32203         * programs/ld-collate.c (collate_output): Add encoding type info.
32204         * string/strcoll_l.c (STRDIFF): New function.
32205         * (STRCOLL): Use STRDIFF to skip over equal prefix.
32206         * wcsmbs/wcscoll_l.c: Define STRDIFF.
32207
32208 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
32209
32210         [BZ #18397]
32211         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
32212         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
32213         <fpu_control.h> instead of <math/fpu_control.c>.
32214         * sysdeps/mips/mips32/fpu/Makefile: New file.
32215
32216 2015-05-11  Andreas Schwab  <schwab@suse.de>
32217
32218         [BZ #18007]
32219         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
32220         nss_endgrent.
32221         (_nss_compat_endgrent): Call nss_endgrent.
32222         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
32223         nss_endpwent.
32224         (_nss_compat_endpwent): Call nss_endpwent.
32225         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
32226         needent, call nss_setspent only if non-zero.
32227         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
32228         (internal_endspent): Don't call nss_endspent.
32229         (_nss_compat_endspent): Call nss_endspent.
32230         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
32231         Remove.  All uses removed.
32232         (internal_setent): Remove parameter stayopen, add parameter
32233         stream.  Use it instead of global variable.
32234         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
32235         (internal_endent, internal_getent): Add parameter stream.  Use it
32236         instead of global variable.
32237         (CONCAT(_nss_files_end,ENTNAME))
32238         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
32239         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
32240         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
32241         uses removed.
32242         (internal_setent, internal_endent): Add parameter stream.  Use it
32243         instead of global variable.
32244         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
32245         stream.
32246         (get_next_alias): Add parameter stream.
32247         (_nss_files_getaliasent_r): Pass global stream.
32248         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
32249         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
32250         (_nss_files_gethostbyname4_r): Pass local stream to
32251         internal_setent, internal_getent and internal_endent.  Remove
32252         locking.
32253
32254 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
32255
32256         * tst-strfmon1.c (tests): Update expected currency symbol.
32257
32258 2015-05-08  Roland McGrath  <roland@hack.frob.com>
32259
32260         * sysdeps/nacl/gethostname.c: New file.
32261
32262 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
32263
32264         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
32265         and sinh.
32266         * math/auto-libm-test-out: Regenerated.
32267         * sysdeps/i386/fpu/libm-test-ulps: Update.
32268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32269
32270 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
32271
32272         [BZ #18125]
32273         * stdlib/tst-setcontext3.c: New file.
32274         * stdlib/tst-setcontext3.sh: New file.
32275         * stdlib/Makefile (tests): Add tst-setcontext3.
32276         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
32277         to verify test program created output file.
32278         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
32279         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
32280         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
32281         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
32282
32283 2015-05-06  Roland McGrath  <roland@hack.frob.com>
32284
32285         [BZ #18383]
32286         * elf/tst-tlsalign.c: New file.
32287         * elf/tst-tlsalign-static.c: New file.
32288         * elf/tst-tlsalign-lib.c: New file.
32289         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
32290         (tests-static): Add tst-tlsalign-static.
32291         (modules-names): Add tst-tlsalign-lib.
32292         (test-xfail-tst-tlsalign): New variable.
32293         (test-xfail-tst-tlsalign-static): New variable.
32294
32295         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
32296         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
32297
32298 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
32299
32300         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
32301         csqrt, erfc, sin and sincos.
32302         * math/auto-libm-test-out: Regenerated.
32303         * sysdeps/i386/fpu/libm-test-ulps: Update.
32304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32305
32306 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32307
32308         * sysdeps/aarch64/libm-test-ulps: Update.
32309
32310 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
32311
32312         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
32313         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
32314         * math/auto-libm-test-out: Regenerated.
32315         * sysdeps/i386/fpu/libm-test-ulps: Update.
32316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32317
32318 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
32319
32320         [BZ #18265]
32321         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
32322         (wcsncpy): Likewise.
32323
32324 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32325
32326         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
32327         Assume __ASSUME_FALLOCATE is always true.
32328         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32329         (__posix_fallocate64_l64): Likewise.
32330         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
32331         (posix_fallocate): Likewise.
32332         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
32333         (__posix_fallocate64_l64): Likewise.
32334         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32335         [!__ASSUME_FALLOCATE]: Add comment.
32336
32337 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32338
32339         * sysdeps/unix/sysv/linux/i386/Makefile
32340         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
32341         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
32342         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
32343         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32344         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32345         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
32346         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
32347
32348 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
32349
32350         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
32351         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
32352         tgamma.
32353         * math/auto-libm-test-out: Regenerated.
32354         * sysdeps/i386/fpu/libm-test-ulps: Update.
32355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32356
32357 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32358
32359         * math/auto-libm-test-in: Add more tests of tgamma.
32360         * math/auto-libm-test-out: Regenerated.
32361         * sysdeps/i386/fpu/libm-test-ulps: Update.
32362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32363
32364         * math/auto-libm-test-in: Add more tests of tanh.
32365         * math/auto-libm-test-out: Regenerated.
32366         * sysdeps/i386/fpu/libm-test-ulps: Update.
32367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32368
32369         * math/auto-libm-test-in: Add more tests of tan.
32370         * math/auto-libm-test-out: Regenerated.
32371         * sysdeps/i386/fpu/libm-test-ulps: Update.
32372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32373
32374         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
32375         * math/auto-libm-test-out: Regenerated.
32376         * sysdeps/i386/fpu/libm-test-ulps: Update.
32377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32378
32379         * math/auto-libm-test-in: Add another test of pow.
32380         * math/auto-libm-test-out: Regenerated.
32381         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32382
32383         * math/auto-libm-test-in: Add more tests of lgamma.
32384         * math/auto-libm-test-out: Regenerated.
32385         * sysdeps/i386/fpu/libm-test-ulps: Update.
32386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32387
32388         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
32389         log1p.
32390         * math/auto-libm-test-out: Regenerated.
32391         * sysdeps/i386/fpu/libm-test-ulps: Update.
32392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32393
32394 2015-05-01  Mark Wielaard  <mjw@redhat.com>
32395
32396         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
32397         Elf64_Chdr structs and ELFCOMPRESS constants.
32398
32399 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32400
32401         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
32402         expm1.
32403         * math/auto-libm-test-out: Regenerated.
32404         * sysdeps/i386/fpu/libm-test-ulps: Update.
32405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32406
32407         * math/auto-libm-test-in: Add more tests of erf and erfc.
32408         * math/auto-libm-test-out: Regenerated.
32409         * sysdeps/i386/fpu/libm-test-ulps: Update.
32410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32411
32412 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32413
32414         * config.h.in (HAVE_AARCH64_BE): Add.
32415
32416 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
32417
32418         * math/auto-libm-test-in: Add more tests of csqrt.
32419         * math/auto-libm-test-out: Regenerated.
32420         * sysdeps/i386/fpu/libm-test-ulps: Update.
32421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32422
32423         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32424         * math/auto-libm-test-out: Regenerated.
32425         * sysdeps/i386/fpu/libm-test-ulps: Update.
32426         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32427
32428         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
32429
32430 2015-04-29  Roland McGrath  <roland@hack.frob.com>
32431
32432         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
32433         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
32434
32435         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
32436         (euidaccess, eaccess): Define as weak aliases.
32437
32438         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
32439         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
32440         but __suseconds_t is often 'long int' so some sources assume that
32441         type is being used (e.g. they use %ld to print tv_usec).
32442
32443 2015-04-29  Florian Weimer  <fweimer@redhat.com>
32444
32445         [BZ #18007]
32446         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
32447         (CVE-2014-8121)
32448         * nss/tst-nss-getpwent.c: New file.
32449         * nss/Makefile (tests): Add new test.
32450
32451 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
32452
32453         [BZ #18346]
32454         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
32455         exponents less than 48 as cases where high part of mantissa needs
32456         examining to determine whether argument is integral.
32457         * math/libm-test.inc (round_test_data): Add more tests.
32458
32459 2015-04-28  Mark Wielaard  <mjw@redhat.com>
32460
32461         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
32462
32463 2015-04-27  David S. Miller  <davem@davemloft.net>
32464
32465         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
32466         __tls_get_addr.
32467         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32468
32469 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
32470
32471         [BZ #18333]
32472         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
32473
32474 2015-04-27  Florian Weimer  <fweimer@redhat.com>
32475
32476         [BZ #18333]
32477         * time/tzset.c (parse_tzname): Return error on memory allocation
32478         failure.
32479         * test-skeleton.c (struct temp_name_list): Change type of name
32480         member to non-const.
32481         (add_temp_file): Create a copy of the file name.
32482         (delete_temp_files): Deallocate memory.
32483         (create_temp_file): Add comment.
32484
32485 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32486
32487         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
32488         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
32489
32490 2015-04-24  Roland McGrath  <roland@hack.frob.com>
32491
32492         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
32493         * sysdeps/arm/configure: Regenerated.
32494
32495 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32496
32497         [BZ #17715]
32498         * time/tzfile.c (__tzfile_read): Check for large values of
32499         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
32500         * time/tzset.c (__tzstring_len): New function, based on the old
32501         __tzstring function.
32502         (__tzstring): Call __tzstring_len.
32503         (parse_tzname): New helper function extracted from
32504         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
32505         the input string.
32506         (parse_offset): New helper function extracted from
32507         __tzset_parse_tz.  Replace switch with fallthrough with
32508         initialization before sscanf.
32509         (parse_rule): Likewise.
32510         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
32511         new-style function definition.
32512         * timezone/Makefile (tests): Add tst-tzset.
32513         (tst-tzset.out): Dependencies on time zone files.
32514         (tst-tzset-ENV): Set TZDIR.
32515         (testdata/XT%): Copy crafted time zone files.
32516         * timezone/README: Mention crafted time zone files.
32517         * timezone/testdata/XT1, timezone/testdata/XT2,
32518         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
32519         files.
32520         * timezone/tst-tzset.c: New test.
32521
32522 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32523
32524         * Makeconfig (+gccwarn): Remove -Winline.
32525
32526 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32527
32528         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
32529
32530 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32531
32532         * NEWS: Mention sysconf() cache information support for s390.
32533         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
32534
32535 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
32536
32537         * math/k_casinh.c (__kernel_casinh): Use __copysign.
32538         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
32539         (__nearbyint): Likewise.
32540         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
32541         (copysignl): Likewise.
32542
32543 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
32544
32545         [BZ #18287]
32546         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
32547         based on padding.  (CVE-2015-1781)
32548
32549 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32550
32551         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
32552         libc-vdso.h.
32553         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
32554         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
32555         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
32556         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32557         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32558         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
32559         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
32560         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32561         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
32562         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
32563         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
32564         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32565         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
32566         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
32567         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32568         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
32569         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
32570         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
32571         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
32572         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
32573         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
32574         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
32575         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
32576
32577 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
32578
32579         * stdlib/setenv.c (__add_to_environ):
32580         Dump core quickly if setenv (..., NULL, ...) is called.
32581         This time, do it the right way, and pacify GCC with a pragma.
32582
32583 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32584
32585         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
32586         IMAP->l_prev cannot be null, and #if out the code for the contrary
32587         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
32588         believe that NS (&_dl_ns[NSID]) could point outside the array.
32589
32590         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
32591         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
32592         before using NSID as an index.
32593
32594 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
32595
32596         [BZ #17825]
32597         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
32598         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
32599         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
32600
32601 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32602
32603         Add preliminary port to Google Native Client on ARM.
32604         * abi-tags (.*-.*-nacl.*): New entry.
32605         * sysdeps/arm/nacl: New directory.
32606         * sysdeps/nacl: New directory.
32607
32608 2015-04-16  David S. Miller  <davem@davemloft.net>
32609
32610         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
32611         lowlevellock-futex.h
32612
32613 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
32614
32615         * sysdeps/tile/configure.ac: New file.
32616         * sysdeps/tile/configure: Regenerated.
32617
32618 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32619
32620         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
32621         conditionals for weak_alias and libc_hidden_weak.
32622         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
32623         libc_hidden_weak and weak_alias.
32624         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
32625         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
32626         and weak_alias for static one.
32627
32628 2015-04-15  David S. Miller  <davem@davemloft.net>
32629
32630         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
32631
32632 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32633
32634         [BZ #18206]
32635         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
32636           Use signed comparision instead of substraction to avoid
32637           overflow bug.
32638         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
32639           Take the sign of ret.
32640         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
32641           Do not expect precise return values. Only the sign matters.
32642         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
32643         * wcsmbs/test-wcsncmp.c: New File.
32644         * string/test-strncmp.c: Add wcsncmp support.
32645
32646 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32647
32648         [BZ #6792]
32649         * math/w_log1p.c: New file.
32650         * math/w_log1pf.c: Likewise.
32651         * math/w_log1pl.c: Likewise.
32652         * math/Makefile (libm-calls): Add w_log1p.
32653         * math/s_log1pl.c (log1pl): Remove weak_alias.
32654         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
32655         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
32656         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
32657         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
32658         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
32659         [NO_LONG_DOUBLE] (log1pl): Likewise.
32660         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
32661         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
32662         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
32663         (log1p): Remove long_double_symbol.
32664         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
32665         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
32666         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
32667         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
32668         remove weak_alias for corresponding log1p function.
32669         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
32670         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
32671         * sysdeps/ia64/fpu/w_log1p.c: New file.
32672         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
32673         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
32674         * math/libm-test.inc (log1p_test_data): Add errno expectations.
32675
32676 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
32677
32678         [BZ #18247]
32679         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
32680         decimal exponent by 1.
32681         * stdlib/tst-strtod-round-data: Add more tests.
32682         * stdlib/tst-strtod-round.c (tests): Regenerated.
32683
32684 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
32685
32686         * math/auto-libm-test-in: Add more tests of clog and clog10.
32687         * math/auto-libm-test-out: Regenerated.
32688         * sysdeps/i386/fpu/libm-test-ulps: Update.
32689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32690
32691 2015-04-09  Roland McGrath  <roland@hack.frob.com>
32692
32693         * Makeconfig (module-cppflags): Exclude all .v.i files.
32694         (skip-module-cppflags): Variable removed.
32695
32696         * configure.ac (libc_config_ok): Initialize before reading
32697         preconfigure scripts, not after.
32698         * configure: Regenerated.
32699
32700         * test-skeleton.c (TIMEOUT): Move #define to top level.
32701         (main): Grok environment variable TEST_DIRECT.  If set, print
32702         test expectation details into that file and then behave as if
32703         given --direct.
32704
32705 2015-04-09  Florian Weimer  <fweimer@redhat.com>
32706
32707         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
32708         warning on 32-bit.
32709
32710 2015-04-08  David S. Miller  <davem@davemloft.net>
32711
32712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32713
32714 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32715
32716         * math/auto-libm-test-in: Add more tests of atanh.
32717         * math/auto-libm-test-out: Regenerated.
32718         * sysdeps/i386/fpu/libm-test-ulps: Update.
32719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32720
32721         * math/auto-libm-test-in: Add more tests of atan.
32722         * math/auto-libm-test-out: Regenerated.
32723         * sysdeps/i386/fpu/libm-test-ulps: Update.
32724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32725
32726 2015-04-08  Florian Weimer  <fweimer@redhat.com>
32727
32728         * elf/pldd.c (main): Rewrite to use struct
32729         scratch_buffer instead of extend_alloca.
32730         * elf/pldd-xx.c (find_maps): Likewise.
32731         * grp/initgroups.c: Include <scratch_buffer.h> instead of
32732         <alloca.h>.
32733         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
32734         scratch_buffer instead of extend_alloca.
32735         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
32736         grp/compat-initgroups.c.
32737         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
32738         Rewrite to use struct scratch_buffer instead of extend_alloca.
32739         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
32740         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32741
32742 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32743
32744         * math/auto-libm-test-in: Add more tests of cbrt.
32745         * math/auto-libm-test-out: Regenerated.
32746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32747
32748         * math/auto-libm-test-in: Add more tests of cabs.
32749         * math/auto-libm-test-out: Regenerated.
32750         * sysdeps/i386/fpu/libm-test-ulps: Update.
32751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32752
32753         [BZ #18210]
32754         [BZ #18211]
32755         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
32756         (__ieee754_atan2): Set FE_TONEAREST mode for internal
32757         computations.
32758         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
32759         clog10.
32760         * math/auto-libm-test-out: Regenerated.
32761         * sysdeps/i386/fpu/libm-test-ulps: Update.
32762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32763
32764         [BZ #18197]
32765         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
32766         (atan): Set FE_TONEAREST mode for internal computations.
32767         * math/auto-libm-test-in: Add more tests of atan.
32768         * math/auto-libm-test-out: Regenerated.
32769
32770 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
32771
32772         [BZ #17930]
32773         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
32774
32775 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32776
32777         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
32778
32779 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32780
32781         * include/scratch_buffer.h: New file.
32782         * malloc/scratch_buffer_grow.c: Likewise.
32783         * malloc/scratch_buffer_grow_preserve.c: Likewise.
32784         * malloc/scratch_buffer_set_array_size.c: Likewise.
32785         * malloc/tst-scratch_buffer.c: Likewise.
32786         * malloc/Makefile (routines): Add scratch_buffer_grow.
32787         (tests): Add test case.
32788         * malloc/Versions (GLIBC_PRIVATE): Export
32789         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
32790         __libc_scratch_buffer_set_array_size.
32791
32792 2015-04-06  Richard Henderson  <rth@redhat.com>
32793
32794         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
32795         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32796
32797         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
32798         unsigned int before printing.
32799
32800 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
32801
32802         [BZ #17596]
32803         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
32804         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
32805
32806 2015-04-02  Florian Weimer  <fweimer@redhat.com>
32807
32808         * include/libc-internal.h (libc_max_align_t): Define.
32809
32810 2015-04-02  Andreas Schwab  <schwab@suse.de>
32811
32812         [BZ #16850]
32813         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
32814
32815 2015-04-02  Mel Gorman  <mgorman@suse.de>
32816
32817         [BZ #17195]
32818         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
32819         as well as the main arena.
32820
32821 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32822
32823         [BZ #18185]
32824         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
32825         sharing L2 cache to 2 for Silvermont/Knights Landing.
32826
32827 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32828
32829         [BZ #17711]
32830         * config.make.in (have-protected-data): New.
32831         * configure.ac: Check linker support for protected data symbol.
32832         * configure: Regenerated.
32833         * elf/Makefile (modules-names): Add tst-protected1moda and
32834         tst-protected1modb if $(have-protected-data) is yes.
32835         (tests): Add tst-protected1a and tst-protected1b if
32836         $(have-protected-data) is yes.
32837         ($(objpfx)tst-protected1a): New.
32838         ($(objpfx)tst-protected1b): Likewise.
32839         (tst-protected1modb.so-no-z-defs): Likewise.
32840         * elf/tst-protected1a.c: New file.
32841         * elf/tst-protected1b.c: Likewise.
32842         * elf/tst-protected1mod.h: Likewise.
32843         * elf/tst-protected1moda.c: Likewise.
32844         * elf/tst-protected1modb.c: Likewise.
32845
32846 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32847
32848         [BZ #17711]
32849         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
32850         indicates it is called from do_lookup_x on relocation against
32851         protected data, skip the data definion in the executable from
32852         copy reloc.
32853         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
32854         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
32855         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
32856         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
32857         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
32858         otherwise to 0.
32859         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32860         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
32861         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
32862         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32863         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
32864         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
32865
32866 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
32867
32868         * sysdeps/nptl/pthread.h: Remove duplicate definition of
32869         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
32870
32871 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
32872
32873         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
32874         THREAD_SETMEM_NC.
32875         * sysdeps/x86_64/nptl/tls.h: Ditto.
32876
32877 2015-03-27  Roland McGrath  <roland@hack.frob.com>
32878
32879         * dlfcn/tststatic.c (main): Converted to ...
32880         (do_test): ... this.
32881         (TEST_FUNCTION): New macro.
32882         Include test-skeleton.c.
32883
32884 2015-03-26  Alan Modra  <amodra@gmail.com>
32885
32886         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
32887         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
32888         zero for undefined weak.
32889         (elf_machine_plt_conflict): Similarly.
32890
32891 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32892
32893         * math/auto-libm-test-in: Add more tests of acosh, asinh and
32894         atanh.
32895         * math/auto-libm-test-out: Regenerated.
32896         * sysdeps/i386/fpu/libm-test-ulps: Update.
32897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32898
32899         * math/auto-libm-test-in: Add another test of asin.
32900         * math/auto-libm-test-out: Regenerated.
32901         * sysdeps/i386/fpu/libm-test-ulps: Update.
32902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32903
32904         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
32905         Remove macro.
32906         (LLL_EBX_REG): Likewise.
32907         (LLL_ENTER_KERNEL): Likewise.
32908
32909         * math/auto-libm-test-in: Add more tests of asin.
32910         * math/auto-libm-test-out: Regenerated.
32911         * sysdeps/i386/fpu/libm-test-ulps: Update.
32912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32913
32914         [BZ #18138]
32915         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
32916         libc_do_syscall_args): New structure.
32917         (INTERNAL_SYSCALL_MAIN_0): New macro.
32918         (INTERNAL_SYSCALL_MAIN_1): Likewise.
32919         (INTERNAL_SYSCALL_MAIN_2): Likewise.
32920         (INTERNAL_SYSCALL_MAIN_3): Likewise.
32921         (INTERNAL_SYSCALL_MAIN_4): Likewise.
32922         (INTERNAL_SYSCALL_MAIN_5): Likewise.
32923         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
32924         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
32925         Replace conditional definitions by conditional definitions of ....
32926         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
32927         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
32928         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
32929         (libpthread-sysdep_routines): Add libc-do-syscall.
32930         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
32931         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
32932         to __NR_futex not 240.
32933
32934 2015-03-25  Alan Modra  <amodra@gmail.com>
32935
32936         * NEWS: Advertise TLS optimization.
32937         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
32938         (DT_PPC_NUM): Increment.
32939         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
32940         (CHECK_STATIC_TLS): Use here.
32941         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
32942         TLS descriptors.
32943         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
32944         * sysdeps/powerpc/dl-tls.c: New file.
32945         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
32946         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
32947         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
32948         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
32949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
32950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
32951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
32952
32953 2015-03-25  Alan Modra  <amodra@gmail.com>
32954
32955         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
32956         for overlapping .opd entries" to "support...".
32957         * sysdeps/powerpc/powerpc64/configure: Regenerate
32958
32959 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32960
32961         * math/auto-libm-test-in: Add more tests of acos.
32962         * math/auto-libm-test-out: Regenerated.
32963         * sysdeps/i386/fpu/libm-test-ulps: Update.
32964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32965
32966         * math/auto-libm-test-in: Add more tests of expm1.
32967         * math/auto-libm-test-out: Regenerated.
32968         * sysdeps/i386/fpu/libm-test-ulps: Update.
32969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32970
32971 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
32972
32973         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32974         * math/auto-libm-test-out: Regenerated.
32975         * sysdeps/i386/fpu/libm-test-ulps: Update.
32976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32977
32978         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
32979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32980
32981         * math/auto-libm-test-in: Add more tests of log2.
32982         * math/auto-libm-test-out: Regenerated.
32983         * sysdeps/i386/fpu/libm-test-ulps: Update.
32984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32985
32986 2015-03-23  Roland McGrath  <roland@hack.frob.com>
32987
32988         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
32989         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
32990         _IO_IS_APPENDING bit in READ_WRITE instead.
32991
32992 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32993
32994         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
32995         (__determine_cpumask_size): Replace extend_alloca with a
32996         variable-length array.  Do not treat res == 0 as an error.
32997
32998 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32999
33000         [BZ #18100]
33001         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
33002         and integer overflow.
33003         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
33004         (main): Add integer overflow tests.
33005         * manual/pattern.texi (Calling Wordexp): Document additional use
33006         for WRDE_SYNTAX.
33007
33008 2015-03-23  Alan Modra  <amodra@gmail.com>
33009
33010         * config.h.in: Remove HAVE_ASM_PPC_REL16.
33011         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
33012         and false branch of conditional.
33013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
33014         Likewise.
33015
33016 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
33017
33018         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
33019         libc-modules.h
33020         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
33021         unused declaration of _hurd_intr_rpc_msg_in_trap.
33022         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
33023         defined instead of whether it is non-zero.
33024         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
33025         input constraint instead of both input and output constraint.  Use ecx
33026         clobber instead of %ecx.
33027         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
33028         mutex_unlock): Use a statement expression instead of an expression list.
33029         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
33030         type to vm_size_t instead of vm_address_t.
33031         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
33032         defined instead of whether it is non-zero.
33033         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
33034         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
33035         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
33036         comparisons with mapaddr.
33037         * nscd/nscd-client.h: Include <time.h>.
33038         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
33039         9th parameter to __vm_region instead of int.
33040         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
33041         * scripts/check-local-headers.sh (exclude): Add device/,
33042         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
33043         cthreads.h.
33044
33045 2015-03-19  Roland McGrath  <roland@hack.frob.com>
33046
33047         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
33048         to account for alignment padding.
33049         * sysdeps/arm/memmove.S: Likewise.
33050
33051 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
33052
33053         * sysdeps/unix/sysv/linux/generic/README: New file.
33054
33055 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
33056
33057         [BZ #18138]
33058         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
33059         (futex_abstimed_wait)
33060         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
33061         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
33062         of lll_futex_timed_wait.
33063
33064 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
33065
33066         [BZ #17542]
33067         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
33068
33069 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
33070
33071         [BZ #17090]
33072         [BZ #17620]
33073         [BZ #17621]
33074         [BZ #17628]
33075         * NEWS: Update.
33076         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
33077         entries with Static TLS too.  Skip entries past the end of the
33078         allocated DTV, from Alan Modra.
33079         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
33080         Static TLS DTV entry set up from...
33081         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
33082         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
33083         * nptl/allocatestack.c (init_one_static_tls): ... and here...
33084         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
33085         for Static TLS.
33086         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
33087         that the slot we find is associated with the given map before
33088         using its generation count.
33089         * nptl_db/db_info.c: Include ldsodefs.h.
33090         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
33091         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
33092         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
33093         (link_map::l_tls_offset): New struct field.
33094         (dtv_t::counter): Likewise.
33095         (rtld_global): New struct.
33096         (_rtld_global): New rtld variable.
33097         (dl_tls_dtv_slotinfo_list): New rtld global field.
33098         (dtv_slotinfo_list): New struct.
33099         (dtv_slotinfo): Likewise.
33100         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
33101         (td_lookup): Rename to...
33102         (td_mod_lookup): ... this.  Use new mod parameter instead of
33103         LIBPTHREAD_SO.
33104         * nptl_db/td_thr_tlsbase.c: Include link.h.
33105         (dtv_slotinfo_list, dtv_slotinfo): New functions.
33106         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
33107         addresses even if the DTV is out of date or missing them.
33108         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
33109         index zero-length arrays.
33110         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
33111         (td_lookup): Make it a macro implemented in terms of...
33112         (td_mod_lookup): ... this declaration.
33113         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
33114         (DB_MAIN_VARIABLE): Likewise.
33115
33116 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
33117
33118         [BZ #18134]
33119         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
33120
33121 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         * stdlib/setenv.c (__add_to_environ): Revert previous change.
33124
33125 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
33126
33127         [BZ #18128]
33128         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
33129         (atomic_add, atomic_increment_and_test)
33130         (atomic_decrement_and_test): Fix 64-bit arithmetic.
33131
33132 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
33133
33134         * stdlib/setenv.c (__add_to_environ):
33135         Dump core quickly if setenv (..., NULL, ...) is called.
33136
33137 2015-03-13  Roland McGrath  <roland@hack.frob.com>
33138
33139         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
33140         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
33141         all the necessary asm magic in one place.
33142         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
33143         using those.
33144
33145 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
33146
33147         [BZ #14906]
33148         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
33149         traced file mtime. Use consistent log message.
33150         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
33151         (register_traced_file): Call install_watches. Always set mtime.
33152         (invalidate_cache): Iterate over all trace files. Call install_watches.
33153         (inotify_check_files): Don't inline. Handle watching parent
33154         directories and configuration file movement in and out.
33155         (handle_inotify_events): New function.
33156         (main_loop_poll): Call handle_inotify_events.
33157         (main_loop_epoll): Likewise.
33158         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
33159         (struct traced_file): Use array of inotify fds. Add parent directory,
33160         and basename.
33161         (struct database_dyn): Remove unused file_mtime.
33162         (init_traced_file): New inline function.
33163         (define_traced_file): New macro.
33164         * nss/nss_db/db-init.c: Use define_traced_file.
33165         (_nss_db_init): Use init_traced_file.
33166         * nss/nss_files/files-init.c: Use define_traced_file.
33167         (_nss_files_init): Use init_traced_file.
33168
33169 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
33170
33171         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
33172         [_LIBC]: Do not include <stdlib.h>.
33173         [!_LIBC] (abort): Remove declaration.
33174         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
33175         _FP_STATIC_ASSERT instead of conditionally calling abort.
33176         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
33177         (_FP_EXTEND_CNAN): Likewise.
33178         (FP_TRUNC): Likewise.
33179         (__FP_CLZ): Likewise.
33180         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
33181
33182 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
33183
33184         * manual/string.texi (XPG basename): Fix prototype.
33185
33186 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33187
33188         [BZ #18080]
33189         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
33190         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33191         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
33192         (__setcontext): Likewise.
33193         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
33194         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33195         Call rt_sigprocmask syscall one time to set new signal mask
33196         and retrieve the current signal mask instead of two calls.
33197         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
33198         (__swapcontext): Likewise.
33199         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
33200         * stdlib/tst-setcontext2.c: New file.
33201
33202 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33203
33204         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33205
33206 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
33207
33208         [BZ #18093]
33209         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
33210         the wrong size.
33211
33212 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33213
33214         [BZ #18043]
33215         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
33216
33217 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33218
33219         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
33220         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
33221         Remove define.
33222         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
33223         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
33224         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
33225         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
33226         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
33227         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
33228         define.
33229         * nptl_db/td_symbol_list.c (td_lookup): Remove
33230         HAVE_ASM_GLOBAL_DOT_NAME code.
33231         * sysdeps/powerpc/powerpc64/configure.ac: Remove
33232         HAVE_ASM_GLOBAL_DOT_NAME check.
33233         * sysdeps/powerpc/powerpc64/configure: Regenerate.
33234         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
33235         (DOT_LABEL): Remove define.
33236         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
33237         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
33238         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
33239         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
33240         (__TLS_GET_ADDR): Likewise.
33241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
33242         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
33243
33244 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
33245
33246         [BZ #18111]
33247         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
33248         (_FPU_SETCW): Initialize cw from fpsr before storing.
33249         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
33250         (fesetexceptflag): Rewrite using fpu_control.h.
33251         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
33252
33253 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
33254
33255         [BZ #18110]
33256         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
33257         asms.
33258         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
33259
33260 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
33261
33262         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
33263         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
33264         abort.
33265         (_FP_FMA): Likewise.
33266         (_FP_DIV): Likewise.
33267
33268 2015-03-10  Roland McGrath  <roland@hack.frob.com>
33269
33270         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
33271         with 0 in that case.
33272         * Makefile (summarize-tests): New canned sequence, factored out of
33273         commands for targets tests and xtests.  Display summary lines that
33274         don't start with PASS: or XFAIL: rather than ones that do start with
33275         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
33276         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
33277         do start with ERROR: or FAIL:.
33278         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
33279         (except for [$(build-shared) = yes]).
33280         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
33281         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
33282         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
33283         * nptl/Makefile: Revert 2015-03-04 changes.
33284         [$(CXX) empty] (tests-unsupported): New variable.
33285         * debug/Makefile: Likewise.
33286
33287         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
33288         gnulib file.  Replace __attribute with __attribute__ throughout.
33289
33290 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
33291
33292         * sysdeps/hppa/fpu/libm-test-ulps: Update.
33293
33294 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33295
33296         [BZ #18104]
33297         * math/auto-libm-test-in: Add another test of pow.
33298         * math/auto-libm-test-out: Regenerated.
33299
33300 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33301
33302         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
33303         $(config-cflags-nofma).
33304
33305 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33306
33307         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
33308         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
33309         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
33310         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
33311         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
33312         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
33313         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
33314         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
33315         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
33316         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
33317         Add comment on closing #endif.
33318
33319 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33320
33321         * posix/wordexp.c (CHAR_IN_SET): New macro.
33322         (parse_param): Use it.
33323
33324 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33325
33326         * sysdeps/powerpc/fpu/libm-test-ulps: update.
33327
33328 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33329
33330         [BZ #18043]
33331         * posix/wordexp.c (parse_param): Fix buffer overflow.
33332         * posix/wordexp-test.c (test_case): Add test case.
33333
33334 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33335
33336         [BZ #18042]
33337         * posix/wordexp.c (parse_backtick): Fix off-by-one.
33338         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
33339
33340 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33341
33342         [BZ #18043]
33343         * posix/wordexp-test.c (test_case): Add test for BZ #18043
33344         (do_bz18043): Delete.
33345         (at_page_end): New.
33346         (testit): Refactor to have words at the edge of unreadable page.
33347
33348 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
33349
33350         [BZ #16734]
33351         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
33352         Cleanup read-only streams as well.
33353         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
33354
33355 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33356
33357         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
33358         <bits/libc-lockP.h>
33359
33360 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
33361
33362         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
33363         on [__KERNEL__].
33364         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
33365         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
33366         * soft-fp/op-common.h (_FP_DECL): Likewise.
33367
33368 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
33369
33370         * elf/ifuncdep2.c (global): Replace
33371         __attribute__((visibility("protected"))) with
33372         asm (".protected global").
33373         * elf/ifuncmod1.c (global): Likewise.
33374         * elf/ifuncmod5.c (global): Likewise.
33375
33376 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
33377
33378         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
33379         <asm/sfp-machine.h> instead of <sfp-machine.h>.
33380
33381 2015-03-06  Roland McGrath  <roland@hack.frob.com>
33382
33383         * manual/install.texi (Configuring and compiling):
33384         Document test-wrapper-env-only.
33385         * INSTALL: Regenerated.
33386
33387 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33388
33389         [BZ #18043]
33390         * posix/wordexp.c (parse_param): Fix buffer overflow.
33391         * posix/wordexp-test.c (do_bz18043): Add test case.
33392
33393 2015-03-06  Vincent Bernat  <vincent@bernat.im>
33394
33395         * time/tst-strptime2.c (do_test): Ensure failing tests are
33396         reported correctly.
33397         * time/tst-strptime3.c (do_test): Likewise.
33398
33399 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
33400
33401         Fix aio_error thread-safety.
33402         * sysdeps/pthread/aio_error.c: New file
33403         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
33404         synchronization.
33405
33406 2015-03-06  Florian Weimer  <fweimer@redhat.com>
33407
33408         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
33409         (group_number, vfprintf): Use it.
33410         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
33411         (JUMP, REF): Use it.
33412         (WORK_BUFFER_SIZE): New enum constant.
33413         (process_arg, vfprintf): Use it.
33414
33415 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
33416
33417         * manual/errno.texi (Error Messages): Complete example function
33418         by adding missing #define.
33419         (program_invocation_name): Add statement indicating GNU
33420         extension and reference which header file declares the variable.
33421         (program_invocation_short_name): Likewise.
33422
33423 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
33424
33425         * manual/errno.texi (Error Messages): Delete strerror ISO C89
33426         compatibility note.
33427
33428 2015-03-05  Roland McGrath  <roland@hack.frob.com>
33429
33430         * Makeconfig (test-wrapper-env-only): New variable.
33431         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
33432         then use that with $(test-wrapper-env-only) rather than using
33433         $(test-wrapper-env) $(run-program-env) $($*-ENV).
33434
33435 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
33436
33437         [BZ #18082]
33438         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
33439         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
33440         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
33441         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
33442         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
33443         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
33444         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
33445         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
33446         Likewise.
33447         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
33448         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
33449         Likewise.
33450         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
33451         Likewise.
33452         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
33453         Likewise.
33454         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
33455         Likewise.
33456         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
33457         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
33458         Likewise.
33459         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
33460         Likewise.
33461         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
33462         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
33463
33464 2015-03-04  Roland McGrath  <roland@hack.frob.com>
33465
33466         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
33467         (ETH_ALEN): New macro.
33468         (struct ether_addr): Use it for length of ether_addr_octet.
33469
33470         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
33471         (setdb): Don't call __nss_configure_lookup for "rpc".
33472         (do_test): Don't call test_rpc.
33473         (output_rpcent, test_rpc): Functions moved ...
33474         * sunrpc/test-rpcent.c: ... to this new file.
33475         * sunrpc/Makefile (tests): Add it.
33476
33477         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
33478         __xpg_sigpause.
33479         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
33480         * nptl/tst-signal6.c: Likewise.
33481         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
33482         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
33483
33484         * configure.ac (libc_cv_cxx_link_ok): New check.
33485         Reset CXX to empty if it fails to link.
33486         * configure: Regenerated.
33487         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
33488         bug-atexit3-lib only if $(CXX) is nonempty.
33489         * nptl/Makefile (tests): Likewise for tst-cancel24.
33490         (tests, tests-static): Likewise for tst-cancel24-static.
33491         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
33492         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
33493         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
33494         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
33495
33496 2015-03-04  Andreas Schwab  <schwab@suse.de>
33497
33498         [BZ #17631]
33499         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
33500         for non-GCC compilers.
33501         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
33502         Likewise.
33503
33504 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33505
33506         [BZ #17776]
33507         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
33508         integer before bitwise and assembly operations.
33509         (feclearexcept): Likewise.
33510         * math/test-fenvinline.c: New file.
33511         * math/Makefile: Add test-fenvinline test.
33512
33513 2015-03-03  Alan Modra  <amodra@gmail.com>
33514
33515         [BZ #16512]
33516         * scripts/localplt.awk: Strip off symbol version.
33517         * NEWS: Mention bug fix.
33518
33519 2015-03-02  Roland McGrath  <roland@hack.frob.com>
33520
33521         * sysdeps/pthread/timer_routines.c
33522         (timer_free_list, thread_free_list, thread_active_list): Make static.
33523
33524 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
33525
33526         [BZ #17779]
33527         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33528         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33529         Undefine.
33530         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33531         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33532         Likewise.
33533         * sysdeps/unix/sysv/linux/sh/kernel-features.h
33534         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33535         Likewise.
33536
33537 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33538
33539         [BZ #18036]
33540         * posix/fnmatch_loop.c (END): Detect invalid pattern.
33541         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
33542
33543 2015-03-02  Andreas Schwab  <schwab@suse.de>
33544
33545         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
33546         variable name.
33547
33548 2015-03-02  Florian Weimer  <fweimer@redhat.com>
33549
33550         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
33551         Return error status.
33552
33553 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
33554
33555         [BZ #15969]
33556         * locale/findlocale.c (_nl_find_locale): Introduce const
33557         version of loc_name and drop unsafe type casts.
33558
33559 2015-02-27  Roland McGrath  <roland@hack.frob.com>
33560
33561         * dlfcn/tststatic2.c (main): Converted to ...
33562         (do_test): ... this.
33563         (TEST_FUNCTION): New macro.
33564         Include test-skeleton.c.
33565
33566 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33567
33568         [BZ #17711]
33569         * elf/Makefile (tests): Add vismain only if PIE is enabled.
33570         (tests-pie): Add vismain.
33571         (CFLAGS-vismain.c): New.
33572         * elf/vismain.c: Add comments for PIE requirement.
33573
33574 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33575
33576         [BZ #18046]
33577         [BZ #18047]
33578         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
33579         0x1p-56L as threshold for just returning the argument.
33580         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
33581         0x1p-32L as threshold for just returning the argument.
33582         * math/auto-libm-test-in: Add more tests of atanh.
33583         * math/auto-libm-test-out: Regenerated.
33584         * sysdeps/i386/fpu/libm-test-ulps: Update.
33585         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
33586
33587 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33588
33589         * string/bcopy.c (bcopy): Call memmove for performance.
33590
33591 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33592
33593         * string/bzero.c (__bzero): Call memset for performance.
33594
33595 2015-02-27  John David Anglin  <dave.anglin@bell.net>
33596
33597         [BZ #18068]
33598         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
33599         to 00100000.
33600
33601 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33602
33603         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
33604
33605 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33606
33607         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
33608         (__kernel_standard): Use CSTR macro when setting exc.name.
33609         * sysdeps/ieee754/Makefile [$(subdir) = math]
33610         (CFLAGS-k_standard.c): Remove variable.
33611
33612         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
33613         setting p and q from "else if" to "else".
33614         (qzero): Likewise.
33615         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
33616         (qone): Likewise.
33617         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
33618         (qzerof): Likewise.
33619         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
33620         (qonef): Likewise.
33621         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
33622         (qzero): Likewise.
33623         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
33624         (qone): Likewise.
33625
33626         [BZ #18038]
33627         [BZ #18039]
33628         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
33629         return pi/2 for arguments below 0x1p-113L.
33630         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
33631         return pi/2 for arguments below 0x1p-106L.
33632         * math/auto-libm-test-in: Add more tests of acos.
33633         * math/auto-libm-test-out: Regenerated.
33634
33635         [BZ #16351]
33636         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
33637         (MO): New macro.
33638         (__ieee754_asin): Force underflow exception for results with small
33639         absolute value.
33640         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
33641         (MO): New macro.
33642         (__ieee754_asinf): Force underflow exception for results with
33643         small absolute value.
33644         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
33645         (__ieee754_asin): Force underflow exception for results with small
33646         absolute value.
33647         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
33648         (__ieee754_asinf): Force underflow exception for results with
33649         small absolute value.
33650         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
33651         (__ieee754_asinl): Force underflow exception for results with
33652         small absolute value.
33653         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
33654         (__ieee754_asinl): Force underflow exception for results with
33655         small absolute value.
33656         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
33657         (__ieee754_asinl): Force underflow exception for results with
33658         small absolute value.
33659         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
33660         Include <math.h>.
33661         * math/auto-libm-test-in: Do not mark underflow exceptions as
33662         possibly missing for bug 16351.
33663         * math/auto-libm-test-out: Regenerated.
33664
33665         [BZ #18030]
33666         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
33667         of power of 2 down when low part has opposite sign.
33668         * math/libm-test.inc (logb_test_data): Add more tests.
33669
33670 2015-02-26  Andreas Schwab  <schwab@suse.de>
33671
33672         [BZ #18032]
33673         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
33674         over collating symbol inside a bracket expression.  Minor cleanup.
33675         * posix/tst-fnmatch3.c (do_test): Add test case.
33676
33677 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33678
33679         [BZ #18029]
33680         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
33681         Adjust exponent of power of 2 down when low part has opposite
33682         sign.
33683         * math/libm-test.inc (ilogb_test_data): Add more tests.
33684
33685 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
33686
33687         [BZ #15969]
33688         * locale/findlocale.c (_nl_find_locale): Fix constness error in
33689         the previous change.
33690
33691         [BZ #15969]
33692         * locale/findlocale.c (_nl_find_locale): Retry archive search
33693         after alias expansion.
33694
33695 2015-02-25  Roland McGrath  <roland@hack.frob.com>
33696
33697         * iconv/tst-iconv3.c (main): Converted to ...
33698         (do_test): ... this.
33699         (TEST_FUNCTION): New macro.
33700         Include test-skeleton.c.
33701
33702         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
33703         (convert): Make function static.
33704         (test_unalign): Likewise.  Add const to argument pointee types.
33705         (main): Replace with static function do_test.
33706         Print "Succeeded." only if RET is zero.
33707         (TEST_FUNCTION): New macro.
33708         Include test-skeleton.c.
33709
33710         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
33711         returns a null pointer.
33712
33713 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33714
33715         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
33716         to __memcpy_ppc only for static builds.
33717
33718 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
33719
33720         [BZ #18020]
33721         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
33722         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
33723         * math/auto-libm-test-in: Add more tests of asinh.
33724         * math/auto-libm-test-out: Regenerated.
33725         * sysdeps/i386/fpu/libm-test-ulps: Update.
33726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33727
33728 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
33729
33730         [BZ #15850]
33731         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
33732         and ip6_mtuinfo definitions here.
33733         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
33734         in this define too.  Update comment.
33735
33736 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
33737
33738         * elf/sprof.c (load_shobj): Tweak error message to match others.
33739
33740 2015-02-24  Kevin Easton  <kevin@guarana.org>
33741
33742         [BZ #16145] (partial fix)
33743         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
33744         to reduce lock contention.
33745
33746 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
33747
33748         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
33749         (struct timex): Update time comment.
33750         (ADJ_SETOFFSET): Define.
33751
33752 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33753
33754         [BZ #18019]
33755         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
33756         2**56 not 2**28 as threshold for log (2x) formula.
33757         * math/auto-libm-test-in: Add more tests of acosh.
33758         * math/auto-libm-test-out: Regenerated.
33759         * sysdeps/i386/fpu/libm-test-ulps: Update.
33760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33761
33762 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33763
33764         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
33765         parenthesis around the buf assignment.
33766         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
33767
33768 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33769
33770         [BZ #16783]
33771         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
33772         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
33773         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
33774         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33775         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33776         * math/libm-test.inc (scalb_test_data): Add more tests.
33777
33778 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
33779
33780         [BZ #17916]
33781         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
33782         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
33783
33784 2015-02-24  Eric Rannaud  <e@nanocritical.com>
33785
33786         [BZ #17523]
33787         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
33788         * io/bits/fcntl2.h (open): Use it.
33789         (openat): Likewise.
33790         * io/open.c (__libc_open): Likewise.
33791         * io/open64.c (__libc_open64): Likewise.
33792         * io/open64_2.c (__open64_2): Likewise.
33793         * io/open_2.c (__open_2): Likewise.
33794         * io/openat.c (__openat): Likewise.
33795         * io/openat64.c (__openat64): Likewise.
33796         * io/openat64_2.c (__openat64_2): Likewise.
33797         * io/openat_2.c (__openat_2): Likewise.
33798         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
33799         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
33800         * sysdeps/posix/open64.c (__libc_open64): Likewise.
33801         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
33802         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
33803         (__open_nocancel): Likewise.
33804         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
33805         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
33806         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
33807
33808 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33809
33810         [BZ #14841]
33811         * resolv/gethnamaddr.c (getanswer): Skip logging if
33812         RES_USE_DNSSEC is set.
33813         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
33814
33815 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33816
33817         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
33818
33819 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
33820
33821         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
33822         201304L, for Unicode 7.
33823
33824 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
33825
33826         [BZ #17836]
33827         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
33828         shared library.  Add gmon-start.os otherwise.
33829         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
33830         $(objpfx)gmon-start.os if builing shared library.
33831         ($(objpfx)g$(static-start-installed-name)): Likewise.
33832
33833 2015-02-23  Andreas Schwab  <schwab@suse.de>
33834
33835         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
33836
33837 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
33838
33839         [BZ #17269]
33840         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
33841         (enlarge_userbuf): Likewise.
33842
33843 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
33844
33845         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
33846         * math/atest-exp.c (TIMEOUT): Adjust to 200.
33847         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
33848         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
33849
33850 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
33851
33852         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
33853         expression inside statement expression.
33854
33855 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
33856
33857         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
33858         <sysdeps/nptl/lowlevellock.h> and remove macros and
33859         functions that are now defined there.
33860         (SYS_futex): Remove.
33861         (lll_compare_and_swap): Remove.
33862         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
33863
33864 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
33865
33866         [BZ #17999]
33867         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
33868         instead of scandirat.
33869         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
33870         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
33871         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
33872         __scandirat.
33873         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
33874         (__scandirat): Declare.  Use libc_hidden_proto.
33875         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
33876         Remove variable.
33877         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
33878
33879 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33880
33881         [BZ #15319]
33882         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
33883         (MO): New macro.
33884         (__ieee754_atan2): For results with small absolute value, force
33885         underflow exception and remove excess range and precision from
33886         return value.
33887         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
33888         (MO): New macro.
33889         (__ieee754_atan2f): For results with small absolute value, force
33890         underflow exception and remove excess range and precision from
33891         return value.
33892         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
33893         (MO): New macro.
33894         (__atan): For results with small absolute value, force underflow
33895         exception and remove excess range and precision from return value.
33896         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
33897         (MO): New macro.
33898         (__atanf): For results with small absolute value, force underflow
33899         exception and remove excess range and precision from return value.
33900         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
33901         <math.h>.
33902         (__ieee754_atan2): Force underflow exception for results with
33903         small absolute value.
33904         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
33905         <math_private.h>.
33906         (atan): Force underflow exception for results with small absolute
33907         value.
33908         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
33909         (__atanf): Force underflow exception for results with small
33910         absolute value.
33911         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
33912         <math.h>.
33913         (__atanl): Force underflow exception for results with small
33914         absolute value.
33915         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
33916         (__atanl): Force underflow exception for results with small
33917         absolute value.
33918         * sysdeps/x86/fpu/bits/mathinline.h
33919         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
33920         (__ieee754_atan2): Only define inline for long double.
33921         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
33922         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
33923         * math/auto-libm-test-in: Do not mark underflow exceptions as
33924         possibly missing for bug 15319.  Add more tests of atan2.
33925         * math/auto-libm-test-out: Regenerated.
33926         * math/libm-test.inc (casin_test_data): Do not mark underflow
33927         exceptions as possibly missing for bug 15319.
33928         (casinh_test_data): Likewise.
33929         * sysdeps/i386/fpu/libm-test-ulps: Update.
33930
33931 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
33932
33933         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
33934         * sysdeps/mips/bits/endian.h: Fix comments.
33935
33936 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33937
33938         [BZ #17996]
33939         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
33940         (hdestroy_r): Likewise.
33941         (hsearch_r): Likewise.
33942         (__hcreate_r): Declare and use libc_hidden_proto.
33943         (__hdestroy_r): Likewise.
33944         (__hsearch_r): Likewise.
33945         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
33946         (hcreate): Call __hcreate_r instead of hcreate_r.
33947         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
33948         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
33949         as weak alias of __hcreate_r.
33950         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
33951         __hdestroy_r.
33952         (hsearch_r): Rename to __hsearch_r and define as weak alias of
33953         __hsearch_r.
33954         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
33955         Remove variable.
33956         (test-xfail-XPG4/search.h/linknamespace): Likewise.
33957         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
33958         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
33959         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
33960
33961 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
33962
33963         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
33964         arena_lock into a single arena_get.
33965
33966 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
33967
33968         * dl-reloc.c: Inlucde libc-internal.h.
33969         (_dl_try_allocate_static_tls): Call ALIGN_UP.
33970         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
33971         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
33972         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
33973         (grow_heap): Likewise.
33974         * malloc/malloc.c: Include libc-internal.h.
33975         (do_check_malloc): Call powerof2.
33976         (sysmalloc): Use pagesize. Call ALIGN_UP.
33977         (systrim): Use pagesize.
33978         (mremap_chunk): Use pagesize. Call ALIGN_UP.
33979         (__libc_valloc): Use pagesize.
33980         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
33981
33982 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33983
33984         [BZ #17991]
33985         * include/sys/resource.h (__getrlimit64): Declare.  Use
33986         libc_hidden_proto.
33987         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
33988         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
33989         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
33990         getrlimit64.
33991         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
33992         __getrlimit64.
33993         [!getrlimit64] (getrlimit64): Define as weak alias of
33994         __getrlimit64.  Use libc_hidden_weak.
33995         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
33996         using __getrlimit64 not __new_getrlimit64.
33997         (__GI_getrlimit64): Likewise.
33998         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
33999         Likewise.
34000         (__GI_getrlimit64): Likewise.
34001         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
34002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
34003         (getrlimit): Add __getrlimit64 alias.
34004         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
34005         Likewise.
34006         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
34007         Remove variable.
34008         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
34009         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
34010
34011 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
34012
34013         * libio/fileops.c: Add missing sys/mman.h
34014         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
34015
34016 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
34017
34018         * manual/math.texi (Errors in Math Functions): Clarify goals
34019         regarding inexact and underflow exceptions.
34020
34021 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
34022
34023         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
34024         * sysdeps/mips/memset.S: Ditto.
34025
34026 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
34027
34028         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
34029
34030 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
34031
34032         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
34033         (__v1longjmp): Remove versioned symbol.
34034         (__v1siglongjmp): Remove alias and versioned symbol.
34035         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
34036         (__v2siglongjmp): Likewise.
34037
34038 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34039
34040         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
34041
34042 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
34043
34044         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
34045
34046 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
34047
34048         [BZ #17987]
34049         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
34050         zero result does not depend on the sign resulting from
34051         subtraction.
34052         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34053         Likewise.
34054         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34055         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34056         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34057         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34058         * math/libm-test.inc (remquo_test_data): Add more tests.
34059
34060 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
34061
34062         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
34063         Problem reported by J William Piggott.
34064
34065 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
34066
34067         [BZ #17978]
34068         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
34069         products 4 * y and 2 * y where those would overflow.
34070         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34071         Likewise.
34072         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34073         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34074         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34075         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34076         * math/libm-test.inc (remquo_test_data): Add more tests.
34077
34078         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
34079
34080         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
34081         [defined _COMPILING_NEWLIB].
34082         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
34083         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
34084
34085         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
34086         [!defined __mips_isa_rev || __mips_isa_rev < 6].
34087
34088 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34089
34090         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
34091         acquired.
34092
34093 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
34094
34095         [BZ #17792]
34096         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
34097         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
34098         HOST_STACK_END_ADDR): Likewise.
34099
34100 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
34101
34102         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
34103         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
34104         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
34105
34106 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34107
34108         * sysdeps/generic/c++-types.data: New file.
34109         * sysdeps/generic/ld.abilist: New file.
34110         * sysdeps/generic/libBrokenLocale.abilist: New file.
34111         * sysdeps/generic/libanl.abilist: New file.
34112         * sysdeps/generic/libc.abilist: New file.
34113         * sysdeps/generic/libcrypt.abilist: New file.
34114         * sysdeps/generic/libdl.abilist: New file.
34115         * sysdeps/generic/libm.abilist: New file.
34116         * sysdeps/generic/libpthread.abilist: New file.
34117         * sysdeps/generic/libresolv.abilist: New file.
34118         * sysdeps/generic/librt.abilist: New file.
34119
34120 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34121
34122         [BZ #17569]
34123         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34124         Compute absolute value of x as modified by fmod, not original
34125         value of x.
34126         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
34127         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
34128         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
34129         RUN_TEST_ffI_f1_mod8.
34130         (remquo_test_data): Add more tests.
34131
34132 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34133
34134         * sysdeps/init_array/pt-crti.S: New file.
34135
34136 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34137
34138         [BZ #17967]
34139         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
34140         __builtin_fmaf instead of relying on contraction of a * b + c.
34141
34142 2015-02-12  J William Piggott  <elseifthen@gmx.com>
34143
34144         [BZ #17969]
34145         * manual/time.texi: correct the zoneinfo path in the TZ Variable
34146         node.
34147
34148 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34149
34150         [BZ #17964]
34151         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
34152         __builtin_fma instead of relying on contraction of a * b + c.
34153
34154 2015-02-12  Roland McGrath  <roland@hack.frob.com>
34155
34156         * Makeconfig (ASFLAGS): Add -Werror=undef.
34157         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
34158         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
34159         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
34160
34161         * Makeconfig (after-link): New variable.
34162         (+link-pie, +link-pie-tests): Use it.
34163         (+link-static, +link-static-tests): Likewise.
34164         (+link, +link-tests): Likewise.
34165         * Makerules (build-module, build-module-asneeded): Likewise.
34166         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
34167         Likewise.
34168         * elf/Makefile ($(objpfx)ld.so): Likewise.
34169
34170 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
34171
34172         [BZ #17965]
34173         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
34174         both struct timeval and struct timespec.
34175
34176 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34177
34178         [BZ #16560]
34179         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
34180         and redefine.
34181         (__ieee754_exp2l): Do not multiply small fractional parts by
34182         M_LN2l.
34183         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
34184         small argument.
34185         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
34186         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
34187         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
34188         * math/auto-libm-test-in: Add more tests of exp2.
34189         * math/auto-libm-test-out: Regenerated.
34190
34191 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34192
34193         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
34194         unaligned path.
34195
34196 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34197
34198         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
34199         little endian.
34200
34201 2015-02-12  Andreas Schwab  <schwab@suse.de>
34202
34203         [BZ #15790]
34204         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
34205         Filter out elision flags from value returned in kind.
34206         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
34207         * nptl/tst-pthread-mutexattr.c: New file.
34208
34209 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34210
34211         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
34212         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
34213         into gnu-gnu, and update comment to refer to abi-tags.
34214
34215 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
34216
34217         [BZ #15467]
34218         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
34219         (__sincos): Set errno to EDOM for infinite argument.
34220         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
34221         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
34222         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
34223         (__sincosl): Set errno to EDOM for infinite argument.
34224         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
34225         (__sincosl): Set errno to EDOM for infinite argument.
34226         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
34227         (__sincosl): Set errno to EDOM for infinite argument.
34228         * math/libm-test.inc (sincos_test_data): Test errno setting.
34229
34230 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
34231
34232         * string/strxfrm_l.c: Remove #define STRCMP.
34233         * string/strcoll_l.c: Remove #define STRLEN.
34234         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
34235         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
34236
34237 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
34238
34239         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
34240         * sysdeps/mips/mips32/sfp-machine.h: ... here.
34241         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
34242         * sysdeps/mips/mips64/Makefile: ... here.
34243         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
34244         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
34245         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
34246         * sysdeps/mips/mips64/sfp-machine.h: ... here.
34247         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
34248         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
34249         * sysdeps/mips/mips64/n64/Implies: Likewise.
34250
34251 2015-02-10  Roland McGrath  <roland@hack.frob.com>
34252
34253         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
34254         <sys/time.h>, <string.h>, and <errno.h>.
34255         (dest_offset, dest_address, value, zero): Remove unused variables.
34256         (ldouble): Remove typedef.
34257         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
34258         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
34259         1).  Fix code style.
34260         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
34261         (check): Function removed.
34262         (CHECK): New macro.
34263         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
34264         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
34265         Don't call set_sigaction_FP and remove_sigaction_FP here.
34266         (ldouble_test): Just use 'long double' as macro argument, no need for
34267         the 'ldouble' typedef.
34268         (do_test): Set up SIGFPE handler at start, using plain signal rather
34269         than sigaction.  Fix code style.
34270
34271 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
34272
34273         [BZ #17949]
34274         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
34275         jump label.
34276
34277 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34278
34279         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
34280         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34281
34282         * sysdeps/powerpc/configure.ac: Remove file.
34283         * sysdeps/powerpc/configure: Likewise.
34284
34285         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34286         [sysdep_routines]: Remove wordcopy-power6 object.
34287         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34288         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
34289         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
34290         (__memmove_ppc32): Likewise.
34291         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
34292         file.
34293         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
34294         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
34295         Remove preprocessor.
34296
34297         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34298         [sysdep_routines]: Remove wide chars objects.
34299         [wcsmbs]: New rule for wide char objects.
34300
34301         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34302         Remove wordcopy-power6 obejct.
34303         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
34304         Use local call for wordcopy and memcpy symbols.
34305         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
34306         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
34307         implementation for loader.
34308         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
34309
34310         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34311         Remove wordcopy-power7 object.
34312         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
34313         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
34314         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
34315         (_wordcopy_fwd_dest_aligned): Likewise.
34316         (_wordcopy_bwd_aligned): Likewise.
34317         (_wordcopy_bwd_dest_aligned): Likewise.
34318
34319         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
34320         Rewrite to call __memmove_ppc instead of include default
34321         implementation.
34322
34323         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34324         Remove wide chars objects.
34325         [wcsmbs]: New rule for wide char objects.
34326
34327 2015-02-09  Andreas Schwab  <schwab@suse.de>
34328
34329         [BZ #17912]
34330         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
34331         in terms of __O_DIRECTORY.
34332
34333 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34334
34335         * time/getdate.c: Include <stdbool.h>.
34336         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
34337         call PTR_MANGLE.
34338         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
34339         PTR_DEMANGLE.
34340
34341 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34342
34343         Add ersatz _Static_assert on older C hosts
34344         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
34345         pre-C11 C platform that is not known to support _Static_assert.
34346
34347 2015-02-07  Richard Braun  <rbraun@sceen.net>
34348
34349         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
34350         sigstate.
34351         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
34352
34353 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34354
34355         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
34356         priority against unexistent AIO_PRIO_DELTA_MAX.
34357         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
34358         instead of int.
34359         * misc/fchflags.c (fchflags): Likewise.
34360         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
34361         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
34362         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
34363         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
34364         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
34365         Declare macros.
34366         [__USE_MISC] (chflags, fchflags): Declare functions.
34367         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
34368         EINVAL when nfds is greater than FD_SETSIZE.
34369         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
34370         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
34371         45.
34372         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
34373         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
34374         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
34375         MACH_RCV_TIMED_OUT.
34376         * hurd/hurd/signal.h (_hurd_self_sigstate,
34377         _hurd_critical_section_lock, _hurd_critical_section_unlock):
34378         Explicit casts from void *.
34379         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
34380         * abi-tags: Rename gnu-gnu os into gnu.
34381
34382         [BZ #4719]
34383         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
34384         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
34385         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
34386         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
34387         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
34388         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
34389
34390         [BZ #17944]
34391         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
34392         duplicates ADDR->sun_path with sockaddr LEN limitation.
34393         * sysdeps/mach/hurd/connect.c: Include <string.h>
34394         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
34395         * sysdeps/mach/hurd/sendmsg.c: Likewise.
34396         * sysdeps/mach/hurd/sendto.c: Likewise.
34397         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
34398         implementing it by hand.
34399
34400 2015-02-06  Roland McGrath  <roland@hack.frob.com>
34401
34402         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
34403         Use sfi_breg on ldr.
34404         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
34405         Likewise.
34406
34407         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
34408         it's defined.
34409         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
34410         Test SIGSETXID only if it's defined.
34411
34412         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
34413
34414         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
34415         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
34416
34417         * nptl/tst-align2.c: Moved ...
34418         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
34419         * nptl/Makefile (tests): Remove tst-align2.
34420         * sysdeps/unix/sysv/linux/Makefile
34421         [$(subdir) = nptl] (tests): Add tst-align-clone.
34422         * nptl/tst-getpid1.c: Moved ...
34423         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
34424         * nptl/tst-getpid2.c: Moved ...
34425         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
34426         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
34427         * sysdeps/unix/sysv/linux/Makefile
34428         [$(subdir) = nptl] (tests): ... here.
34429         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
34430         * sysdeps/unix/sysv/linux/Makefile
34431         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
34432
34433         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
34434         Drop trailing \n from perror argument.  Use return rather than exit.
34435
34436         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
34437         on [SA_SIGINFO].
34438         * nptl/tst-cancel21.c (do_test): Likewise.
34439         * debug/tst-backtrace6.c: Include <signal.h> first thing.
34440         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
34441         [!SA_SIGINFO]: Make it a stub test.
34442
34443         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
34444         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
34445
34446         * posix/tst-getlogin.c: Move to ...
34447         * login/tst-getlogin.c: ... here.
34448         * posix/Makefile (tests): Move tst-getlogin to ...
34449         * login/Makefile (tests): ... here.
34450
34451         * libio/tst-atime.c (do_test): Move local variables SV and E
34452         inside [ST_NOATIME] conditional.
34453
34454         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
34455
34456         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
34457
34458         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
34459         (wait_code): New function replaces macro.
34460         Call nanosleep rather than syscall.
34461
34462         * nptl/pt-system.c: Rewritten.  Put everything under
34463         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34464         Use IFUNC to redirect when possible.
34465
34466         * nptl/pt-longjmp.c: Rewritten.  Put everything under
34467         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34468         Use IFUNC to redirect when possible.
34469
34470         * nptl/pt-fork.c: Rewritten.  Put everything under
34471         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34472         Use IFUNC to redirect when possible.
34473         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
34474
34475         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
34476         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
34477         unconditionally nowadays.  This included the only reference to
34478         __vdso_clock_gettime that appears outside libc proper.
34479         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
34480         Remove version set (containing only __vdso_clock_gettime).
34481         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34482         Add attribute_hidden.
34483         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34484         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
34485         libc_hidden_data_def.
34486         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34487         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34488
34489         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
34490         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
34491         setrpcent, and getrpcport to ...
34492         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
34493         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
34494         getrpcbynumber_r, and getrpcent_r to ...
34495         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
34496         * inet/getrpcbyname.c: Moved ...
34497         * sunrpc/getrpcbyname.c: ... here.
34498         * inet/getrpcbyname_r.c: Moved ...
34499         * sunrpc/getrpcbyname_r.c: ... here.
34500         * inet/getrpcbynumber.c: Moved ...
34501         * sunrpc/getrpcbynumber.c: ... here.
34502         * inet/getrpcbynumber_r.c: Moved ...
34503         * sunrpc/getrpcbynumber_r.c: ... here.
34504         * inet/getrpcent.c: Moved ...
34505         * sunrpc/getrpcent.c: ... here.
34506         * inet/getrpcent_r.c: Moved ...
34507         * sunrpc/getrpcent_r.c: ... here.
34508         * inet/Makefile (routines): Move those to ...
34509         * sunrpc/Makefile (routines): ... here.
34510         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
34511         the $(subdirs) list.
34512         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
34513         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
34514         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
34515         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
34516
34517         * elf/Makefile (routines): Include $(all-dl-routines), not just
34518         $(dl-routines).
34519         (rtld-routines): Likewise.  Use = rather than :=.
34520         * sysdeps/aarch64/Makefile [$(subdir) = elf]
34521         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
34522         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
34523         * sysdeps/arm/Makefile: Likewise.
34524         * sysdeps/i386/Makefile: Likewise.
34525         * sysdeps/x86_64/Makefile: Likewise.
34526         * sysdeps/hppa/Makefile [$(subdir) = elf]
34527         (sysdep_routines, sysdep-rtld-routines): Don't add
34528         $(sysdep-dl-routines) to these.
34529         * sysdeps/ia64/Makefile: Likewise.
34530         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
34531         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
34532         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
34533         Don't add dl-static to these; sysdep-dl-routines alone is enough.
34534         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
34535         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
34536         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
34537         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
34538         * sysdeps/powerpc/Makefile [$(subdir) = elf]
34539         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
34540         these; sysdep-dl-routines alone is enough.
34541
34542 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
34543
34544         [BZ #17932]
34545         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
34546         where multiplication results in zero and third argument is finite
34547         and nonzero.
34548         * math/auto-libm-test-in: Add more tests of fma.
34549         * math/auto-libm-test-out: Regenerated.
34550
34551         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
34552         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
34553         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
34554         (_FP_CMP_EQ): Likewise.
34555         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
34556
34557         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
34558         extra argument CHECK_NAN.  Redefine as wrapper around
34559         _FP_EXTEND_CNAN.
34560
34561 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
34562
34563         * version.h (RELEASE): Set to "stable".
34564         (VERSION): Set to "2.21"
34565         * include/features.h (__GLIBC_MINOR__): Set to 21.
34566
34567         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
34568
34569 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34570             Paul Eggert  <eggert@cs.ucla.edu>
34571
34572         [BZ #16618]
34573         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
34574         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
34575         size in bytes. Store needed elements in wpmax. Use needed size
34576         in bytes for extend_alloca.
34577
34578 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
34579
34580         * manual/install.texi: Latest tested versions are GCC 4.9.2,
34581         binutls 2.25, and texinfo 5.2.
34582         * INSTALL: Regenerate.
34583         * sysdeps/nios2/configure: Regenerate.
34584         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
34585         * manual/contrib.texi: Update.
34586         * po/be.po: Update.
34587         * po/bg.po: Update.
34588         * po/ca.po: Update.
34589         * po/cs.po: Update.
34590         * po/da.po: Update.
34591         * po/de.po: Update.
34592         * po/el.po: Update.
34593         * po/eo.po: Update.
34594         * po/es.po: Update.
34595         * po/fi.po: Update.
34596         * po/fr.po: Update.
34597         * po/gl.po: Update.
34598         * po/hr.po: Update.
34599         * po/hu.po: Update.
34600         * po/ia.po: Update.
34601         * po/id.po: Update.
34602         * po/it.po: Update.
34603         * po/ja.po: Update.
34604         * po/ko.po: Update.
34605         * po/lt.po: Update.
34606         * po/nb.po: Update.
34607         * po/nl.po: Update.
34608         * po/pl.po: Update.
34609         * po/pt_BR.po: Update.
34610         * po/ru.po: Update.
34611         * po/rw.po: Update.
34612         * po/sk.po: Update.
34613         * po/sl.po: Update.
34614         * po/sv.po: Update.
34615         * po/tr.po: Update.
34616         * po/uk.po: Update.
34617         * po/vi.po: Update.
34618         * po/zh_CN.po: Update.
34619         * po/zh_TW.po: Update.
34620
34621         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
34622         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
34623         * sysdeps/hppa/dl-irel.h: Remove #warning.
34624         * sysdeps/hppa/entry.h: Provide prototype for
34625         __canonicalize_funcptr_for_compare and cast argument.
34626         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
34627         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
34628         * sysdeps/hppa/sotruss-lib.c: New file.
34629         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
34630         (atomic_compare_and_exchange_val_acq): Use __typeof__.
34631         (atomic_compare_and_exchange_bool_acq): Likewise.
34632         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
34633         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
34634
34635         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
34636         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
34637         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
34638
34639 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
34640
34641         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
34642         called function in non-PIC case.
34643
34644 2015-01-31  David S. Miller  <davem@davemloft.net>
34645
34646         * sysdeps/sparc/sparc32/bits/atomic.h
34647         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
34648         unlock not after it.
34649         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
34650         volatile register usage warnings from the compiler.
34651
34652         * sysdeps/sparc/nptl/sem_init.c: Delete.
34653         * sysdeps/sparc/nptl/sem_post.c: Delete.
34654         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
34655         * sysdeps/sparc/nptl/sem_wait.c: Delete.
34656         * sysdeps/sparc/sparc32/sem_init.c: New file.
34657         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
34658         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
34659         padding explicitly initialized.
34660         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
34661         padding for in-semaphore spinlock.
34662         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
34663         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
34664         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
34665         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
34666         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
34667         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
34668         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
34669         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
34670         version.
34671         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
34672         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
34673
34674 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
34675
34676         [BZ #17801]
34677         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34678         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
34679         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
34680         New.
34681         (index_AVX_Fast_Unaligned_Load): Likewise.
34682         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
34683         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
34684         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
34685         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
34686         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
34687         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
34688         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
34689         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
34690         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
34691
34692 2015-01-29  Andreas Schwab  <schwab@suse.de>
34693
34694         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
34695
34696 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
34697
34698         [BZ #17892]
34699         * nscd/nscd_stat.c (send_stats): Initialize DATA.
34700
34701 2015-01-28  Martin Sebor  <msebor@redhat.com>
34702
34703         * math/README.libm-test: Clarify. Add "How to read the test output."
34704
34705 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
34706
34707         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
34708         Define to 0.
34709
34710 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
34711
34712         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
34713         (__HAVE_64B_ATOMICS): Define to 0.
34714
34715 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34716
34717         [BZ #17885]
34718         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
34719         value to set as new flag.
34720
34721         [BZ #16576]
34722         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
34723         and use _ARCH_PPCSQ instead.
34724         (__ieee754_sqrt): Likewise.
34725         (__ieee754_sqrtf): Likewise.
34726         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
34727         _ARCH_PPCSQ is defined.
34728         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
34729         fsqrt instruction.
34730         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
34731         _ARCH_PPCSQ is defined.
34732         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
34733         fsqrts instruction.
34734         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
34735
34736 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34737
34738         * iconv/loop.c: Suppress array out of bound warning caused by GCC
34739         bug (GCC BZ #64739).
34740
34741 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
34742
34743         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
34744         Mark _retval as used.
34745         (lll_futex_wake_unlock): Likewise.
34746         (lll_futex_timed_wait_requeue_pi): Likewise.
34747
34748         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
34749         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
34750         register variables.
34751
34752         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
34753         libm_hidden_def.
34754
34755         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
34756         (__bswap_64): Mark as __always_inline.
34757
34758 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
34759
34760         [BZ #15378]
34761         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
34762         when none of the search directories exist.
34763
34764 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34765
34766         [BZ #17869]
34767         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
34768         power8 in .machine directive.
34769
34770         [BZ #17868]
34771         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
34772         set dependency from opd value.
34773
34774 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34775
34776         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34777         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
34778         architecture.
34779
34780 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34781
34782         [BZ #17870]
34783         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
34784         with uint64_t.
34785         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
34786         (uint64_t) 1.
34787         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
34788         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
34789         Replace 1UL with (uint64_t) 1.
34790         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
34791         int with uint64_t.
34792
34793 2015-01-23  Roland McGrath  <roland@hack.frob.com>
34794
34795         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
34796         (if_freenameindex): Likewise.
34797
34798         * resource/getrlimit64.c: Add missing libc_hidden_def.
34799
34800 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
34801
34802         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
34803         __label__.
34804         (_FP_FMA): Likewise.
34805         (_FP_TO_INT_ROUND): Likewise.
34806         (_FP_FROM_INT): Likewise.
34807
34808 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34809
34810         [BZ #16418]
34811         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34812         Make code racy and cancel safe.
34813
34814 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
34815
34816         * sysdeps/arm/unwind-resume.h: Fix copyright year.
34817         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
34818         attribution.
34819
34820         * pwd/tst-getpw.c: Rewrite.
34821
34822         [BZ #17702]
34823         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
34824         (modules-names): Add moddummy1 and moddummy2.
34825         ($(objpfx)tst-rec-dlopen): Define.
34826         * dlfcn/moddummy1.c: New file.
34827         * dlfcn/moddummy2.c: New file.
34828         * dlfcn/tst-rec-dlopen.c: New file.
34829         * elf/dl-cache.c (_dl_load_cache_lookup):
34830         Return char*. Copy result with alloca/strcpy/strdup.
34831         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
34832         returns char*. Free cached. If not saving realname
34833         free cached.
34834         * elf/dl-open.c (dl_open_worker): Do not assert that
34835         _r_debug->r_state is RT_CONSISTENT.
34836         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
34837         returns char*.
34838
34839 2015-01-21  Torvald Riegel  <triegel@redhat.com>
34840             Carlos O'Donell  <carlos@redhat.com>
34841
34842         [BZ #12674]
34843         * nptl/sem_waitcommon.c: New file.
34844         * nptl/sem_wait.c: Include sem_waitcommon.c.
34845         (__sem_wait_cleanup, do_futex_wait): Remove.
34846         (__new_sem_wait): Adapt.
34847         (__new_sem_trywait): New function.
34848         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
34849         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
34850         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
34851         (sem_timedwait): Adapt.
34852         * nptl/sem_post.c (__new_sem_post): Adapt.
34853         (futex_wake): New function.
34854         (__old_sem_post): Add release MO fence.
34855         * nptl/sem_open.c (sem_open): Adapt.
34856         * nptl/sem_init.c (__new_sem_init): Adapt.
34857         (futex_private_if_supported): New function.
34858         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
34859         (__old_sem_getvalue): Add using previous code.
34860         * sysdeps/nptl/internaltypes.h: Adapt.
34861         * nptl/tst-sem13.c (do_test): Adapt.
34862         * nptl/tst-sem11.c (main): Adapt.
34863         * nptl/sem_trywait.c: Remove.
34864         * nptl/DESIGN-sem.txt: Remove.
34865         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
34866         (gen-as-const-headers): Remove structsem.sym.
34867         * nptl/structsem.sym: Remove.
34868         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
34869         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
34870         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
34871         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
34872         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
34873         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
34874         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
34875         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
34876         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
34877         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
34878         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
34879         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
34880         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
34881         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
34882         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
34883         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
34884         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
34885         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
34886         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
34887         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
34888         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
34889         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
34890
34891 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
34892
34893         * INSTALL: Regenerated.
34894
34895         * po/libc.pot: Regenerated.
34896
34897 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
34898             Sandra Loosemore  <sandra@codesourcery.com>
34899             Andrew Jenner  <andrew@codesourcery.com>
34900             Joseph Myers  <joseph@codesourcery.com>
34901             Nathan Sidwell  <nathan@codesourcery.com>
34902
34903         * NEWS: Mention new Nios II port.
34904         * sysdeps/nios2/Implies: New file.
34905         * sysdeps/nios2/Makefile: New file.
34906         * sysdeps/nios2/Subdirs: New file.
34907         * sysdeps/nios2/Versions: New file.
34908         * sysdeps/nios2/__longjmp.S: New file.
34909         * sysdeps/nios2/abort-instr.h: New file.
34910         * sysdeps/nios2/backtrace.c: New file.
34911         * sysdeps/nios2/bits/endian.h: New file.
34912         * sysdeps/nios2/bits/fenv.h: New file.
34913         * sysdeps/nios2/bits/link.h: New file.
34914         * sysdeps/nios2/bits/setjmp.h: New file.
34915         * sysdeps/nios2/bsd-_setjmp.S: New file.
34916         * sysdeps/nios2/bsd-setjmp.S: New file.
34917         * sysdeps/nios2/configure: New generated file.
34918         * sysdeps/nios2/configure.ac: New file.
34919         * sysdeps/nios2/crti.S: New file.
34920         * sysdeps/nios2/crtn.S: New file.
34921         * sysdeps/nios2/dl-init.c: New file.
34922         * sysdeps/nios2/dl-machine.h: New file.
34923         * sysdeps/nios2/dl-sysdep.h: New file.
34924         * sysdeps/nios2/dl-tls.h: New file.
34925         * sysdeps/nios2/dl-trampoline.S: New file.
34926         * sysdeps/nios2/gccframe.h: New file.
34927         * sysdeps/nios2/gmp-mparam.h: New file.
34928         * sysdeps/nios2/jmpbuf-offsets.h: New file.
34929         * sysdeps/nios2/jmpbuf-unwind.h: New file.
34930         * sysdeps/nios2/ldsodefs.h: New file.
34931         * sysdeps/nios2/libc-tls.c: New file.
34932         * sysdeps/nios2/libm-test-ulps: New file.
34933         * sysdeps/nios2/machine-gmon.h: New file.
34934         * sysdeps/nios2/math-tests.h: New file.
34935         * sysdeps/nios2/math_private.h: New file.
34936         * sysdeps/nios2/memusage.h: New file.
34937         * sysdeps/nios2/nptl/Makefile: New file.
34938         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
34939         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
34940         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
34941         * sysdeps/nios2/nptl/pthreaddef.h: New file.
34942         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
34943         * sysdeps/nios2/nptl/tls.h: New file.
34944         * sysdeps/nios2/preconfigure: New file.
34945         * sysdeps/nios2/s_fma.c: New file.
34946         * sysdeps/nios2/s_fmaf.c: New file.
34947         * sysdeps/nios2/setjmp.S: New file.
34948         * sysdeps/nios2/sfp-machine.h: New file.
34949         * sysdeps/nios2/sotruss-lib.c: New file.
34950         * sysdeps/nios2/stackguard-macros.h: New file.
34951         * sysdeps/nios2/stackinfo.h: New file.
34952         * sysdeps/nios2/start.S: New file.
34953         * sysdeps/nios2/sysdep.h: New file.
34954         * sysdeps/nios2/tls-macros.h: New file.
34955         * sysdeps/nios2/tst-audit.h: New file.
34956         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
34957         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
34958         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
34959         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
34960         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
34961         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
34962         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
34963         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
34964         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
34965         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
34966         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
34967         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
34968         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
34969         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
34970         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
34971         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
34972         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
34973         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
34974         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
34975         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
34976         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
34977         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
34978         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
34979         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
34980         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
34981         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
34982         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
34983         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
34984         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
34985         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
34986         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
34987         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
34988         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
34989         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
34990         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
34991         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
34992         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
34993         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
34994         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
34995         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
34996         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
34997         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
34998         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
34999         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
35000
35001 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
35002
35003         [BZ #17844]
35004         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
35005         (getutent): Use weak_alias in non SHARED case
35006         and default_symbol_version in SHARED case.
35007         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
35008         (getutent_r, pututline): Likewise.
35009         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
35010         (getutid): Likewise.
35011         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
35012         (getutid_r): Likewise.
35013         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
35014         (getutline): Likewise.
35015         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
35016         (getutline_r): Likewise.
35017         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
35018         (updwtmp): Likewise.
35019
35020 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
35021
35022         [BZ #17848]
35023         * sysdeps/s390/s390-32/memcmp.S
35024         (memcmp_g5): Rename to __memcmp_g5.
35025         * sysdeps/s390/s390-32/memcpy.S
35026         (memcpy_g5): Rename to __memcpy_g5.
35027         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35028         (memcpy_mvcle) Rename to __memcpy_mvcle.
35029         * sysdeps/s390/s390-32/memset.S
35030         (memset_g5): Rename to __memset_g5.
35031         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
35032         (IFUNC_RESOLVE): Prefix ifunc-resolve function
35033         and use prefixed functions.
35034         * sysdeps/s390/s390-32/multiarch/memcmp.S
35035         (memcmp_z196): Rename to __memcmp_z196.
35036         (memcmp_z10): Rename to __memcmp_z10.
35037         (memcmp): Set alias to __memcmp_g5.
35038         (bcmp): Set alias to __memcmp_g5.
35039         * sysdeps/s390/s390-32/multiarch/memcpy.S
35040         (memcpy_z196): Rename to __memcpy_z196.
35041         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35042         (memcpy_z10): Rename to __memcpy_z10.
35043         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35044         (memcpy): Set alias to __memcpy_g5.
35045         * sysdeps/s390/s390-32/multiarch/memset.S
35046         (memset_z196): Rename to __memset_z196.
35047         Jump to __memset_mvcle instead of memset_mvcle.
35048         (memset_z10): Rename to __memset_z10.
35049         Jump to __memset_mvcle instead of memset_mvcle.
35050         (memset_mvcle) Rename to __memset_mvcle.
35051         (memset): Set alias to __memset_g5.
35052         * sysdeps/s390/s390-64/memcmp.S
35053         (memcmp_z900): Rename to __memcmp_z900.
35054         * sysdeps/s390/s390-64/memcpy.S
35055         (memcpy_z900): Rename to __memcpy_z900.
35056         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35057         (memcpy_mvcle) Rename to __memcpy_mvcle.
35058         * sysdeps/s390/s390-64/memset.S
35059         (memset_z900): Rename to __memset_z900.
35060         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
35061         (IFUNC_RESOLVE): Prefix ifunc-resolve function
35062         and use prefixed functions.
35063         * sysdeps/s390/s390-64/multiarch/memcmp.S
35064         (memcmp_z196): Rename to __memcmp_z196.
35065         (memcmp_z10): Rename to __memcmp_z10.
35066         (memcmp): Set alias to __memcmp_z900.
35067         (bcmp): Set alias to __memcmp_z900.
35068         * sysdeps/s390/s390-64/multiarch/memcpy.S
35069         (memcpy_z196): Rename to __memcpy_z196.
35070         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35071         (memcpy_z10): Rename to __memcpy_z10.
35072         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35073         (memcpy): Set alias to __memcpy_z900.
35074         * sysdeps/s390/s390-64/multiarch/memset.S
35075         (memset_z196): Rename to __memset_z196.
35076         Jump to __memset_mvcle instead of memset_mvcle.
35077         (memset_z10): Rename to __memset_z10.
35078         Jump to __memset_mvcle instead of memset_mvcle.
35079         (memset_mvcle) Rename to __memset_mvcle.
35080         (memset): Set alias to __memset_z900.
35081
35082 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
35083
35084         [BZ #17748]
35085         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
35086         __fesetenv instead of fesetenv.
35087
35088 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
35089
35090         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
35091         macro.
35092
35093 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35094
35095         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
35096         regression on LE.
35097
35098         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
35099         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
35100         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35101         strncmp-power8 object.
35102         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35103         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
35104         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
35105         * NEWS: Update.
35106
35107 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35108             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35109
35110         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
35111         trailing byte check.
35112
35113 2015-01-13  David S. Miller  <davem@davemloft.net>
35114
35115         * include/signal.h (__sigreturn): Guard with __USE_MISC.
35116
35117 2015-01-13  Roland McGrath  <roland@hack.frob.com>
35118
35119         * login/logout.c (logout): Use memset rather than bzero.
35120         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
35121         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
35122         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
35123         (_gethtbyaddr): Likewise.
35124         * locale/programs/simple-hash.c (bcopy): Macro removed.
35125
35126 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35127
35128         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35129         Add strcmp-power8 object.
35130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35131         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
35132         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
35133         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
35134         __strcmp_power8 implementation.
35135         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
35136         * NEWS: Update.
35137
35138         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35139         Add strncpy-power8 and stpncpy-power8 objects.
35140         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35141         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
35142         implementations.
35143         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
35144         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
35145         __stpncpy_power8 implementation.
35146         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
35147         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
35148         __strncpy_power8 implementation.
35149         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
35150         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
35151         * NEWS: Update.
35152
35153         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
35154         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
35155         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
35156
35157         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35158         strncat-power8 object.
35159         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
35160         __strcat_power8 implementation.
35161         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35162         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
35163         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
35164         optimized strcat for power8.
35165
35166         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35167         strcpy-power8 and stpcpy-power8 objects.
35168         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35169         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
35170         implementations.
35171         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
35172         multiarch stpcpy implementation for POWER8.
35173         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
35174         multiarch strcpy implementation for POWER8.
35175         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
35176         __strcpy_power8 function.
35177         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
35178         stpcpy for POWER8.
35179         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
35180         strcpy for POWER8.
35181         * NEWS: Update.
35182
35183 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
35184
35185         [BZ #16009]
35186         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
35187         weights and rules. Use do_xfrm_cached if data fits in cache,
35188         do_xfrm otherwise.  Moved former main loop to...
35189         * (do_xfrm_cached): New function.
35190         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
35191         find_idx, find_position and stack_push.
35192         * (find_idx): New function.
35193         * (find_position): Likewise.
35194         * localedata/sort-test.sh: Added test run for do_xfrm.
35195         * localedata/xfrm-test.c (main): Added command line option
35196         -nocache to run the test with strings that are too large for
35197         the STRXFRM cache.
35198
35199 2015-01-13  Torvald Riegel  <triegel@redhat.com>
35200
35201         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
35202         variable to lll_futex_wake call, not the value itself.
35203
35204 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
35205
35206         [BZ #17803]
35207         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
35208         twom64.  Adjust value to 0x1p-64L.
35209         (__scalblnl): Only return standard underflowing result for K <=
35210         -64 not K <= -63; adjust exponent for underflowing result by 64
35211         not 63.
35212         * math/libm-test.inc (scalbn_test_data): Add more tests.
35213         (scalbln_test_data): Likewise.
35214
35215         [BZ #17834]
35216         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
35217         0x1p63L.
35218         (__scalblnl): Get new exponent of adjusted subnormal value from ES
35219         not HX.
35220         * math/libm-test.inc (scalbn_test_data): Add more tests.
35221         (scalbln_test_data): Likewise.
35222
35223 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35224             Stefani Seibold  <stefani@seibold.net>
35225
35226         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
35227         (sysdep_routines): Add dl-vdso here, ...
35228         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
35229         (sysdep_routines): ... not here.
35230         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
35231         fallback when vDSO is not presented.
35232         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
35233         Define with libc_hidden_proto/libc_hidden_data_def definitions.
35234         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
35235         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
35236         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
35237         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
35238         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
35239         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
35240         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
35241         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
35242         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
35243         fallback configurable symbol when vDSO is not available.
35244         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
35245         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
35246         be able to redefine fallback symbol when vDSO is not available.
35247         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
35248         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
35249
35250 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35251
35252         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
35253         (TLS_INIT_TP): Add tm_capable initialization.
35254         (TLS_DEFINE_INIT_TP): Likewise.
35255         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
35256         TCB.
35257         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
35258         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
35259         calculation.
35260         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
35261         transactoion is lock elision is built and TCB tm_capable is set.
35262         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
35263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
35264         (INTERNAL_SYSCALL_NCS): Likewise.
35265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
35266         (INTERNAL_SYSCALL_NCS): Likewise.
35267         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
35268
35269         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
35270         for powerpc.
35271         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35272         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
35273         and remove it for 32 bits case.
35274         [pthread_rwlock_t] (__rwelision): New field for lock elision.
35275         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
35276         initialization.
35277         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
35278         Disable lock elision with rdlocks if elision is not available.
35279
35280         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
35281         (sysdep_routines): Add lock elision objects.
35282         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35283         [pthread_mutex_t] (__spins): Rework to add lock elision field.
35284         [pthread_mutex_t] (__elision): Add field.
35285         [__PTHREAD_SPINS]: Adjust to init lock elision field.
35286         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
35287         elision definitions for powerpc.
35288         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
35289         implementation of lock elision for powerpc.
35290         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
35291         implementation of timed lock elision for powerpc.
35292         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
35293         implementation of trylock with lock elision for powerpc.
35294         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
35295         implementaion of unlock for lock elision for powerpc.
35296         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
35297         automatic enable lock elision for mutexes.
35298         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
35299         transaction execution definitions for powerpc.
35300         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
35301         definitions.
35302         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
35303         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
35304         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
35305         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
35306         * NEWS: Update.
35307
35308 2015-01-09  Roland McGrath  <roland@hack.frob.com>
35309
35310         * sysdeps/posix/shm-directory.c: Use <> rather than ""
35311         for #include of <shm-directory.h>.
35312
35313 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
35314
35315         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
35316         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
35317
35318 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
35319
35320         [BZ #17791]
35321         * NEWS: Mention bug fix.
35322         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
35323         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
35324         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
35325
35326 2015-01-09  Torvald Riegel <triegel@redhat.com>
35327
35328         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
35329
35330 2015-01-09  Torvald Riegel <triegel@redhat.com>
35331
35332         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
35333
35334 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35335
35336         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
35337         pointer and cast to uintptr_t.
35338
35339 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35340
35341         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
35342         removed.
35343         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
35344
35345 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35346
35347         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
35348         of 0.
35349
35350 2015-01-08  Roland McGrath  <roland@hack.frob.com>
35351
35352         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
35353         <nptl/pthreadP.h> instead.
35354         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
35355
35356         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
35357         already defined.
35358         [__SIGRTMIN] (init): Function removed.
35359         [__SIGRTMIN] (initialized): Variable removed.
35360         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
35361         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
35362         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
35363         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
35364         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
35365         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
35366         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
35367         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
35368         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
35369         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
35370         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
35371         * sysdeps/nptl/allocrtsig.c: New file.
35372         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
35373         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
35374         * sysdeps/generic/testrtsig.h: File removed.
35375
35376         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
35377         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
35378
35379         * nptl/nptl-init.c (pthread_functions): Conditionalize
35380         .ptr__nptl_setxid initialization on [SIGSETXID].
35381
35382         * sysdeps/nptl/sys/procfs.h: New file.
35383         * nptl_db/Makefile (headers): Add it.
35384         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
35385
35386         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
35387         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
35388         * nptl/pthread_attr_setaffinity.c: Include it.
35389         * nptl/pthread_setattr_default_np.c: Likewise.
35390         * nptl/check-cpuset.h: New file.
35391
35392 2015-01-08  Richard Henderson  <rth@redhat.com>
35393
35394         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
35395         (CFLAGS-tst-execstack-prog.c): Likewise.
35396         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
35397
35398 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
35399             Sandra Loosemore  <sandra@codesourcery.com>
35400             Andrew Jenner  <andrew@codesourcery.com>
35401             Joseph Myers  <joseph@codesourcery.com>
35402             Nathan Sidwell  <nathan@codesourcery.com>
35403
35404         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
35405         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
35406         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
35407         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
35408         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
35409         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
35410         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
35411         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
35412         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
35413         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
35414         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
35415         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
35416         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
35417         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
35418         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
35419         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
35420         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
35421
35422 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35423
35424         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
35425         timespec struct member in syscall macro.
35426         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
35427         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
35428         first timeval struct member in syscall macro.
35429         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
35430
35431 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
35432
35433         [BZ #17748]
35434         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
35435         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
35436         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
35437         __feupdateenv and define as weak alias of __feupdateenv.  Use
35438         libm_hidden_weak.
35439         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
35440         libm_hidden_def.
35441         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
35442         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
35443         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35444         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
35445         libm_hidden_def.
35446         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
35447         __feupdateenv and define as weak alias of __feupdateenv.  Use
35448         libm_hidden_weak.
35449         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
35450         libm_hidden_def.
35451         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
35452         __feupdateenv and define as weak alias of __feupdateenv.  Use
35453         libm_hidden_weak.
35454         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
35455         libm_hidden_def.
35456         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35457         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35458         (__feupdateenv): Likewise.
35459         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
35460         __feupdateenv and define as weak alias of __feupdateenv.  Use
35461         libm_hidden_weak.
35462         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35463         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
35464         libm_hidden_def.
35465         * sysdeps/tile/math_private.h (__feupdateenv): New inline
35466         function.
35467         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
35468         libm_hidden_def.
35469         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
35470         __feupdateenv instead of feupdateenv.
35471         (default_libc_feupdateenv_test): Likewise.
35472         (libc_feresetround_ctx): Likewise.
35473
35474 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35475
35476         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
35477         prototype.
35478
35479 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
35480
35481         * posix/regcomp.c (parse_bracket_exp): Initialize type to
35482         COLL_SYM in a couple of places to avoid uninitialized variable
35483         wanings on tilegx gcc 4.8.2.
35484
35485 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35486
35487         * sysdeps/aarch64/strcpy.S: New file.
35488         * sysdeps/aarch64/stpcpy.S: New file.
35489         * NEWS: Updated.
35490
35491 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35492
35493         * sysdeps/aarch64/strrchr.S: New file.
35494         * NEWS: Updated.
35495
35496 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
35497
35498         [BZ #17658]
35499         * stdlib/setenv.c: Fix memory leak when setting large,
35500         duplicate string.
35501
35502 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
35503
35504         [BZ #17273]
35505         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
35506         and tabs from buffer before parsing fstab entry.
35507         * misc/tst-mntent.c (main): Add test for mount entry with
35508         trailing spaces and tabs.
35509
35510 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
35511
35512         [BZ #17748]
35513         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
35514         * math/fesetround.c (fesetround): Rename to __fesetround and
35515         define as weak alias of __fesetround.  Use libm_hidden_weak.
35516         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
35517         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
35518         * sysdeps/arm/fesetround.c (fesetround): Likewise.
35519         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
35520         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
35521         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
35522         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
35523         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
35524         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
35525         __fesetround_inline.
35526         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
35527         __fesetround_inline instead of __fesetround.
35528         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
35529         __fesetround and define as weak alias of __fesetround.  Use
35530         libm_hidden_weak.  Call __fesetround_inline instead of
35531         __fesetround.
35532         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
35533         __fesetround and define as weak alias of __fesetround.  Use
35534         libm_hidden_weak.
35535         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
35536         Likewise.
35537         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
35538         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
35539         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
35540         * sysdeps/tile/math_private.h (__fesetround): New inline function.
35541         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
35542         __fesetround and define as weak alias of __fesetround.  Use
35543         libm_hidden_weak.
35544         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
35545         __fesetround instead of fesetround.
35546         (default_libc_feholdexcept_setround): Likewise.
35547         (libc_feholdsetround_ctx): Likewise.
35548         (libc_feholdsetround_noex_ctx): Likewise.
35549
35550         [BZ #17748]
35551         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
35552         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
35553         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35554         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35555         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35556         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
35557         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35558         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
35559         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35560         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35561         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35562         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35563         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35564         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35565         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
35566         libm_hidden_def.
35567         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
35568         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
35569         Likewise.
35570         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35571         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35572         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
35573         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35574         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
35575         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35576         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35577         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
35578         __fesetenv instead of fesetenv.
35579         (libc_feresetround_noex_ctx): Likewise.
35580         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35581         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35582         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
35583         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35584         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35585         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35586         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35587         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35588         (__feupdateenv): Likewise.
35589         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35590         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35591         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35592         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
35593
35594 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35595
35596         [BZ #17806]
35597         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
35598         addresses have been freed.
35599
35600 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35601
35602         * resolv/res_init.c (__res_vinit): Improve comments about nserv
35603         and nservall.
35604
35605 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
35606
35607         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
35608         Clean up check_pf allocation pattern. addresses
35609
35610 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35611
35612         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
35613         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
35614         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
35615         * nptl/pthread_exit.c (__pthread_exit): Likewise.
35616         * nptl/pthread_join.c (pthread_join): Likewise.
35617         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
35618         * sysdeps/posix/waitid.c (__waitid): Likewise.
35619         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
35620         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
35621         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
35622         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
35623         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
35624         Likewise.
35625         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
35626         (__libc_pread64): Likewise.
35627         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
35628         (__libc_pwrite): Likewise.
35629         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
35630         (__libc_pwrite64): Likewsie.
35631         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
35632         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
35633         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
35634         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
35635         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
35636         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
35637         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
35638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
35639         Likewise.
35640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
35641         (__libc_pread64): Likewise.
35642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
35643         Likewise.
35644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
35645         (__libc_pwrite64): Likewise.
35646         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
35647         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
35648         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
35649         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
35650         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
35651         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
35652         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
35653         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
35654         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
35655         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
35656         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
35657         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
35658         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
35659         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
35660         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
35661         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
35662         Likewise.
35663
35664 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
35665
35666         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
35667         (CFLAGS-test-double.c): Likewise.
35668         (CFLAGS-test-ldouble.c): Likewise.
35669         (CPPFLAGS-test-ifloat.c): Likewise.
35670         (CPPFLAGS-test-idouble.c): Likewise.
35671         (CPPFLAGS-test-ildoubl.c): Likewise.
35672         (CFLAGS-test-test-fenv.c): Remove variable.
35673         (CFLAGS-test-misc.c): Likewise.
35674
35675 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
35676
35677         [BZ #17797]
35678         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
35679         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
35680         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
35681         CLOCKS_PER_SEC == 1000000.
35682         * time/clocktest.c (main): Replace %ld with %jd and cast to
35683         intmax_t.
35684
35685 2015-01-05  Roland McGrath  <roland@hack.frob.com>
35686
35687         * sysdeps/generic/unwind-resume.h: New file.
35688         * sysdeps/gnu/unwind-resume.c: Include it.
35689         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
35690         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
35691         argument list.
35692         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
35693         global rather than static.
35694         (_Unwind_Resume): Update user.
35695         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
35696         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
35697         rather than static.  Add __attribute__ ((cold)).
35698         (_Unwind_Resume, __gcc_personality_v0): Update callers.
35699         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
35700         * sysdeps/arm/arm-unwind-resume.S: New file.
35701         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
35702         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
35703         * sysdeps/arm/Makefile [$(subdir) = csu]
35704         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
35705         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
35706         Add rt-arm-unwind-resume.
35707         [$(subdir) = nptl]
35708         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35709         Add pt-arm-unwind-resume.
35710         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
35711         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
35712
35713 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35714
35715         [BZ #17748]
35716         * include/fenv.h (__feholdexcept): Declare.  Use
35717         libm_hidden_proto.
35718         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
35719         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
35720         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35721         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
35722         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
35723         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
35724         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
35725         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35726         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
35727         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
35728         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35729         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
35730         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
35731         (feholdexcept): Likewise.
35732         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
35733         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
35734         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35735         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35736         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
35737         __feholdexcept instead of feholdexcept.
35738         (default_libc_feholdexcept_setround): Likewise.
35739
35740 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35741
35742         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
35743         to avoid using stl/str to align destination.
35744
35745 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35746
35747         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
35748
35749 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35750
35751         [BZ #17796]
35752         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
35753         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
35754         Define as weak alias not strong alias.
35755
35756 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35757
35758         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
35759         bltzal with addiupc.
35760         (RTLD_START): Ditto.
35761
35762 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
35763
35764         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
35765         for __vdso_* functions in declarations.
35766         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
35767         definitions.
35768         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
35769         INTERNAL_VSYSCALL): Use struct return types to check for error.
35770
35771         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
35772         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
35773         function with cast from llround().
35774         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
35775         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
35776         Define.
35777
35778 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35779
35780         [BZ #17793]
35781         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
35782         Define as weak alias not strong alias.
35783
35784         [BZ #17635]
35785         * ctype/ctype-c99.c: New file.  isblank implementation moved from
35786         ...
35787         * ctype/ctype-extn.c: ... here.
35788         (__isblank_l): Move to ...
35789         * ctype/ctype-c99_l.c: ... here.  New file.
35790         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
35791         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
35792         Remove variable.
35793         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
35794         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
35795         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
35796         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
35797         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
35798
35799         [BZ #17777]
35800         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
35801         (posix_fadvise64): Define as weak alias not strong alias.
35802         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
35803         (posix_fallocate64): Likewise.
35804         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
35805         Remove variable.
35806         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
35807         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
35808         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
35809         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
35810         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
35811
35812 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
35813
35814         [BZ #16191]
35815         * NEWS: Mention bug fix.
35816         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
35817         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
35818         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
35819         (HOST_STACK_END_ADDR): Likewise.
35820
35821 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35822
35823         [BZ #17748]
35824         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
35825         * math/fegetround.c (fegetround): Rename to __fegetround and
35826         define as weak alias of __fegetround.  Use libm_hidden_weak.
35827         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
35828         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
35829         * sysdeps/arm/fegetround.c (fegetround): Likewise.
35830         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
35831         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
35832         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
35833         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
35834         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
35835         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
35836         Undefine after rather than before function definition; use
35837         parentheses around function name in definition.
35838         (__fegetround): Also undefine macro after function definition.
35839         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
35840         __fegetround and define as weak alias of __fegetround.  Use
35841         libm_hidden_weak.  Do not undefine as macro.
35842         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
35843         Likewise.
35844         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
35845         __fegetround and define as weak alias of __fegetround.  Use
35846         libm_hidden_weak.
35847         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
35848         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
35849         * sysdeps/tile/math_private.h (__fegetround): New inline function.
35850         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
35851         __fegetround and define as weak alias of __fegetround.  Use
35852         libm_hidden_weak.
35853         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
35854         __fegetround instead of fegetround.
35855
35856         [BZ #17782]
35857         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
35858         Condition macro definition on [__USE_MISC].
35859
35860         [BZ #17781]
35861         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
35862         (struct sigaction): Change type of sa_flags field to int.
35863
35864         [BZ #17780]
35865         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
35866         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
35867         __glibc_reserved0.
35868
35869         * nptl/version.c (banner): Use single year in copyright notice.
35870
35871         * NEWS: Update copyright dates.
35872         * catgets/gencat.c (print_version): Likewise.
35873         * csu/version.c (banner): Likewise.
35874         * debug/catchsegv.sh: Likewise.
35875         * debug/pcprofiledump.c (print_version): Likewise.
35876         * debug/xtrace.sh (do_version): Likewise.
35877         * elf/ldconfig.c (print_version): Likewise.
35878         * elf/ldd.bash.in: Likewise.
35879         * elf/pldd.c (print_version): Likewise.
35880         * elf/sotruss.sh: Likewise.
35881         * elf/sprof.c (print_version): Likewise.
35882         * iconv/iconv_prog.c (print_version): Likewise.
35883         * iconv/iconvconfig.c (print_version): Likewise.
35884         * locale/programs/locale.c (print_version): Likewise.
35885         * locale/programs/localedef.c (print_version): Likewise.
35886         * login/programs/pt_chown.c (print_version): Likewise.
35887         * malloc/memusage.sh (do_version): Likewise.
35888         * malloc/memusagestat.c (print_version): Likewise.
35889         * malloc/mtrace.pl: Likewise.
35890         * manual/libc.texinfo: Likewise.
35891         * nptl/version.c (banner): Likewise.
35892         * nscd/nscd.c (print_version): Likewise.
35893         * nss/getent.c (print_version): Likewise.
35894         * nss/makedb.c (print_version): Likewise.
35895         * posix/getconf.c (main): Likewise.
35896         * scripts/test-installation.pl: Likewise.
35897         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
35898
35899 2015-01-02  Will Newton  <will.newton@linaro.org>
35900
35901         * sysdeps/arm/armv7/configure: Removed.
35902         * sysdeps/arm/armv7/configure.ac: Likewise.
35903
35904 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35905
35906         * All files with FSF copyright notices: Update copyright dates
35907         using scripts/update-copyrights.
35908         * intl/plural.c: Regenerated.
35909         * locale/programs/charmap-kw.h: Likewise.
35910         * locale/programs/locfile-kw.h: Likewise.
35911
35912 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35913
35914         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
35915
35916 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35917
35918         [BZ #17748]
35919         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
35920         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
35921         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35922         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35923         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35924         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
35925         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35926         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
35927         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35928         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35929         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35930         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35931         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35932         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35933         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
35934         libm_hidden_def.
35935         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
35936         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
35937         Likewise.
35938         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35939         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35940         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
35941         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35942         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
35943         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35944         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35945         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
35946         __fegetenv instead of fegetenv.
35947         (libc_feholdsetround_noex_ctx): Likewise.
35948
35949 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
35950
35951         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
35952         (Elf_MIPS_ABIFlags_v0): New structure.
35953         (EF_MIPS_FP64): Define.
35954         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
35955         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
35956         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
35957         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
35958         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
35959         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
35960         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
35961         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
35962         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
35963         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
35964         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
35965         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
35966         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
35967         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
35968         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
35969         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
35970         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
35971         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
35972         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
35973         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
35974         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
35975         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
35976         field.
35977         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
35978         EF_MIPS_FP64.
35979         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
35980         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
35981         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
35982         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
35983         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
35984         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
35985         * sysdeps/mips/tst-abi-interlink.c: Likewise.
35986         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
35987         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
35988         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
35989         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
35990         record the current FP ABI extension.
35991         (mips-mode-switch): Define to show if kernel headers support mode
35992         switching.
35993         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
35994         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
35995         supported SYSV ABI version to 3.
35996         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
35997         feature.
35998
35999 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36000             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36001
36002         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
36003         path.
36004         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
36005
36006 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
36007
36008         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
36009         __fegetround and redefine to call __fegetround.  Remove condition
36010         on [!__NO_MATH_INLINES].
36011         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
36012         function.
36013         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
36014         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
36015         Remove macro.
36016         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
36017         instead of <fenv_libc.h>.
36018         (__llrintl): Call fegetround instead of __fegetround.
36019         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
36020         instead of <fenv_libc.h>.
36021         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
36022         (__lrintl): Call fegetround instead of __fegetround.
36023         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
36024         instead of <fenv_libc.h>.
36025         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
36026         (__rintl): Call fegetround instead of __fegetround.
36027
36028 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36029
36030         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
36031         arrays.
36032
36033 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36034
36035         [BZ #17775]
36036         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
36037         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
36038         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
36039
36040 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36041
36042         * sysdeps/i386/tls-macros.h: Include <features.h>.
36043         (TLS_LE): Use non-PIC version for GCC >= 5.0.
36044         (TLS_IE): Likewise.
36045         (TLS_LD): Likewise.
36046         (TLS_GD): Likewise.
36047         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
36048         define for GCC >= 5.0.
36049
36050 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
36051
36052         * math/test-fenv.c (test_single_exception, set_single_exc,
36053         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
36054         feexcp_mask_test, feenable_test, fe_single_test): Add
36055         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
36056         case where they are not used.
36057         * math/libm-test.inc: Likewise.
36058         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
36059         unused in the absence of FP rounding/exception support.
36060         * stdio-common/tst-printf-round.c: Likewise.
36061         * stdlib/tst-strtod-round.c: Likewise.
36062         * stdlib/tst-strtod-underflow.c: Likewise.
36063
36064 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
36065
36066         [BZ #17723]
36067         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
36068         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
36069         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36070         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36071         libm_hidden_weak.
36072         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
36073         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36074         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
36075         libm_hidden_def.
36076         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36077         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36078         libm_hidden_weak.
36079         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
36080         Likewise.
36081         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
36082         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36083         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36084         libm_hidden_weak.
36085         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36086         libm_hidden_def.
36087         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
36088         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
36089         (__feraiseexcept): Likewise.
36090         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36091         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36092         libm_hidden_weak.
36093         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36094         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36095         libm_hidden_def.
36096         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
36097         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
36098         Use libm_hidden_def.
36099         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
36100         libm_hidden_def.
36101         (feraiseexcept): Define as weak not strong alias.  Use
36102         libm_hidden_weak.
36103         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
36104         New inline function.  Factored out of ...
36105         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
36106         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
36107         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
36108         feraiseexcept.
36109         * math/w_acos.c (__acos): Likewise.
36110         * math/w_asin.c (__asin): Likewise.
36111         * math/w_ilogb.c (__ilogb): Likewise.
36112         * math/w_j0.c (y0): Likewise.
36113         * math/w_j1.c (y1): Likewise.
36114         * math/w_jn.c (yn): Likewise.
36115         * math/w_log.c (__log): Likewise.
36116         * math/w_log10.c (__log10): Likewise.
36117         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
36118         * sysdeps/aarch64/fpu/math_private.h
36119         (libc_feupdateenv_test_aarch64): Likewise.
36120         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
36121         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
36122         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
36123         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
36124         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
36125         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
36126         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
36127         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36128         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
36129         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
36130
36131 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36132
36133         [BZ #17732]
36134         * io/test-utime.c (main): Replace %ld with %jd and cast to
36135         intmax_t.
36136         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
36137         * nptl/tst-mutex5.c: Include <stdint.h>.
36138         (do_test): Replace %ld with %jd and cast to intmax_t.
36139         * posix/tst-regex.c (run_test): Likewise.
36140         (run_test_backwards): Likewise.
36141         * rt/tst-clock.c: Include <stdint.h>.
36142         (clock_test): Replace %ld with %jd and cast to intmax_t.
36143         * rt/tst-cpuclock1.c: Include <stdint.h>.
36144         (do_test): Replace %lu with %ju and cast to uintmax_t.
36145         * rt/tst-cpuclock2.c: Include <stdint.h>.
36146         (do_test): Replace %lu with %ju and cast to uintmax_t.
36147         * rt/tst-mqueue1.c: Include <stdint.h>.
36148         (check_attrs): Replace %ld with %jd and cast to intmax_t.
36149         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
36150         intmax_t.
36151         * rt/tst-mqueue4.c (do_test): Likewise.
36152         * rt/tst-timer4.c: Include <stdint.h>.
36153         (check_ts): Replace %ld with %jd and cast to intmax_t.
36154         (do_test): Likewise.
36155         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
36156         and cast to intmax_t.
36157         * sysdeps/pthread/tst-timer.c (main): Likewise.
36158         * time/clocktest.c (main): Likewise.
36159         * time/tst-posixtz.c (do_test): Likewise.
36160         * timezone/tst-timezone.c (main): Likewise.
36161
36162 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36163             H.J. Lu  <hongjiu.lu@intel.com>
36164
36165         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
36166         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
36167         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
36168         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
36169         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
36170         version if bit_Fast_Unaligned_Load is set.
36171         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36172         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36173         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36174         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36175         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36176         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36177         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36178         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
36179         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
36180         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
36181         to 4.
36182         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
36183         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
36184         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
36185         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
36186
36187 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
36188
36189         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
36190         instead of #if to avoid a Wundef warning.
36191         * stdlib/tst-limits.c (do_test): Likewise.
36192
36193         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
36194         parallel other exception macros.
36195         (fegetenv): Convert from macro to extern inline so that it applies
36196         retroactively to inline functions already seen by the compiler.
36197         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
36198
36199         * posix/Makefile (before-compile): Use $(objpfx) for
36200         posix-conf-vars-def.h.
36201
36202 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
36203
36204         * posix/getconf.c (main): Use size_t for type of I.
36205         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
36206         NSPEC.
36207
36208         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
36209         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
36210         * posix/posix-envs.def: Likewise.
36211         * sysdeps/posix/sysconf.c: Likewise.
36212         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
36213         (specs): Remove array.
36214         * scripts/gen-posix-conf-vars.awk: Support generation of specs
36215         array.
36216
36217         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
36218         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
36219         (__sysconf): Use CONF_IS_* macros.
36220
36221         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
36222         ($(objpfx)posix-conf-vars-def.h): New target.
36223         * posix/posix-conf-vars.list: New file.
36224         * posix/posix-conf-vars.h: New file.
36225         * posix/confstr.c: Include posix-conf-vars.h.
36226         (confstr): Use CONF_IS_* macros.
36227         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
36228         CONF_IS_* macros.
36229         * scripts/gen-posix-conf-vars.awk: New file.
36230
36231 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
36232
36233         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
36234         fegetround): Add no-op macros to avoid linknamespace issues.
36235
36236         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
36237         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
36238
36239         * sysdeps/unix/sysv/linux/tile/sysdep.h
36240         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
36241         assembly-specific section to avoid a redefinition warning.
36242
36243         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
36244         long before casting to pointer to avoid a cast warning.
36245
36246 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
36247
36248         * sysdeps/tile/tilegx/Implies: New file.
36249
36250 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
36251
36252         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
36253
36254 2014-12-23  Florian Weimer  <fweimer@redhat.com>
36255
36256         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
36257
36258 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36259
36260         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
36261         not define.
36262         * sysdeps/unix/sysv/linux/utimes.c: Do not include
36263         <kernel-features.h>.
36264         (__utimes) [__NR_utimes]: Make code unconditional.
36265         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
36266         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36267         (__ASSUME_UTIMES): Do not undefine.
36268         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36269         (__ASSUME_UTIMES): Likewise.
36270         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36271         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
36272         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
36273         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
36274
36275 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36276
36277         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
36278
36279 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
36280
36281         [BZ #17747]
36282         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
36283         alias to weak alias for j0l, y0l.
36284         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
36285         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
36286
36287         [BZ #17746]
36288         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
36289         conversion.
36290
36291 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36292
36293         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
36294         to zero if not already defined.
36295
36296 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36297
36298         [BZ #17724]
36299         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
36300         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
36301         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
36302         (char *) casts added.
36303         * sysdeps/ieee754/k_standardf.c: New file.
36304         * sysdeps/ieee754/k_standardl.c: Likewise.
36305         * math/Makefile (libm-support): Remove k_standard.
36306         (libm-calls): Add k_standard.
36307
36308 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36309
36310         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
36311         Optimize to avoid an unnecessary FPCR read.
36312
36313 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36314
36315         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
36316         Optimize to reduce FPCR/FPSR accesses.
36317
36318 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36319
36320         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
36321         Call libc_fetestexcept_aarch64.
36322
36323 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36324
36325         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
36326         Call libc_fesetround_aarch64.
36327
36328 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36329
36330         [BZ #17733]
36331         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
36332         (__bind): Do not define as weak alias.
36333         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
36334         define.
36335         (__getsockname): Do not define as weak alias.
36336
36337 2014-12-22  Will Newton  <will.newton@linaro.org>
36338
36339         * manual/install.texi: Document that we require bison 2.7
36340         or above.
36341         * INSTALL: Regenerate.
36342         * configure.ac: Use AC_CHECK_PROG_VER instead of
36343         AC_PATH_PROG when checking for bison and check for
36344         version 2.7 or above.
36345         * configure: Regenerate.
36346
36347 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
36348
36349         [BZ #17745]
36350         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
36351         * sysdeps/tile/ffsll.c (ffsll): To here.
36352
36353         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
36354
36355 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36356
36357         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
36358         if not defined.
36359         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
36360         definition.
36361         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36362         hidden ___tls_get_addr.
36363         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36364         hidden __tls_get_addr.
36365         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
36366         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
36367         Likewise.
36368
36369 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
36370
36371         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
36372         _dl_init call.
36373
36374 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36375
36376         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
36377         from "call _dl_init@PLT".
36378         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
36379
36380 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
36381
36382         * manual/search.texi: (Array Sort Function): Clarify stable sorting
36383         guarantees.
36384
36385 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
36386
36387         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
36388
36389 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36390
36391         [BZ #17744]
36392         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
36393         strnlen.
36394
36395 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36396
36397         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
36398         of multu on MIPSr6.
36399         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
36400         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
36401         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
36402         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
36403         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
36404
36405 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36406
36407         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
36408         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
36409         (PTR_SUBU): Use subu for mips32r6/mips64r6.
36410         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
36411         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
36412         mips32r6/mips64r6.
36413         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
36414
36415 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
36416
36417         * string/strncat.c (STRNCAT): Simplify implementation.
36418
36419 2014-12-19  David S. Miller  <davem@davemloft.net>
36420
36421         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
36422         access the quad as both a long double and as a series of 4 words.
36423
36424         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
36425         link_map->l_info array access.
36426
36427 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36428
36429         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
36430
36431         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
36432         * math/atest-exp2.c (TIMEOUT): Likewise.
36433         * math/atest-sincos.c (TIMEOUT): Likewise.
36434
36435 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36436
36437         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
36438         -Wno-error with -fno-builtin-lround.
36439
36440 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36441
36442         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
36443         Contains futex constants and functions moved over from ...
36444         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
36445         <lowlevellock-futex.h>.
36446         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36447         (lll_timedwait_tid): Add comments and parentheses around macro
36448         arguments.
36449
36450 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36451
36452         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
36453         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
36454         (__lll_private_flag): Remove.
36455         (lll_futex_wait): Likewise.
36456         (lll_futex_timed_wait): Likewise.
36457         (lll_futex_wake): Likewise.
36458         (lll_futex_requeue): Likewise.
36459         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36460         (__lll_timedwait_tid): Spell out argument names.
36461         (lll_timedwait_tid): Add comments and parentheses around macro
36462         arguments.
36463         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
36464         LLL_SHARED and LLL_PRIVATE usable from assembly code.
36465
36466 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36467
36468         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
36469         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36470         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36471         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
36472         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
36473         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
36474         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
36475         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
36476         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
36477         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
36478         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
36479         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
36480         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
36481         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
36482         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
36483         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
36484         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
36485         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
36486         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
36487
36488 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36489
36490         * sysdeps/x86_64/x32/Makefile: New file.
36491
36492 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36493
36494         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
36495         1L with (mp_limb_t) 1.
36496
36497 2014-12-17  Roland McGrath  <roland@hack.frob.com>
36498
36499         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
36500         * nptl/libc_pthread_init.c: ... here.
36501         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
36502         * nptl/register-atfork.c: ... here.
36503
36504         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
36505         Use pthread_sigmask rather than INTERNAL_SYSCALL.
36506         Use assert_perror to check its return value.
36507         (__gai_create_helper_thread): Likewise.
36508
36509         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
36510
36511         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
36512
36513 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
36514
36515         [BZ #17725]
36516         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
36517         __profil_counter.
36518         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
36519         Likewise.
36520         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
36521         Likewise.
36522         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
36523         Likewise.
36524         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
36525         (profil_counter): Likewise.
36526         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
36527         (profil_counter): Likewise.
36528         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
36529         Likewise.
36530         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
36531         Likewise.
36532         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
36533         (profil_counter): Likewise.
36534         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
36535         Likewise.
36536         [!__profil_counter] (profil_counter): Define as weak alias of
36537         __profil_counter.
36538         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
36539         (profil_counter): Rename to __profil_counter.
36540         [!__profil_counter] (profil_counter): Define as weak alias of
36541         __profil_counter.
36542         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
36543         (profil_counter): Rename to __profil_counter.
36544         [!__profil_counter] (profil_counter): Define as weak alias of
36545         __profil_counter.
36546         * sysdeps/posix/profil.c: Update comment referring to
36547         profil_counter.
36548         (__profil): Use __profil_counter instead of profil_counter.
36549         * sysdeps/posix/sprofil.c (profil_counter): Rename to
36550         __profil_counter.  Use __profil_counter_ushort and
36551         __profil_counter_uint in definitions.
36552         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
36553         instead of profil_counter_uint and profil_counter_ushort.
36554
36555         [BZ #17722]
36556         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
36557         define as weak alias of __inet_makeaddr.
36558         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
36559         as weak alias of __inet_addr.
36560         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
36561         as weak alias of __inet_pton.  Use libc_hidden_weak.
36562         * include/arpa/inet.h (__inet_pton): Declare.  Use
36563         libc_hidden_proto.
36564         (inet_makeaddr): Don't use libc_hidden_proto.
36565         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
36566         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
36567         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
36568         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
36569         Remove variable.
36570         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
36571         (test-xfail-POSIX/time.h/linknamespace): Likewise.
36572
36573 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
36574
36575         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
36576
36577 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36578
36579         * stdio-common/bug-vfprintf-nargs.c (do_test):
36580         Cast value to intptr_t to avoid format warning
36581         for usage with PRIdPTR printing macro.
36582
36583 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36584
36585         * libio/tst-widetext.c (do_test):
36586         Use format type %td instead of %Zd for ptrdiff_t
36587         in order to avoid format warning.
36588
36589 2014-12-17  Andreas Schwab  <schwab@suse.de>
36590
36591         * nscd/mem.c (gc): Add size_t cast to match printf format.
36592
36593 2014-12-16  Roland McGrath  <roland@hack.frob.com>
36594
36595         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
36596         (init): Apply PTR_MANGLE to pointers before storing them.
36597         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
36598         before using them.
36599
36600 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
36601
36602         [BZ #17719]
36603         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
36604         define as weak alias of __memrchr.
36605         (__memrchr): Do not define as strong alias of memrchr.
36606         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
36607         Remove variable.
36608         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
36609         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
36610         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
36611
36612         [BZ #17717]
36613         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
36614         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
36615         (if_indextoname): Rename to __if_indextoname and define as weak
36616         alias of __if_indextoname.  Use libc_hidden_weak.
36617         (if_freenameindex): Rename to __if_freenameindex and define as
36618         weak alias of __if_freenameindex.
36619         (if_nameindex): Rename to __if_nameindex and define as weak alias
36620         of __if_nameindex.
36621         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
36622         __if_nametoindex and define as weak alias of __if_nametoindex.
36623         Use libc_hidden_weak.
36624         (if_freenameindex): Rename to __if_freenameindex and define as
36625         weak alias of __if_freenameindex.
36626         (if_nameindex): Rename to __if_nameindex and define as weak alias
36627         of __if_nameindex.
36628         (if_indextoname): Rename to __if_indextoname and define as weak
36629         alias of __if_indextoname.  Use libc_hidden_weak.
36630         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
36631         __if_nametoindex and define as weak alias of __if_nametoindex.
36632         Use libc_hidden_weak.
36633         (if_freenameindex): Rename to __if_freenameindex and define as
36634         weak alias of __if_freenameindex.  Use libc_hidden_weak.
36635         (if_nameindex_netlink): Use __if_freenameindex instead of
36636         if_freenameindex.
36637         (if_nameindex): Rename to __if_nameindex and define as weak alias
36638         of __if_nameindex.  Use libc_hidden_weak.
36639         (if_indextoname): Rename to __if_indextoname and define as weak
36640         alias of __if_indextoname.  Use libc_hidden_weak.
36641         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
36642         libc_hidden_proto.
36643         [!_ISOMAC] (__if_freenameindex): Likewise.
36644         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
36645         if_nametoindex.
36646         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
36647         variable.
36648         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
36649         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
36650         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
36651         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
36652         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
36653         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
36654         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
36655
36656         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
36657         Remove variable.
36658         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
36659         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
36660
36661 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
36662
36663         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
36664         subscript above bounds'
36665
36666         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
36667         bounds.
36668
36669 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
36670
36671         * libio/tst-fopenloc.c: Use test-skeleton.c.
36672
36673         * stdlib/tst-bsearch.c: Use test-skeleton.c.
36674         (entry): Rename to ITEM.
36675         (do_test, comp): Adjust.
36676
36677         * stdio-common/tst-fseek.c: Use test-skeleton.c.
36678
36679 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36680
36681         * string/tester.c: Include <libc-internal.h>.
36682         (test_memset): Ignore -Wmemset-transposed-args.
36683
36684 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36685
36686         * misc/tst-mntent2.c (do_test): Fix warning.
36687
36688 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36689
36690         * elf/tst-unique4lib.cc(a): Mark as used.
36691
36692 2014-12-16  Florian Weimer  <fweimer@redhat.com>
36693
36694         [BZ #17630]
36695         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
36696         names.
36697
36698 2014-12-16  Allan McRae  <allan@archlinux.org>
36699
36700         * stdio-common/Makefile (tests): Re-add bug26.
36701
36702 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
36703
36704         [BZ #17657]
36705         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
36706         static array.
36707
36708 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
36709
36710         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
36711         (__lll_lock_wait): Likewise.
36712         (__lll_timedlock_wait): Likewise.
36713         (__lll_timedwait_tid): Likewise.
36714         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
36715         (__lll_robust_timedlock_wait): Likewise.
36716         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
36717         (lll_cond_trylock): Likewise.
36718         (__lll_lock): Likewise.
36719         (__lll_robust_lock): Likewise.
36720         (__lll_cond_lock): Likewise.
36721         (lll_robust_cond_lock): Likewise.
36722         (__lll_timedlock): Likewise.
36723         (__lll_robust_timedlock): Likewise.
36724         (__lll_unlock): Likewise.
36725         (__lll_robust_unlock): Likewise.
36726         (lll_wait_tid): Likewise.
36727         (lll_timedwait_tid): Likewise.
36728
36729 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36730
36731         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
36732
36733 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36734
36735         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
36736
36737 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36738
36739         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
36740         * stdio-common/tst-sprintf.c: Likewise.
36741
36742 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36743
36744         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
36745
36746 2014-12-15  Jeff Law  <law@redhat.com>
36747
36748         [BZ #16617]
36749         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
36750         on the heap.  (CVE-2012-3406)
36751         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
36752         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
36753         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
36754
36755 2014-12-15  Will Newton  <will.newton@linaro.org>
36756
36757         * manual/install.texi: Bump required version of texinfo
36758         to 4.7 from 4.5.
36759         * INSTALL: Regenerated.
36760         * configure.ac: Check for makeinfo version 4.7 and above.
36761         * configure: Regenerated.
36762
36763 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36764
36765         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
36766         PREFIX, string constant to insert between directory and name.
36767         * sysdeps/posix/shm_open.c: Update caller.
36768         * sysdeps/posix/shm_unlink.c: Likewise.
36769         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
36770         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
36771         (SEM_SHM_PREFIX): New macro.
36772         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
36773         [$(have-thread-library) = no].
36774         * nptl/Makefile (libpthread-routines): Add shm-directory.
36775         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
36776         * sysdeps/nptl/shm-directory.h: New file.
36777         * sysdeps/posix/shm-directory.c
36778         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
36779         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
36780         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
36781         INTERNAL_SYSCALL.
36782         (__where_is_shmfs): Function removed.
36783         (mountpoint, defaultmount, defaultdir, __namedsem_once):
36784         Variables removed.
36785         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
36786         Use SHM_GET_NAME.
36787         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
36788
36789         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
36790         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
36791         unconditional for use inside libpthread.
36792         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
36793
36794 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36795
36796         * nptl/pthread_getaffinity.c: New file.
36797         * nptl/pthread_setaffinity.c: New file.
36798         * nptl/pthread_getname.c: New file.
36799         * nptl/pthread_setname.c: New file.
36800
36801         * nptl/pthread_create.c (START_THREAD_DEFN)
36802         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
36803
36804 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36805             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36806
36807         * resolv/res_send.c (send_vc): Disable warning resplen may
36808         be used uninitialized.
36809
36810 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36811
36812         * nptl/tst-mutex6.c
36813         (ATTR_NULL): New define checks ATTR against NULL.
36814         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
36815         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
36816
36817 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
36818
36819         [BZ #17581]
36820         * malloc/hooks.c
36821         (mem2mem_check): Revert my previous change.
36822         (malloc_check_get_size): Revert my previous change.
36823         (mem2chunk_check): Revert my previous change.
36824
36825 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36826
36827         * sysdeps/posix/shm-directory.c: New file.
36828         * sysdeps/posix/shm-directory.h: New file.
36829         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
36830         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
36831         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
36832         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
36833         Transmute EPERM to EACCES.
36834         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
36835         from ...
36836         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
36837         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
36838
36839 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
36840
36841         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
36842         pointer and cast to uintptr_t.
36843         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
36844         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
36845         Add cast to avoid warning.
36846         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
36847
36848 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36849
36850         * nptl/semaphore.h: Move to ...
36851         * sysdeps/pthread/semaphore.h: ... here.
36852         * Makefile (installed-headers): Change nptl/semaphore.h to
36853         sysdeps/pthread/semaphore.h.
36854
36855 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36856
36857         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
36858         generated error format strings.
36859
36860         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
36861         -Wformat-extra-args warnings for scanf formats.
36862         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
36863         test of zero-length format (duh).
36864         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
36865         corner-case scanf format test.
36866         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
36867         generated fprintf format string.
36868         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
36869         corner-case sprintf format tests.
36870         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
36871         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
36872         -Wformat-extra-args warnings throughout.
36873         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
36874         (CFLAGS-scanf4.c): Likewise.
36875         (CFLAGS-scanf7.c): Likewise.
36876         (CFLAGS-tst-sprintf.c): Likewise.
36877         (CFLAGS-tst-printf.c): Likewise.
36878         (CFLAGS-tst-printfsz.c): Likewise.
36879
36880 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36881
36882         * include/cpio.h: New file.
36883         * include/fmtmsg.h: Likewise.
36884
36885         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
36886         corresponding format argument to size_t.
36887         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
36888         arguments.
36889         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
36890         corresponding format argument to size_t.
36891         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
36892         arguments.
36893         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
36894         corresponding format argument to size_t.
36895         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
36896         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
36897         (CFLAGS-tst-mbswcs2.c): Likewise.
36898         (CFLAGS-tst-mbswcs3.c): Likewise.
36899         (CFLAGS-tst-mbswcs4.c): Likewise.
36900         (CFLAGS-tst-mbswcs5.c): Likewise.
36901         (CFLAGS-tst-trans.c): Likewise.
36902
36903 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36904
36905         * posix/regexbug1.c (main): Use "%s" format with regerror results,
36906         rather than assuming they won't contain any '%'s.
36907
36908 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
36909
36910         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
36911         inhibit_loop_to_libcall to avoid recursive calls.
36912         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
36913         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
36914
36915 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36916
36917         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
36918         prototype.
36919
36920 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36921
36922         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
36923         integer value instead of boolean.
36924
36925 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36926
36927         * malloc/malloc.c: Fix powerof2 check.
36928
36929 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36930
36931         * locale/programs/locfile.h (maybe_swap_uint32):
36932         Remove inline and add unused attribute.
36933
36934 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36935
36936         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
36937         Truncating assembler expression to a .long expression.
36938
36939 2014-12-11  Andreas Schwab  <schwab@suse.de>
36940
36941         * elf/rtld.c (struct map_args): Constify str member.
36942         (do_preload): Constify fname argument.
36943
36944 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36945
36946         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
36947         constants definition.
36948
36949 2014-12-11  Andreas Schwab  <schwab@suse.de>
36950
36951         [BZ #16657]
36952         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
36953         FORCE_ELISION instead of DO_ELISION.
36954         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
36955         Remove.
36956         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
36957         Likewise.
36958
36959         * iconvdata/gconv-modules: Remove duplicate entry.
36960
36961 2014-12-11  Will Newton  <will.newton@linaro.org>
36962
36963         Merge gettext 0.19.3 into intl/.
36964
36965         This involves a number of cosmetic changes to comments
36966         and ANSI function definitions and prototypes throughout
36967         all the files. The gettext copyright header is used but
36968         with the date ranges taken from the glibc copy.
36969
36970         * NEWS: Add gettext merge to 2.21.
36971         * intl/bindtextdom.c: Switch to gettext copyright.
36972         Use ANSI definitions and prototypes.
36973         Use gl_* locking primitives rather than __libc_* ones.
36974         Use __builtin_expect rather than __glibc_likely/unlikely.
36975         * intl/dcgettext.c: Switch to gettext copyright.
36976         Use ANSI definitions and prototypes.
36977         * intl/dcigettext.c: Switch to gettext copyright.
36978         Use ANSI definitions and prototypes.
36979         (INTDIV0_RAISES_SIGFPE): New define.
36980         Use gl_* locking primitives rather than __libc_* ones.
36981         Include eval-plural.h instead of plural-eval.c.
36982         Use __builtin_expect rather than __glibc_likely/unlikely.
36983         * intl/dcngettext.c: Switch to gettext copyright.
36984         Use ANSI definitions and prototypes.
36985         * intl/dgettext.c: Likewise.
36986         * intl/dngettext.c: Likewise.
36987         * intl/plural-eval.c: Renamed to...
36988         * intl/eval-plural.h: ...this.
36989         * intl/explodename.c: Switch to gettext copyright.
36990         Use ANSI definitions and prototypes.
36991         (_nl_explode_name): Use strchr instead of __rawmemchr.
36992         * intl/finddomain.c: Switch to gettext copyright.
36993         Use ANSI definitions and prototypes.
36994         Use gl_* locking primitives rather than __libc_* ones.
36995         (_nl_find_domain): Use malloc rather than alloca for
36996         allocation of temporary locale name.
36997         * intl/gettext.c: Switch to gettext copyright.
36998         Use ANSI definitions and prototypes.
36999         * intl/gettextP.h: Switch to gettext copyright.
37000         Use ANSI definitions and prototypes.
37001         Use gl_* locking primitives rather than __libc_* ones.
37002         * intl/gmo.h: Switch to gettext copyright.
37003         (struct sysdep_string): Move struct segment_pair outside of
37004         struct definition.
37005         * intl/hash-string.c: Use ANSI definitions and prototypes.
37006         * intl/hash-string.h: Switch to gettext copyright.
37007         Use ANSI definitions and prototypes.
37008         * intl/l10nflist.c: Switch to gettext copyright.
37009         Use ANSI definitions and prototypes.
37010         (_nl_normalize_codeset): Avoid integer overflow.
37011         * intl/loadinfo.h: Switch to gettext copyright.
37012         Use ANSI definitions and prototypes.
37013         (LIBINTL_DLL_EXPORTED): New define.
37014         (PATH_SEPARATOR): New define.
37015         * intl/loadmsgcat.c: Switch to gettext copyright.
37016         * intl/localealias.c: Switch to gettext copyright.
37017         Use ANSI definitions and prototypes.
37018         (_nl_expand_alias): Use PATH_SEPARATOR.
37019         * intl/ngettext.c: Switch to gettext copyright.
37020         Use ANSI definitions and prototypes.
37021         * intl/plural-exp.c: Likewise.
37022         * intl/plural-exp.h: Switch to gettext copyright.
37023         Use ANSI definitions and prototypes.
37024         (struct expression): Move definition of enum operator outside
37025         of struct definition.
37026         * intl/plural.c: Regenerate.
37027         * intl/plural.y: Switch to gettext copyright.
37028         Use ANSI definitions and prototypes.
37029         Port to bison 3.0.
37030         * intl/textdomain.c: Switch to gettext copyright.
37031         Use ANSI definitions and prototypes.
37032         Use gl_* locking primitives rather than __libc_* ones.
37033
37034 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
37035
37036         * debug/warning-nop.c: Add used atrribute.
37037
37038 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37039
37040         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
37041
37042         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
37043         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
37044         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
37045
37046 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37047             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37048
37049         [BZ #17634]
37050         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
37051         Undefine after defining function.  Define as weak alias of
37052         __wcschr.  Use libc_hidden_weak.
37053         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
37054         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
37055         (libc_hidden_def): Also define __GI___wcschr alias.
37056         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
37057         __wcschr and define as weak alias of __wcschr.
37058         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
37059         __wcschr.
37060         [!WCSCHR] (DEFAULT_WCSCHR): Define.
37061         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
37062         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
37063         libc_hidden_weak.  Do not use libc_hidden_def.
37064         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
37065         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
37066         __GI___wcschr alias.
37067         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
37068         [IS_IN (libc)] (wcschr): Define as macro expanding to
37069         __redirect_wcschr.
37070         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
37071         [IS_IN (libc)] (__wcschr_power6): Likewise.
37072         [IS_IN (libc)] (__wcschr_power7): Likewise.
37073         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
37074         instead of wcschr.
37075         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
37076         __libc_wcschr.
37077         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
37078         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
37079         __wcschr and define as weak alias of __wcschr.  Use
37080         libc_hidden_builtin_def.
37081         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
37082         as weak alias of __wcschr.  Use libc_hidden_weak.
37083         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
37084         wcschr.
37085         * time/era.c (_nl_init_era_entries): Likewise.
37086         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
37087         variable.
37088         (test-xfail-XPG3/time.h/linknamespace): Likewise.
37089         (test-xfail-XPG4/time.h/linknamespace): Likewise.
37090
37091 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37092
37093         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
37094         format for long int variable.
37095
37096 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
37097
37098         [BZ #10672]
37099         * manual/search.texi: (Array Sort Function): Remove claim how to make
37100         qsort stable.
37101
37102 2014-12-10  Andreas Schwab  <schwab@suse.de>
37103
37104         [BZ #12847]
37105         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
37106         user-controlled locks.
37107
37108 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
37109
37110         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
37111         register.
37112
37113 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37114
37115         * configure.ac (--disable-werror): New configure option.
37116         (enable_werror): New AC_SUBST.
37117         * configure: Regenerated.
37118         * config.make.in (enable-werror): New variable.
37119         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
37120         -Wno-error=undef.
37121         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
37122         * manual/install.texi (Configuring and compiling): Document
37123         --disable-werror.
37124         * INSTALL: Regenerated.
37125         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
37126         (CFLAGS-tst-chk2.c): Likewise.
37127         (CFLAGS-tst-chk3.c): Likewise.
37128         (CFLAGS-tst-chk4.cc): Likewise.
37129         (CFLAGS-tst-chk5.cc): Likewise.
37130         (CFLAGS-tst-chk6.cc): Likewise.
37131         (CFLAGS-tst-lfschk1.c): Likewise.
37132         (CFLAGS-tst-lfschk2.c): Likewise.
37133         (CFLAGS-tst-lfschk3.c): Likewise.
37134         (CFLAGS-tst-lfschk4.cc): Likewise.
37135         (CFLAGS-tst-lfschk5.cc): Likewise.
37136         (CFLAGS-tst-lfschk6.cc): Likewise.
37137
37138         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
37139         (main): Disable -Wdeprecated-declarations around calls to
37140         register_printf_function.
37141
37142         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
37143         (do_test): Disable -Wdiv-by-zero around some calls to
37144         fwrite_unlocked and fread_unlocked.
37145
37146         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
37147         (DIAG_POP_NEEDS_COMMENT): Likewise.
37148         (_DIAG_STR1): Likewise.
37149         (_DIAG_STR): Likewise.
37150         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
37151         * stdio-common/bug21.c: Include <libc-internal.h>.
37152         (do_test): Disable -Wformat around call to sscanf.
37153         * stdio-common/scanf14.c: Include <libc-internal.h>.
37154         (main): Disable -Wformat around some calls to scanf functions.
37155
37156 2014-12-09  Torvald Riegel  <triegel@redhat.com>
37157
37158         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
37159
37160 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37161
37162         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
37163         stack variable alignment.
37164
37165 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
37166
37167         [BZ #17682]
37168         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
37169         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
37170         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
37171         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
37172         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
37173         __getrlimit instead of getrlimit.
37174         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
37175         __gettimeofday instead of gettimeofday.
37176         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
37177         Likewise.
37178         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
37179         Likewise.
37180         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37181         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
37182         Remove variable.
37183         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
37184         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
37185
37186 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37187
37188         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
37189         for wide-character tests.
37190
37191 2014-12-04  Roland McGrath  <roland@hack.frob.com>
37192
37193         * io/openat64.c: #include <libc-internal.h>
37194         (__openat64): Prototypify.  Use ignore_value on MODE.
37195         * io/openat.c: Likewise.
37196         * misc/reboot.c: #include <libc-internal.h>
37197         (reboot): Prototypify.  Use ignore_value on HOWTO.
37198         * misc/ptrace.c: #include <libc-internal.h>
37199         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
37200
37201 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
37202
37203         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
37204         XPG4, UNIX98 and XOPEN2K.
37205         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
37206         Remove variable.
37207         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
37208
37209 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37210
37211         * libio/fileops.c: Use ISO C style for function definitions.
37212         * libio/iofopen.c: Likewise.
37213         * libio/wfileops.c: Likewise.
37214
37215         [BZ #17653]
37216         * libio/fileops.c (_IO_new_file_underflow): Unset cached
37217         offset on EOF.
37218         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
37219         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
37220         (fgets_func): Function pointer to fgets and fgetws.
37221         (do_ftell_test): Add test to verify ftell value after read
37222         EOF.
37223         (do_test): Set fgets_func.
37224
37225         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
37226         O_TRUNC flag for w and w+ modes.
37227         (do_rewind_test): Likewise.
37228         (do_ftell_test): Likewise.
37229         (do_write_test): Likewise.
37230
37231         [BZ #17647]
37232         * libio/fileops.c (do_ftell): Seek only when there are
37233         unflushed writes.
37234         * libio/wfileops.c (do_ftell_wide): Likewise.
37235         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
37236         test case.
37237         (do_one_test): Call it.
37238
37239 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
37240
37241         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
37242         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
37243         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
37244         Remove variable.
37245         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
37246         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
37247         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
37248
37249 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37250
37251         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
37252         Remove variable.
37253         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
37254
37255         [BZ #17668]
37256         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
37257         as weak alias of __getifaddrs.  Use libc_hidden_weak.
37258         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37259         __freeifaddrs.  Use libc_hidden_weak.
37260         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
37261         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
37262         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37263         __freeifaddrs.  Use libc_hidden_weak.
37264         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
37265         __getifaddrs and define as weak alias of __getifaddrs.  Use
37266         libc_hidden_weak.
37267         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37268         __freeifaddrs.  Use libc_hidden_weak.
37269         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
37270         Remove variable.
37271         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
37272         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
37273
37274 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
37275
37276         [BZ #17601]
37277         * sysdeps/mips/start.S (__start): Use indirect jump to call
37278         __libc_start_main.
37279
37280 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37281
37282         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
37283
37284         * nptl/tst-mutex1.c: Include <stdbool.h>.
37285         [!ATTR] (ATTR_NULL): New macro.
37286         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
37287         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
37288         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
37289
37290         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
37291         to char *.
37292
37293         [BZ #17665]
37294         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
37295         Change conditional to [__USE_MISC].
37296
37297         [BZ #17664]
37298         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
37299         fgets_unlocked.
37300         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
37301         __fgets_unlocked.
37302         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
37303         fgets_unlocked.
37304         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
37305         Remove variable.
37306         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37307         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37308         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37309         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37310         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37311         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37312         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37313         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37314         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37315
37316         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
37317
37318 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37319
37320         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37321         Remove strpbrk objects.
37322         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37323         (__libc_ifunc_impl_list): Remove strpbrk implementation.
37324         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
37325         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
37326         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
37327         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
37328
37329         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37330         Remove strcspn objects.
37331         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37332         (__libc_ifunc_impl_list): Remove strcspn implementation.
37333         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
37334         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
37335         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
37336         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
37337
37338         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37339         Remove strspn objetcs.
37340         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37341         (__libc_ifunc_impl_list): Remove strspn implementation.
37342         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
37343         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37344         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
37345         * sysdeps/powerpc/powerpc64/strspn.S: New file.
37346
37347 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
37348
37349         [BZ #17581]
37350         * malloc/hooks.c
37351         (mem2mem_check): Add a terminator to the chain of checking blocks.
37352         (malloc_check_get_size): Use it here.
37353         (mem2chunk_check): Ditto.
37354
37355 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37356
37357         * sysdeps/powerpc/powerpc64/strtok.S: New file.
37358         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
37359
37360 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
37361
37362         * bits/ioctl-types.h: Indent preprocessor directives correctly.
37363
37364         * nptl/nptl-init.c: Include libc-internal.h.
37365         (__pthread_initialize_minimal_internal): Use ROUND_UP.
37366
37367         * elf/ldconfig.c (search_dir): Expand comment.
37368
37369 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
37370
37371         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
37372         variable.
37373         (linknamespace-symlist-stdlibs-tests): Likewise.
37374         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
37375         instead of $(objpfx)symlist-stdlibs.
37376         (linknamespace-libs-isoc): New variable.
37377         (linknamespace-libs): Use $(linknamespace-libs-isoc).
37378         (linknamespace-libs-ISO): New variable.
37379         (linknamespace-libs-ISO99): Likewise.
37380         (linknamespace-libs-ISO11): Likewise.
37381         (linknamespace-libs-XPG3): Likewise.
37382         (linknamespace-libs-XPG4): Likewise.
37383         (linknamespace-libs-POSIX): Likewise.
37384         (linknamespace-libs-UNIX98): Likewise.
37385         (linknamespace-libs-XOPEN2K): Likewise.
37386         (linknamespace-libs-POSIX2008): Likewise.
37387         (linknamespace-libs-XOPEN2K8): Likewise.
37388         ($(objpfx)symlist-stdlibs): Replace by
37389         $(linknamespace-symlist-stdlibs-tests).  Use
37390         $(linknamespace-libs-$*) as set of libraries.
37391         ($(linknamespace-header-tests)): Update dependencies.  Use
37392         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
37393         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
37394         * conform/linknamespace.pl: Remove comment about considering
37395         definitions of symbols from irrelevant libraries.
37396
37397 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
37398
37399         [BZ #13862]
37400         * elf/dl-tls.c: Include <atomic.h>.
37401         (oom): Remove #ifdef SHARED/#endif.
37402         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
37403         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
37404         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
37405         big enough.
37406         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
37407         * nptl/Makefile (tests): Add tst-stack4.
37408         (modules-names): Add tst-stack4mod.
37409         ($(objpfx)tst-stack4): New.
37410         (tst-stack4mod.sos): Likewise.
37411         ($(objpfx)tst-stack4.out): Likewise.
37412         ($(tst-stack4mod.sos)): Likewise.
37413         (clean): Likewise.
37414         * nptl/tst-stack4.c: New file.
37415         * nptl/tst-stack4mod.c: Likewise.
37416
37417 2014-11-27  J. Brown  <jb999@gmx.de>
37418
37419         * sysdeps/x86/bits/string.h: Add recent CPUs.
37420
37421 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37422
37423         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
37424         sigblock.
37425
37426         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
37427         feof.
37428
37429         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
37430         variable.
37431
37432 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
37433
37434         * nscd/connections.c: Include libc-internal.h because of macro
37435         usage ignore_value.
37436
37437 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37438
37439         * string/bits/string3.h (__warn_memset_zero_len): Don't
37440         declare for gcc newer than 5.0.
37441         (memset): Don't test for zero-length __LEN for gcc newer than
37442         5.0.
37443
37444 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37445
37446         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
37447         size_t for %zu format.
37448
37449         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
37450         difference, not %ju.
37451
37452 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37453
37454         * include/libc-internal.h (ignore_value): New macro.
37455         * nscd/connections.c (restart): Wrap calls to setuid and setgid
37456         with ignore_value.
37457
37458         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
37459         definition.
37460
37461         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
37462         pthread_cleanup_push to void *.
37463
37464         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
37465         Undefine.
37466
37467         [BZ #16619]
37468         [BZ #16740]
37469         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
37470         instead of 1L << 52.
37471
37472         * libio/bug-rewind.c (do_test): Check fwscanf return values.
37473         * libio/bug-rewind2.c (do_test): Likewise.
37474
37475         * debug/test-stpcpy_chk-ifunc.c: Remove file.
37476         * debug/test-strcpy_chk-ifunc.c: Likewise.
37477         * wcsmbs/test-wcschr-ifunc.c: Likewise.
37478         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
37479         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
37480         * wcsmbs/test-wcslen-ifunc.c: Likewise.
37481         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
37482         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
37483         * Rules [$(multi-arch) = no] (tests): Do not filter out
37484         $(tests-ifunc).
37485         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
37486         * debug/Makefile (tests-ifunc): Remove variable.
37487         (tests): Do not add $(tests-ifunc).
37488         * wcsmbs/Makefile (tests-ifunc): Remove variable.
37489         (tests): Do not add $(tests-ifunc).
37490         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
37491         [TEST_IFUNC]: Remove conditionals.
37492         * string/test-string.h (TEST_IFUNC): Remove macro.
37493         [TEST_IFUNC]: Remove conditionals.
37494
37495         * string/test-strchr.c [!WIDE] (L): New macro.
37496         [WIDE] (L): Likewise.
37497         (check1): Use CHAR instead of char.  Use L on string and character
37498         constants.
37499
37500 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
37501
37502         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
37503         tests.
37504         * sysdeps/powerpc/bits/atomic.h
37505         (__arch_atomic_exchange_and_add_32_acq): Add definition.
37506         (__arch_atomic_exchange_and_add_32_rel): Likewise.
37507         (atomic_exchange_and_add_acq): Likewise.
37508         (atomic_exchange_and_add_rel): Likewise.
37509         * sysdeps/powerpc/powerpc32/bits/atomic.h
37510         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37511         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37512         * sysdeps/powerpc/powerpc64/bits/atomic.h
37513         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37514         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37515
37516 2014-11-26  Torvald Riegel  <triegel@redhat.com>
37517
37518         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
37519         Change synchronization of __sched_fifo_min_prio and
37520         __sched_fifo_max_prio.
37521         * nptl/pthread_mutexattr_getprioceiling.c
37522         (pthread_mutexattr_getprioceiling): Likewise.
37523         * nptl/pthread_mutexattr_setprioceiling.c
37524         (pthread_mutexattr_setprioceiling): Likewise.
37525         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
37526         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
37527         Likewise.
37528
37529 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37530
37531         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
37532         void.
37533
37534 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37535
37536         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
37537         third argument const.
37538
37539 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37540
37541         fnmatch: work around GCC compiler warning bug with uninit var
37542         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
37543         This works around a bug with x86-64 GCC 4.9.2 and earlier
37544         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
37545         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
37546         used uninitialized in this function [-Wmaybe-uninitialized]".
37547
37548 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37549
37550         * posix/bug-regex31.c (main): Return RES not 0.
37551
37552 2014-11-25  Anton Blanchard <anton@samba.org>
37553
37554         * sysdeps/powerpc/bits/atomic.h
37555         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
37556
37557 2014-11-24  Sterling Augustine  <saugustine@google.com>
37558
37559         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
37560
37561 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
37562
37563         [BZ #17608]
37564         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
37565
37566 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
37567
37568         [BZ #17633]
37569         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
37570         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
37571         variable.
37572         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37573         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37574
37575 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37576
37577         * string/strncpy.c (strncpy): Improve performance by using memset.
37578
37579 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37580
37581         * string/strcpy.c (strcpy):
37582         Improve performance by using strlen and memcpy.
37583
37584 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
37585
37586         * string/strcoll_l.c (get_next_seq): __always_inline.
37587         * string/strcoll_l.c (do_compare): __always_inline.
37588
37589 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37590
37591         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
37592         defined.
37593         * include/mqueue.h: Likewise.
37594         * include/stdlib.h: Likewise.
37595
37596         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
37597         (get_null_defines): Adjust.
37598         * sunrpc/Makefile: Adjust comment.
37599         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
37600         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
37601         (CFLAGS-interp.c): Likewise.
37602         (CFLAGS-ldconfig.c): Likewise.
37603         (CPPFLAGS-.os): Likewise.
37604         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37605         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37606         * extra-modules.mk (extra-modules.mk): Likewise.
37607         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
37608         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
37609         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
37610         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
37611         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
37612         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
37613         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
37614         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
37615         * iconvdata/Makefile (CPPFLAGS): Likewise.
37616         (cpp-srcs-left): Add libof for all iconvdata routines.
37617         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
37618         * include/assert.h: Likewise.
37619         * include/ctype.h: Likewise.
37620         * include/errno.h: Likewise.
37621         * include/libc-symbols.h: Likewise.
37622         * include/math.h: Likewise.
37623         * include/netdb.h: Likewise.
37624         * include/resolv.h: Likewise.
37625         * include/stdio.h: Likewise.
37626         * include/stdlib.h: Likewise.
37627         * include/string.h: Likewise.
37628         * include/sys/stat.h: Likewise.
37629         * include/wctype.h: Likewise.
37630         * intl/l10nflist.c: Likewise.
37631         * libidn/idn-stub.c: Likewise.
37632         * libio/libioP.h: Likewise.
37633         * nptl/libc_multiple_threads.c: Likewise.
37634         * nptl/pthreadP.h: Likewise.
37635         * posix/regex_internal.h: Likewise.
37636         * resolv/res_hconf.c: Likewise.
37637         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
37638         * sysdeps/arm/memmove.S: Likewise.
37639         * sysdeps/arm/sysdep.h: Likewise.
37640         * sysdeps/generic/_itoa.h: Likewise.
37641         * sysdeps/generic/symbol-hacks.h: Likewise.
37642         * sysdeps/gnu/errlist.awk: Likewise.
37643         * sysdeps/gnu/errlist.c: Likewise.
37644         * sysdeps/i386/i586/memcpy.S: Likewise.
37645         * sysdeps/i386/i586/memset.S: Likewise.
37646         * sysdeps/i386/i686/memcpy.S: Likewise.
37647         * sysdeps/i386/i686/memmove.S: Likewise.
37648         * sysdeps/i386/i686/mempcpy.S: Likewise.
37649         * sysdeps/i386/i686/memset.S: Likewise.
37650         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37651         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37652         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
37653         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
37654         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37655         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37656         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
37657         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37658         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37659         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37660         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37661         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37662         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37663         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37664         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37665         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37666         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
37667         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
37668         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
37669         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37670         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37671         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37672         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37673         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37674         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37675         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37676         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
37677         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37678         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
37679         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
37680         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37681         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37682         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37683         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37684         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37685         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
37686         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37687         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37688         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
37689         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
37690         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37691         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37692         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
37693         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
37694         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37695         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37696         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
37697         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
37698         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37699         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
37700         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37701         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
37702         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
37703         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37704         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
37705         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
37706         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37707         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
37708         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
37709         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37710         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
37711         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37712         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
37713         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37714         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37715         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
37716         * sysdeps/posix/closedir.c: Likewise.
37717         * sysdeps/posix/opendir.c: Likewise.
37718         * sysdeps/posix/readdir.c: Likewise.
37719         * sysdeps/posix/rewinddir.c: Likewise.
37720         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
37721         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
37722         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
37723         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
37724         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
37725         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
37726         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
37727         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
37728         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
37729         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
37730         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
37731         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
37732         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
37733         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
37734         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
37735         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
37736         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
37737         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
37738         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
37739         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
37740         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
37741         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
37742         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
37743         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
37744         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
37745         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
37746         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
37747         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
37748         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
37749         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
37750         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
37751         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
37752         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
37753         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
37754         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
37755         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
37756         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
37757         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
37758         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
37759         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
37760         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
37761         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
37762         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
37763         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
37764         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
37765         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
37766         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
37767         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
37768         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
37769         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
37770         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
37771         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
37772         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
37773         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
37774         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
37775         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
37776         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
37777         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
37778         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
37779         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
37780         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
37781         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
37782         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
37783         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
37784         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
37785         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
37786         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
37787         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
37788         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
37789         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
37790         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
37791         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
37792         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
37793         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
37794         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
37795         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
37796         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
37797         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
37798         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37799         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
37800         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
37801         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
37802         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
37803         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
37804         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
37805         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
37806         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
37807         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
37808         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
37809         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
37810         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
37811         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
37812         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
37813         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
37814         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
37815         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
37816         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
37817         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37818         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
37819         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
37820         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37821         * sysdeps/unix/alpha/sysdep.S: Likewise.
37822         * sysdeps/unix/alpha/sysdep.h: Likewise.
37823         * sysdeps/unix/make-syscalls.sh: Likewise.
37824         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37825         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37826         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37827         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
37828         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37829         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
37830         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
37831         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37832         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37833         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
37834         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37835         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37836         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37837         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37838         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37839         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
37840         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37841         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37842         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37843         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37844         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
37845         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37846         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37847         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37848         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37849         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37850         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37853         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
37854         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37855         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37856         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
37857         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37858         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
37859         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37860         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
37861         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37862         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
37863         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
37864         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37865         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37866         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37867         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
37868         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37869         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37870         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37871         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37872         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37873         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37874         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37875         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37876         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37877         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37878         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
37879         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37880         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37881         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37882         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
37883         * sysdeps/x86_64/memcpy.S: Likewise.
37884         * sysdeps/x86_64/memmove.c: Likewise.
37885         * sysdeps/x86_64/memset.S: Likewise.
37886         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
37887         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
37888         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
37889         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
37890         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
37891         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
37892         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37893         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
37894         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
37895         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
37896         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
37897         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
37898         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
37899         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37900         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37901         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
37902         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
37903         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
37904         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
37905         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
37906         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
37907         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
37908         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
37909         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
37910         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
37911         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
37912         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
37913         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
37914         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
37915         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
37916         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
37917         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
37918         * sysdeps/x86_64/strcmp.S: Likewise.
37919
37920         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
37921
37922         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
37923         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
37924         * elf/rtld-Rules: Likewise.
37925         * elf/setup-vdso.h: Likewise.
37926         * include/assert.h: Likewise.
37927         * include/bits/stdlib-float.h: Likewise.
37928         * include/errno.h: Likewise.
37929         * include/sys/stat.h: Likewise.
37930         * include/unistd.h: Likewise.
37931         * sysdeps/aarch64/setjmp.S: Likewise.
37932         * sysdeps/alpha/setjmp.S: Likewise.
37933         * sysdeps/arm/__longjmp.S: Likewise.
37934         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
37935         * sysdeps/arm/setjmp.S: Likewise.
37936         * sysdeps/arm/sysdep.h: Likewise.
37937         * sysdeps/generic/_itoa.h: Likewise.
37938         * sysdeps/generic/dl-sysdep.h: Likewise.
37939         * sysdeps/generic/ldsodefs.h: Likewise.
37940         * sysdeps/i386/dl-tls.h: Likewise.
37941         * sysdeps/i386/setjmp.S: Likewise.
37942         * sysdeps/m68k/setjmp.c: Likewise.
37943         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
37944         * sysdeps/mach/hurd/opendir.c: Likewise.
37945         * sysdeps/posix/getcwd.c: Likewise.
37946         * sysdeps/posix/opendir.c: Likewise.
37947         * sysdeps/posix/profil.c: Likewise.
37948         * sysdeps/powerpc/dl-procinfo.h: Likewise.
37949         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
37950         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
37951         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
37952         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
37953         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
37954         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
37955         * sysdeps/s390/dl-tls.h: Likewise.
37956         * sysdeps/s390/s390-32/setjmp.S: Likewise.
37957         * sysdeps/s390/s390-64/setjmp.S: Likewise.
37958         * sysdeps/sh/sh3/setjmp.S: Likewise.
37959         * sysdeps/sh/sh4/setjmp.S: Likewise.
37960         * sysdeps/unix/alpha/sysdep.h: Likewise.
37961         * sysdeps/unix/arm/sysdep.S: Likewise.
37962         * sysdeps/unix/i386/sysdep.S: Likewise.
37963         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37964         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
37965         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37966         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37967         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37968         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37969         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
37970         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37971         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37972         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37973         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
37974         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37975         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37978         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37979         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37980         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37981         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37982         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37983         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37984         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37985         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37986         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37987         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37988         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37989         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37990         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37991         * sysdeps/x86_64/setjmp.S: Likewise.
37992
37993         * include/math.h: Use IS_IN instead of IS_IN_libm.
37994         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
37995         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37996         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37997         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
37998         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37999         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
38000         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
38001         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38002         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38003         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
38004         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
38005         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
38006         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
38007         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
38008         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
38009         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
38010         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
38011         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
38012         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
38013         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
38014         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
38015         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
38016         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
38017         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
38018         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
38019         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
38020         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
38021         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
38022         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
38023         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
38024         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
38025         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
38026         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
38027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
38028         Likewise.
38029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
38030         Likewise.
38031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
38032         Likewise.
38033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
38034         Likewise.
38035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
38036         Likewise.
38037         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
38038         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
38039         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
38040         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38041         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
38042         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
38043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
38044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
38045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
38046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
38047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
38048         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
38049         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
38050         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
38051         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
38052         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
38053         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
38054         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
38055         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
38056         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
38057         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
38058         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
38059         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
38060         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
38061         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
38062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
38063         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
38064
38065         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
38066         * nptl/pthreadP.h: Likewise.
38067         * nptl_db/structs.def: Likewise.
38068         * sysdeps/arm/sysdep.h: Likewise.
38069         * sysdeps/nptl/bits/libc-lock.h: Likewise.
38070         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
38071         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
38072         * sysdeps/unix/alpha/sysdep.h: Likewise.
38073         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38074         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38075         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38076         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38077         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38078         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38079         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38080         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38081         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38082         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38083         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38084         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38085         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38086         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
38088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
38089         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38090         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38091         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38092         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38093         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38094         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38095         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38096         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38097         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
38098         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38099
38100         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
38101         * nptl/pthreadP.h: Likewise.
38102         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38103         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38104         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38105         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38106         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38107         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38108         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38109         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38110         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38111         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38112         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38113         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38115         Likewise.
38116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38117         Likewise.
38118         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38119         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38120         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38121         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38122         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38123         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38124         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38125         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38126
38127         * dlfcn/dladdr.c: Use IS_IN.
38128         * dlfcn/dladdr1.c: Likewise.
38129         * dlfcn/dlclose.c: Likewise.
38130         * dlfcn/dlerror.c: Likewise.
38131         * dlfcn/dlinfo.c: Likewise.
38132         * dlfcn/dlmopen.c: Likewise.
38133         * dlfcn/dlopen.c: Likewise.
38134         * dlfcn/dlsym.c: Likewise.
38135         * dlfcn/dlvsym.c: Likewise.
38136
38137         * include/ifaddrs.h: Use IS_IN.
38138         * inet/check_pf.c: Likewise.
38139         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
38140         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
38141
38142         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
38143         IS_IN_ldconfig.
38144         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
38145         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
38146
38147         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
38148         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
38149         IS_IN (libc).
38150
38151         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
38152
38153         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
38154         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38155         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
38156         * include/libc-symbols.h (IS_IN_LIB): New macro.
38157         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
38158         * include/netdb.h: Likewise.
38159         * include/stap-probe.h: Remove all uses of IN_LIB.
38160
38161         * Makeconfig (module-cppflags-real): Define MODULE_NAME
38162         instead of IN_MODULE.
38163         * include/libc-symbols.h (IN_MODULE): Define using
38164         MODULE_NAME.
38165         (PASTE_NAME, PASTE_NAME1): New macros.
38166         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
38167         of IN_LIB.
38168         (STAP_PROBE_ASM): Likewise.
38169
38170 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38171
38172         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
38173         __mach_init in dlopened libc.
38174
38175 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
38176
38177         * sysdeps/arm/preconfigure.ac: Delete EABI check.
38178         * sysdeps/arm/preconfigure: Regenerate.
38179
38180 2014-11-21  Roland McGrath  <roland@hack.frob.com>
38181
38182         * nptl/pthread_create.c (__pthread_create_2_1): Set
38183         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
38184         when copying values from IATTR into PD.
38185
38186 2014-11-21  Will Newton  <will.newton@linaro.org>
38187             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
38188
38189         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
38190         Refactor inline-asm.  Also add comment.
38191
38192         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
38193         ElfW macro instead of hardcoded Elf64 types.
38194         (la_aarch64_gnu_pltenter): Likewise.
38195         * sysdeps/aarch64/dl-machine.h
38196         (elf_machine_runtime_setup): Use ElfW(Addr).
38197
38198         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
38199         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
38200         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
38201         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
38202         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
38203         (R_AARCH64_TLS_DTPMOD64): Rename to ..
38204         (R_AARCH64_TLS_DTPMOD): This.
38205         (R_AARCH64_TLS_DTPREL64): Rename to ...
38206         (R_AARCH64_TLS_DTPREL): This.
38207         (R_AARCH64_TLS_TPREL64): Rename to ...
38208         (R_AARCH64_TLS_TPREL): This.
38209         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
38210         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
38211         R_AARCH64_TLS_TPREL64.
38212         (elf_machine_rela): Likewise.
38213
38214 2014-11-21  Torvald Riegel  <triegel@redhat.com>
38215
38216         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
38217         by setting it to 0.  64b atomics are not supported currently.
38218
38219 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38220
38221         [BZ #16469]
38222         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
38223         search domain names.
38224
38225 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38226
38227         [BZ #16469]
38228         * NEWS: Update.
38229         * resolv/res_query.c (__libc_res_nquerydomain): Retain
38230         trailing dot.
38231         * posix/tst-getaddrinfo5.c: New.
38232         * posix/Makefile (tests): Add it.
38233
38234 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38235
38236         [BZ #14498]
38237         * NEWS: Fixed.
38238         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
38239         after parsing line but before break_if_match.
38240         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
38241         if there is a protocol mismatch.
38242
38243 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
38244
38245         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
38246         because the potential race is on the user-supplied stream.
38247
38248 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38249
38250         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
38251         string literal if not passed a buffer.
38252         * manual/job.texi (ctermid): Update reasoning, note deviation
38253         from posix, suggest mtasurace when not passed a buffer, for
38254         future non-preliminary safety notes.
38255
38256 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38257
38258         * manual/users.texi (cuserid): Fix MT-Safety note for the case
38259         of not passing it a buffer.
38260         Reported by Peng Haitao.
38261
38262 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38263
38264         * manual/Makefile ($(objpfx)stamp-summary): Require
38265         check-safety.sh to pass.
38266         * manual/check-safety.sh: Wish for verification that every
38267         @deftypefn and @deftypefun is followed by a @safety remark.
38268
38269 2014-11-20  Roland McGrath  <roland@hack.frob.com>
38270
38271         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
38272
38273         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
38274         PTHREAD_CANCEL_ASYNCHRONOUS.
38275         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
38276         send SIGCANCEL.
38277
38278         * nptl/default-sched.h: New file.
38279         * sysdeps/unix/sysv/linux/default-sched.h: New file.
38280         * nptl/pthread_create.c: Include it.
38281         (__pthread_create_2_1): Use collect_default_sched instead of making
38282         Linux syscalls here directly.
38283
38284 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38285
38286         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
38287         __pthread_once): Use C11 atomics.
38288
38289 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38290
38291         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
38292
38293 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38294
38295         * include/atomic.h (__atomic_link_error, __atomic_check_size,
38296         atomic_thread_fence_acquire, atomic_thread_fence_release,
38297         atomic_thread_fence_seq_cst, atomic_load_relaxed,
38298         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
38299         atomic_compare_exchange_weak_relaxed,
38300         atomic_compare_exchange_weak_acquire,
38301         atomic_compare_exchange_weak_release,
38302         atomic_exchange_acquire, atomic_exchange_release,
38303         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
38304         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
38305         atomic_fetch_and_acquire,
38306         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
38307
38308 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38309
38310         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
38311         USE_ATOMIC_COMPILER_BUILTINS): Define.
38312         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
38313         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38314         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
38315         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38316         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
38317         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38318         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
38319         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38320         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
38321         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38322         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
38323         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38324         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
38325         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38326         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
38327         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38328         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38329         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38330         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38331         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38332         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
38333         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38334         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38335         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38336         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
38337         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38338         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38339         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38340         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
38341         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38342         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
38343         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38344         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
38345         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38346         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38347         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38348         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
38349         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38350         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
38351         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38352
38353 2014-11-19  Roland McGrath  <roland@hack.frob.com>
38354
38355         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
38356         the sched_priority value here.  It was already checked when the user
38357         called pthread_attr_setschedparam.
38358
38359         * nptl/tst-bad-schedattr.c: New file.
38360         * nptl/Makefile (tests): Add it.
38361
38362 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
38363             Florian Weimer  <fweimer@redhat.com>
38364             Joseph Myers  <joseph@codesourcery.com>
38365             Adam Conrad  <adconrad@0c3.net>
38366             Andreas Schwab  <schwab@suse.de>
38367             Brooks  <bmoses@google.com>
38368
38369         [BZ #17625]
38370         * wordexp-test.c (__dso_handle): Add prototype.
38371         (__register_atfork): Likewise.
38372         (__app_register_atfork): New function.
38373         (registered_forks): New global.
38374         (register_fork): New function.
38375         (test_case): Add 3 new tests for WRDE_CMDSUB.
38376         (main): Call __app_register_atfork.
38377         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
38378         fork count is non-zero fail the test.
38379         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
38380         is set.
38381         (parse_dollars): Remove check for WRDE_NOCMD.
38382         (parse_dquote): Likewise.
38383
38384 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
38385
38386         * Makeconfig (built-modules): List non-library modules to be
38387         built.
38388         (module-cppflags): Include libc-modules.h for
38389         everything except shlib-versions.v.i.
38390         (CPPFLAGS): Use it.
38391         (before-compile): Add libc-modules.h.
38392         ($(common-objpfx)libc-modules.h,
38393         $(common-objpfx)libc-modules.stmp): New targets.
38394         (common-generated): Add libc-modules.h and libc-modules.stmp.
38395         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
38396         * include/libc-symbols.h: Don't include libc-modules.h.
38397         * include/libc-modules.h: Remove file.
38398         * scripts/gen-libc-modules.awk: New script to generate
38399         libc-modules.h.
38400         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
38401         Depend on libc-modules.stmp.
38402
38403         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
38404
38405         * Makeconfig (in-module): Get value of libof set for the
38406         translation unit.
38407         (CPPFLAGS): Use $(in-module).
38408         * Makerules: Don't suffix routine names for nonlib.
38409         * include/libc-modules.h: New file.
38410         * include/libc-symbols.h: Include libc-modules.h
38411         (IS_IN): New macro to replace IS_IN_* macros.
38412         * elf/Makefile: Set libof-* for each routine.
38413         * elf/rtld-Rules: Likewise.
38414         * extra-modules.mk: Likewise.
38415         * iconv/Makefile: Likewise.
38416         * iconvdata/Makefile: Likewise.
38417         * locale/Makefile: Likewise.
38418         * malloc/Makefile: Likewise.
38419         * nss/Makefile: Likewise.
38420         * sysdeps/gnu/Makefile: Likewise.
38421         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
38422         * sysdeps/unix/sysv/linux/Makefile: Likewise.
38423         * sysdeps/s390/s390-64/Makefile: Likewise.
38424         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
38425         CPPFLAGS for nscd instead of nonlib.
38426
38427 2014-11-18  Roland McGrath  <roland@hack.frob.com>
38428
38429         * nptl/createthread.c: New file.
38430
38431         * nptl/createthread.c: Moved ...
38432         * sysdeps/unix/sysv/linux/createthread.c: ... here.
38433
38434         * nptl/createthread.c: Add proper top-line comment.
38435         (do_clone): Folded into ...
38436         (create_thread): ... here.  Take new arguments STOPPED_START and
38437         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
38438         increment __nptl_threads, do event-reporting logic, do
38439         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
38440         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
38441         resource cleanup if sched_setaffinity or sched_setscheduler fails,
38442         just send SIGCANCEL.
38443         * nptl/pthread_create.c: Forward-declare create_thread before
38444         including createthread.c.
38445         (start_thread): Use new macro START_THREAD_DEFN to replace defining
38446         declaration, and new macro START_THREAD_SELF to replace argument.
38447         Remove return statement.
38448         (report_thread_creation): New function.
38449         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
38450         synchronization logic, and __nptl_nthreads increment here, around
38451         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
38452         PD->parent_cancelhandling here, before create_thread.  When
38453         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
38454         __deallocate_stack, and ENOMEM translation here.
38455
38456 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
38457
38458         [BZ #17616]
38459         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
38460         (mptwo): Rename to __mptwo.
38461         (__inv): Use __mptwo instead of mptwo.
38462         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
38463         (mptwo): Rename to __mptwo.
38464         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
38465         of mpone and __mptwo instead of mptwo.
38466         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
38467         instead of mpone.
38468         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
38469         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
38470         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
38471         of mpone and __mptwo instead of mptwo.
38472         (__mpranred): Use __mpone instead of mpone.
38473         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
38474         variable.
38475         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38476         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38477         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38478         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38479         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38480         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38481         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38482         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38483         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38484         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38485         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38486         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38487         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38488         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38489         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38490         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38491         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38492         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38493         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38494
38495 2014-11-18  Tom de Vries  <tom@codesoucery.com>
38496
38497         * manual/signal.texi (Primitives Interrupted by Signals): In section,
38498         replace BSD Handler xref with BSD Signal Handling.
38499
38500 2014-11-17  Richard Henderson  <rth@redhat.com>
38501
38502         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
38503         (_FP_PACK_RAW_2): Remove.
38504         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
38505         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
38506         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
38507         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
38508         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
38509         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
38510         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
38511         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
38512         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
38513         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
38514         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
38515         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
38516         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
38517         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
38518         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
38519         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
38520
38521 2014-11-14  Roland McGrath  <roland@hack.frob.com>
38522
38523         * signal/signal.h [__USE_MISC]
38524         (struct sigvec): Remove type.
38525         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
38526         (sigvec): Remove declaration.
38527         * sysdeps/posix/sigvec.c: Moved ...
38528         * signal/sigvec.c: ... here, replacing old file.
38529         (struct sigvec): New type, copied from old signal.h definition.
38530         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
38531         (__sigvec): Convert definition to prototype.
38532         (sigvec): Replace weak_alias with compat_symbol.
38533         * signal/Versions (libc: GLIBC_2.21): New version set.
38534         * include/signal.h: Remove __sigvec declaration.
38535         * sysdeps/unix/bsd/sigvec.c: Remove file.
38536         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
38537         * manual/signal.texi (BSD Handler): Remove subsection.
38538         Move siginterrupt up to ...
38539         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
38540         (Blocking in BSD): Fold subsection into its parent.
38541         * NEWS: Mention sigvec removal.
38542
38543 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38544
38545         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
38546         (DLA_FMS): Make definition conditional only on [__FMA4__].
38547         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
38548         definition.
38549
38550         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
38551         Make definition conditional only on [PROF].
38552         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
38553         definition.
38554         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
38555         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
38556
38557         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
38558         !__GNUC__].
38559         * include/signal.h (__sigpause): Move declaration above call to
38560         libc_hidden_proto.
38561         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
38562         variable.
38563         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38564         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38565
38566 2014-11-14  David S. Miller  <davem@davemloft.net>
38567
38568         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
38569         Define before including <string/memcpy.c> and <string/mempcpy.c>.
38570
38571 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38572
38573         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
38574         * configure: Regenerated.
38575         * manual/install.texi (Tools for Compilation): Document a
38576         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
38577         compiler verified to work.
38578         * INSTALL: Regenerated.
38579
38580         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
38581         redeclare with asm name.
38582         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
38583         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
38584         including <string.h>.
38585         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38586         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
38587         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38588         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
38589         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38590         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
38591         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38592
38593 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
38594
38595         * stdlib/strtol.c (__strtol): Use prototype definition.
38596
38597         [BZ #17594]
38598         * stdlib/strtol.c (SYM__): New macro.
38599         (SYM__1): Likewise.
38600         (__strtol): Likewise.
38601         (strtol): Rename to __strtol and define as weak alias of
38602         __strtol.  Use libc_hidden_weak.
38603
38604 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38605
38606         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
38607         Use numbered labels in inline assembly.
38608
38609 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38610
38611         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
38612         Add setjmp LIBC_PROBE.
38613         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
38614         Likewise.
38615         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
38616         Add longjmp, longjmp_target LIBC_PROBE.
38617         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
38618         Likewise.
38619
38620 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38621
38622         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
38623         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
38624         to get rid of unused variable warning.
38625
38626 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38627
38628         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
38629         Check for unwind_backtrace ==  NULL only in SHARED case.
38630         (__backchain_backtrace): Compile only in SHARED case.
38631         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
38632         Likewise.
38633         (__backchain_backtrace): Declare as static.
38634
38635 2014-11-12  Roland McGrath  <roland@hack.frob.com>
38636
38637         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
38638         (__libc_multiple_threads_ptr): Variable moved ...
38639         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
38640
38641 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
38642
38643         * conform/GlibcConform.pm: New file.
38644         * conform/conformtest.pl: Use GlibcConform module.
38645         * conform/linknamespace.pl: New file.
38646         * conform/list-header-symbols.pl: Likewise.
38647         * conform/Makefile (linknamespace-symlists-base): New variable.
38648         (linknamespace-symlists-tests): Likewise.
38649         (linknamespace-header-base): Likewise.
38650         (linknamespace-header-tests): Likewise.
38651         (tests-special): Add new tests.
38652         ($(linknamespace-symlists-tests)): New rule.
38653         (linknamespace-libs): New variable.
38654         ($(objpfx)symlist-stdlibs): New rule.
38655         ($(linknamespace-header-tests)): Likewise.
38656         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
38657         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
38658         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
38659         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
38660         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
38661         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
38662         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
38663         (test-xfail-ISO/math.h/linknamespace): Likewise.
38664         (test-xfail-ISO/signal.h/linknamespace): Likewise.
38665         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
38666         (test-xfail-ISO/time.h/linknamespace): Likewise.
38667         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38668         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
38669         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38670         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38671         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
38672         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38673         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38674         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
38675         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38676         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38677         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
38678         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38679         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
38680         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
38681         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
38682         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38683         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
38684         (test-xfail-XPG3/search.h/linknamespace): Likewise.
38685         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
38686         (test-xfail-XPG3/time.h/linknamespace): Likewise.
38687         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
38688         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
38689         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
38690         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
38691         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
38692         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
38693         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
38694         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
38695         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38696         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
38697         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
38698         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
38699         (test-xfail-XPG4/search.h/linknamespace): Likewise.
38700         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
38701         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
38702         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
38703         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
38704         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
38705         (test-xfail-XPG4/time.h/linknamespace): Likewise.
38706         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
38707         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
38708         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
38709         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
38710         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
38711         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38712         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
38713         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
38714         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
38715         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
38716         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
38717         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
38718         (test-xfail-POSIX/time.h/linknamespace): Likewise.
38719         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
38720         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
38721         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
38722         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
38723         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
38724         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
38725         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
38726         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
38727         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
38728         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38729         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
38730         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
38731         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
38732         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
38733         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
38734         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
38735         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
38736         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
38737         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
38738         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
38739         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
38740         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
38741         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
38742         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
38743         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
38744         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
38745         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
38746         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
38747         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38748         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
38749         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
38750         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
38751         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
38752         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
38753         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
38754         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38755         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
38756         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
38757         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
38758         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
38759         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
38760         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
38761         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
38762         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
38763         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
38764         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
38765         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
38766         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
38767         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
38768         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
38769         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
38770         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38771         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
38772         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
38773         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
38774         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
38775         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
38776         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38777         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
38778         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
38779         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
38780         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
38781         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38782         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
38783         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
38784         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
38785         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
38786         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
38787         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
38788         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
38789         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
38790         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
38791         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38792         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
38793         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
38794         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
38795         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38796         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
38797         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
38798         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
38799         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
38800         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
38801         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38802         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
38803         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
38804         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
38805         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
38806         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
38807         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
38808         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
38809         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
38810         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
38811         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
38812         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
38813         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
38814         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38815         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
38816         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
38817
38818         [BZ #17589]
38819         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
38820         of fgets_unlocked.
38821
38822         [BZ #17585]
38823         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
38824         (memmem): Rename to __memmem and define as weak alias of
38825         __memmem.  Use libc_hidden_weak.
38826         (__memmem): Use libc_hidden_def.
38827         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
38828         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
38829         memmem.
38830
38831         [BZ #17582]
38832         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
38833         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
38834         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
38835         and define as weak alias of __fgets_unlocked.  Use
38836         libc_hidden_weak.
38837         (__fgets_unlocked): Use libc_hidden_def.
38838         * include/stdio.h (__fgets_unlocked): Declare.  Use
38839         libc_hidden_proto.
38840         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
38841         __fgets_unlocked instead of fgets_unlocked.
38842         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
38843         (GET_NPROCS_CONF_PARSER): Likewise.
38844         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
38845         (GET_NPROCS_CONF_PARSER): Likewise.
38846
38847         [BZ #17574]
38848         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
38849         weak alias of __wmemset.  Use libc_hidden_weak.
38850         (__wmemset): Use libc_hidden_def.
38851         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
38852         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
38853         of wmemset.
38854
38855         [BZ #17573]
38856         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
38857         with asm name __mempcpy.
38858         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
38859
38860         [BZ #17572]
38861         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
38862         and define as weak alias of __rawmemchr.
38863         (__rawmemchr): Do not define as strong alias of rawmemchr.
38864
38865         [BZ #17571]
38866         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
38867         alias of __qsort_r.
38868         (qsort): Call __qsort_r instead of qsort_r.
38869         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
38870         (__qsort_r): Declare.  Call libc_hidden_proto.
38871         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
38872         instead of qsort_r.
38873         * nscd/gai.c (__qsort_r): Define to qsort_r.
38874         * posix/tst-rfc3484.c (__qsort_r): Likewise.
38875         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
38876         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
38877
38878         [BZ #17570]
38879         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
38880         define as weak alias of __malloc_info.
38881
38882         [BZ #17584]
38883         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
38884         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38885         (__rewinddir): Use libc_hidden_def.
38886         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
38887         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38888         (__rewinddir): Use libc_hidden_def.
38889         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
38890         weak alias of __rewinddir.  Don't use libc_hidden_def.
38891         (__rewinddir): Use libc_hidden_def.
38892         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
38893         (__rewinddir): Use libc_hidden_proto.
38894         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
38895         rewinddir.
38896         (__getcwd): Use __rewinddir instead of rewinddir.
38897
38898         [BZ #17583]
38899         * libio/fileno.c (fileno): Rename to __fileno and define as weak
38900         alias of __fileno.  Use libc_hidden_weak.
38901         (__fileno): Use libc_hidden_def.
38902         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
38903         * libio/ftello.c (ftello): Rename to __ftello and define as weak
38904         alias of __ftello.
38905         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
38906         __ftello.
38907         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
38908         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
38909         libc_hidden_def.
38910         (fread_unlocked): Don't use libc_hidden_ver.
38911         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
38912         and define as weak alias of __fread_unlocked.  Don't use
38913         libc_hidden_def.
38914         (__fread_unlocked): Use libc_hidden_def.
38915         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
38916         (ftello): Don't use libc_hidden_proto.
38917         (__ftello): Declare.  Use libc_hidden_proto.
38918         (fread_unlocked): Don't use libc_hidden_proto.
38919         (__fread_unlocked): Declare.  Use libc_hidden_proto.
38920         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
38921         and __ftello instead of fileno, fread_unlocked and ftello.
38922
38923 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38924
38925         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
38926         GOT12.
38927         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
38928         Likewise.
38929         (_dl_start_user): Likewise.
38930         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
38931
38932 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
38933             Siddhesh Poyarekar  <siddhesh@redhat.com>
38934
38935         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
38936         Move argv and envp down instead of moving argc up.
38937         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
38938
38939 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
38940
38941         [BZ #17506]
38942         * test-skeleton.c (main): Return successful if one of
38943         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
38944         * string/tst-strcoll-overflow.c: Define expected status.
38945
38946 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
38947
38948         [BZ #17475]
38949         * locale/iso-639.def: Define Bhili and Tulu language codes.
38950
38951 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
38952
38953         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
38954
38955 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
38956
38957         [BZ #17555]
38958         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
38959
38960 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
38961
38962         * configure.ac: Updated check of minimal required version to
38963         2.22.
38964         * manual/install.texi (Tools for Compilation): Updated version
38965         number.
38966         * configure: Regenerated.
38967         * INSTALL: Likewise.
38968
38969 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
38970
38971         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
38972         __tls_get_addr.
38973
38974 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
38975
38976         * include/sys/wait.h (__libc_waitpid): Remove declaration.
38977         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
38978         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38979         libc_hidden_weak.
38980         (waitpid): Define as alias of __waitpid.
38981         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
38982         __waitpid.
38983         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38984         libc_hidden_weak.
38985         (waitpid): Define as alias of __waitpid.
38986         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
38987         __libc_waitpid alias.
38988         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
38989         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
38990         Likewise.
38991         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
38992         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
38993         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
38994         alias.
38995         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
38996         __waitpid.
38997         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38998         libc_hidden_weak.
38999         (waitpid): Define as alias of __waitpid.
39000
39001 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
39002
39003         * manual/llio.texi: Add comment that write safety has been
39004         fixed in Linux.
39005
39006         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
39007         (localplt-build-dso): Add elf/ld.so.
39008         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
39009         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
39010         and free for ld.so.
39011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
39012         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
39013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
39014         Likewise.
39015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
39016         Likewise.
39017         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
39018         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
39019         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
39020         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
39021         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
39022         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
39023         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
39024         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
39025         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
39026         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
39027         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
39028
39029 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
39030
39031         [BZ #14132]
39032         * include/libc-symbols.h (INTUSE): Remove macro.
39033         (INTDEF): Likewise.
39034         (INTVARDEF): Likewise.
39035         (_INTVARDEF): Likewise.
39036         (INTDEF2): Likewise.
39037         (INTVARDEF2): Likewise.
39038         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
39039         rtld_hidden_def instead of INTVARDEF.
39040         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
39041         (_dl_starting_up_internal): Remove declaration.
39042         (_dl_starting_up): Use rtld_hidden_proto.
39043         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
39044         declaration.
39045         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
39046         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
39047         _dl_starting_up.
39048         * elf/dl-writev.h (_dl_writev): Likewise.
39049         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
39050         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
39051         _dl_starting_up_internal.
39052
39053 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39054
39055         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
39056         test-skeleton.c.
39057
39058 2014-11-05  Will Newton  <will.newton@linaro.org>
39059
39060         * benchtests/Makefile: (bench-malloc): Add malloc thread
39061         scalability benchmark.
39062         * benchtests/bench-malloc-threads.c: New file.
39063
39064 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
39065
39066         * sysdeps/aarch64/strchrnul.S: New file.
39067
39068 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39069
39070         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
39071         definition.
39072         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
39073         Likewise.
39074         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
39075         Likewise.
39076         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
39077         Likewise.
39078         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
39079         Likewise.
39080         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
39081         Likewise.
39082
39083 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
39084
39085         * catgets/test-gencat.c: Use test-skeleton.c.
39086         * catgets/tst-catgets.c: Likewise.
39087         * csu/tst-empty.c: Likewise.
39088         * elf/tst-audit2.c: Likewise.
39089         * elf/tst-global1.c: Likewise.
39090         * elf/tst-pathopt.c: Likewise.
39091         * elf/tst-piemod1.c: Likewise.
39092         * elf/tst-tls10.c: Likewise.
39093         * elf/tst-tls11.c: Likewise.
39094         * elf/tst-tls12.c: Likewise.
39095         * gnulib/tst-gcc.c: Likewise.
39096         * iconvdata/tst-e2big.c: Likewise.
39097         * iconvdata/tst-loading.c: Likewise.
39098         * iconv/tst-iconv1.c: Likewise.
39099         * iconv/tst-iconv2.c: Likewise.
39100         * inet/test-inet6_opt.c: Likewise.
39101         * inet/tst-gethnm.c: Likewise.
39102         * inet/tst-network.c: Likewise.
39103         * inet/tst-ntoa.c: Likewise.
39104         * intl/tst-codeset.c: Likewise.
39105         * intl/tst-gettext2.c: Likewise.
39106         * intl/tst-gettext3.c: Likewise.
39107         * intl/tst-ngettext.c: Likewise.
39108         * intl/tst-translit.c: Likewise.
39109         * io/test-stat.c: Likewise.
39110         * libio/test-fmemopen.c: Likewise.
39111         * libio/tst-freopen.c: Likewise.
39112         * libio/tst-sscanf.c: Likewise.
39113         * libio/tst-ungetwc1.c: Likewise.
39114         * libio/tst-ungetwc2.c: Likewise.
39115         * libio/tst-widetext.c: Likewise.
39116         * localedata/tst-ctype.c: Likewise.
39117         * localedata/tst-digits.c: Likewise.
39118         * localedata/tst-leaks.c: Likewise.
39119         * localedata/tst-mbswcs1.c: Likewise.
39120         * localedata/tst-mbswcs2.c: Likewise.
39121         * localedata/tst-mbswcs3.c: Likewise.
39122         * localedata/tst-mbswcs4.c: Likewise.
39123         * localedata/tst-mbswcs5.c: Likewise.
39124         * localedata/tst-setlocale.c: Likewise.
39125         * localedata/tst-trans.c: Likewise.
39126         * localedata/tst-wctype.c: Likewise.
39127         * localedata/tst-xlocale1.c: Likewise.
39128         * login/tst-grantpt.c: Likewise.
39129         * malloc/tst-calloc.c: Likewise.
39130         * malloc/tst-malloc.c: Likewise.
39131         * malloc/tst-mallocstate.c: Likewise.
39132         * malloc/tst-mcheck.c: Likewise.
39133         * malloc/tst-mtrace.c: Likewise.
39134         * malloc/tst-obstack.c: Likewise.
39135         * math/atest-exp2.c: Likewise.
39136         * math/atest-exp.c: Likewise.
39137         * math/atest-sincos.c: Likewise.
39138         * math/test-matherr.c: Likewise.
39139         * math/test-misc.c: Likewise.
39140         * math/test-powl.c: Likewise.
39141         * math/tst-definitions.c: Likewise.
39142         * misc/tst-dirname.c: Likewise.
39143         * misc/tst-efgcvt.c: Likewise.
39144         * misc/tst-fdset.c: Likewise.
39145         * misc/tst-hsearch.c: Likewise.
39146         * misc/tst-mntent2.c: Likewise.
39147         * nptl/tst-sem7.c: Likewise.
39148         * nptl/tst-sem8.c: Likewise.
39149         * nptl/tst-sem9.c: Likewise.
39150         * nss/test-netdb.c: Likewise.
39151         * posix/tst-fnmatch.c: Likewise.
39152         * posix/tst-getlogin.c: Likewise.
39153         * posix/tst-gnuglob.c: Likewise.
39154         * posix/tst-mmap.c: Likewise.
39155         * pwd/tst-getpw.c: Likewise.
39156         * resolv/tst-inet_ntop.c: Likewise.
39157         * rt/tst-timer.c: Likewise.
39158         * stdio-common/test-fseek.c: Likewise.
39159         * stdio-common/test-popen.c: Likewise.
39160         * stdio-common/test-vfprintf.c: Likewise.
39161         * stdio-common/tst-cookie.c: Likewise.
39162         * stdio-common/tst-fileno.c: Likewise.
39163         * stdio-common/tst-gets.c: Likewise.
39164         * stdio-common/tst-obprintf.c: Likewise.
39165         * stdio-common/tst-perror.c: Likewise.
39166         * stdio-common/tst-sprintf2.c: Likewise.
39167         * stdio-common/tst-sprintf3.c: Likewise.
39168         * stdio-common/tst-sprintf.c: Likewise.
39169         * stdio-common/tst-swprintf.c: Likewise.
39170         * stdio-common/tst-tmpnam.c: Likewise.
39171         * stdio-common/tst-unbputc.c: Likewise.
39172         * stdio-common/tst-wc-printf.c: Likewise.
39173         * stdlib/tst-environ.c: Likewise.
39174         * stdlib/tst-fmtmsg.c: Likewise.
39175         * stdlib/tst-limits.c: Likewise.
39176         * stdlib/tst-rand48-2.c: Likewise.
39177         * stdlib/tst-rand48.c: Likewise.
39178         * stdlib/tst-random2.c: Likewise.
39179         * stdlib/tst-random.c: Likewise.
39180         * stdlib/tst-strtol.c: Likewise.
39181         * stdlib/tst-strtoll.c: Likewise.
39182         * stdlib/tst-tls-atexit.c: Likewise.
39183         * stdlib/tst-xpg-basename.c: Likewise.
39184         * string/test-ffs.c: Likewise.
39185         * string/tst-bswap.c: Likewise.
39186         * string/tst-inlcall.c: Likewise.
39187         * string/tst-strtok.c: Likewise.
39188         * string/tst-strxfrm.c: Likewise.
39189         * sysdeps/x86_64/tst-audit10.c: Likewise.
39190         * sysdeps/x86_64/tst-audit3.c: Likewise.
39191         * sysdeps/x86_64/tst-audit4.c: Likewise.
39192         * sysdeps/x86_64/tst-audit5.c: Likewise.
39193         * time/tst-ftime_l.c: Likewise.
39194         * time/tst-getdate.c: Likewise.
39195         * time/tst-mktime3.c: Likewise.
39196         * time/tst-mktime.c: Likewise.
39197         * time/tst-posixtz.c: Likewise.
39198         * time/tst-strptime2.c: Likewise.
39199         * time/tst-strptime3.c: Likewise.
39200         * wcsmbs/tst-btowc.c: Likewise.
39201         * wcsmbs/tst-mbrtowc.c: Likewise.
39202         * wcsmbs/tst-mbsrtowcs.c: Likewise.
39203         * wcsmbs/tst-wchar-h.c: Likewise.
39204         * wcsmbs/tst-wcpncpy.c: Likewise.
39205         * wcsmbs/tst-wcrtomb.c: Likewise.
39206         * wcsmbs/tst-wcsnlen.c: Likewise.
39207         * wcsmbs/tst-wcstof.c: Likewise.
39208
39209 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
39210
39211         [BZ #14132]
39212         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
39213         INTDEF.
39214         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
39215         declaration.
39216         (_dl_mcount): Use rtld_hidden_proto.
39217         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
39218         _dl_mcount.
39219         * elf/rtld.c (_rtld_global_ro): Likewise.
39220
39221         [BZ #14132]
39222         * elf/dl-init.c (_dl_init): Don't use INTDEF.
39223         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
39224         of _dl_init_internal.
39225         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
39226         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
39227         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
39228         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
39229         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
39230         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
39231         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
39232         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
39233         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
39234         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
39235         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
39236         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
39237         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39238         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39239         * sysdeps/tile/dl-start.S (_start): Likewise.
39240         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
39241         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
39242
39243         [BZ #14132]
39244         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
39245         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
39246         (rtld_progname): Make macro definition unconditional.
39247         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
39248         INTDEF.
39249         (dlmopen_doit): Do not use INTUSE with _dl_argv.
39250         (dl_main): Likewise.
39251         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
39252         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
39253         instead of _dl_argv_internal.
39254         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
39255         __GI__dl_argv instead of INTUSE(_dl_argv).
39256         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
39257         __GI__dl_argv instead of _dl_argv_internal.
39258
39259         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
39260         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
39261         macro.
39262         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
39263         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
39264         New macro.
39265         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
39266         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
39267         macro.
39268         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
39269         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
39270
39271 2014-11-04  Andreas Schwab  <schwab@suse.de>
39272
39273         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
39274
39275 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39276
39277         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
39278         mtvsrd instruction in binary form.
39279
39280 2014-11-03  Andreas Schwab  <schwab@suse.de>
39281
39282         [BZ #17522]
39283         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
39284         for less than MB_LEN_MAX use a local buffer of that size.
39285         * libio/tst-fputws.c: New file.
39286         * libio/Makefile (tests): Add tst-fputws.
39287
39288 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
39289
39290         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
39291         the size of the fpu_fr.fpu_dregs[] array.
39292
39293 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
39294
39295         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
39296         (__nanosleep): Do not define as alias.
39297         (nanosleep): Define as alias of __nanosleep.
39298         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
39299         __libc_nanosleep name.
39300
39301 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39302
39303         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
39304         install.texi in comment.
39305
39306 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39307
39308         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
39309         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
39310         ... add here and use lwsync or sync ...
39311         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
39312         ... and add here using lwsync.
39313
39314 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39315
39316         * elf/dl-machine-reject-phdr.h: New file.
39317         * elf/dl-load.c: #include that.
39318         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
39319         if that returned true.
39320
39321 2014-10-31  Roland McGrath  <roland@hack.frob.com>
39322
39323         [BZ #17496]
39324         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
39325         gen-as-const-headers chunk.  Add a big scare comment after the last
39326         safe place to touch before-compile.
39327
39328 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39329
39330         * manual/install.texi (Tools for Compilation): Update autoconf
39331         version requirements.
39332         * INSTALL: Regenerated.
39333
39334         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
39335         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
39336         (__libc_pselect): Likewise.
39337
39338         [BZ #14138]
39339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
39340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
39341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
39342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
39343
39344 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39345
39346         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
39347         correct barrier instruction.
39348         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
39349         Likewise.
39350         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
39351         Likewise.
39352
39353 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39354
39355         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
39356         after defining inlines.  Instead, just use parens to defeat macro
39357         expansion of __isctype in its declaration.
39358
39359 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39360
39361         * include/sys/uio.h (__libc_readv): Remove declaration.
39362         (__libc_writev): Likewise.
39363         * misc/readv.c (__libc_readv): Rename to __readv.
39364         (__readv): Do not define as alias.
39365         (readv): Define as alias of __readv.
39366         * misc/writev.c (__libc_writev): Rename to __writev.
39367         (__writev): Do not define as alias.
39368         (writev): Define as alias of __writev.
39369         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
39370         (__readv): Do not define as alias.
39371         (readv): Define unconditionally as alias of __readv.
39372         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
39373         (__writev): Do not define as alias.
39374         (writev): Define unconditionally as alias of __writev.
39375         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
39376         name.
39377         (writev): Do not define __libc_writev name.
39378
39379 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39380
39381         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
39382         (convert_charseq): New function, broken out of ...
39383         (use_from_charmap): ... here.  Call it.
39384         (use_to_charmap): Use convert_charseq and free instead of duplicating
39385         its code with a variable-length stack struct.
39386
39387 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39388
39389         * include/fcntl.h (__libc_creat): Remove declaration.
39390         * io/creat.c (__libc_creat): Rename to creat.
39391         (creat): Do not define as alias.
39392         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
39393         of creat instead of __libc_creat.
39394         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
39395         to creat.
39396         (creat): Do not define as alias.
39397         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
39398         __libc_creat.
39399         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
39400         __libc_creat name.
39401         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
39402         Likewise.
39403
39404 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
39405
39406         * manual/llio.texi: Add comments discussing why write() may be
39407         considered MT-unsafe on Linux.
39408
39409 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
39410
39411         * dl-load.c (local_strdup): Remove.
39412         (expand_dynamic_string_token): Use __strdup.
39413         (decompose_rpath): Likewise.
39414         (_dl_map_object): Likewise.
39415
39416 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
39417
39418         [BZ #14132]
39419         * sysdeps/generic/unwind-dw2-fde.c
39420         (__register_frame_info_bases_internal): Do not declare.
39421         (__register_frame_info_table_bases_internal): Likewise.
39422         (__deregister_frame_info_bases_internal): Likewise.
39423         (__register_frame_info_bases): Declare and use hidden_proto before
39424         definition.  Use hidden_def instead of INTDEF.
39425         (__register_frame_info_table_bases): Likewise.
39426         (__deregister_frame_info_bases): Likewise.
39427         (__register_frame_info): Do not use INTUSE.
39428         (__register_frame): Likewise.
39429         (__register_frame_info_table): Likewise.
39430         (__register_frame_table): Likewise.
39431         (__deregister_frame_info): Likewise.
39432         (__deregister_frame): Likewise.
39433
39434 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
39435
39436         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39437         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
39438         not undefine.
39439         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
39440         Likewise.
39441         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
39442         Likewise.
39443
39444 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
39445
39446         [BZ #14138]
39447         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
39448         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
39449         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
39450         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
39451         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
39452         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
39453         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
39454         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
39455         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
39456         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
39457         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
39458         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
39459         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
39460         syscall.
39461         (setfsuid): Likewise.
39462         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
39463         (setfsuid): Likewise.
39464         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
39465         (setfsuid): Likewise.
39466         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
39467         Likewise.
39468         (setfsuid): Likewise.
39469         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
39470         (setfsuid): Likewise.
39471         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
39472         Likewise.
39473         (setfsuid): Likewise.
39474
39475 2014-10-27  Andreas Schwab  <schwab@suse.de>
39476
39477         [BZ #17501]
39478         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
39479         check for Slow_SSE4_2 feature bit.
39480         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
39481         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
39482         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
39483         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
39484
39485 2014-10-24  Roland McGrath  <roland@hack.frob.com>
39486
39487         * configure.ac: Validate compiler version with a empirical test of
39488         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
39489         $CC -v output.
39490         * configure: Regenerated.
39491
39492         * inet/htons.c (htons): Prototypify.
39493         * inet/htonl.c (htonl): Likewise.
39494
39495 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39496
39497         * string/strncat.c (strncat): Improve performance by using strlen.
39498
39499 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39500
39501         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
39502
39503 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39504
39505         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
39506         Call libc_fetestexcept_aarch64.
39507
39508 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39509
39510         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
39511         Call libc_feholdexcept_aarch64.
39512
39513 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39514
39515         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
39516         Call get_rounding_mode.
39517
39518 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39519
39520         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39521         Simplify logic.
39522
39523 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39524
39525         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
39526         Simplify logic.
39527
39528 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
39529
39530         [BZ #14138]
39531         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
39532         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
39533         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
39534         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
39535         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
39536         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
39537         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
39538         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
39539         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
39540         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
39541         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
39542         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
39543         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
39544         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
39545         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
39546         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
39547         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
39548         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
39549         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
39550         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
39551         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
39552         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
39553         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
39554         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
39555         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
39556         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
39557         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
39558         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
39559         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
39560         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
39561         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
39562         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
39563         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
39564         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
39565         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
39566         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
39567         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
39568         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
39569         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
39570         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
39571         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
39572         syscall.
39573         (geteuid): Likewise.
39574         (getgid): Likewise.
39575         (getuid): Likewise.
39576         (getresgid): Likewise.
39577         (getresuid): Likewise.
39578         (getgroups): Likewise.
39579         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
39580         (geteuid): Likewise.
39581         (getgid): Likewise.
39582         (getuid): Likewise.
39583         (getresgid): Likewise.
39584         (getresuid): Likewise.
39585         (getgroups): Likewise.
39586         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
39587         (geteuid): Likewise.
39588         (getgid): Likewise.
39589         (getuid): Likewise.
39590         (getresgid): Likewise.
39591         (getresuid): Likewise.
39592         (getgroups): Likewise.
39593         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
39594         Likewise.
39595         (geteuid): Likewise.
39596         (getgid): Likewise.
39597         (getuid): Likewise.
39598         (getresgid): Likewise.
39599         (getresuid): Likewise.
39600         (getgroups): Likewise.
39601         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
39602         (geteuid): Likewise.
39603         (getgid): Likewise.
39604         (getuid): Likewise.
39605         (getresgid): Likewise.
39606         (getresuid): Likewise.
39607         (getgroups): Likewise.
39608         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
39609         Likewise.
39610         (geteuid): Likewise.
39611         (getgid): Likewise.
39612         (getuid): Likewise.
39613         (getgroups): Likewise.
39614
39615         [BZ #14138]
39616         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
39617         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
39618         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
39619         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
39620         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
39621         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
39622         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
39623         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
39624         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
39625         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
39626         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
39627         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
39628         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
39629         __chown.
39630         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
39631         (lchown): Likewise.
39632         (fchown): Likewise.
39633         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
39634         Likewise.
39635         (lchown): Likewise.
39636         (fchown): Likewise.
39637         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
39638         (lchown): Likewise.
39639         (fchown): Likewise.
39640         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
39641         Likewise.
39642         (lchown): Likewise.
39643         (fchown): Likewise.
39644
39645 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39646
39647         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
39648         Simplify logic.
39649
39650 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39651
39652         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39653         Cleanup logic.
39654
39655 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39656
39657         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39658         Remove unused include.
39659
39660 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39661
39662         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
39663         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
39664         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
39665         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
39666
39667 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
39668             Helge Deller <deller@gmx.de>
39669
39670         [BZ #17508]
39671         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
39672         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
39673         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
39674
39675 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
39676
39677         [BZ #14132]
39678         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
39679         Remove macro definition.
39680         (__ashrdi3_v_glibc20): Likewise.
39681         (__lshrdi3_v_glibc20): Likewise.
39682         (__cmpdi2_v_glibc20): Likewise.
39683         (__ucmpdi2_v_glibc20): Likewise.
39684         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
39685         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39686         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39687         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39688         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39689         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
39690
39691 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39692
39693         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
39694         old GNU extension [0] syntax.
39695         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
39696         alloca rather than an array member with variable length.
39697         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
39698         * nscd/nscd.c (invalidate_db): New function, broken out of ...
39699         (parse_opt): ... here.  Likewise use alloca there.
39700         Validate the -i argument before checking for rootness.
39701         (send_shutdown): New function, broken out of ...
39702         (parse_opt): ... here.
39703
39704 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39705
39706         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
39707         macro to get at the _rt_local_ro field.
39708         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
39709         ([PIC] case) or _dl_hwcap ([!PIC] case).
39710         * sysdeps/arm/setjmp.S: Likewise.
39711
39712         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
39713         * sysdeps/arm/configure.ac: New check to define it.
39714         * sysdeps/arm/configure: Regenerated.
39715         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
39716         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
39717         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
39718         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
39719         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
39720         Use move/movt pair instead of a load.
39721         (LDST_GLOBAL): Macro removed.
39722         (LDR_GLOBAL): New macro replaces it.
39723         (LDR_HIDDEN): New macro.
39724         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
39725         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
39726
39727         * setjmp/tst-setjmp-static.c: New file.
39728         * setjmp/Makefile (tests): Add it.
39729         (tests-static): New variable.
39730
39731 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
39732
39733         [BZ #17485]
39734         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
39735
39736 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
39737
39738         [BZ #14132]
39739         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
39740
39741 2014-10-21  Roland McGrath  <roland@hack.frob.com>
39742
39743         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
39744
39745 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39746
39747         * io/fts.c (dirent_not_directory): New function.
39748         (fts_build): Call it.
39749
39750 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39751
39752         * nptl/version.c (__nptl_main): Use normal __write rather than
39753         INTERNAL_SYSCALL.
39754         (banner): Update copyright years.
39755
39756         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
39757         gettimeofday.
39758         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
39759         * nptl/pthread_cond_timedwait.c: Likewise.
39760         * nptl/pthread_mutex_timedlock.c: Likewise.
39761         * nptl/sem_timedwait.c: Likewise.
39762
39763         * sysdeps/nptl/bits/libc-lock.h
39764         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39765         (__libc_lock_init_recursive): Return void, not 0.
39766         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
39767         (__libc_rwlock_init): Likewise.
39768         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
39769
39770 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39771
39772         [BZ #15215]
39773         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
39774         (__pthread_once_slow): ... here.
39775         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
39776         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
39777
39778 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39779
39780         [BZ #15215]
39781         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
39782         __PTHREAD_ONCE_FORK_GEN_INCR): New.
39783         * sysdeps/nptl/fork.c (__libc_fork): Use them.
39784         * nptl/pthread_once.c (__pthread_once): Likewise.
39785         Update comments.
39786
39787 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
39788
39789         [BZ #14138]
39790         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
39791         name.
39792         (writev): Use __libc_writev as strong name.
39793         * sysdeps/unix/sysv/linux/readv.c: Remove file.
39794         * sysdeps/unix/sysv/linux/writev.c: Likewise.
39795
39796 2014-10-17  Roland McGrath  <roland@hack.frob.com>
39797
39798         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
39799
39800         * sysdeps/i386/nptl/tls.h
39801         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
39802         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
39803         New macros.
39804         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
39805         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
39806         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
39807         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
39808         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
39809         Call CHECK_THREAD_SYSINFO instead of doing an assert.
39810
39811         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
39812         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
39813         on [__NR_futex].
39814         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
39815         broken out of ...
39816         (__pthread_mutex_init): ... here.  Call it.
39817         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
39818         Conditionalize PI cases on [__NR_futex].
39819         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
39820         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
39821         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
39822
39823         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
39824         conditional on [SIGSETXID].
39825         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
39826         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
39827         is defined.  Likewise for SIGSETXID.
39828         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
39829         Conditionalize definitions on [SIGSETXID].
39830         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
39831         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
39832         unblocking on [SIGCANCEL].
39833
39834         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
39835         [__NR_set_robust_list].
39836
39837 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
39838
39839         * string/strcoll_l.c (get_next_seq): Fix up formatting.
39840         (do_compare): Likewise.
39841
39842 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
39843
39844         [BZ #15884]
39845         * string/strcoll_l.c: Don't include stdio.h.
39846         (coll_seq): Remove members idxarr and rulearr.
39847         (get_next_seq_cached): Remove function.
39848         (get_next_seq): Likewise.
39849         (get_next_seq_nocache): Rename to get_next_seq.
39850         (do_compare): Remove function.
39851         (do_compare_nocache): Rename to do_compare.
39852         (STRCOLL): Remove weight and rules cache.
39853
39854 2014-10-16  Roland McGrath  <roland@hack.frob.com>
39855
39856         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
39857         * sysdeps/arm/sfp-machine.h: ... to here.
39858         * sysdeps/arm/Implies: Remove arm/soft-fp.
39859
39860 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
39861
39862         * conform/data/sys/utsname.h-data (*_t): Allow.
39863         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
39864         [POSIX] (WEXITED): Do not expect constant.
39865         [POSIX] (WSTOPPED): Likewise.
39866         [POSIX] (WNOHANG): Likewise.
39867         [POSIX] (WNOWAIT): Likewise.
39868         [POSIX] (siginfo_t): Do not expect type or elements.
39869         [POSIX] (pid_t): Do not expect type.
39870         [POSIX] (signal.h): Do not allow header.
39871         [POSIX] (sys/resource.h): Likewise.
39872         [POSIX] (si_*): Do not allow pattern.
39873         [POSIX] (W*): Likewise.
39874         [POSIX] (P_*): Likewise.
39875         [POSIX] (BUS_*): Likewise.
39876         [POSIX] (CLD_*): Likewise.
39877         [POSIX] (FPE_*): Likewise.
39878         [POSIX] (ILL_*): Likewise.
39879         [POSIX] (POLL_*): Likewise.
39880         [POSIX] (SEGV_*): Likewise.
39881         [POSIX] (SI_*): Likewise.
39882         [POSIX] (TRAP_*): Likewise.
39883         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
39884         variable.
39885
39886 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
39887
39888         [BZ #12926]
39889         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
39890         infinite loop when __recvmsg returns 0.
39891
39892 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
39893
39894         * CANCEL-FCT-WAIVE: Remove file.
39895         * CANCEL-FILE-WAIVE: Likewise.
39896
39897         [BZ #14132]
39898         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
39899         instead of INTVARDEF.
39900         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39901         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
39902         rtld_hidden_data_def instead of INTVARDEF.
39903         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39904         * elf/dl-deps.c (expand_dst): Likewise.
39905         * elf/dl-load.c (_dl_dst_count): Likewise.
39906         (_dl_dst_substitute): Likewise.
39907         (decompose_rpath): Likewise.
39908         (_dl_init_paths): Likewise.
39909         (open_path): Likewise.
39910         (_dl_map_object): Likewise.
39911         * elf/rtld.c (dl_main): Likewise.
39912         (process_dl_audit): Likewise.
39913         (process_envvars): Likewise.
39914         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
39915         Remove declaration.
39916         (__libc_enable_secure): Use rtld_hidden_proto.
39917
39918 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39919
39920         * elf/dl-load.c
39921         (add_path): New function broken out of _dl_rtld_di_serinfo.
39922         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
39923
39924 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39925
39926         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
39927         parentheses around macro arguments.
39928         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
39929         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
39930         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
39931         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
39932         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
39933         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39934         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39935         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
39936         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
39937         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
39938         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
39939         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
39940         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
39941         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
39942         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
39943         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
39944         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
39945         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
39946         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
39947         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
39948         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
39949         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
39950         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
39951         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39952         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39953         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
39954         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
39955         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
39956         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
39957         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
39958         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
39959         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
39960         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
39961         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
39962         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
39963         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
39964         Likewise.
39965         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
39966         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39967         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39968         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
39969         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
39970         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
39971         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
39972         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
39973         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
39974         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
39975         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
39976         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
39977         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
39978         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
39979         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
39980         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39981         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39982         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
39983         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
39984         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
39985         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
39986         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
39987         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
39988         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
39989         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
39990         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
39991         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
39992         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
39993         (_FP_FRAC_SRS_1): Likewise.
39994         (_FP_FRAC_CLZ_1): Likewise.
39995         (_FP_MUL_MEAT_1_imm): Likewise.
39996         (_FP_MUL_MEAT_1_wide): Likewise.
39997         (_FP_MUL_MEAT_1_hard): Likewise.
39998         (_FP_SQRT_MEAT_1): Likewise.
39999         (_FP_FRAC_ASSEMBLE_1): Likewise.
40000         (_FP_FRAC_DISASSEMBLE_1): Likewise.
40001         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
40002         (__FP_CLZ_2): Likewise.
40003         (_FP_MUL_MEAT_2_wide): Likewise.
40004         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
40005         (_FP_MUL_MEAT_2_gmp): Likewise.
40006         (_FP_MUL_MEAT_2_120_240_double): Likewise.
40007         (_FP_SQRT_MEAT_2): Likewise.
40008         (_FP_FRAC_ASSEMBLE_2): Likewise.
40009         (_FP_FRAC_DISASSEMBLE_2): Likewise.
40010         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
40011         (_FP_FRAC_CLZ_4): Likewise.
40012         (_FP_MUL_MEAT_4_wide): Likewise.
40013         (_FP_MUL_MEAT_4_gmp): Likewise.
40014         (_FP_SQRT_MEAT_4): Likewise.
40015         (_FP_FRAC_ASSEMBLE_4): Likewise.
40016         (_FP_FRAC_DISASSEMBLE_4): Likewise.
40017         * soft-fp/op-common.h (_FP_CMP): Likewise.
40018         (_FP_CMP_EQ): Likewise.
40019         (_FP_CMP_UNORD): Likewise.
40020         (_FP_TO_INT): Likewise.
40021         (_FP_FROM_INT): Likewise.
40022         [!__FP_CLZ] (__FP_CLZ): Likewise.
40023         (_FP_DIV_HELP_imm): Likewise.
40024         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
40025         Likewise.
40026         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
40027         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
40028         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
40029         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
40030         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
40031         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
40032         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
40033         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
40034         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
40035         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
40036         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
40037         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
40038         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
40039         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
40040         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
40041         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
40042         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
40043         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
40044         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
40045         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
40046         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
40047         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
40048         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
40049         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
40050         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
40051         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
40052         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
40053         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
40054         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
40055         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
40056         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
40057         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
40058         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
40059         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
40060         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
40061         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
40062         (FP_UNPACK_RAW_SP): Likewise.
40063         (FP_PACK_RAW_S): Likewise.
40064         (FP_PACK_RAW_SP): Likewise.
40065         (FP_UNPACK_S): Likewise.
40066         (FP_UNPACK_SP): Likewise.
40067         (FP_UNPACK_SEMIRAW_S): Likewise.
40068         (FP_UNPACK_SEMIRAW_SP): Likewise.
40069         (FP_PACK_S): Likewise.
40070         (FP_PACK_SP): Likewise.
40071         (FP_PACK_SEMIRAW_S): Likewise.
40072         (FP_PACK_SEMIRAW_SP): Likewise.
40073         (_FP_SQRT_MEAT_S): Likewise.
40074         (FP_CMP_S): Likewise.
40075         (FP_CMP_EQ_S): Likewise.
40076         (FP_CMP_UNORD_S): Likewise.
40077         (FP_TO_INT_S): Likewise.
40078         (FP_FROM_INT_S): Likewise.
40079
40080         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
40081
40082         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
40083         (FP_EX_INVALID_IMZ): Likewise.
40084         (FP_EX_INVALID_IMZ_FMA): Likewise.
40085         (FP_EX_INVALID_ISI): Likewise.
40086         (FP_EX_INVALID_ZDZ): Likewise.
40087         (FP_EX_INVALID_IDI): Likewise.
40088         (FP_EX_INVALID_SQRT): Likewise.
40089         (FP_EX_INVALID_CVI): Likewise.
40090         (FP_EX_INVALID_VC): Likewise.
40091         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
40092         "invalid" exceptions.
40093         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
40094         (_FP_ADD_INTERNAL): Likewise.
40095         (_FP_MUL): Likewise.
40096         (_FP_FMA): Likewise.
40097         (_FP_DIV): Likewise.
40098         (_FP_CMP_CHECK_NAN): Likewise.
40099         (_FP_SQRT): Likewise.
40100         (_FP_TO_INT): Likewise.
40101         (FP_EXTEND): Likewise.
40102
40103 2014-10-09  Allan McRae  <allan@archlinux.org>
40104
40105         * po/fr.po: Update French translation from translation project.
40106
40107 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
40108
40109         [BZ #14132]
40110         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
40111         of INTDEF.
40112         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
40113         (__cxa_atexit): Use libc_hidden_proto.
40114         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
40115
40116         [BZ #14132]
40117         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
40118         declaration.
40119         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
40120         [!_ISOMAC] (__iswspace_l_internal): Likewise.
40121         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
40122         [!_ISOMAC] (__iswctype_internal): Likewise.
40123         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
40124         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
40125         alias.
40126         (fcntl): Remove __fcntl_internal alias.
40127         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
40128         __connect_internal alias.
40129         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
40130         Likewise.
40131
40132         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
40133         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
40134         FP_DENORM_ZERO.
40135         (_FP_CHECK_FLUSH_ZERO): New macro.
40136         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
40137         (_FP_CMP): Likewise.
40138         (_FP_CMP_EQ): Likewise.
40139         (_FP_TO_INT): Do not set inexact for subnormal arguments if
40140         FP_DENORM_ZERO.
40141         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
40142         (FP_TRUNC): Likewise.
40143
40144         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
40145         treated as invalid conversion, not as normal exponent.
40146
40147         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
40148         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
40149         (_FP_CMP_EQ): Likewise.
40150         (_FP_CMP_UNORD): Likewise.
40151         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
40152         (FP_CMP_EQ_D): Likewise.
40153         (FP_CMP_UNORD_D): Likewise.
40154         * soft-fp/extended.h (FP_CMP_E): Likewise.
40155         (FP_CMP_EQ_E): Likewise.
40156         (FP_CMP_UNORD_E): Likewise.
40157         * soft-fp/quad.h (FP_CMP_Q): Likewise.
40158         (FP_CMP_EQ_Q): Likewise.
40159         (FP_CMP_UNORD_Q): Likewise.
40160         * soft-fp/single.h (FP_CMP_S): Likewise.
40161         (FP_CMP_EQ_S): Likewise.
40162         (FP_CMP_UNORD_S): Likewise.
40163         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
40164         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
40165         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
40166         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
40167         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
40168         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
40169         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
40170         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
40171         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
40172         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
40173         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
40174         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
40175         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
40176         to FP_CMP_Q.
40177         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
40178         FP_CMP_Q.
40179         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
40180         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
40181         FP_CMP_EQ_Q.
40182         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
40183         FP_CMP_Q.
40184         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
40185         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
40186         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
40187         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
40188         FP_CMP_EQ_Q.
40189         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
40190         FP_CMP_Q.
40191         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
40192         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
40193         FP_CMP_EQ_Q.
40194         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
40195         FP_CMP_Q.
40196         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
40197         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
40198         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
40199         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
40200         FP_CMP_EQ_Q.
40201
40202         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
40203         a subnormal result, set the underflow exception if trapping on
40204         underflow is enabled.
40205         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
40206         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
40207         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
40208         redefine to 0.
40209         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
40210         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40211         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40212         * soft-fp/extendxftf2.c (__extendxftf2): Use
40213         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
40214
40215         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
40216         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
40217         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40218         FP_HANDLE_EXCEPTIONS.
40219         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
40220         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40221         FP_HANDLE_EXCEPTIONS.
40222         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
40223         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40224         FP_HANDLE_EXCEPTIONS.
40225         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
40226         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40227         FP_HANDLE_EXCEPTIONS.
40228
40229 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
40230
40231         [BZ #14132]
40232         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
40233         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
40234         use INTUSE.
40235         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
40236         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
40237         Remove alias.
40238         (__adjtimex): Define using libc_hidden_ver.
40239         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
40240         Remove declaration.
40241         (ntp_gettime): Call __adjtimex directly.
40242         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
40243         Remove declaration.
40244         (ntp_gettimex): Call __adjtimex directly.
40245         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
40246         __adjtimex_internal alias.
40247
40248 2014-10-08  Roland McGrath  <roland@hack.frob.com>
40249
40250         [BZ #17460]
40251         * nscd/nscd.c (more_help): Rewrite list of tables collection
40252         using xstrdup and asprintf.
40253
40254         * nscd/nscd_conf.c: Remove local xstrdup declaration.
40255
40256 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40257             Roland McGrath  <roland@hack.frob.com>
40258
40259         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
40260         (do_lookup_unique): ... local function 'enter' here; update callers.
40261
40262 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
40263
40264         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
40265         compat_symbol calls on [SHARED].
40266         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
40267         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
40268         Remove.
40269         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40270         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
40271         (oldsetrlimit): Remove.
40272         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40274         (lchown): New syscall entry.
40275         (oldsetrlimit): Remove.
40276         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40277         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
40278         (oldsetrlimit): Remove.
40279         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40280
40281         [BZ #14138]
40282         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
40283         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
40284         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
40285         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
40286         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
40287         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
40288         (fchown): Likewise.
40289         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
40290         (fchown): Likewise.
40291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
40292         Likewise.
40293
40294 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40295
40296         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
40297         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
40298         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
40299         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
40300         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
40301         Likewise.
40302         (__old_sem_post): Likewise.
40303
40304 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
40305
40306         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
40307         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
40308         HAVE_CLOCK_GETTIME_VSYSCALL macros.
40309         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
40310         Use INLINE_VSYSCALL macro.
40311         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
40312         __vdso_clock_gettime.
40313         * sysdeps/unix/sysv/linux/tile/init-first.c
40314         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
40315         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
40316         __vdso_clock_gettime.
40317
40318         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
40319         to set up frame more cleanly.
40320
40321         * sysdeps/tile/memcmp.c: New file.
40322
40323         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
40324
40325         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
40326         * sysdeps/tile/tilegx/strcasestr.c: New file.
40327         * sysdeps/tile/tilegx/strnlen.c: New file.
40328         * sysdeps/tile/tilegx/strstr.c: New file.
40329
40330         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
40331
40332 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
40333
40334         * nptl/tst-setuid3.c: Write errors to stdout.
40335
40336 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40337
40338         * elf/dl-deps.c
40339         (preload): New functions broken out of _dl_map_object_deps.
40340         (_dl_map_object_deps):  Remove a nested function. Update call sites.
40341
40342 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
40343
40344         [BZ #14138]
40345         * sysdeps/unix/sysv/linux/execve.c: Remove file.
40346         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
40347
40348 2014-10-01  Steve Ellcey  <sellcey@mips.com>
40349
40350         * sysdeps/mips/strcmp.S: New.
40351
40352 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
40353
40354         [BZ #14138]
40355         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
40356         (linkat): Likewise.
40357         (mkdirat): Likewise.
40358         (readlinkat): Likewise.
40359         (renameat): Likewise.
40360         (symlinkat): Likewise.
40361         (unlinkat): Likewise.
40362         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
40363         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
40364         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
40365         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
40366         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
40367         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
40368         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
40369
40370 2014-09-30  Will Newton  <will.newton@linaro.org>
40371
40372         * math/math.h: Define long double math functions if
40373         _LIBC_TEST is defined.
40374         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
40375
40376         * localedata/Makefile: Move assignment to tests-special
40377         into an ifdef testing run-built-tests.
40378         * timezone/Makefile: Likewise.
40379
40380 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
40381
40382         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
40383         with $(BASH) not $(SHELL).
40384
40385 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
40386             Matthew LeGendre  <legendre1@llnl.gov>
40387
40388         [BZ #17411]
40389         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
40390         l_reloc_result.
40391
40392 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40393
40394         * stdio-common/printf_fp.c
40395         (hack_digit): New function, broken out of ...
40396         (__printf_fp): ... local function here.  Update call sites.
40397         hack_digit now takes an additional parameter that is a pointer
40398         to a struct of the referenced locals.  Those locals moved inside
40399         the struct and references updated.
40400
40401 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
40402
40403         * aclocal.m4: Require autoconf 2.69.
40404         * configure: Regenerated.
40405         * sysdeps/aarch64/configure: Likewise.
40406         * sysdeps/alpha/configure: Likewise.
40407         * sysdeps/arm/armv7/configure: Likewise.
40408         * sysdeps/arm/configure: Likewise.
40409         * sysdeps/ia64/configure: Likewise.
40410         * sysdeps/mach/configure: Likewise.
40411         * sysdeps/mips/configure: Likewise.
40412         * sysdeps/s390/configure: Likewise.
40413         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
40414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
40415
40416         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
40417         file.
40418         * sysdeps/ia64/configure.ac: Likewise.
40419
40420 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
40421
40422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
40423         specify symbol version for ld.so.  Do not include entry for
40424         libpthread.
40425         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40426         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40427         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40428
40429         [BZ #14171]
40430         * Makeconfig [$(build-shared) = yes]
40431         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
40432         makefiles.
40433         [$(build-shared) = yes && $(soversions.mk-done) = t]
40434         ($(common-objpfx)gnu/lib-names.h): Remove rule.
40435         [$(build-shared) = yes && $(soversions.mk-done) = t]
40436         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
40437         to Makerules.
40438         [$(build-shared) = yes && $(soversions.mk-done) = t]
40439         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
40440         here.
40441         [$(build-shared) = yes && $(soversions.mk-done) = t]
40442         (common-generated): Don't append gnu/lib-names.h and
40443         gnu/lib-names.stmp here.
40444         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
40445         (lib-names-h-abi): New variable.
40446         [$(build-shared) = yes && $(soversions.mk-done) = t]
40447         (lib-names-stmp-abi): Likewise.
40448         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40449         abi-variants] (before-compile): Append
40450         $(common-objpfx)$(lib-names-h-abi).
40451         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40452         abi-variants] (common-generated): Append gnu/lib-names.h.
40453         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40454         abi-variants] (install-others-nosubdir): Depend on
40455         $(inst_includedir)/$(lib-names-h-abi).
40456         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40457         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
40458         [$(build-shared) = yes && $(soversions.mk-done) = t]
40459         ($(common-objpfx)$(lib-names-h-abi)): New rule.
40460         [$(build-shared) = yes && $(soversions.mk-done) = t]
40461         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
40462         [$(build-shared) = yes && $(soversions.mk-done) = t]
40463         (common-generated): Append $(lib-names-h-abi) and
40464         $(lib-names-stmp-abi).
40465         * scripts/lib-names.awk: Do not handle multi being set.
40466         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
40467         Remove variable.
40468         (abi-lp64_be-ld-soname): Likewise.
40469         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
40470         Likewise.
40471         (abi-hard-ld-soname): Likewise.
40472         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
40473         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
40474         Remove variable.
40475         (abi-o32_hard-ld-soname): Likewise.
40476         (abi-o32_soft_2008-ld-soname): Likewise.
40477         (abi-o32_hard_2008-ld-soname): Likewise.
40478         (abi-n32_soft-ld-soname): Likewise.
40479         (abi-n32_hard-ld-soname): Likewise.
40480         (abi-n32_soft_2008-ld-soname): Likewise.
40481         (abi-n32_hard_2008-ld-soname): Likewise.
40482         (abi-n64_soft-ld-soname): Likewise.
40483         (abi-n64_hard-ld-soname): Likewise.
40484         (abi-n64_soft_2008-ld-soname): Likewise.
40485         (abi-n64_hard_2008-ld-soname): Likewise.
40486         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
40487         Likewise.
40488         (abi-64-v2-ld-soname): Likewise.
40489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
40490         ld.so entries.
40491         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
40492         variable.
40493         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
40494         entry.
40495         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
40496         variable.
40497         (abi-64-ld-soname): Likewise.
40498         (abi-x32-ld-soname): Likewise.
40499         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
40500         entry.
40501         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40502
40503 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
40504
40505         [BZ #14138]
40506         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
40507         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
40508         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
40509         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
40510         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
40511         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
40512         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
40513         syscall entry for GLIBC_2.2 symbol version.
40514         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
40515         Likewise.
40516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40517         (setrlimit): Likewise.
40518         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
40519         Likewise.
40520
40521 2014-09-23  Will Newton  <will.newton@linaro.org>
40522
40523         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
40524         _LINUX_ARM_SYSDEP_H include guard too.
40525         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
40526         define.
40527
40528 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
40529
40530         * sysdeps/unix/sysv/linux/eventfd.c:
40531         Make first argument unsigned.
40532         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
40533         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
40534
40535 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
40536
40537         [BZ #16852]
40538         * socket/recvmmsg.c (recvmmsg): Drop const argument.
40539         * socket/sys/socket.h: Likewise.
40540         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
40541
40542 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40543
40544         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
40545
40546 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
40547
40548         * time/tst-ftime.c: New test.
40549         * time/Makefile (tests): Add tst-ftime.
40550
40551 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
40552
40553         * soft-fp/extended.h: Fix comment formatting.
40554         * soft-fp/op-1.h: Likewise.
40555         * soft-fp/op-2.h: Likewise.
40556         * soft-fp/op-4.h: Likewise.
40557         * soft-fp/op-8.h: Likewise.
40558         * soft-fp/op-common.h: Likewise.
40559         * soft-fp/soft-fp.h: Likewise.
40560
40561         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
40562
40563 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
40564
40565         [BZ #6652]
40566         * Makeconfig (soversions-default-setname): Remove variable.
40567         ($(common-objpfx)soversions.i): Don't pass default_setname to
40568         soversions.awk.
40569         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
40570         oldest_abi to abi-versions.awk.
40571         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
40572         * config.make.in (oldest-abi): Remove variable.
40573         * configure.ac (--enable-oldest-abi): Remove configure option.
40574         * configure: Regenerated.
40575         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
40576         text.
40577         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
40578         * scripts/soversions.awk: Do not handle default_setname variable.
40579         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
40580         variable.
40581         * sysdeps/mach/hurd/configure: Regenerated.
40582         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
40583         variable.
40584         * sysdeps/unix/sysv/linux/configure: Regenerated.
40585
40586 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40587
40588         * elf/Makefile (CFLAGS-interp.c): Remove.
40589         ($(elf-objpfx)runtime-linker.h): Generate header with linker
40590         path string.
40591         * elf/interp.c: Include generated runtime-linker.h
40592
40593         * Makerules (lib%.so): Don't include $(+interp) in
40594         prerequisites.
40595         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
40596         * dlfcn/eval.c: Remove file.
40597
40598         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
40599         macros.
40600
40601         [BZ #17266]
40602         * misc/sys/cdefs.h: Define __extern_always_inline for clang
40603         4.2 and newer.
40604
40605         [BZ #17370]
40606         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
40607
40608 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40609             Jakub Jelinek  <jakub@redhat.com>
40610
40611         [BZ #17266]
40612         * libio/stdio.h: Check definition of __fortify_function
40613         instead of __extern_always_inline to include bits/stdio2.h.
40614         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
40615         check if __extern_always_inline is defined.
40616         [__USE_MISC || __USE_XOPEN]: Likewise.
40617         [__USE_ISOC99] Likewise.
40618         * misc/sys/cdefs.h (__fortify_function): Define only if
40619         __extern_always_inline is defined.
40620         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
40621         __extern_always_inline and __extern_inline only for g++-4.3
40622         and newer or a compatible gcc.
40623
40624 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
40625
40626         [BZ #17371]
40627         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
40628         last change to handle zero prefix length.
40629
40630 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40631
40632         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
40633         _SC_REGEX_VERSION.
40634
40635         * posix/getconf.c (vars): Add _POSIX_IPV6 and
40636         _POSIX_RAW_SOCKETS.
40637
40638 2014-09-13  Allan McRae  <allan@archlinux.org>
40639
40640         * po/ru.po: Update Russian translation from translation project.
40641
40642 2014-09-12  Roland McGrath  <roland@hack.frob.com>
40643
40644         * locale/programs/locale.c (show_locale_vars): Inline local function
40645         into its sole call site.  Clean up some style nits.
40646         (print_item): New function, broken out of ...
40647         (show_info): ... local function here.  Clean up style nits.
40648
40649         * locale/programs/ld-ctype.c (set_one_default): New function, broken
40650         out of ...
40651         (set_class_defaults): ... local function set_default here.
40652         Define set_default as a macro locally to pass constant parameters.
40653         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
40654         rather than a shared local.
40655
40656         * stdlib/rpmatch.c (try): New function, broken out of ...
40657         (rpmatch): ... local function here.  Also, prototypify definition.
40658
40659 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
40660
40661         * scripts/soversions.awk: Do not handle configuration names.
40662         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
40663         vendor and os variables to soversions.awk.
40664         * configure.ac: Do not modify gnu-* host_os.
40665         * configure: Regenerated
40666         * shlib-versions: Remove first column with configuration names.
40667         * nptl/shlib-versions: Likewise.
40668         * nptl_db/shlib-versions: Likewise.
40669         * sysdeps/hppa/shlib-versions: Likewise.
40670         * sysdeps/m68k/shlib-versions: Likewise.
40671         * sysdeps/mach/hurd/shlib-versions: Likewise.
40672         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
40673         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
40674         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
40675         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
40676         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
40677         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
40678         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
40679         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
40680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40681         Likewise.
40682         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40683         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40684         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40685         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40686         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40687         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
40688         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40689         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40690
40691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40692         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
40693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
40694         Regenerated.
40695         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
40696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40697         Condition symbol version definitions on [HAVE_ELFV2_ABI].
40698
40699         * shlib-versions: Remove OS-specific entries.  Moved to files in
40700         sysdeps.
40701         * sysdeps/mach/hurd/shlib-versions: New file.
40702         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40703
40704         * nptl/shlib-versions: Remove architecture-specific entries.
40705         Moved to files in sysdeps.
40706         * shlib-versions: Likewise.
40707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
40708         file.
40709         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40710         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40711         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40712         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40713
40714         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
40715         (UDP_NO_CHECK6_RX): Likewise.
40716
40717 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40718
40719         * sysdeps/posix/sysconf.c (__sysconf): Spell
40720         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
40721
40722 2014-08-12  Florian Weimer  <fweimer@redhat.com>
40723
40724         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
40725         loading.
40726         * iconv/Versions (__gconv_transliterate): Export for use from
40727         gconv modules.
40728         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
40729         (struct __gconv_trans_data, __gconv_trans_fct,
40730         __gconv_trans_context_fct, __gconv_trans_query_fct,
40731         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
40732         definitions.
40733         (struct __gconv_step_data): Remove __trans member.
40734         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
40735         longer hidden.  Remove unused trans_data argument.
40736         * iconv/gconv_int.h (struct trans_struct): Remove definition.
40737         (__gconv_translit_find): Remove declaration.
40738         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
40739         prototype.
40740         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
40741         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
40742         trans_data argument.  Add hidden definition.
40743         (__gconv_translit_find): Remove.
40744         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
40745         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
40746         * iconv/skeleton.c: Remove transliteration initialization.
40747         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
40748         __gconv_step_data initialization.
40749         * libio/iofwide.c (__libio_translit_): Remove.
40750         (_IO_fwide): Adjust struct __gconv_step_data initialization.
40751         * wcsmbs/btowc.c (__btowc): Likewise.
40752         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
40753         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
40754         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
40755         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
40756         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
40757         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
40758         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
40759         * wcsmbs/wctob.c (wctob): Likewise.
40760
40761 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40762
40763         [BZ #16194]
40764         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
40765         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
40766         register usage.
40767         * sysdeps/x86/Makefile: Adjust.
40768
40769 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40770             Roland McGrath  <roland@hack.frob.com>
40771
40772         * locale/weight.h: Add include guard.
40773         (findidx): Make static rather than auto; take new parameters
40774         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
40775         * locale/weightwc.h: Likewise.
40776         * posix/fnmatch_loop.c
40777         (FCT): Change type of EXTRA from int32_t to wint_t.
40778         Don't include either header inside the function.
40779         Call FINDIDX rather than findidx, and pass new arguments.
40780         #undef FINDIDX at the end of the file.
40781         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
40782         FINDIDX before including fnmatch_loop.c for the non-wide version.
40783         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
40784         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
40785         for the wide version.
40786         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
40787         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
40788         Pass new arguments to findidx.
40789         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
40790         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
40791         Don't #include it inside the function.  Pass new arguments to findidx.
40792         * posix/regex_internal.h
40793         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
40794         (re_string_elem_size_at): Don't #include it inside the function.
40795         Pass new arguments to findidx.
40796         * string/strcoll_l.c: #include WEIGHT_H at top level.
40797         (get_next_seq): Don't #include it inside the function.
40798         Pass new arguments to findidx.
40799         (get_next_seq_nocache): Likewise.
40800         * string/strxfrm_l.c: #include WEIGHT_H at top level.
40801         (STRXFRM): Don't #include it inside the function.
40802         Pass new arguments to findidx.
40803
40804 2014-09-11  Florian Weimer  <fweimer@redhat.com>
40805
40806         [BZ #17344]
40807         * malloc/malloc.c (unlink): Turn asserts into a call to
40808         malloc_printerr.
40809
40810 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
40811
40812         [BZ #17370]
40813         * libio/wfileops (do_ftell_wide): Free OUT.
40814
40815 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
40816
40817         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
40818
40819 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
40820
40821         [BZ #17363]
40822         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
40823         group if the current group is empty.
40824
40825 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40826
40827         * benchtests/bench-memset.c (test_main): Add more test from size
40828         from 32 to 512 bytes.
40829         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40830         Add POWER8 memset object.
40831         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40832         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
40833         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
40834         implementation.
40835         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
40836         Likewise.
40837         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
40838         multiarch POWER8 memset optimization.
40839         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
40840         POWER8 memset optimization.
40841
40842         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40843         Remove bzero multiarch objects.
40844         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
40845         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
40846         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
40847         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
40848         Remove define.
40849         [__bzero]: Redefine to specific name.
40850         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
40851         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
40852         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
40853         define.
40854         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
40855         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
40856
40857 2014-09-10  Florian Weimer  <fweimer@redhat.com>
40858
40859         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
40860         warnings into errors.
40861
40862         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
40863         __cxa_thread_atexit_impl prototype.
40864
40865 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40866
40867         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
40868         Fix capitalization of error message.
40869
40870 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40871
40872         * sysdeps/mips/preconfigure: Modify ABI tests.
40873
40874 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
40875
40876         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
40877
40878 2014-09-07  Roland McGrath  <roland@hack.frob.com>
40879             Carlos O'Donell  <carlos@systemhalted.org>
40880
40881         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
40882         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
40883         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
40884         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
40885         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
40886         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
40887         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
40888         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
40889         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
40890         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
40891         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
40892         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
40893         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
40894         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
40895         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
40896         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
40897         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
40898         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
40899         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
40900         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
40901         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
40902         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
40903         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
40904         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
40905         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
40906         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
40907         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
40908         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
40909         Deconditionalize the code that was previously under [RESET_PID].
40910         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
40911         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
40912         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
40913         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
40914         include sysdep.h.
40915
40916 2014-09-08  Allan McRae  <allan@archlinux.org>
40917
40918         * version.h (RELEASE): Set to "development".
40919         (VERSION): Set to "2.20.90"
40920
40921 2014-09-07  Allan McRae  <allan@archlinux.org
40922
40923         * version.h (RELEASE): Set to "stable".
40924         (VERSION): Set to "2.20"
40925         * include/features.h (__GLIBC_MINOR__): Set to 20.
40926
40927         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
40928         Liebler.
40929
40930         * po/ko.po: Update Korean translation from translation project.
40931
40932 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
40933
40934         [BZ #17354]
40935         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
40936         macro for handling signed relocations.
40937
40938 2014-09-03  Florian Weimer  <fweimer@redhat.com>
40939
40940         [BZ #17325]
40941         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
40942         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
40943         assert.
40944         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
40945         * iconvdata/ibm935.c (BODY): Likewise.
40946         * iconvdata/ibm937.c (BODY): Likewise.
40947         * iconvdata/ibm939.c (BODY): Likewise.
40948         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
40949         assert.
40950         * iconvdata/Makefile (iconv-test.out): Pass module list to test
40951         script.
40952         * iconvdata/run-iconv-test.sh: New test loop for checking for
40953         decoder crashers.
40954
40955 2014-09-02  Khem Raj  <raj.khem@gmail.com>
40956
40957         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
40958         libm_hidden_ver.
40959
40960 2014-09-01  Allan McRae  <allan@archlinux.org>
40961
40962         * po/eo.po: Update Esperanto translation from translation project.
40963
40964         * po/ca.po: Update Catalan translation from translation project.
40965
40966 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40967
40968         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
40969         __proc_dostop call.
40970
40971 2014-08-27  Mark Wielaard  <mjw@redhat.com>
40972
40973         [BZ #17319]
40974         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
40975         to call set_thread_area instead of hand written asm.
40976         (__NR_set_thread_area): Removed define.
40977         (TLS_FLAG_WRITABLE): Likewise.
40978         (__ASSUME_SET_THREAD_AREA): Remove check.
40979         (TLS_EBX_ARG): Remove define.
40980         (TLS_LOAD_EBX): Likewise.
40981
40982 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40983
40984         Simplify atomicity of socket creation in bind.
40985
40986         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
40987         looking up the name after linking the file.
40988
40989 2014-08-27  Allan McRae  <allan@archlinux.org>
40990
40991         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
40992
40993 2014-08-26  Florian Weimer  <fweimer@redhat.com>
40994
40995         [BZ #17187]
40996         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
40997         trans_compare, open_translit, __gconv_translit_find):
40998         Remove module loading code.
40999
41000 2014-08-26  Allan McRae  <allan@archlinux.org>
41001
41002         * po/vi.po: Update Vietnamese translation from translation project.
41003
41004         * po/uk.po: Update Ukrainian translation from translation project.
41005
41006         * po/fr.po: Update French translation from translation project.
41007
41008         * po/ru.po: Update Russian translation from translation project.
41009
41010         * po/pl.po: Update Polish translation from translation project.
41011
41012         * po/cs.po: Update Czech translation from translation project.
41013
41014         * po/de.po: Update German translation from translation project.
41015
41016         * po/bg.po: Update Bulgarian translation from translation project.
41017
41018         * po/sv.po: Update Sweedish translation from translation project.
41019
41020         * po/nl.po: Update Dutch translation from translation project.
41021
41022         * po/es.po: Update Spanish translation from translation project.
41023
41024 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41025
41026         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
41027
41028         * catgets/Makefile (CPPFLAGS-gencat): Remove.
41029         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
41030         (CPPFLAGS-iconvconfig): Likewise.
41031         * timezone/Makefile (CPPFLAGS-zic): Likewise.
41032
41033         * include/libc-symbols.h: Remove unnecessary check for
41034         NOT_IN_libc.
41035         * nptl/pthreadP.h: Likewise.
41036         * sysdeps/aarch64/setjmp.S: Likewise.
41037         * sysdeps/alpha/setjmp.S: Likewise.
41038         * sysdeps/arm/sysdep.h: Likewise.
41039         * sysdeps/i386/setjmp.S: Likewise.
41040         * sysdeps/m68k/setjmp.c: Likewise.
41041         * sysdeps/posix/getcwd.c: Likewise.
41042         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41043         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
41044         * sysdeps/s390/s390-32/setjmp.S: Likewise.
41045         * sysdeps/s390/s390-64/setjmp.S: Likewise.
41046         * sysdeps/sh/sh3/setjmp.S: Likewise.
41047         * sysdeps/sh/sh4/setjmp.S: Likewise.
41048         * sysdeps/unix/alpha/sysdep.h: Likewise.
41049         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
41050         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41051         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
41052         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
41054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
41055         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41056         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41057         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
41058         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
41059         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
41060         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
41061         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41062         * sysdeps/x86_64/setjmp.S: Likewise.
41063
41064 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
41065
41066         [BZ #17263]
41067         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
41068         <stdint.h>.
41069         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
41070         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
41071
41072 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
41073
41074         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
41075
41076         [BZ #17262]
41077         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
41078         and __x86_64__ when disabling x87 inline functions.
41079
41080 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
41081
41082         [BZ #17259]
41083         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
41084         asm statement with __cpuid_count.
41085
41086 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
41087
41088         * configure.ac: Change __ehdr_start code to dereference the struct.
41089         Run readelf on the output to look for relocations.
41090         * configure: Regenerated.
41091
41092 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
41093
41094         [BZ #17261]
41095         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
41096         value to 0.
41097         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
41098
41099 2014-08-12  Roland McGrath  <roland@hack.frob.com>
41100
41101         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
41102
41103 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
41104
41105         [BZ #16892]
41106         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
41107         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
41108
41109 2014-08-12  Sean Anderson  <seanga2@gmail.com>
41110
41111         * malloc/malloc.c: Fix typo in comment.
41112
41113 2014-08-09  Allan McRae  <allan@archlinux.org>
41114
41115         * Regenerate libc.po.
41116
41117 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
41118
41119         * intl/tst-gettext2.sh: Check every lang file for creation.
41120
41121 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41122
41123         * sysdeps/aarch64/fpu/math_private.h
41124         (libc_feholdsetround_noex_aarch64_ctx): New function.
41125
41126 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41127
41128         * sysdeps/arm/armv6/strcpy.S (strcpy):
41129         Fix performance issue in misaligned cases.
41130
41131 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41132
41133         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
41134         Move definition from termios.h.
41135         (struct termio): Likewise.
41136         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41137         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41138         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41139         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41140         Likewise.
41141         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
41142         Move definition to ioctl-types.h
41143         (struct termio): Likewise.
41144         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41145         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41146         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41147         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41148         Likewise.
41149
41150 2014-08-05  Richard Henderson  <rth@redhat.com>
41151
41152         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
41153         exceptions.
41154         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
41155         Add fraiseexcpt.
41156         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
41157         Use __feraiseexcept.
41158         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
41159         Protect libm symbols with IS_IN_libm.
41160
41161         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
41162
41163 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
41164
41165         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
41166
41167 2014-08-04  Will Newton  <will.newton@linaro.org>
41168
41169         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
41170         file.
41171
41172 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
41173
41174         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
41175         variants for each function.
41176
41177 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41178
41179         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
41180         appended ...
41181         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
41182         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
41183         appended ...
41184         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
41185         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
41186         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
41187         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
41188         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
41189         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
41190         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
41191         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
41192         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
41193         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
41194         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
41195         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
41196         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
41197         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
41198         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
41199         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
41200         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
41201         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
41202         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
41203         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
41204         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
41205         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
41206         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
41207         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
41208         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
41209         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
41210         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
41211         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
41212         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
41213         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
41214         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
41215         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
41216         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
41217         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
41218         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
41219         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
41220         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
41221         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
41222         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
41223         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
41224         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
41225         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
41226         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
41227         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
41228         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
41229         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
41230         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
41231         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
41232         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
41233         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
41234         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
41235         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
41236         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
41237         Update #include.
41238         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
41239         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
41240
41241 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41242
41243         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
41244         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
41245         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
41246         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
41247         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
41248         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
41249
41250 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41251
41252         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
41253         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
41254         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
41255         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
41256
41257 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41258
41259         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
41260         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
41261         (__libc_vfork): Define function under this name.
41262         (__vfork): Define as an alias.
41263         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
41264         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
41265
41266 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41267
41268         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
41269         that was previously under [RESET_PID].
41270         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
41271
41272 2014-08-04  Andreas Schwab  <schwab@suse.de>
41273
41274         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
41275
41276 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
41277
41278         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
41279         (main): Likewise.
41280
41281 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41282
41283         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
41284
41285 2014-08-01  Richard Henderon  <rth@redhat.com>
41286
41287         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
41288         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
41289         typo in exact zero test.
41290         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41291         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41292         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41293
41294 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41295
41296         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
41297         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
41298         * sysdeps/arm/sysdep.h: ... here.
41299         [!__ASSEMBLER__]: Include <stdint.h>.
41300
41301 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41302
41303         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
41304         (HAVE_WCTYPE_H): Likewise.
41305         (HAVE_ISWCTYPE): Likewise.
41306         (ENABLE_NLS): Likewise.
41307         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
41308         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
41309
41310         * posix/regex_internal.c: Check if DEBUG is defined and is
41311         set.
41312
41313         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
41314         (HAVE_MBSRTOWCS): Likewise.
41315         * posix/fnmatch.c: Include string.h unconditionally.
41316
41317 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41318
41319         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
41320         reversal.
41321
41322 2014-07-31  Roland McGrath  <roland@hack.frob.com>
41323
41324         * sysdeps/generic/safe-fatal.h: New file.
41325         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
41326         * nptl/forward.c: Include it.
41327         (__pthread_unwind): Use __safe_fatal as default action, rather
41328         than a bogus use of INTERNAL_SYSCALL that could never work.
41329
41330         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
41331         * configure.ac (libc_cv_builtin_trap): New test.
41332         * configure: Regenerated.
41333         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
41334         (ABORT_INSTRUCTION): Define using __builtin_trap.
41335
41336         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
41337         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
41338         * sysdeps/nptl/nptl-signals.h: New file.
41339         * nptl/pthreadP.h: Include <nptl-signals.h>.
41340
41341 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41342
41343         * sysdeps/s390/s390-64/utf16-utf32-z9.c
41344         (ONE_DIRECTION): Define.
41345         * sysdeps/s390/s390-64/utf8-utf16-z9.c
41346         (ONE_DIRECTION): Define.
41347         * sysdeps/s390/s390-64/utf8-utf32-z9.c
41348         (ONE_DIRECTION): Define.
41349
41350 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41351
41352         * sysdeps/s390/Makefile: Delete file.
41353         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
41354         * sysdeps/s390/__longjmp.c: Delete file.
41355         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
41356         Remove fields __flags and __reserved.
41357         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
41358         and add versioning.
41359         * sysdeps/s390/rtld-__longjmp.c: Delete file.
41360         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
41361         * sysdeps/s390/rtld-setjmp.S: Likewise.
41362         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
41363         * sysdeps/s390/s390-32/__longjmp.c: ... here.
41364         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
41365         * sysdeps/s390/s390-32/setjmp.S: ... here.
41366         Add versioning.
41367         (__sigsetjmp): Remove setting __flags field.
41368         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
41369         * sysdeps/s390/s390-64/__longjmp.c: ... here.
41370         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
41371         * sysdeps/s390/s390-64/setjmp.S: ... here.
41372         Add versioning.
41373         (__sigsetjmp): Remove setting __flags field.
41374         * sysdeps/s390/setjmp.S: Delete file.
41375         * sysdeps/s390/sigjmp.c: Likewise.
41376         * sysdeps/s390/v1-longjmp.c: Likewise.
41377         * sysdeps/s390/v1-setjmp.h: Likewise.
41378         * sysdeps/s390/v1-sigjmp.c: Likewise.
41379         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
41380         Remove v1-longjmp_chk.
41381         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
41382         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
41383         Include debug/longjmp_chk.c and add versioning.
41384         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
41385         Include nptl/pt-longjmp.c and add versioning.
41386         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
41387         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
41388         Include __longjmp.c.
41389         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
41390         Move to ...
41391         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
41392         (__getcontext): Remove setting __flags field.
41393         Add versioning.
41394         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
41395         Don't restore upper high grps.
41396         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
41397         Likewise.
41398         (__swapcontext): Remove setting uc_flags field.
41399         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
41400         Delete file.
41401         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
41402         Include __longjmp.c.
41403         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
41404         Move to ...
41405         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
41406         (__getcontext): Remove setting __flags field.
41407         Add versioning.
41408         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
41409         (__swapcontext): Remove setting uc_flags field.
41410         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
41411         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
41412         Remove fields uc_high_gprs and __reserved.
41413         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
41414         New file with reverted content.
41415         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
41416         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
41417         Regenerated.
41418         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
41419         Regenerated.
41420
41421 2014-07-31  Andreas Schwab  <schwab@suse.de>
41422
41423         * config.h.in (HAVE_IFUNC): Define to 0.
41424         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
41425         definedness.
41426
41427 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
41428
41429         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41430         memmove-avx-unaligned, memcpy-avx-unaligned and
41431         mempcpy-avx-unaligned.
41432         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41433         Add tests for AVX memcpy functions.
41434         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
41435         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
41436         memcpy_chk.
41437         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
41438         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
41439         memmove_chk.
41440         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
41441         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
41442         mempcpy_chk.
41443         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
41444         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
41445         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
41446
41447 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41448
41449         [BZ #17213]
41450         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
41451         powerpc64le.
41452
41453 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
41454
41455         [BZ #16839]
41456         * manual/llio.texi: Add section about open file description locks.
41457         * manual/examples/ofdlocks.c: Example of open file description
41458         lock usage.
41459         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
41460         F_OFD_SETLK, and F_OFD_SETLKW.
41461
41462 2014-07-23  Allan McRae  <allan@archlinux.org>
41463
41464         * po/es.po: Update Spanish translation from translation project.
41465
41466 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
41467
41468         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
41469
41470 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
41471
41472         [BZ #17078]
41473         * sysdeps/arm/dl-machine.h (elf_machine_rela)
41474         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
41475         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
41476
41477 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
41478
41479         [BZ #17088]
41480         * math/fesetenv.c (__fesetenv)
41481         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
41482         * math/feupdateenv.c (__feupdateenv)
41483         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
41484
41485         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
41486         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
41487         (__ASSUME_SOCKETCALL): Do not define.
41488
41489         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
41490         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
41491         (__ASSUME_SOCKETCALL): Do not define.
41492         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
41493         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41494         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41495         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41496         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41497         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
41498         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41499         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41500
41501         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
41502         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
41503         (__ASSUME_SOCKETCALL): Do not define.
41504         (__ASSUME_IPC64): Define unconditionally.
41505         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41506         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41507         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41508         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41509         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
41510         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41511         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
41512         Likewise.
41513
41514         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
41515         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
41516         (__ASSUME_SOCKETCALL): Do not define.
41517         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
41518         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41519         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41520         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
41521         (__ASSUME_REQUEUE_PI): Define unconditionally.
41522         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
41523         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
41524         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41525         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
41526         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41527         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41528
41529         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
41530         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
41531         (__ASSUME_SOCKETCALL): Do not define.
41532         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
41533         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41534         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41535         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
41536         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41537         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41538
41539         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
41540         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
41541         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41542         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
41543         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41544         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
41545         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41546         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
41547         (__ASSUME_GETCPU_SYSCALL): Likewise.
41548
41549         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
41550         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
41551         cases for individual architectures.
41552         * sysdeps/gnu/configure: Regenerated.
41553         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
41554         LIBC_SLIBDIR_RTLDDIR.
41555         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
41556         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
41557         LIBC_SLIBDIR_RTLDDIR.
41558         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
41559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
41560         LIBC_SLIBDIR_RTLDDIR.
41561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41562         Regenerated.
41563         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
41564         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
41565         file.
41566         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
41567         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
41568         file.
41569         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
41570         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
41571         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
41572         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
41573
41574         * sysdeps/aarch64/shlib-versions: Move to ...
41575         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
41576         * sysdeps/alpha/shlib-versions: Move to ...
41577         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
41578         * sysdeps/arm/shlib-versions: Move to ...
41579         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
41580         * sysdeps/hppa/shlib-versions: Move all contents except for
41581         libgcc_s entry to ...
41582         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
41583         entry from ...
41584         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
41585         * sysdeps/ia64/shlib-versions: Move to ...
41586         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
41587         entry from ...
41588         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
41589         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
41590         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
41591         * sysdeps/microblaze/shlib-versions: Move to ...
41592         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
41593         * sysdeps/mips/shlib-versions: Move to ...
41594         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
41595         entry from ...
41596         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
41597         * sysdeps/tile/shlib-versions: Move to ...
41598         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
41599         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
41600         from ...
41601         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
41602         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
41603         entry from ...
41604         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
41605
41606 2014-07-17  Will Newton  <will.newton@linaro.org>
41607
41608         * sysdeps/arm/bits/atomic.h
41609         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
41610         (__arch_compare_and_exchange_bool_16_int): Likewise.
41611         (__arch_compare_and_exchange_bool_64_int): Likewise.
41612
41613         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
41614         into an #else block.
41615
41616 2014-07-16  Roland McGrath  <roland@hack.frob.com>
41617
41618         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
41619         just Linux configurations.  Test empirically that the compiler sets
41620         __ARM_EABI__, rather than using the tuple to decide.
41621         * sysdeps/arm/preconfigure: Regenerated.
41622         * sysdeps/unix/sysv/linux/arm/configure: File removed.
41623         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
41624         contents appended ...
41625         * sysdeps/arm/configure.ac: ... here.
41626         * sysdeps/arm/configure: Regenerated.
41627
41628 2014-07-15  Roland McGrath  <roland@hack.frob.com>
41629
41630         * nptl/pthread_kill.c: New file.
41631         * nptl/pthread_sigmask.c: New file.
41632         * nptl/pthread_sigqueue.c: New file.
41633
41634         * sysdeps/nptl/lowlevellock.h: New file.
41635         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
41636         * sysdeps/nptl/lowlevellock-futex.h: New file.
41637
41638         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
41639         Remove dead declarations.
41640
41641 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
41642
41643         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
41644         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
41645         config-cflags-avx2.
41646         * sysdeps/x86_64/configure.ac: Likewise.
41647         * sysdeps/i386/configure: Regenerated.
41648         * sysdeps/x86_64/configure: Likewise.
41649         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41650         memset-avx2 only if config-cflags-avx2 is yes.
41651         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41652         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
41653         defined.
41654         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
41655         only if HAVE_AVX2_SUPPORT is defined.
41656         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
41657
41658 2014-07-14  Alan Modra  <amodra@gmail.com>
41659
41660         [BZ #17153]
41661         * elf/elf.h (DT_PPC64_NUM): Correct value.
41662         * NEWS: Add to fixed bug list.
41663
41664 2014-07-13  Jim Meyering  <meyering@fb.com>
41665
41666         [BZ 17150]
41667         regex: don't deref NULL upon heap allocation failure
41668         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
41669         failure in one more place.
41670         To trigger the segfault, configure grep -with-included-regex,
41671         build it, and run these commands:
41672         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
41673
41674 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
41675
41676         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
41677
41678 2014-07-11  Richard Henderson  <rth@redhat.com>
41679
41680         * sysdeps/aarch64/libm-test-ulps: Update.
41681
41682 2014-07-10  Florian Weimer  <fweimer@redhat.com>
41683
41684         [BZ #17135]
41685         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
41686         * nptl/allocatestack.c (__nptl_setxid_error): New function.
41687         (__nptl_setxid): Initialize error member.  Call
41688         __nptl_setxid_error.
41689         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
41690         * nptl/descr.h (struct xid_command): Add error member.
41691         * nptl/tst-setuid3.c: New file.
41692         * nptl/Makefile (tests): Add it.
41693
41694 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41695
41696         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
41697         New define.
41698         (__lll_trylock): Use __lll_base_trylock.
41699         (__lll_cond_trylock): Likewise.
41700
41701 2014-07-10  Roland McGrath  <roland@hack.frob.com>
41702
41703         * nptl/pthread_create.c (start_thread): Use atomic_or and
41704         lll_futex_wake directly rather than lll_robust_dead.
41705         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41706         (lll_robust_dead): Macro removed.
41707         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
41708         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41709         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41710         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41711         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41712         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41713         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41714         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41715         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41716         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41717         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41718         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41719         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41720         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41721         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41722
41723         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
41724         Use atomic_compare_and_exchange_val_acq directly rather than
41725         lll_robust_trylock.
41726         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41727         (__lll_robust_trylock, lll_robust_trylock): Removed.
41728         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41729         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41730         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41731         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41732         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41733         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41734         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41735         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41736         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41737         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41738         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41739         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41740         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41741         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41742
41743 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41744
41745         * manual/locale.texi (Locale Names): New section documenting
41746         locale name syntax.  Adjust menu and node chaining accordingly.
41747         (Choosing Locale): Reference Locale Names, Locale Categories.
41748         Mention setting LC_ALL=C.  Reflect that name syntax is now
41749         documented.
41750         (Locale Categories): New section title.  Reference Locale Names.
41751         LC_ALL is an environment variable, but not a category.
41752         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
41753         description, now in Locale Name.  Reference that section.  Locale
41754         name syntax is now documented.
41755
41756 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41757
41758         [BZ #17137]
41759         * locale/findlocale.c (name_present, valid_locale_name): New
41760         functions.
41761         (_nl_find_locale): Use the loc_name variable to store name
41762         candidates.  Call name_present and valid_locale_name to check and
41763         validate locale names.  Return an error if the locale is invalid.
41764
41765 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41766
41767         * locale/setlocale.c (setlocale): Use strdup for allocating
41768         composite name copy.
41769
41770 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41771
41772         Sync up with gnulib.
41773         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
41774         [!_LIBC && ENABLE_NLS]: Include gettext.h.
41775         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
41776         and _GL_ARG_NONNULL.
41777         [USE_UNLOCKED_IO]: Include unlocked-io.h.
41778         [!_LIBC]: Include code for Windows and Cygwin.
41779         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
41780         Include prototype for int strerror_r.
41781         [!_LIBC] (is_open): New function.
41782         (flush_stdout): New function.
41783         (print_errno_message): Use it.
41784         (error): Likewise.
41785         (error_at_line): Likewise.
41786         (error_tail) Add function attribute macros.  Use
41787         __builtin_expect.
41788
41789         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
41790
41791         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
41792
41793         * io/ftw.c: Include sys/param.h unconditionally.
41794
41795         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
41796
41797         [BZ #17125]
41798         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
41799         libc_freeres_ptr.
41800         (freecache): New function to free CACHE on exit.
41801
41802         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
41803         initialization.
41804
41805 2014-07-09  David S. Miller  <davem@davemloft.net>
41806
41807         * sysdeps/sparc/fpu/libm-test-ulps: Update.
41808
41809         * sysdeps/sparc/nptl/internaltypes.h: Delete.
41810         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
41811         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
41812         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
41813         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
41814         * sysdeps/sparc/nptl/sem_init.c: Likewise.
41815         * sysdeps/sparc/nptl/sem_post.c: Likewise.
41816         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
41817         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
41818         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
41819         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
41820         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
41821         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
41822
41823 2014-07-09  Andreas Schwab  <schwab@suse.de>
41824
41825         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
41826         output.
41827         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
41828         (do_test): Likewise.
41829
41830         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
41831
41832 2014-07-09  Will Newton  <will.newton@linaro.org>
41833
41834         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
41835         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
41836         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
41837         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
41838         * sysdeps/hppa/start.S (_start): Likewise.
41839
41840 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
41841
41842         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
41843
41844         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
41845         defined.
41846
41847 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41848
41849         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
41850         after checking that it is non-NULL.
41851
41852         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
41853
41854 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41855
41856         * sysdeps/powerpc/memmove.c: Remove file.
41857         * sysdeps/powerpc/powerpc32/power4/memcopy.h
41858         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
41859         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
41860         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
41861         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
41862         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
41863         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
41864         string memmove instead of removed powerpc one.
41865
41866         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41867         [weak_alias]: Fix compiler warning due trailing data.
41868         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
41869         [weak_alias]: Likewise.
41870         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
41871         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
41872
41873         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41874         (__libc_ifunc_impl_list): Add memmove functions.
41875
41876 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41877
41878         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
41879         Remove code.
41880         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
41881         Likewise.
41882         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
41883         Likewise.
41884         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
41885         Likewise.
41886         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
41887         Likewise.
41888         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
41889         Likewise.
41890         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
41891         Likewise.
41892         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
41893         Likewise.
41894         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
41895         Likewise.
41896         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
41897         Likewise.
41898         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
41899         Likewise.
41900         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
41901         Likewise.
41902         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
41903         Likewise.
41904         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
41905         Likewise.
41906         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
41907         Likewise.
41908         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
41909         Likewise.
41910         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
41911         Likewise.
41912
41913 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41914
41915         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
41916         to avoid alignment traps in non-cacheable memory.
41917         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
41918
41919         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
41920         multiarch objects.
41921         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
41922         file: multiarch power7 memmove.
41923         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
41924         multiarch default memmove.
41925         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
41926         multiarch memove for powerpc32/power4.
41927
41928         * string/bcopy.c: Use full path to include memmove.c.
41929         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
41930         multiarch objects.
41931         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
41932         bcopy for powerpc64.
41933         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
41934         bcopy for powerpc64.
41935         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
41936         and memmove implementations.
41937         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
41938         optimized multiarch memmove for POWER7/powerpc64.
41939         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
41940         default multiarch memmove for powerpc64.
41941         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
41942         multiarch for powerpc64.
41943         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
41944         for POWER7/powerpc64.
41945         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
41946         memmove for POWER7/powerpc64.
41947
41948         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
41949         glibc default one.
41950
41951         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
41952         __ELF_NATIVE_CLASS equal to 64.
41953
41954 2014-07-07  Roland McGrath  <roland@hack.frob.com>
41955
41956         * sysdeps/nptl/lowlevellock.h: File removed.
41957
41958         * NEWS: NPTL is no longer an add-on!
41959         * nptl/internaltypes.h: Moved ...
41960         * sysdeps/nptl/internaltypes.h: ... here.
41961         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
41962         * sysdeps/nptl/fork.c: Likewise.
41963         * sysdeps/nptl/gai_misc.h: Likewise.
41964         * sysdeps/nptl/librt-cancellation.c: Likewise.
41965         * sysdeps/nptl/jmp-unwind.c: Likewise.
41966         * sysdeps/nptl/setxid.h: Likewise.
41967         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
41968         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
41969         * sysdeps/unix/sysv/linux/arm/Implies: New file.
41970         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
41971         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
41972         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
41973         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
41974         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
41975         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
41976         * sysdeps/unix/sysv/linux/mips/Implies: New file.
41977         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
41978         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
41979         * sysdeps/unix/sysv/linux/sh/Implies: New file.
41980         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
41981         * sysdeps/unix/sysv/linux/tile/Implies: New file.
41982         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
41983         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
41984         * nptl/Makeconfig: Moved ...
41985         * sysdeps/nptl/Makeconfig: ... here.
41986         * nptl/configure: File removed.
41987         * nptl/ANNOUNCE: File removed.
41988         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
41989         * sysdeps/unix/sysv/linux/configure: Regenerated.
41990
41991         * nptl/Makefile (routines): Add libc_pthread_init,
41992         libc_multiple_threads, register-atfork and unregister-atfork.
41993         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
41994         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
41995         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
41996         pthread-pi-defines.sym, structsem.sym.
41997         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
41998         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
41999         [$(subdir) = nptl] (tests): Add tst-setgetname.
42000         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
42001         * sysdeps/unix/sysv/linux/sigaction.c: Just include
42002         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
42003         [!LIBC_SIGACTION]: Remove aliases.
42004         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
42005         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
42006         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
42007         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
42008         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
42009         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
42010         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
42011         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
42012         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
42013         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
42014         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
42015         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
42016         __libc_allocate_rtsig_private.
42017         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
42018         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
42019         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
42020         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
42021         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
42022         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
42023         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
42024         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
42025         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
42026         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
42027         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
42028         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
42029         * nptl/internaltypes.h: ... here.
42030         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
42031         * sysdeps/nptl/jmp-unwind.c: ... here.
42032         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
42033         * nptl/libc-lowlevellock.c: ... here.
42034         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
42035         * nptl/libc_multiple_threads.c: ... here.
42036         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
42037         * nptl/libc_pthread_init.c: ... here.
42038         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
42039         * nptl/lowlevelbarrier.sym: ... here.
42040         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
42041         * nptl/lowlevelcond.sym: ... here.
42042         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
42043         * nptl/lowlevellock.c: ... here.
42044         * nptl/lowlevellock.h: Moved ...
42045         * sysdeps/nptl/lowlevellock.h: ... here.
42046         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
42047         * nptl/lowlevelrobustlock.c: ... here.
42048         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
42049         * nptl/lowlevelrobustlock.sym: ... here.
42050         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
42051         * nptl/lowlevelrwlock.sym: ... here.
42052         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
42053         * nptl/pt-fork.c: ... here.
42054         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
42055         * nptl/pthread-pi-defines.sym: ... here.
42056         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
42057         * nptl/pthread_attr_getaffinity.c: ... here.
42058         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
42059         * nptl/pthread_attr_setaffinity.c: ... here.
42060         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
42061         * nptl/pthread_mutex_cond_lock.c: ... here.
42062         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
42063         Update #include.
42064         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
42065         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
42066         * nptl/pthread_once.c: ... here, replacing old file.
42067         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
42068         * nptl/pthread_yield.c: ... here.
42069         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
42070         * nptl/register-atfork.c: ... here.
42071         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
42072         * nptl/sem_post.c: ... here.
42073         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
42074         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
42075         * nptl/sem_timedwait.c: ... here.
42076         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
42077         * nptl/sem_trywait.c: ... here.
42078         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
42079         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
42080         * nptl/sem_wait.c: ... here.
42081         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
42082         * nptl/structsem.sym: ... here.
42083         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
42084         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
42085         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
42086         * nptl/unregister-atfork.c: ... here.
42087         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
42088         * nptl/unwindbuf.sym: ... here.
42089         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
42090         * sysdeps/nptl/fork.c: ... here.
42091         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
42092         * sysdeps/nptl/fork.h: ... here.
42093         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
42094         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
42095         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
42096         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
42097         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
42098         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
42099         * sysdeps/unix/sysv/linux/getpid.c: ... here.
42100         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
42101         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
42102         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
42103         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
42104         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
42105         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
42106         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
42107         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
42108         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
42109         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
42110         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
42111         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
42112         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
42113         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
42114         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
42115         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
42116         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
42117         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
42118         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
42119         * sysdeps/unix/sysv/linux/raise.c: ... here.
42120         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
42121         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
42122         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
42123         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
42124         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
42125         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
42126         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
42127         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
42128         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
42129         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
42130         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
42131         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
42132         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
42133         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
42134         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
42135
42136 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42137
42138         * sysdeps/generic/memcopy.h: Add comment for
42139         MEMCPY_OK_FOR_FWD_MEMMOVE.
42140
42141 2014-07-04  Will Newton  <will.newton@linaro.org>
42142
42143         * string/memchr.c: Merge from gnulib.
42144         [_LIBC]: Remove conditionals.
42145         (__ptr_t): Remove define.
42146         (LONG_MAX_32_BITS): Likewise.
42147         (LONG_MAX): Likewise.
42148         (MEMCHR): Use ANSI prototype and optimize algorithm.
42149
42150         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
42151
42152 2014-07-03  Roland McGrath  <roland@hack.frob.com>
42153
42154         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
42155         (lll_futex_timed_wait_bitset): Fix syscall argument count.
42156
42157         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
42158         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
42159         in a bare environment with no <stdlib.h> installed.
42160         * sysdeps/nptl/configure: Regenerated.
42161
42162         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
42163
42164         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
42165         AC_EGREP_CPP for kernel header checks, so they only succeed if
42166         including <linux/version.h> actually works right.
42167         * sysdeps/unix/sysv/linux/configure: Regenerated.
42168
42169         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
42170         value so it's not diagnosed as unused.
42171
42172         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
42173         thing) with "ifeq ($(subdir),rt)".
42174
42175 2014-07-03  Richard Henderson  <rth@redhat.com>
42176
42177         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
42178         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
42179         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
42180
42181         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
42182         (math_force_eval): New.
42183
42184         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
42185         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
42186
42187         * sysdeps/alpha/fpu/s_round.c: Remove file.
42188         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
42189
42190         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
42191         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
42192         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
42193         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
42194         (_dl_start, print_statistics): Likewise.
42195         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
42196         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
42197
42198         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42199         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42200         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42201         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42202         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42203         (HP_SMALL_TIMING_AVAIL): Define.
42204         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42205         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42206         (HP_SMALL_TIMING_AVAIL): Define.
42207         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42208         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42209
42210         * sysdeps/aarch64/hp-timing.h: New file.
42211
42212         * sysdeps/generic/hp-timing.h: Remove dead comment.
42213         * sysdeps/generic/hp-timing-common.h: New file.
42214         * sysdeps/alpha/hp-timing.h: Include it.
42215         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
42216         * sysdeps/i386/i686/hp-timing.h: Likewise.
42217         * sysdeps/ia64/hp-timing.h: Likewise.
42218         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
42219         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
42220         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
42221         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
42222         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
42223         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
42224         (hp_timing_t): New.
42225
42226         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
42227         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
42228         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
42229         * elf/rtld.c (_dl_start_final): Likewise.
42230         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
42231         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42232         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42233         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42234         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42235         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42236         (HP_TIMING_DIFF_INIT): Remove.
42237         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42238         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42239         (HP_TIMING_DIFF_INIT): Remove.
42240         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42241         * sysdeps/i386/i686/hp-timing.c: Remove file.
42242         * sysdeps/x86_64/hp-timing.c: Remove file.
42243         * sysdeps/ia64/hp-timing.c: Remove file.
42244         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
42245         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
42246         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
42247         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
42248
42249         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
42250         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
42251         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
42252         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42253         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42254         (HP_TIMING_ACCUM): Remove.
42255         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42256         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
42257         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42258
42259         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
42260         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
42261         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
42262         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
42263         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
42264         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42265         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
42266         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42267
42268         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
42269
42270 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
42271
42272         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
42273
42274 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42275
42276         Sync up with gettext.
42277         * intl/loadmsgcat.c: Define O_BINARY if not defined.
42278         [_MSC_VER]: Include malloc.h
42279         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
42280         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
42281         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
42282         TEMP_FAILURE_RETRY.  Cast return of alloca.
42283         [!_LIBC] Call gl_rwlock_init.
42284         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
42285
42286 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42287
42288         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
42289         before checking its value.
42290
42291 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42292
42293         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
42294
42295         * debug/memcpy_chk.c: Don't include pagecopy.h.
42296         * debug/mempcpy_chk.c: Likewise.
42297         * string/memcpy.c: Likewise.
42298         * string/memmove.c: Likewise.
42299         * sysdeps/powerpc/memmove.c: Likewise.
42300         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
42301         definition of PAGE_COPY_FWD_MAYBE here...
42302         * sysdeps/generic/pagecopy.h: ... from here.
42303         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
42304
42305 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42306             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42307
42308         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
42309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
42310         optimizations.
42311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42312         (__libc_ifunc_impl_list): Likewise.
42313         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
42314         multiarch strcat for PPC64.
42315         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
42316         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
42317
42318 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42319
42320         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
42321
42322 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42323
42324         * intl/loadmsgcat.c: Remove declaration of
42325         get_sysdep_segment_value.
42326         (get_sysdep_segment_value): Use ISO C style.
42327         (_nl_load_domain): Use ISO C style.  Get rid of redundant
42328         semicolon.  Fix typo and formatting in comment.
42329         (_nl_unload_domain): Use ISO C style.
42330
42331         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
42332
42333 2014-07-02  Will Newton  <will.newton@linaro.org>
42334
42335         * malloc/obstack.c: Merge from gnulib master.
42336         [HAVE_CONFIG_H]: Remove conditional code.
42337         [!_LIBC]: Include config.h.
42338         [!ELIDE_CODE]: Don't include inttypes.h, include
42339         stdint.h unconditionally.
42340         (print_and_abort): Mark as _Noreturn.
42341         (_obstack_allocated_p): Mark as __attribute_pure__.
42342         (obstack_free): Rename to __obstack_free.
42343         [!__attribute__]: Remove conditional code.
42344         * malloc/obstack.h: Merge from gnulib master.
42345         [__cplusplus]: Move conditional down.
42346         [!__attribute_pure__]: Define __attribute_pure__ here
42347         if it is not already defined.
42348         (_obstack_memory_used): Mark as __attribute_pure__.
42349         [!__obstack_free]: Define as obstack_free.
42350         [__GNUC__]: Remove check for ancient NeXT gcc.
42351
42352 2014-07-02  Will Newton  <will.newton@linaro.org>
42353             Paul Eggert  <eggert@cs.ucla.edu>
42354
42355         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
42356
42357 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42358
42359         * resolv/gethnamaddr.c: Add comment warning that the file is
42360         not maintained.
42361
42362 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
42363
42364         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
42365         entries.
42366
42367         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
42368         entry for aio_cancel and aio_cancel64.
42369         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
42370         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
42371         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
42372         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
42373         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
42374         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
42375         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
42376         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
42377         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
42378         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
42379         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
42380         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
42381         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
42382
42383 2014-07-01  Roland McGrath  <roland@hack.frob.com>
42384
42385         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
42386         * nptl/pthread_mutex_lock.c: Likewise.
42387         * nptl/pthread_mutex_timedlock.c: Likewise.
42388         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
42389
42390 2014-07-01  Richard henderson  <rth@redhat.com>
42391
42392         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
42393         (__isnan, __isnanl): Remove.
42394         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
42395
42396         * sysdeps/alpha/fpu/libm-test-ulps: Update.
42397
42398 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
42399
42400         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42401
42402 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
42403
42404         * resolv/nss_dns/dns-host.c (getanswer_r)
42405         [MULTI_PTRS_ARE_ALIASES]: Remove code.
42406
42407 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
42408
42409         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42410         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
42411         undefine.
42412         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
42413         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
42414
42415 2014-07-01  Roland McGrath <roland@hack.frob.com>
42416
42417         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
42418         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
42419
42420         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
42421         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
42422
42423         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
42424         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
42425         ... here.
42426         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
42427         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
42428
42429         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
42430         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
42431         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
42432         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
42433
42434         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
42435         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
42436         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
42437         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
42438         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
42439         Moved ...
42440         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
42441         ... here.
42442         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
42443         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
42444         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
42445         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
42446         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
42447         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
42448         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
42449         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
42450         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
42451         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
42452         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
42453         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
42454         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
42455         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
42456         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
42457         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
42458         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
42459         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
42460         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
42461         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
42462         ... here.
42463         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
42464         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
42465         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
42466         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
42467         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
42468         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
42469         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
42470         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
42471
42472 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
42473
42474         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
42475         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
42476         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
42477         Add sysdep.
42478
42479 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42480
42481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42482
42483 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42484
42485         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
42486         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42487
42488         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42489
42490         * sysdeps/arm/libm-test-ulps: Regenerated.
42491
42492 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42493             Roland McGrath <roland@hack.frob.com>
42494
42495         * test-skeleton.c (signal_handler): Kill the whole process group
42496         before killing the child individually.
42497         (main): Report any failure on `setpgid'.
42498
42499 2014-06-30  Roland McGrath  <roland@hack.frob.com>
42500
42501         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
42502         from _TLS_H to _ARM_NPTL_TLS_H.
42503         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
42504         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
42505
42506 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42507
42508         [BZ #16539]
42509         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
42510         (__expm1l): Return argument unchanged when small but not
42511         subnormal.
42512
42513         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
42514         include macro name.
42515         (_FP_UNPACK_RAW_1_P): Likewise.
42516         (_FP_PACK_RAW_1): Likewise.
42517         (_FP_PACK_RAW_1_P): Likewise.
42518         (_FP_MUL_MEAT_1_wide): Likewise.
42519         (_FP_MUL_MEAT_DW_1_hard): Likewise.
42520         (_FP_MUL_MEAT_1_hard): Likewise.
42521         (_FP_DIV_MEAT_1_imm): Likewise.
42522         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
42523         (_FP_DIV_MEAT_1_udiv): Likewise.
42524         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
42525         (_FP_UNPACK_RAW_2): Likewise.
42526         (_FP_UNPACK_RAW_2_P): Likewise.
42527         (_FP_PACK_RAW_2): Likewise.
42528         (_FP_PACK_RAW_2_P): Likewise.
42529         (_FP_MUL_MEAT_DW_2_wide): Likewise.
42530         (_FP_MUL_MEAT_2_wide): Likewise.
42531         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
42532         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
42533         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
42534         (_FP_MUL_MEAT_2_gmp): Likewise.
42535         (_FP_DIV_MEAT_2_udiv): Likewise.
42536         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
42537         (_FP_FRAC_SRL_4): Likewise.
42538         (_FP_FRAC_SRST_4): Likewise.
42539         (_FP_FRAC_SRS_4): Likewise.
42540         (_FP_UNPACK_RAW_4): Likewise.
42541         (_FP_UNPACK_RAW_4_P): Likewise.
42542         (_FP_PACK_RAW_4): Likewise.
42543         (_FP_PACK_RAW_4_P): Likewise.
42544         (_FP_MUL_MEAT_DW_4_wide): Likewise.
42545         (_FP_MUL_MEAT_4_wide): Likewise.
42546         (_FP_MUL_MEAT_4_gmp): Likewise.
42547         (umul_ppppmnnn): Likewise.
42548         (_FP_DIV_MEAT_4_udiv): Likewise.
42549         (__FP_FRAC_ADD_4): Likewise.
42550         (__FP_FRAC_SUB_3): Likewise.
42551         (__FP_FRAC_SUB_4): Likewise.
42552         (__FP_FRAC_DEC_3): Likewise.
42553         (__FP_FRAC_DEC_4): Likewise.
42554         (__FP_FRAC_ADDI_4): Likewise.
42555         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
42556         (_FP_FRAC_SRL_8): Likewise.
42557         (_FP_FRAC_SRS_8): Likewise.
42558
42559         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
42560         include macro name.
42561         (FP_UNPACK_RAW_EP): Likewise.
42562         (FP_PACK_RAW_E): Likewise.
42563         (FP_PACK_RAW_EP): Likewise.
42564         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
42565         (_FP_ISSIGNAN): Likewise.
42566         (_FP_ADD_INTERNAL): Likewise.
42567         (_FP_FMA): Likewise.
42568         (_FP_CMP): Likewise.
42569         (_FP_SQRT): Likewise.
42570         (_FP_TO_INT): Likewise.
42571         (_FP_FROM_INT): Likewise.
42572         (FP_EXTEND): Likewise.
42573         (_FP_DIV_MEAT_N_loop): Likewise.
42574
42575 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42576
42577         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
42578         throughout.
42579
42580 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
42581
42582         [BZ #17097]
42583         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
42584         result with correct sign in case of exponents that produce
42585         overflow except for X very close to 1.
42586
42587 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
42588
42589         mktime: merge #if/#ifdef usage from glibc
42590         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
42591         as that works with both Glibc's and Gnulib's style.
42592         See thread starting at Siddhesh Poyarekar's bug report at:
42593         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
42594
42595 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42596
42597         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
42598         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
42599         * sysdeps/tile/tilegx/memmove.c: Remove file.
42600
42601 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42602
42603         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
42604         abi-name definition.
42605         * scripts/soversions.awk: Do not handle or generate ABI lines.
42606         * shlib-versions: Remove ABI entries.
42607         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
42608         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
42609
42610 2014-06-27  Roland McGrath  <roland@hack.frob.com>
42611
42612         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
42613         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
42614         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
42615         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
42616         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
42617         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
42618         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
42619         Moved ...
42620         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
42621         ... here.
42622         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
42623         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
42624         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
42625         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
42626         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
42627         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
42628         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
42629         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
42630         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
42631         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
42632         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
42633         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
42634         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
42635         Moved ...
42636         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
42637         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
42638         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
42639         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
42640         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
42641         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
42642         Moved ...
42643         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
42644         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
42645         Moved ...
42646         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
42647         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
42648         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
42649         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
42650         Moved ...
42651         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
42652         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
42653         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
42654         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
42655         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
42656         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
42657         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
42658         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
42659         Moved ...
42660         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
42661         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
42662         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
42663         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
42664         Moved ...
42665         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
42666         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
42667         Moved ...
42668         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
42669         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
42670         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
42671         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
42672         Moved ...
42673         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
42674         ... here.
42675         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
42676         Identical file removed.
42677         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
42678         Moved ...
42679         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
42680         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
42681         Identical file removed.
42682         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
42683         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
42684         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
42685         Moved ...
42686         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
42687         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
42688         Identical file removed.
42689         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
42690         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
42691         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
42692         Identical file removed.
42693         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
42694         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
42695         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
42696         Identical file removed.
42697         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
42698         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
42699         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
42700         Identical file removed.
42701         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
42702         Moved ...
42703         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
42704         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
42705         Identical file removed.
42706         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
42707         Moved ...
42708         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
42709         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
42710         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
42711         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
42712         Identical file removed.
42713         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
42714         Moved ...
42715         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
42716         ... here.
42717         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
42718         Identical file removed.
42719         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
42720         Moved ...
42721         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
42722         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
42723         Identical file removed.
42724         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
42725         Moved ...
42726         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
42727         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
42728         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
42729         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
42730         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
42731         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
42732         Moved ...
42733         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
42734         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
42735         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
42736
42737         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
42738         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
42739         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
42740         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
42741         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
42742
42743 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
42744
42745         [BZ #17092]
42746         * nscd/nscd.c (monitor_child): Return exit status of child
42747         instead of return value from wait syscall.
42748
42749 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42750
42751         * configure.ac (libc_commonpagesize): Remove variable.
42752         (libc_relro_required): Likewise.
42753         (libc_cv_z_relro): Remove configure test.
42754         * configure: Regenerated.
42755         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
42756         variable.
42757         (libc_relro_required): Likewise.
42758         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
42759         (libc_relro_required): Likewise.
42760         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
42761         (libc_relro_required): Likewise.
42762         * sysdeps/arm/preconfigure: Regenerated.
42763         * sysdeps/ia64/preconfigure: Remove file.
42764         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
42765         variable.
42766         (libc_relro_required): Likewise.
42767
42768         [BZ #16561]
42769         [BZ #16562]
42770         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
42771         (__ieee754_yn): Set FE_TONEAREST mode internally and then
42772         recompute overflowing results in original rounding mode.
42773         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
42774         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
42775         recompute overflowing results in original rounding mode.
42776         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
42777         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42778         recompute overflowing results in original rounding mode.
42779         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
42780         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42781         recompute overflowing results in original rounding mode.
42782         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
42783         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42784         recompute overflowing results in original rounding mode.
42785         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
42786         (libc_feholdsetround_ctx): New macro.
42787         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
42788         * sysdeps/i386/fpu/libm-test-ulps: Update.
42789         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
42790
42791 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42792
42793         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
42794         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
42795         corresponding .cpsetup call.
42796
42797 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42798
42799         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
42800         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
42801         * sysdeps/arm/Makefile [$(subdir) = csu]
42802         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
42803         (static-only-routines): Add aeabi_read_tp here.
42804         (shared-only-routines): Add libc-aeabi_read_tp here.
42805         (CFLAGS-libc-start.c): Add -fexceptions here.
42806         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
42807         (sysdep_routines, static-only-routines, shared-only-routines):
42808         Don't add to these here.
42809         (CFLAGS-libc-start.c): Likewise.
42810
42811         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
42812         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
42813         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
42814         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
42815         * sysdeps/arm/Makefile [$(subdir) = rt]
42816         (librt-sysdep_routines, librt-shared-only-routines):
42817         Append rt-aeabi_unwind_cpp_pr1 here.
42818         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
42819         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
42820         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
42821         (libpthread-sysdep_routines, libpthread-shared-only-routines):
42822         Append nptl-aeabi_unwind_cpp_pr1 here.
42823         (tests): Filter out tst-cleanupx4 here.
42824         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
42825         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
42826         Don't do those here.
42827
42828 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42829
42830         * scripts/list-sources.sh: Do not handle ports specially.
42831
42832 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42833
42834         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
42835         * sysdeps/arm/feupdateenv.c: Likewise.
42836
42837         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
42838
42839 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42840
42841         * manual/texinfo.tex: Update to version 2014-05-05.10 with
42842         trailing whitespace removed.
42843         * scripts/config.guess: Update to version 2014-03-23.
42844         * scripts/config.sub: Update to version 2014-05-01
42845         * scripts/install-sh: Update to version 2013-12-25.23.
42846         * scripts/move-if-change: Update from gnulib.
42847
42848 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42849
42850         * debug/memmove_chk.c: Remove pagecopy.h include.
42851
42852 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42853
42854         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
42855         identical to gnulib mktime.
42856
42857 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42858
42859         * configure.ac: Do not test for machine being rs6000.  Do not test
42860         for powerpc*-*soft.
42861         * configure: Regenerated.
42862
42863         [BZ #11505]
42864         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
42865         test.
42866         * configure: Regenerated.
42867         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
42868         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
42869         Remove configure test.
42870         * sysdeps/arm/configure: Regenerated.
42871         * sysdeps/nptl/configure.ac: Do not check
42872         libc_cv_asm_cfi_directives.
42873         * sysdeps/nptl/configure: Regenerated.
42874         * sysdeps/x86_64/nptl/configure.ac: Remove file.
42875         * sysdeps/x86_64/nptl/configure: Remove generated file.
42876         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
42877         unconditional.
42878         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
42879
42880 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42881
42882         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
42883         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
42884         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
42885         it is defined.
42886
42887         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
42888         instead of whether it is defined.
42889         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
42890         * sysdeps/hppa/dl-machine.h: Likewise.
42891         * sysdeps/ia64/dl-machine.h: Likewise.
42892         * sysdeps/m68k/dl-machine.h: Likewise.
42893         * sysdeps/microblaze/dl-machine.h: Likewise.
42894         * sysdeps/mips/dl-machine.: Likewise.
42895         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42896         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42897         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42898         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42899         * sysdeps/sh/dl-machine.h: Likewise.
42900         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42901         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42902         * sysdeps/tile/dl-machine.h: Likewise.
42903         * sysdeps/x86_64/dl-machine.h: Likewise.
42904
42905         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
42906         code.
42907         (verify_persistent_db): Likewise.
42908
42909 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42910
42911         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
42912         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
42913         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
42914         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
42915         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
42916         Moved ...
42917         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
42918         ... here.
42919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
42920         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
42921         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
42922         Identical file removed.
42923         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
42924         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
42925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
42926         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
42927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
42928         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
42929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
42930         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
42931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
42932         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
42933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42934         Moved ...
42935         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
42936         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
42937         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
42938         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
42939         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
42940         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
42941         Moved ...
42942         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
42943         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
42944         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
42945         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
42946         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
42947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
42948         Identical file removed.
42949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
42950         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
42951         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
42952         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
42953         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
42954         Moved ...
42955         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
42956         ... here.
42957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
42958         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
42959         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
42960         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
42961         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
42962         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
42963         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
42964         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
42965         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
42966         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
42967         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42968         Moved ...
42969         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
42970         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
42971         Moved ...
42972         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
42973         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
42974         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
42975         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
42976         Moved ...
42977         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
42978         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
42979         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
42980
42981         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
42982         folded into ...
42983         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
42984         * sysdeps/unix/sysv/linux/s390/Versions
42985         (libpthread: GLIBC_2.19): New version set.
42986         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
42987         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
42988         (librt: GLIBC_2.3.3): New version set.
42989         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
42990         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
42991         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
42992         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
42993         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
42994         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
42995         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
42996         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
42997         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
42998         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
42999         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
43000         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
43001         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
43002         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
43003         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
43004         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
43005         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
43006         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
43007         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
43008         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
43009         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
43010         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
43011         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
43012         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
43013         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
43014         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
43015         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
43016         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
43017         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
43018         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
43019         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
43020         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
43021         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
43022         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
43023         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
43024         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
43025         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
43026         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
43027         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
43028         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
43029         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
43030         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
43031         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
43032         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
43033         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
43034
43035         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
43036         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
43037         (__libc_vfork): Define the function under this name.
43038         [!NOT_IN_libc] (__vfork): Make this an alias.
43039         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
43040         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
43041         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
43042         (__libc_vfork): Define the function under this name.
43043         [!NOT_IN_libc] (__vfork): Make this an alias.
43044         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
43045         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
43046         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
43047         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
43048         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
43049         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
43050
43051         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
43052         code that was previously under [RESET_PID].
43053         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
43054         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
43055         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
43056
43057         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
43058         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
43059         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
43060         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
43061         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
43062         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
43063         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
43064         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
43065         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
43066         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
43067         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
43068         Moved ...
43069         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
43070         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
43071         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
43072         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
43073         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
43074         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
43075         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
43076         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
43077         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
43078         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
43079         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
43080         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
43081         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
43082         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
43083         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
43084         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
43085         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
43086         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
43087         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
43088         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
43089         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
43090         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
43091         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
43092         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
43093         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
43094         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
43095         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
43096         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
43097         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
43098
43099 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43100
43101         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
43102         that was previously under [RESET_PID].
43103         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
43104
43105 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43106
43107         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
43108         not undefine and redefine.
43109         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
43110         [O_CLOEXEC]: Make code unconditional.
43111         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
43112         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
43113         <kernel-features.h>.
43114         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
43115         conditional variable definition.
43116         (shm_open) [O_CLOEXEC]: Make code unconditional.
43117         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
43118         code.
43119
43120         * configure.ac (USE_REGPARMS): Don't define here.
43121         * configure: Regenerated.
43122         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
43123         * sysdeps/i386/configure: Regenerated.
43124
43125         * nptl/createthread.c: Don't include kernel-features.h.
43126         * nptl/pthread_cancel.c: Likewise.
43127         * nptl/pthread_condattr_setclock.c: Likewise.
43128         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
43129         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
43130         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
43131         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
43132         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
43133         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
43134         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
43135         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
43136         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
43137         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
43138         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
43139         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
43140         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
43141         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
43142         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
43143         * nscd/gai.c: Likewise.
43144         * nss/nss_db/db-open.c: Likewise.
43145         * sysdeps/generic/ldsodefs.h: Likewise.
43146         * sysdeps/sh/nptl/tls.h: Likewise.
43147         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
43148         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
43149         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
43150         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
43151         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
43152         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
43153         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
43154         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
43155         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
43156         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
43157         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
43158         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
43159         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
43160         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
43161         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
43162         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
43163         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
43164         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
43165         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
43166         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
43167         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
43168         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
43169         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
43170         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
43171         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
43172         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
43173         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
43174         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
43175         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
43176         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
43177         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
43178         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
43179         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
43180         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
43181         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
43182         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
43183         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
43184         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
43185         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
43186         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
43187         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
43188         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
43189         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
43190         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
43191         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
43192         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
43193         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
43194         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
43195         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
43196         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
43197         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
43198         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
43199         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
43200         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
43201         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
43202         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
43203         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
43204         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
43205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
43206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
43207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
43208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
43209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
43210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
43211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
43212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
43213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
43214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
43215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
43216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
43217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
43218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
43219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
43221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
43222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
43223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
43224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
43225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
43226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
43227         * sysdeps/unix/sysv/linux/pread.c: Likewise.
43228         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
43229         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
43230         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
43231         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
43232         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
43233         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
43234         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
43235         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
43236         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
43237         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
43238         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
43239         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
43240         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
43241         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
43242         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
43243         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
43244         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
43245         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
43246         * sysdeps/unix/sysv/linux/system.c: Likewise.
43247         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
43248         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
43249         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
43250         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
43251         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
43252         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
43253         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
43254
43255         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
43256         * configure: Regenerated.
43257         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
43258
43259         * configure.ac (base_machine): Do not set specially for particular
43260         machines here.
43261         * configure: Regenerated.
43262         * sysdeps/powerpc/preconfigure: Move machine and base_machine
43263         settings from configure.ac.
43264         * sysdeps/i386/preconfigure: New file.
43265         * sysdeps/s390/preconfigure: Likewise.
43266         * sysdeps/sh/preconfigure: Likewise.
43267         * sysdeps/sparc/preconfigure: Likewise.
43268
43269 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43270
43271         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
43272         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
43273         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
43274         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
43275         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
43276         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
43277         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
43278         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
43279         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
43280         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
43281         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
43282         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
43283         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
43284         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
43285         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
43286         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
43287         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
43288         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
43289         * sysdeps/sparc/sparc64/Makefile: ... appended here.
43290
43291         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
43292         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
43293         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
43294         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
43295         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
43296         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
43297         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
43298         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
43299         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
43300         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
43301         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
43302         * sysdeps/sparc/sparc32/sem_post.c: ... here.
43303         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
43304         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
43305         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
43306         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
43307         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
43308         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
43309         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
43310         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
43311         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
43312         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
43313         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
43314         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
43315         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
43316         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
43317         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
43318         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
43319         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
43320         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
43321         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
43322         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
43323         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
43324         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
43325         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
43326         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
43327         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
43328         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
43329
43330         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
43331         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
43332         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
43333         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
43334         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
43335         Moved ...
43336         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
43337         ... here.
43338         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
43339         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
43340         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
43341         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
43342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
43343         Moved ...
43344         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
43345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
43346         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
43347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
43348         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
43349         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
43350         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
43351         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
43352         Moved ...
43353         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
43354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
43355         Moved ...
43356         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
43357         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
43358         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
43359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
43360         Moved ...
43361         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
43362         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
43363         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
43364         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
43365         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
43366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
43367         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
43368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
43369         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
43370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
43371         Moved ...
43372         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
43373         ... here.
43374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
43375         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
43376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
43377         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
43378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
43379         Moved ...
43380         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
43381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
43382         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
43383         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
43384         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
43385         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
43386         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
43387         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
43388         Moved ...
43389         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
43390         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
43391         Moved ...
43392         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
43393         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
43394         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
43395         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
43396         Moved ...
43397         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
43398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
43399         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
43400         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
43401         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
43402
43403 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43404
43405         * timezone/checktab.awk: Update from tzcode 2014e.
43406         * timezone/private.h: Likewise.
43407         * timezone/tzfile.h: Likewise.
43408         * timezone/zdump.c: Likewise.
43409         * timezone/zic.c: Likewise.
43410
43411         * sysdeps/unix/sysv/linux/kernel-features.h
43412         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
43413         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
43414         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
43415         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
43416         Remove conditional code.
43417
43418 2014-06-25  Will Newton  <will.newton@linaro.org>
43419
43420         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
43421         (_dl_arm_cap_flags): Add HWCAP2 values.
43422         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
43423         (_DL_HWCAP_COUNT): Increase to 37.
43424         (_DL_HWCAP_LAST): New define.
43425         (_DL_HWCAP2_LAST): New define.
43426         (_dl_procinfo): Add support for printing
43427         AT_HWCAP2 entries.
43428         (_dl_string_hwcap): Use _dl_hwcap_string.
43429
43430 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43431
43432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43433
43434 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43435
43436         * README: Do not mention ports directory.
43437
43438         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
43439         Remove macro.
43440         * sysdeps/unix/sysv/linux/futimes.c: Do not include
43441         <kernel-features.h>.
43442         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
43443         conditional variable definition.
43444         (__futimes): Update comment.
43445         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
43446         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
43447
43448         [BZ #16560]
43449         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
43450         arguments close to 0.
43451         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
43452         Likewise.
43453         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
43454         Likewise.
43455         * math/auto-libm-test-in: Add more tests of exp10.
43456         * math/auto-libm-test-out: Regenerated.
43457         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43458
43459         * sysdeps/unix/sysv/linux/kernel-features.h
43460         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
43461         * sysdeps/unix/sysv/linux/readv.c: Do not include
43462         <kernel-features.h>.
43463         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43464         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43465         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43466         unconditional.
43467         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43468         conditional code.
43469         * sysdeps/unix/sysv/linux/writev.c: Do not include
43470         <kernel-features.h>.
43471         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43472         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43473         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43474         unconditional.
43475         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43476         conditional code.
43477
43478 2014-06-25  Will Newton  <will.newton@linaro.org>
43479
43480         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
43481         comment changes throughout the file.  Remove checks
43482         for HAVE_*_H definitions that are not required.
43483         (__gen_tempname): Call abort if an unknown kind value is
43484         passed.
43485
43486 2014-06-25  Andreas Schwab  <schwab@suse.de>
43487
43488         [BZ #17086]
43489         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
43490         scalbln, scalblnf, scalblnl in libc.
43491
43492 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
43493
43494         [BZ #17086]
43495         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
43496         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43497         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43498
43499 2014-06-24  Roland McGrath  <roland@hack.frob.com>
43500
43501         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
43502         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
43503         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
43504         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
43505         Update #include.
43506         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
43507         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
43508         Update #include.
43509         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
43510         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
43511         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
43512         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
43513         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
43514         * sysdeps/x86/bits/pthreadtypes.h: ... here.
43515         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
43516         * sysdeps/x86/bits/semaphore.h: ... here.
43517         * sysdeps/x86/nptl/elide.h: Moved ...
43518         * sysdeps/x86/elide.h: ... here.
43519         * sysdeps/x86_64/nptl/Implies: File removed.
43520         * sysdeps/i386/nptl/Implies: File removed.
43521
43522 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
43523
43524         [BZ #16539]
43525         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
43526         return the argument for normal arguments with exponent below -64.
43527         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
43528         Likewise.
43529         * math/auto-libm-test-in: Add another test of expm1.
43530         * math/auto-libm-test-out: Regenerated.
43531
43532         [BZ #16287]
43533         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
43534         calling __erfcl for arguments at least 16.
43535         * math/auto-libm-test-in: Add more tests of erf.
43536         * math/auto-libm-test-out: Regenerated.
43537
43538         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
43539         individual architectures.
43540         * sysdeps/unix/sysv/linux/configure: Regenerated.
43541         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
43542         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
43543         * sysdeps/unix/sysv/linux/powerpc/configure.ac
43544         (ldd_rewrite_script): Define variable.
43545         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
43546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
43547         file.
43548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
43549         generated file.
43550         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
43551         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
43552         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
43553         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
43554         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
43555         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
43556         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
43557         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
43558
43559 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43560
43561         [BZ #17084]
43562         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
43563         Rename member __data.d to __data.__elision_data.
43564
43565 2014-06-24  Wilco  <wdijkstr@arm.com>
43566
43567         * NEWS: Add 16918 to fixed bug list.
43568
43569 2014-06-24  Wilco  <wdijkstr@arm.com>
43570
43571         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
43572
43573 2014-06-24  Wilco  <wdijkstr@arm.com>
43574
43575         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
43576         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
43577         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43578         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
43579         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
43580         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
43581         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
43582         Use _FPU_MASK_RM.
43583
43584 2014-06-24  Wilco  <wdijkstr@arm.com>
43585
43586         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
43587
43588 2014-06-24  Wilco  <wdijkstr@arm.com>
43589
43590         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
43591         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
43592         * sysdeps/arm/fesetround.c (fesetround): Remove space.
43593         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
43594
43595 2014-06-24  Wilco  <wdijkstr@arm.com>
43596
43597         [BZ #16918]
43598         * sysdeps/arm/feupdateenv.c (feupdateenv):
43599         Rewrite to reduce FPSCR accesses and fix return value.
43600
43601 2014-06-24  Wilco  <wdijkstr@arm.com>
43602
43603         * sysdeps/arm/fclrexcpt.c (feclearexcept):
43604         Optimize to avoid unnecessary FPSCR writes.
43605         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
43606         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
43607         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
43608         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
43609
43610 2014-06-24  Wilco  <wdijkstr@arm.com>
43611
43612         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
43613         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
43614         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
43615         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
43616         Call libc_fetestexcept_vfp.
43617         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
43618         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
43619         __SOFTFP__ ifdef so that they can be built for softfp.
43620
43621 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43622
43623         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
43624         argument type signed char.
43625
43626         * Makerules (check-abi): Dump diff of symlist if the test
43627         fails.
43628
43629 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43630
43631         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
43632         using abort.
43633
43634         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
43635         Remove unused variable ST.
43636
43637 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43638
43639         [BZ #16354]
43640         [BZ #17061]
43641         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
43642         small arguments before calling __expm1.
43643         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
43644         small arguments before calling __expm1f.
43645         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
43646         small arguments before calling __expm1l.
43647         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
43648         Likewise.
43649         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
43650         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
43651         spurious underflow for some cosh tests.
43652         * math/auto-libm-test-out: Regenerated.
43653         * sysdeps/i386/fpu/libm-test-ulps: Update.
43654
43655         [BZ #17050]
43656         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
43657         (__ieee754_y1): Set errno if return value overflows.
43658         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
43659         (__ieee754_y1f): Set errno if return value overflows.
43660         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
43661         (__ieee754_y1l): Set errno if return value overflows.
43662         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
43663         (__ieee754_y1l): Set errno if return value overflows.
43664         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
43665         * math/auto-libm-test-out: Regenerated.
43666
43667         * math/gen-auto-libm-tests.c: Document use of
43668         ignore-zero-inf-sign.
43669         (input_flag_type): Add value flag_ignore_zero_inf_sign.
43670         (input_flags): Add ignore-zero-inf-sign.
43671         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
43672         * math/gen-libm-test.pl (generate_testfile): Handle
43673         ignore-zero-inf-sign.
43674         * math/auto-libm-test-in: Mark some cpow tests with
43675         ignore-zero-inf-sign and some with xfail-rounding.
43676         * math/auto-libm-test-out: Regenerated.
43677         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
43678         * sysdeps/i386/fpu/libm-test-ulps: Update.
43679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43680
43681         [BZ #16315]
43682         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
43683         overflowing or underflowing operations take place with sign of
43684         result.
43685         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
43686         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
43687         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
43688         (__ieee754_pow): Recompute overflowing and underflowing results in
43689         original rounding mode.
43690         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
43691         (__powl_helper): Allow negative argument X and scale negated value
43692         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
43693         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
43694         overflowing or underflowing operations take place with sign of
43695         result.
43696         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
43697         Include <math.h>.
43698         * math/auto-libm-test-in: Add more tests of pow.
43699         * math/auto-libm-test-out: Regenerated.
43700         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
43701         (pow_tonearest_test_data): Remove.
43702         (pow_test_tonearest): Likewise.
43703         (pow_towardzero_test_data): Likewise.
43704         (pow_test_towardzero): Likewise.
43705         (pow_downward_test_data): Likewise.
43706         (pow_test_downward): Likewise.
43707         (pow_upward_test_data): Likewise.
43708         (pow_test_upward): Likewise.
43709         (main): Don't call removed functions.
43710         * sysdeps/i386/fpu/libm-test-ulps: Update.
43711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43712
43713 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43714
43715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
43716         Moved ...
43717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
43718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
43719         Moved ...
43720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
43721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
43722         Moved ...
43723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
43724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
43725         Moved ...
43726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
43727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
43728         File removed.
43729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
43730         File removed.
43731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
43732         File removed.
43733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
43734         File removed.
43735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
43736         File removed.
43737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
43738         File removed.
43739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
43740         File removed.
43741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
43742         File removed.
43743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
43744         File removed.
43745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
43746         File removed.
43747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
43748         File removed.
43749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
43750         File removed.
43751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
43752         Moved ...
43753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
43754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
43755         Moved ...
43756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
43757         ... here.
43758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
43759         Moved ...
43760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
43761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
43762         Moved ...
43763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
43764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
43765         Moved ...
43766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
43767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
43768         Moved ...
43769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
43770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
43771         Moved ...
43772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
43773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
43774         Moved ...
43775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
43776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
43777         Moved ...
43778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
43779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
43780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
43781         ... here.
43782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
43783         Moved ...
43784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
43785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
43786         Moved ...
43787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
43788         ... here.
43789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
43790         Moved ...
43791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
43792         ... here.
43793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
43794         Moved ...
43795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
43796         ... here.
43797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
43798         Moved ...
43799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
43800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
43801         Moved ...
43802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
43803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
43804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
43805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
43806         Moved ...
43807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
43808         ... here.
43809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
43810         Moved ...
43811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
43812         ... here.
43813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
43814         Moved ...
43815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
43816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
43817         Moved ...
43818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
43819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
43820         Moved ...
43821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
43822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
43823         Moved ...
43824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
43825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
43826         Moved ...
43827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
43828         ... here.
43829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
43830         Moved ...
43831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
43832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
43833         Moved ...
43834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
43835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
43836         Moved ...
43837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
43838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
43839         Moved ...
43840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
43841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
43842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
43843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
43844         Moved ...
43845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
43846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
43847         Moved ...
43848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
43849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
43850         Moved ...
43851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
43852         ... here.
43853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
43854         Moved ...
43855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
43856         ... here.
43857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
43858         Moved ...
43859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
43860         ... here.
43861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
43862         Moved ...
43863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
43864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
43865         Moved ...
43866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
43867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
43868         Moved ...
43869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
43870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
43871         Moved ...
43872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
43873         ... here.
43874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
43875         Moved ...
43876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
43877         ... here.
43878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
43879         Moved ...
43880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
43881         ... here.
43882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
43883         Moved ...
43884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
43885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
43886         Moved ...
43887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
43888
43889 2014-06-23  Will Newton  <will.newton@linaro.org>
43890             Wilco  <wdijkstr@arm.com>
43891
43892         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
43893         implementation.  Include get-rounding-mode.h.
43894         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
43895         [!libc_feholdsetround_noex_ctx]: Define
43896         libc_feholdsetround_noex_ctx.
43897         [!libc_feholdsetround_noexf_ctx]: Define
43898         libc_feholdsetround_noexf_ctx.
43899         [!libc_feholdsetround_noexl_ctx]: Define
43900         libc_feholdsetround_noexl_ctx.
43901         (libc_feholdsetround_ctx): New function.
43902         (libc_feresetround_ctx): New function.
43903         (libc_feholdsetround_noex_ctx): New function.
43904         (libc_feresetround_noex_ctx): New function.
43905
43906 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43907
43908         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
43909         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
43910         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
43911         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
43912         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
43913         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
43914
43915         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
43916         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
43917         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
43918         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
43919         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
43920         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
43921         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
43922         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
43923         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
43924         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
43925         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
43926         Moved ...
43927         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
43928         ... here.
43929         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
43930         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
43931         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
43932         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
43933         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
43934         Moved ...
43935         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
43936         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
43937         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
43938         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
43939         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
43940         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
43941         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
43942         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
43943         Moved ...
43944         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
43945         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
43946         Moved ...
43947         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
43948         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
43949         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
43950         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
43951         Moved ...
43952         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
43953         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
43954         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
43955         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
43956         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
43957         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
43958         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
43959         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
43960         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
43961         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
43962         Moved ...
43963         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
43964         ... here.
43965         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
43966         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
43967         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
43968         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
43969         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
43970         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
43971         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
43972         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
43973         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
43974         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
43975         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
43976         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
43977         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
43978         Moved ...
43979         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
43980         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
43981         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
43982         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
43983         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
43984         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
43985         Moved ...
43986         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
43987         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
43988         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
43989         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
43990         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
43991
43992         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
43993         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
43994         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
43995         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
43996         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
43997         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
43998         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
43999         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
44000         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
44001         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
44002         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
44003         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
44004         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
44005         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
44006         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
44007         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
44008         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
44009         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
44010         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
44011         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
44012         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
44013         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
44014         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
44015         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
44016         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
44017         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
44018         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
44019         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
44020
44021 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
44022
44023         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
44024         (FALLOC_FL_COLLAPSE_RANGE): New macro.
44025         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
44026         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
44027         (IPV6_PMTUDISC_INTERFACE): Likewise.
44028         (IPV6_PMTUDISC_OMIT): Likewise.
44029
44030 2014-06-23  Andreas Schwab  <schwab@suse.de>
44031
44032         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
44033         Remove unused errout label.
44034
44035 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44036
44037         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
44038         macro: hardware supports Vector Crypto instructions.
44039
44040 2014-06-23  Will Newton  <will.newton@linaro.org>
44041
44042         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
44043         rather than __builtin_expect.
44044
44045         * elf/dl-lookup.c (undefined_msg): Remove variable.
44046         (_dl_lookup_symbol_x): Replace undefined_msg with string
44047         literal.
44048
44049         * elf/dl-lookup.c (do_lookup_unique): New function.
44050         (do_lookup_x): Move STB_GNU_UNIQUE handling code
44051         to a separate function.
44052
44053 2014-06-23  Andreas Schwab  <schwab@suse.de>
44054
44055         [BZ #17079]
44056         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
44057         before reading the next line.
44058
44059 2014-06-23  Will Newton  <will.newton@linaro.org>
44060
44061         * test-skeleton.c (signal_handler): Use printf and %m
44062         rather than perror.  Use printf rather than fprintf to
44063         stderr.  Use puts rather than fputs to stderr.
44064         (main): Likewise.
44065
44066 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
44067
44068         * nscd/nscd.c (thread_info_t): Remove typedef.
44069         (thread_info): Remove variable.
44070
44071 2014-06-21  Allan McRae  <allan@archlinux.org>
44072
44073         * NEWS: Mention CVE-2014-4043.
44074
44075 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44076
44077         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
44078         * nptl/smp.h: ... here.
44079
44080         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
44081
44082         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
44083         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
44084         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
44085         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
44086
44087         * nptl/allocatestack.c: Include <stack-aliasing.h>.
44088         * nptl/stack-aliasing.h: New file.
44089         * sysdeps/i386/i686/stack-aliasing.h: New file.
44090         * sysdeps/i386/i686/nptl/Makefile: File removed.
44091         * sysdeps/x86_64/stack-aliasing.h: New file.
44092         * sysdeps/x86_64/nptl/Makefile
44093         (CFLAGS-pthread_create.c): Variable removed.
44094
44095         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
44096         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
44097         old file.
44098         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
44099         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
44100         old file.
44101
44102 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
44103
44104         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44105         (__ASSUME_SIGFRAME_V2): Remove macro.
44106         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
44107         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
44108         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
44109         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
44110         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
44111         Declare as function.  Remove conditional macro definitions.
44112         (__default_rt_sa_restorer): Likewise.
44113         (__default_sa_restorer_v1): Remove declaration.
44114         (__default_sa_restorer_v2): Likewise.
44115         (__default_rt_sa_restorer_v1): Likewise.
44116         (__default_rt_sa_restorer_v2): Likewise.
44117         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
44118         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
44119         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
44120
44121 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44122
44123         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
44124         (libpthread-routines): Add sysdep.
44125         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
44126         * sysdeps/unix/sysv/linux/sparc/Versions
44127         (libpthread: GLIBC_2.3.3): New version set.
44128         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
44129         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
44130         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
44131         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
44132         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
44133         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
44134         Moved ...
44135         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
44136         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
44137         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
44138         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
44139         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
44140         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
44141         * sysdeps/sparc/nptl/sem_init.c: ... here.
44142         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
44143         * sysdeps/sparc/nptl/sem_post.c: ... here.
44144         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
44145         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
44146         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
44147         * sysdeps/sparc/nptl/sem_wait.c: ... here.
44148         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
44149         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
44150         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
44151         (libpthread-routines): Add cpu_relax.
44152         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
44153         File removed.
44154         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
44155         (librt: GLIBC_2.3.3): New version set.
44156         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
44157         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
44158         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
44159         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
44160         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
44161         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
44162         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
44163         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
44164         Moved ...
44165         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
44166         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
44167         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
44168         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
44169         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
44170         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
44171         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
44172         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
44173         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
44174         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
44175         Moved ...
44176         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
44177         Update #include.
44178         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
44179         Moved ...
44180         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
44181         Update #include.
44182         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
44183         Moved ...
44184         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
44185         Update #include.
44186         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
44187         Moved ...
44188         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
44189         Update #include.
44190         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
44191         Moved ...
44192         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
44193         Update #include.
44194         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
44195         Moved ...
44196         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
44197         Update #include.
44198         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
44199         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
44200         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
44201         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
44202         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
44203         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
44204         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
44205         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
44206         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
44207         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
44208         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
44209         Moved ...
44210         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
44211         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
44212         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
44213         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
44214         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
44215
44216 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44217
44218         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
44219         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
44220         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
44221         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
44222         * nscd/nscd.c: Likewise.
44223         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
44224         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
44225         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
44226         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
44227
44228         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
44229         <kernel-features.h>.
44230         (init_mq_netlink): Remove conditional have_sock_cloexec
44231         definitions.  Remove code conditional on have_sock_cloexec < 0.
44232         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
44233         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
44234         * sysdeps/unix/sysv/linux/opensock.c: Do not include
44235         <kernel-features.h>.
44236         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
44237         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
44238
44239 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44240
44241         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44242         Add tests for memset_chk and memset.
44243
44244         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
44245         with AVX2_Usable.
44246
44247 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44248
44249         [BZ #16046]
44250         * elf/tst-dl-iter-static.c: New file.
44251         * elf/Makefile (tests-static): Add tst-dl-iter-static.
44252
44253         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
44254         error.
44255
44256 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44257
44258         * sysdeps/unix/sysv/linux/kernel-features.h
44259         (__ASSUME_F_GETOWN_EX): Remove macro.
44260         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
44261         <kernel-features.h>.
44262         (miss_F_GETOWN_EX): Remove variable or macro.
44263         (do_fcntl): Do not check miss_F_GETOWN_EX.
44264         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
44265
44266         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
44267         Remove macro.
44268         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
44269         [!__ASSUME_AT_RANDOM]: Remove conditional code.
44270         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
44271
44272         * sysdeps/unix/sysv/linux/kernel-features.h
44273         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
44274         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
44275         [ADJ_OFFSET_SS_READ]: Make code unconditional.
44276         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
44277
44278 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44279
44280         [BZ #17075]
44281         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
44282         Fix calculation of the symbol's value.
44283         * sysdeps/arm/tst-armtlsdescloc.c: New file.
44284         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
44285         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
44286         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
44287         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
44288         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
44289         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
44290         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
44291         (modules-names): Add `tst-armtlsdescmod',
44292         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
44293         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
44294         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44295         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
44296         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
44297         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44298         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
44299         ($(objpfx)tst-armtlsdescloc): New dependency.
44300         ($(objpfx)tst-armtlsdescextnow): Likewise.
44301         ($(objpfx)tst-armtlsdescextlazy): Likewise.
44302         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
44303         TLS scheme support.
44304         * sysdeps/arm/configure: Regenerate.
44305
44306 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44307
44308         * include/fcntl.h (__atfct_seterrno): Remove prototype.
44309         (__atfct_seterrno_2): Likewise.
44310         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
44311         <kernel-features.h>.
44312         (__ASSUME_ATFCTS): Do not undefine and redefine.
44313         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
44314         (__have_atfcts): Remove conditional definition.
44315         (__fxstatat([__NR_fstatat64]: Make code unconditional.
44316         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
44317         unreachable if [__ASSUME_ATFCTS].
44318         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
44319         not undefine and redefine.
44320         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
44321         <kernel-features.h>.
44322         (faccessat) [__NR_faccessat]: Make code unconditional.
44323         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
44324         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
44325         <kernel-features.h>.
44326         (fchmodat) [__NR_fchmodat]: Make code unconditional.
44327         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44328         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
44329         <kernel-features.h>.
44330         (fchownat) [__NR_fchownat]: Make code unconditional.
44331         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
44332         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
44333         <kernel-features.h>.
44334         (futimesat) [__NR_futimesat]: Make code unconditional.
44335         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
44336         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
44337         <kernel-features.h>.
44338         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44339         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44340         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
44341         <kernel-features.h>.
44342         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
44343         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44344         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
44345         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
44346         <kernel-features.h>.
44347         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
44348         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44349         * sysdeps/unix/sysv/linux/linkat.c: Do not include
44350         <kernel-features.h>.
44351         (linkat) [__NR_linkat]: Make code unconditional.
44352         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44353         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
44354         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
44355         <kernel-features.h>.
44356         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
44357         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44358         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
44359         <kernel-features.h>.
44360         (mkdirat) [__NR_mkdirat]: Make code unconditional.
44361         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
44362         * sysdeps/unix/sysv/linux/openat.c: Do not include
44363         <kernel-features.h>.
44364         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
44365         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
44366         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
44367         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
44368         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
44369         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
44370         <kernel-features.h>.
44371         (readlinkat) [__NR_readlinkat]: Make code unconditional.
44372         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
44373         result of INLINE_SYSCALL directly, not via int variable.
44374         * sysdeps/unix/sysv/linux/renameat.c: Do not include
44375         <kernel-features.h>.
44376         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
44377         (renameat) [__NR_renameat]: Make code unconditional.
44378         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
44379         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
44380         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
44381         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
44382         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
44383         (__ASSUME_ATFCTS): Do not undefine and redefine.
44384         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
44385         <kernel-features.h>.
44386         (symlinkat) [__NR_symlinkat]: Make code unconditional.
44387         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44388         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
44389         <kernel-features.h>.
44390         (unlinkat) [__NR_unlinkat]: Make code unconditional.
44391         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44392         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
44393         (__ASSUME_ATFCTS): Do not undefine and redefine.
44394         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
44395         <kernel-features.h>.
44396         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44397         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44398         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
44399         <kernel-features.h>.
44400         (__xmknodat) [__NR_mknodat]: Make code unconditional.
44401         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44402
44403 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44404
44405         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
44406
44407 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
44408
44409         [BZ #17069]
44410         * posix/regcomp.c (parse_reg_exp): Deallocate partially
44411         constructed tree before returning error.
44412         * posix/bug-regexp36.c: Expand test case.
44413
44414 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
44415
44416         [BZ #6803]
44417         * math/libm-test.inc (scalbln_test_date):
44418         Add errno expectations.
44419         * math/w_scalblnf.c: New File.
44420         Add wrapper which checks for setting errno to ERANGE.
44421         Add weak_alias for corresponding scalbln function.
44422         * math/w_scalbln.c: Likewise.
44423         * math/w_scalblnl.c: Likewise.
44424         * math/Makefile (libm-calls): Add w_scalbln.
44425         * sysdeps/ieee754/flt-32/s_scalblnf.c:
44426         Remove weak_alias for corresponding scalbln function.
44427         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44428         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44429         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44430         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44431         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
44432         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
44433         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
44434         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
44435         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
44436         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
44437         Remove long_double_symbol for scalblnl function in libm, libc.
44438         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
44439         Add wrapper which checks for setting errno to ERANGE.
44440         Add long_double_symbol for scalblnl function in libm, libc.
44441         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
44442         Remove long_double_symbol for scalblnl in libm.
44443         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
44444         Add wrapper which checks for setting errno to ERANGE.
44445         Add long_double_symbol for scalblnl function in libm.
44446         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
44447         Do not use wrapper because of own implementation.
44448
44449 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
44450
44451         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
44452         3 bytes for __pad1 for x32.
44453         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
44454
44455 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
44456             H.J. Lu  <hongjiu.lu@intel.com>
44457
44458         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
44459         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
44460         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44461         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
44462         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
44463
44464 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
44465
44466         [BZ #17069]
44467         * posix/regcomp.c (parse_expression): Deallocate partially
44468         constructed tree before returning error.
44469         * posix/Makefile.c (tests): Add bug-regex36.
44470         (generated): Add bug-regex36.mtrace.
44471         (tests-special): Add $(objpfx)bug-regex36-mem.out
44472         (bug-regex36-ENV): New variable.
44473         ($(objpfx)bug-regex36-mem.out): New rule.
44474         * posix/bug-regex36.c: New file.
44475
44476 2014-06-19  Will Newton  <will.newton@linaro.org>
44477
44478         * malloc/malloc.c (systrim): If extra is zero then return
44479         early.
44480
44481 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44482
44483         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
44484
44485 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
44486
44487         * sysdeps/aarch64/strchr.S: New file.
44488
44489 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44490
44491         [BZ #17022]
44492         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
44493         from arguments -2 or below.
44494         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
44495         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
44496
44497 2014-06-18  Andreas Schwab  <schwab@suse.de>
44498
44499         [BZ #17062]
44500         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
44501         of a bracket expr not to run off the end of the string.
44502         * posix/Makefile (tests): Add tst-fnmatch3.
44503         * posix/tst-fnmatch3.c: New file.
44504
44505 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44506
44507         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
44508         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44509         [$(cross-compiling) = no]: Likewise.
44510         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44511         [$(cross-compiling) = no]: Likewise.
44512
44513 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
44514
44515         [BZ #17031]
44516         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
44517         double, adjusted for any remainder from the high double.
44518         * math/libm-test.inc (nearbyint): Add tests.
44519         (rint): Likewise.
44520
44521 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44522
44523         * nptl/sysdeps/powerpc/Makefile: Moved ...
44524         * sysdeps/powerpc/nptl/Makefile: ... here.
44525         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
44526         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
44527         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
44528         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
44529         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
44530         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
44531         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
44532         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
44533         * nptl/sysdeps/powerpc/tls.h: Moved ...
44534         * sysdeps/powerpc/nptl/tls.h: ... here.
44535
44536 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
44537
44538         [BZ #16681]
44539         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
44540         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
44541         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
44542         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
44543         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
44544         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
44545         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
44546         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
44547         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
44548
44549 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
44550
44551         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
44552
44553 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
44554
44555         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
44556         defined operator.
44557
44558         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
44559         $TIMEOUTFACTOR.
44560
44561 2014-06-16  Florian Weimer  <fweimer@redhat.com>
44562
44563         [BZ #17058]
44564         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
44565         non-executed part of the test.
44566
44567 2014-06-16  Andreas Schwab  <schwab@suse.de>
44568
44569         * string/bits/string2.h (strdup, strndup): Update feature guard.
44570
44571 2014-06-14  David S. Miller  <davem@davemloft.net>
44572
44573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44574
44575 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
44576
44577         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
44578         that was previously under [RESET_PID].
44579         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
44580
44581         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
44582         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
44583         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
44584         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
44585         (__libc_vfork): New strong alias.
44586         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
44587
44588 2014-06-14 Andi Kleen  <ak@linux.intel.com>
44589
44590         * sysdeps/generic/elide.h: New file.
44591
44592 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
44593
44594         * Makefile (installed-headers): Adjust path of pthread.h header.
44595
44596 2014-06-13  Roland McGrath  <roland@hack.frob.com>
44597
44598         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
44599         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
44600         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
44601         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
44602
44603         * nptl/sysdeps/s390/Makefile: Moved ...
44604         * sysdeps/s390/nptl/Makefile: ... here.
44605         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
44606         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
44607         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
44608         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
44609         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
44610         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
44611         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
44612         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
44613         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
44614         * sysdeps/s390/nptl/pthreaddef.h: ... here.
44615         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
44616         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
44617         * nptl/sysdeps/s390/tls.h: Moved ...
44618         * sysdeps/s390/nptl/tls.h: ... here.
44619
44620         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
44621         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
44622
44623 2014-06-13  David S. Miller  <davem@davemloft.net>
44624
44625         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
44626         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
44627         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
44628         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
44629         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
44630         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
44631         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
44632         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
44633         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
44634         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
44635         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
44636         Remove RESET_PID cpp guards.
44637         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
44638         Remove RESET_PID cpp guards.
44639         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
44640
44641 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
44642
44643         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
44644         __sp to uintptr_t.
44645
44646 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44647
44648         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
44649         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
44650         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
44651         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
44652         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
44653         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
44654         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
44655         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
44656         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
44657         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
44658         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
44659         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
44660         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
44661         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
44662         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
44663         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
44664         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
44665         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
44666         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
44667         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
44668
44669         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
44670         (pthread_rwlock_rdlock): Add elision.
44671         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
44672         (pthread_rwlock_wrlock): Add elision.
44673         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
44674         (pthread_rwlock_trywrlock): Add elision.
44675         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
44676         (pthread_rwlock_tryrdlock): Add elision.
44677         * nptl/pthread_rwlock_unlock.c: Include elide.h.
44678         (pthread_rwlock_tryrdlock): Add elision unlock.
44679         * nptl/sysdeps/pthread/pthread.h:
44680         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
44681         (PTHREAD_RWLOCK_INITIALIZER,
44682         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
44683         Handle new elision field.
44684         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
44685         * sysdeps/arm/nptl/bits/pthreadtypes.h
44686         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44687         * sysdeps/sh/nptl/bits/pthreadtypes.h
44688         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44689         * sysdeps/tile/nptl/bits/pthreadtypes.h
44690         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44691         * sysdeps/a/nptl/bits/pthreadtypes.h
44692         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44693         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
44694         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44695         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
44696         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44697         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
44698         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44699         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
44700         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44701         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
44702         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44703         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
44704         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44705         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
44706         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44707         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
44708         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44709         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
44710         (elision_init): Set try_xbegin to zero when no RTM.
44711         * sysdeps/x86/nptl/bits/pthreadtypes.h
44712         (pthread_rwlock_t): Change __pad1 to __rwelision.
44713         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44714
44715 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44716
44717         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
44718         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
44719         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
44720         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
44721
44722 2014-06-13  Meador Inge  <meadori@codesourcery.com>
44723
44724         [BZ #16996]
44725         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
44726         that the cached result has been set before returning it.
44727
44728 2014-06-12  Roland McGrath  <roland@hack.frob.com>
44729
44730         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
44731         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
44732         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
44733         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
44734         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
44735         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
44736
44737         * nptl/sysdeps/sparc/Makefile: Moved ...
44738         * sysdeps/sparc/nptl/Makefile: ... here.
44739         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
44740         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
44741         * nptl/sysdeps/sparc/tls.h: Moved ...
44742         * sysdeps/sparc/nptl/tls.h: ... here.
44743         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
44744         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
44745         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
44746         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
44747         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
44748         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
44749         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
44750         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
44751         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
44752         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
44753         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
44754         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
44755         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
44756         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
44757         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
44758         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
44759         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
44760         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
44761         Update #include.
44762         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
44763         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
44764         Update #include.
44765         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
44766         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
44767         Update #include.
44768         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
44769         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
44770         Update #include.
44771
44772         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44773
44774         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
44775         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
44776
44777         * sysdeps/pthread/posix-timer.h: Include <list.h>.
44778         (struct list_links): Type removed.
44779         (struct thread_node, struct timer_node): Replace struct list_links
44780         with struct list_head.
44781         (list_unlink_ip): Likewise.
44782         * sysdeps/pthread/timer_routines.c
44783         (timer_free_list, thread_free_list, thread_active_list): Likewise.
44784         (list_append, list_insbefore): Likewise.
44785         (list_init): Function removed.
44786         (thread_init, init_module): Use INIT_LIST_HEAD instead.
44787         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
44788         * sysdeps/pthread/Makefile: ... here, new file.
44789
44790         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
44791         * sysdeps/nptl/Implies: ... here.
44792         * sysdeps/unix/sysv/linux/Implies: Add nptl.
44793         * nptl/sysdeps/pthread/list.h: Moved ...
44794         * include/list.h: ... here.
44795         * nptl/sysdeps/pthread/createthread.c: Moved ...
44796         * nptl/createthread.c: ... here.
44797         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
44798         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
44799         * nptl/pt-longjmp.c: ... here.
44800         * nptl/sysdeps/pthread/Makefile: Moved ...
44801         * sysdeps/nptl/Makefile: ... here.
44802         * nptl/sysdeps/pthread/Subdirs: Moved ...
44803         * sysdeps/nptl/Subdirs: ... here.
44804         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
44805         * sysdeps/nptl/aio_misc.h: ... here.
44806         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
44807         * sysdeps/nptl/bits/libc-lock.h: ... here.
44808         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
44809         * sysdeps/nptl/bits/libc-lockP.h: ... here.
44810         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
44811         * sysdeps/nptl/bits/stdio-lock.h: ... here.
44812         * nptl/sysdeps/pthread/configure: Moved ...
44813         * sysdeps/nptl/configure: ... here.
44814         * nptl/sysdeps/pthread/configure.ac: Moved ...
44815         * sysdeps/nptl/configure.ac: ... here.
44816         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
44817         * sysdeps/nptl/gai_misc.h: ... here.
44818         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
44819         * sysdeps/nptl/librt-cancellation.c: ... here.
44820         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
44821         * sysdeps/nptl/malloc-machine.h: ... here.
44822         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
44823         * sysdeps/nptl/pthread-functions.h: ... here.
44824         * nptl/sysdeps/pthread/pthread.h: Moved ...
44825         * sysdeps/nptl/pthread.h: ... here.
44826         * nptl/sysdeps/pthread/setxid.h: Moved ...
44827         * sysdeps/nptl/setxid.h: ... here.
44828         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
44829         * sysdeps/nptl/sigfillset.c: ... here.
44830         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
44831         * sysdeps/nptl/tcb-offsets.h: ... here.
44832         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
44833         * sysdeps/nptl/tst-mqueue8x.c: ... here.
44834         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
44835         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
44836         * nptl/sysdeps/pthread/allocalim.h: Moved ...
44837         * sysdeps/pthread/allocalim.h: ... here.
44838         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
44839         * sysdeps/pthread/bits/sigthread.h: ... here.
44840         * nptl/sysdeps/pthread/flockfile.c: Moved ...
44841         * sysdeps/pthread/flockfile.c: ... here.
44842         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
44843         * sysdeps/pthread/ftrylockfile.c: ... here.
44844         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
44845         * sysdeps/pthread/funlockfile.c: ... here.
44846         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
44847         * sysdeps/pthread/posix-timer.h: ... here.
44848         * nptl/sysdeps/pthread/timer_create.c: Moved ...
44849         * sysdeps/pthread/timer_create.c: ... here.
44850         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
44851         * sysdeps/pthread/timer_delete.c: ... here.
44852         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
44853         * sysdeps/pthread/timer_getoverr.c: ... here.
44854         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
44855         * sysdeps/pthread/timer_gettime.c: ... here.
44856         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
44857         * sysdeps/pthread/timer_routines.c: ... here.
44858         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
44859         * sysdeps/pthread/timer_settime.c: ... here.
44860         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
44861         * sysdeps/pthread/tst-timer.c: ... here.
44862         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
44863         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
44864
44865         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
44866         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
44867
44868         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
44869         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
44870         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
44871         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
44872         Update #include target.
44873         * nptl/sysdeps/i386/i686/Makefile: Moved ...
44874         * sysdeps/i386/i686/nptl/Makefile: ... here.
44875         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
44876         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
44877         Update #include target.
44878         * nptl/sysdeps/i386/i686/tls.h: Moved ...
44879         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
44880         * nptl/sysdeps/i386/Makefile: Moved ...
44881         * sysdeps/i386/nptl/Makefile: ... here.
44882         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
44883         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
44884         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
44885         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
44886         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
44887         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
44888         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
44889         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
44890         * sysdeps/i386/nptl/pthreaddef.h: ... here.
44891         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
44892         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
44893         * nptl/sysdeps/i386/tls.h: Moved ...
44894         * sysdeps/i386/nptl/tls.h: ... here.
44895
44896         * sysdeps/sh/Makefile [$(subdir) = csu]
44897         (gen-as-const-headers): Add tcb-offsets.sym.
44898         * nptl/sysdeps/sh/Makefile: File removed.
44899         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
44900         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
44901         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
44902         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
44903         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
44904         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
44905         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
44906         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
44907         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
44908         * sysdeps/sh/nptl/pthreaddef.h: ... here.
44909         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
44910         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
44911         * nptl/sysdeps/sh/tls.h: Moved ...
44912         * sysdeps/sh/nptl/tls.h: ... here.
44913         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
44914         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
44915         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
44916         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
44917         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
44918         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
44919         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
44920         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
44921         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
44922         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
44923         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
44924         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
44925         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
44926         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
44927         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
44928         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
44929         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
44930         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
44931         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
44932         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
44933         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
44934         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
44935         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
44936         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
44937         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
44938         Moved ...
44939         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
44940         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
44941         Moved ...
44942         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
44943         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
44944         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
44945         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
44946         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
44947         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
44948         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
44949         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
44950         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
44951         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
44952         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
44953         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
44954         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
44955         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
44956         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
44957         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
44958         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
44959         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
44960         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
44961
44962 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
44963
44964         * posix/spawn_faction_addopen.c: Include string.h.
44965
44966 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44967
44968         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
44969         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
44970         * nptl/sysdeps/x86_64/Makefile: Moved ...
44971         * sysdeps/x86_64/nptl/Makefile: ... here.
44972         * nptl/sysdeps/x86_64/configure: Moved ...
44973         * sysdeps/x86_64/nptl/configure: ... here.
44974         * nptl/sysdeps/x86_64/configure.ac: Moved ...
44975         * sysdeps/x86_64/nptl/configure.ac: ... here.
44976         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
44977         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
44978         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
44979         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
44980         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
44981         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
44982         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
44983         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
44984         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
44985         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
44986         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
44987         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
44988         * nptl/sysdeps/x86_64/tls.h: Moved ...
44989         * sysdeps/x86_64/nptl/tls.h: ... here.
44990         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
44991         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
44992         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
44993         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
44994
44995         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
44996
44997 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44998
44999         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45000
45001 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
45002
45003         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
45004         type.
45005         [POSIX] (off_t): Likewise.
45006         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
45007         [POSIX] (S_ISBLK): Require macro.
45008         [POSIX] (S_ISCHR): Likewise.
45009         [POSIX] (S_ISDIR): Likewise.
45010         [POSIX] (S_ISFIFO): Likewise.
45011         [POSIX] (S_ISREG): Likewise.
45012         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
45013         optional-macro.
45014         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
45015         type.
45016         [POSIX] (time_t): Likewise.
45017         [POSIX] (timer_t): Likewise.
45018
45019 2014-06-11  Florian Weimer  <fweimer@redhat.com>
45020
45021         [BZ #17048]
45022         * posix/spawn_int.h (struct __spawn_action): Make the path string
45023         non-const to support deallocation.
45024         * posix/spawn_faction_addopen.c
45025         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
45026         * posix/spawn_faction_destroy.c
45027         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
45028         path in all spawn_do_open actions.
45029         * posix/tst-spawn.c (do_test): Exercise the copy operation in
45030         posix_spawn_file_actions_addopen.
45031
45032 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
45033
45034         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
45035         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
45036         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
45037         conditional code always true.
45038         (__libc_vfork): New alias.
45039
45040 2014-06-11  Roland McGrath  <roland@hack.frob.com>
45041
45042         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45043         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
45044
45045         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
45046
45047         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45048         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
45049
45050         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
45051         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
45052
45053         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45054         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
45055
45056 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
45057
45058         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
45059         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
45060         multiarch strcmp for PPC64.
45061         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
45062         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
45063         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
45064         multiarch optimizations.
45065         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
45066         (__libc_ifunc_impl_list): Likewise.
45067
45068 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45069
45070         * benchtests/scripts/validate_benchout.py: New script.
45071         * benchtests/Makefile (bench-func): Call it.
45072         * benchtests/scripts/benchout.schema.json: New file.
45073
45074 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
45075
45076         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
45077         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
45078         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
45079         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
45080         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
45081         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
45082         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
45083         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
45084         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
45085         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
45086         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
45087         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
45088         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
45089         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
45090         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
45091         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
45092         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
45093         Moved ...
45094         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
45095         ... here.
45096         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
45097         Moved ...
45098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
45099         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
45100         Moved ...
45101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
45102         ... here.
45103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
45104         Moved ...
45105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
45106         ... here.
45107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
45108         Moved ...
45109         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
45110         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
45111         Moved ...
45112         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
45113         ... here.
45114         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
45115         Moved ...
45116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
45117         ... here.
45118         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
45119         Moved ...
45120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
45121         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
45122         Moved ...
45123         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
45124         ... here.
45125         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
45126         Moved ...
45127         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
45128         ... here.
45129         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
45130         Moved ...
45131         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
45132         ... here.
45133         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
45134         Moved ...
45135         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
45136         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
45137         Moved ...
45138         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
45139         ... here.
45140         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
45141         Moved ...
45142         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
45143         ... here.
45144         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
45145         Moved ...
45146         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
45147         ... here.
45148         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
45149         Moved ...
45150         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
45151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
45152         Moved ...
45153         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
45154         ... here.
45155         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
45156         Moved ...
45157         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
45158         ... here.
45159         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
45160         Moved ...
45161         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
45162         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
45163         Moved ...
45164         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
45165         ... here.
45166         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
45167         Moved ...
45168         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
45169         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
45170         Moved ...
45171         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
45172         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
45173         Moved ...
45174         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
45175         ... here.
45176         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
45177         Moved ...
45178         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
45179         ... here.
45180         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
45181         Moved ...
45182         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
45183         ... here.
45184         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
45185         Moved ...
45186         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
45187         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
45188         Moved ...
45189         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
45190         ... here.
45191         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
45192         Moved ...
45193         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
45194         ... here.
45195         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
45196         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
45197         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
45198         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
45199         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
45200         Moved ...
45201         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
45202         ... here.
45203         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
45204         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
45205         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
45206         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
45207         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
45208         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
45209         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
45210         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
45211         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
45212         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
45213         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
45214         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
45215         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
45216         Moved ...
45217         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
45218         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
45219         Moved ...
45220         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
45221         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
45222         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
45223         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
45224         Moved ...
45225         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
45226         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
45227         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
45228         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
45229         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
45230         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
45231         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
45232
45233 2014-06-10  Wilco  <wdijkstr@arm.com>
45234
45235         * math/test-fenv-return.c: New file.
45236         * math/Makefile: Add new test test-fenv-return.
45237
45238 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
45239
45240         [BZ #17042]
45241         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
45242         when x - 1 is zero.
45243         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
45244         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
45245         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
45246         0.0L for an argument of 1.0L.
45247         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
45248         Likewise.
45249         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
45250         value when x - 1 is zero.
45251         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
45252         * sysdeps/i386/fpu/libm-test-ulps: Update.
45253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45254
45255 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
45256
45257         [BZ #15119]
45258         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
45259
45260 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45261
45262         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
45263         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
45264
45265 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45266
45267         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45268         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
45269
45270         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45271         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
45272
45273         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45274         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
45275
45276         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45277         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
45278
45279         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
45280         if not already defined.
45281         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
45282         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
45283         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
45284         (TLS_INIT_TP): Use it.
45285         (TLS_DEFINE_INIT_TP): New macro.
45286         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
45287
45288 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
45289
45290         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
45291         constant.
45292         [POSIX] (IXANY): Likewise.
45293         [POSIX] (OLCUC): Likewise.
45294         [POSIX || POSIX2008] (CBAUD): Do not allow.
45295         [POSIX || POSIX2008] (DEFECHO): Likewise.
45296         [POSIX || POSIX2008] (ECHOCTL): Likewise.
45297         [POSIX || POSIX2008] (ECHOKE): Likewise.
45298         [POSIX || POSIX2008] (ECHOPRT): Likewise.
45299         [POSIX || POSIX2008] (EXTA): Likewise.
45300         [POSIX || POSIX2008] (EXTB): Likewise.
45301         [POSIX || POSIX2008] (FLUSHO): Likewise.
45302         [POSIX || POSIX2008] (LOBLK): Likewise.
45303         [POSIX || POSIX2008] (PENDIN): Likewise.
45304         [POSIX || POSIX2008] (SWTCH): Likewise.
45305         [POSIX || POSIX2008] (VDISCARD): Likewise.
45306         [POSIX || POSIX2008] (VDSUSP): Likewise.
45307         [POSIX || POSIX2008] (VLNEXT): Likewise.
45308         [POSIX || POSIX2008] (VREPRINT): Likewise.
45309         [POSIX || POSIX2008] (VSTATUS): Likewise.
45310         [POSIX || POSIX2008] (VWERASE): Likewise.
45311         (B*): Change to B[0123456789]*.
45312         * conform/data/time.h-data [POSIX || UNIX98]
45313         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
45314         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
45315         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
45316         [POSIX] (tm_*): Do not allow.
45317
45318 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
45319
45320         * Makefile (install): Don't set LANGUAGE.
45321         * Makefile.in (install): Likewise.
45322         * assert/Makefile (test-assert-ENV): Remove variable.
45323         (test-assert-perr-ENV): Likewise.
45324         * elf/Makefile (neededtest4-ENV): Likewise.
45325         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45326         [$(cross-compiling) = no]: Don't set LANGUAGE.
45327         * io/ftwtest-sh (LANG): Remove variable.
45328         * libio/Makefile (tst-widetext-ENV): Likewise.
45329         * manual/install.texi (Running make install): Don't refer to
45330         environment settings for make install.
45331         * INSTALL: Regenerated.
45332         * nptl/tst-tls6.sh: Don't set LANG.
45333         * posix/globtest.sh (LANG): Remove variable.
45334         * string/Makefile (tester-ENV): Likewise.
45335         (inl-tester-ENV): Likewise.
45336         (noinl-tester-ENV): Likewise.
45337         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45338         [$(cross-compiling) = no]: Don't set LANGUAGE.
45339         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
45340         without explicit environment settings.
45341
45342 2014-06-06  Roland McGrath  <roland@hack.frob.com>
45343
45344         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
45345         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
45346         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
45347         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
45348
45349 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
45350
45351         * crypt/crypt-private.h [DOS]: Add some includes taken from the
45352         other files in the crypt directory.
45353         * crypt/crypt.c: Remove duplicate includes.
45354         * crypt/crypt-entry.c: Likewise.
45355         * crypt/crypt_util.c: Likewise.
45356
45357 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
45358
45359         * Makeconfig (run-program-env): New variable.
45360         (run-program-prefix-before-env): Likewise.
45361         (run-program-prefix-after-env): Likewise.
45362         (run-program-prefix): Define in terms of new variables.
45363         (built-program-cmd-before-env): New variable.
45364         (built-program-cmd-after-env): Likewise.
45365         (built-program-cmd): Define in terms of new variables.
45366         (test-program-prefix-before-env): New variable.
45367         (test-program-prefix-after-env): Likewise.
45368         (test-program-prefix): Define in terms of new variables.
45369         (test-program-cmd-before-env): New variable.
45370         (test-program-cmd-after-env): Likewise.
45371         (test-program-cmd): Define in terms of new variables.
45372         * Rules (make-test-out): Use $(run-program-env).
45373         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
45374         (help): Do not mention environment variables.  Mention
45375         --timeoutfactor option.
45376         (timeoutfactor): New variable.
45377         (blacklist_exports): Remove function.
45378         (exports): Remove variable.
45379         (command): Do not include ${exports}.
45380         * manual/install.texi (Configuring and compiling): Do not mention
45381         test wrappers preserving environment variables.  Mention that last
45382         assignment to a variable must take precedence.
45383         * INSTALL: Regenerated.
45384         * benchtests/Makefile (run-bench): Use $(run-program-env).
45385         * catgets/Makefile ($(objpfx)test1.cat): Use
45386         $(built-program-cmd-before-env), $(run-program-env) and
45387         $(built-program-cmd-after-env).
45388         ($(objpfx)test2.cat): Do not specify environment variables
45389         explicitly.
45390         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
45391         $(run-program-env) and $(built-program-cmd-after-env).
45392         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
45393         $(run-program-env) and $(test-program-cmd-after-env).
45394         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
45395         explicitly.
45396         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
45397         run_program_env and test_program_cmd_after_env arguments.
45398         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
45399         * elf/tst-pathopt.sh: Use run_program_env argument.
45400         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
45401         $(test-wrapper-env) and $(run-program-env).
45402         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
45403         run_program_env arguments.
45404         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
45405         * intl/Makefile ($(objpfx)tst-gettext.out): Use
45406         $(test-program-prefix-before-env), $(run-program-env) and
45407         $(test-program-prefix-after-env).
45408         ($(objpfx)tst-gettext2.out): Likewise.
45409         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
45410         run_program_env and test_program_prefix_after_env arguments.
45411         * intl/tst-gettext2.sh: Likewise.
45412         * intl/tst-gettext4.sh: Do not set environment variables
45413         explicitly.
45414         * intl/tst-gettext6.sh: Likewise.
45415         * intl/tst-translit.sh: Likewise.
45416         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
45417         $(test-program-prefix-before-env), $(run-program-env) and
45418         $(test-program-prefix-after-env).
45419         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
45420         run_program_env and test_program_prefix_after_env arguments.
45421         * math/Makefile (run-regen-ulps): Use $(run-program-env).
45422         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
45423         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
45424         explicitly with each use of ${test_wrapper_env}.
45425         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
45426         $(test-program-prefix-before-env), $(run-program-env) and
45427         $(test-program-prefix-after-env).
45428         * posix/tst-getconf.sh: Do not set environment variables
45429         explicitly.
45430         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
45431         run_program_env and test_program_prefix_after_env arguments.
45432         * stdio-common/tst-printf.sh: Do not set environment variables
45433         explicitly.
45434         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
45435         $(test-program-prefix-before-env), $(run-program-env) and
45436         $(test-program-prefix-after-env).
45437         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
45438         run_program_env and test_program_prefix_after_env arguments.
45439         Split $test calls into $test_pre and $test.
45440         * timezone/Makefile (build-testdata): Use
45441         $(built-program-cmd-before-env), $(run-program-env) and
45442         $(built-program-cmd-after-env).
45443
45444 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45445
45446         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
45447         strlen for non SHARED builds.
45448
45449 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45450
45451         * nptl/allocatestack.c (check_list): Inlined function...
45452         (__reclaim_stacks): ... here.
45453
45454 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45455
45456         [BZ #15698]
45457         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
45458         memory overrun.
45459
45460 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
45461
45462         * Rules (make-test-out): Include
45463         LOCPATH=$(common-objpfx)localedata in default environment.
45464         * debug/Makefile (tst-chk1-ENV): Remove variable.
45465         (tst-chk2-ENV): Likewise.
45466         (tst-chk3-ENV): Likewise.
45467         (tst-chk4-ENV): Likewise.
45468         (tst-chk5-ENV): Likewise.
45469         (tst-chk6-ENV): Likewise.
45470         (tst-lfschk1-ENV): Likewise.
45471         (tst-lfschk2-ENV): Likewise.
45472         (tst-lfschk3-ENV): Likewise.
45473         (tst-lfschk4-ENV): Likewise.
45474         (tst-lfschk5-ENV): Likewise.
45475         (tst-lfschk6-ENV): Likewise.
45476         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
45477         (tst-iconv7-ENV): Likewise.
45478         * intl/Makefile (LOCPATH-ENV): Likewise.
45479         (tst-codeset-ENV): Likewise.
45480         (tst-gettext3-ENV): Likewise.
45481         (tst-gettext5-ENV): Likewise.
45482         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
45483         (tst-fopenloc-ENV): Likewise.
45484         (tst-fgetws-ENV): Remove variable.
45485         (tst-ungetwc1-ENV): Likewise.
45486         (tst-ungetwc2-ENV): Likewise.
45487         (bug-ungetwc2-ENV): Likewise.
45488         (tst-swscanf-ENV): Likewise.
45489         (bug-ftell-ENV): Likewise.
45490         (tst-fgetwc-ENV): Likewise.
45491         (tst-fseek-ENV): Likewise.
45492         (tst-ftell-partial-wide-ENV): Likewise.
45493         (tst-ftell-active-handler-ENV): Likewise.
45494         (tst-ftell-append-ENV): Likewise.
45495         * posix/Makefile (tst-fnmatch-ENV): Likewise.
45496         (tst-regexloc-ENV): Likewise.
45497         (bug-regex1-ENV): Likewise.
45498         (tst-regex-ENV): Likewise.
45499         (tst-regex2-ENV): Likewise.
45500         (bug-regex5-ENV): Likewise.
45501         (bug-regex6-ENV): Likewise.
45502         (bug-regex17-ENV): Likewise.
45503         (bug-regex18-ENV): Likewise.
45504         (bug-regex19-ENV): Likewise.
45505         (bug-regex20-ENV): Likewise.
45506         (bug-regex22-ENV): Likewise.
45507         (bug-regex23-ENV): Likewise.
45508         (bug-regex25-ENV): Likewise.
45509         (bug-regex26-ENV): Likewise.
45510         (bug-regex30-ENV): Likewise.
45511         (bug-regex32-ENV): Likewise.
45512         (bug-regex33-ENV): Likewise.
45513         (bug-regex34-ENV): Likewise.
45514         (bug-regex35-ENV): Likewise.
45515         (tst-rxspencer-ENV): Likewise.
45516         (tst-rxspencer-no-utf8-ENV): Likewise.
45517         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
45518         (tst-sscanf-ENV): Likewise.
45519         (tst-swprintf-ENV): Likewise.
45520         (tst-swscanf-ENV): Likewise.
45521         (test-vfprintf-ENV): Likewise.
45522         (scanf13-ENV): Likewise.
45523         (bug14-ENV): Likewise.
45524         (tst-grouping-ENV): Likewise.
45525         * stdlib/Makefile (tst-strtod-ENV): Likewise.
45526         (tst-strtod3-ENV): Likewise.
45527         (tst-strtod4-ENV): Likewise.
45528         (tst-strtod5-ENV): Likewise.
45529         (testmb2-ENV): Likewise./
45530         * string/Makefile (tst-strxfrm-ENV): Likewise.
45531         (tst-strxfrm2-ENV): Likewise.
45532         (bug-strcoll1-ENV): Likewise.
45533         (test-strcasecmp-ENV): Likewise.
45534         (test-strncasecmp-ENV): Likewise.
45535         * time/Makefile (tst-strptime-ENV): Likewise.
45536         (tst-ftime_l-ENV): Likewise.
45537         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
45538         (tst-mbrtowc-ENV): Likewise.
45539         (tst-wcrtomb-ENV): Likewise.
45540         (tst-mbrtowc2-ENV): Likewise.
45541         (tst-c16c32-1-ENV): Likewise.
45542         (tst-mbsnrtowcs-ENV): Likewise.
45543
45544 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45545
45546         * manual/resource.texi (How to get information about the memory
45547         subsystem?): Fix typo.
45548         Reported by Peon de la Parra Ivan <peon@keba.com>
45549
45550 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
45551
45552         [BZ #16882]
45553         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
45554         (pthread_spin_lock): Branch out of spin loop to proper location.
45555         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
45556         (pthread_spin_lock): Likewise.
45557
45558         * nptl/tst-spin4.c: New test.
45559         * nptl/Makefile (tests): Add tst-spin4.
45560
45561 2014-06-03  Andreas Schwab  <schwab@suse.de>
45562
45563         [BZ #15946]
45564         * resolv/res_send.c (send_dg): Reload file descriptor after
45565         calling reopen.
45566
45567 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
45568
45569         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45570
45571 2014-06-03  Richard Henderson  <rth@redhat.com>
45572
45573         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
45574         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
45575         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
45576         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
45577         in the SAVE_PID block.
45578         (__libc_vfork): New alias.
45579         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
45580
45581         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
45582         child in registers, not on the stack.  Remove RESET_PID conditionals.
45583         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
45584
45585 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45586
45587         * sysdeps/aarch64/libm-test-ulps: Regenerate.
45588
45589 2014-06-03  Wilco  <wdijkstr@arm.com>
45590
45591         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
45592         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
45593         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45594         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
45595         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
45596         Likewise.
45597
45598 2014-06-03  Wilco  <wdijkstr@arm.com>
45599
45600         * sysdeps/aarch64/fpu/math_private.h
45601         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
45602         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
45603         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
45604         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45605         Fix declarations.
45606
45607 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45608
45609         * crypt/crypt-private.h: Include ufc-crypt.h.
45610         (__b64_from_24bit): Declare extern.
45611         * crypt/crypt_util.c(__b64_from_24bit): New function.
45612         (b64t): New static const variable.
45613         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
45614         (b64t): Remove variable.
45615         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
45616         * crypt/sha256-crypt.c: Include crypt-private.h.
45617         (b64t): Remove variable.
45618         (__sha256_crypt_r): Remove b64_from_24bit and replace
45619         with __b64_from_24bit.
45620         * crypt/sha512-crypt.c: Likewise.
45621
45622 2014-06-02  Roland McGrath  <roland@hack.frob.com>
45623
45624         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
45625         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
45626         Label the code __libc_vfork rather than __vfork.
45627         [!NOT_IN_libc] (vfork): Define as weak alias.
45628         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
45629         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
45630         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
45631
45632 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45633
45634         * malloc/malloc.c (malloc_info): Fix format specifier for
45635         n_mmaps.
45636
45637 2014-06-02  Wilco  <wdijkstr@arm.com>
45638
45639         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
45640         FPCR write.
45641
45642 2014-06-02  Wilco  <wdijkstr@arm.com>
45643
45644         [BZ #17009]
45645         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
45646         Rewrite to reduce FPCR/FPSR accesses.
45647
45648 2014-06-01  David S. Miller  <davem@davemloft.net>
45649
45650         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45651
45652 2014-05-31  David S. Miller  <davem@davemloft.net>
45653
45654         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
45655         to occur in round to nearest mode when |x| >= 2.0
45656
45657 2014-05-30  Richard Henderson  <rth@twiddle.net>
45658
45659         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
45660         (PSEUDO_RET_NOERRNO): Remove.
45661         (ret): Don't redefine.
45662         (ret_NOERRNO): Define in terms of ret.
45663         (ret_ERRVAL): Likewise.
45664
45665         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
45666         use of PSEUDO_RET; perform the error check directly.
45667
45668 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
45669
45670         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
45671         with __int128_t.
45672
45673 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45674
45675         * malloc/malloc (malloc_info): Fix formatting.
45676
45677 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45678             Roland McGrath  <roland@hack.frob.com>
45679
45680         * malloc/malloc (malloc_info): Also print mmapped statistics.
45681
45682 2014-05-30  Roland McGrath  <roland@hack.frob.com>
45683
45684         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
45685         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
45686
45687 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
45688
45689         * malloc/malloc.c (malloc_info): Inline mi_arena.
45690
45691 2014-05-29  Richard Henderson  <rth@twiddle.net>
45692
45693         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
45694         Remove comma before expanding ASM_ARGS_##nr.
45695         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
45696         Make _x0 a strict output; make _x8 a strict input; adjust expansion
45697         of ASM_ARGS_##nr.
45698         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
45699         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
45700         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
45701         (ASM_ARGS_1): Add leading comma.
45702
45703         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
45704         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
45705         to __errno_location.
45706         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
45707         Remove the expected plt for __errno_location.
45708
45709         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45710         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
45711         call to __read_tp.
45712
45713         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45714         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
45715         it and break it down.
45716         (DOCARGS_0, DOCARGS_1): Do nothing.
45717         (DOCARGS_2): Update to store into the new stack frame.
45718         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
45719         (UNDOCARGS_1): Update to restore from the new stack frame.
45720         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
45721         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
45722
45723         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45724         (SINGLE_THREAD_P): New parameter for result regno.
45725         (PSEUDO): Update to match; use cbz instead of beq.
45726
45727         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45728         Use ENTRY to define the _nocancel entry point.  Share the syscall
45729         and syscall error check paths with the cancel path.
45730         (PSEUDO_END): New.
45731
45732         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
45733         whitespace; tabs before and after asm mnemonics.
45734
45735 2014-05-29  Eric Wong  <normalperson@yhbt.net>
45736
45737         [BZ #15132]
45738         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45739         Call fstat64 or stat64 internally, depending on arguments passed.
45740         Replace stat buffer argument with file descriptor argument.
45741         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
45742         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
45743         Pass fd to __internal_statvfs instead of calling fstat64.
45744         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
45745         Pass fd to __internal_statvfs64 instead of calling fstat64.
45746         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
45747         Pass -1 to __internal_statvfs instead of calling stat64.
45748         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
45749         Pass -1 to __internal_statvfs64 instead of calling stat64.
45750
45751 2014-05-28  Roland McGrath  <roland@hack.frob.com>
45752
45753         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
45754         that was previously under [RESET_PID].
45755         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
45756
45757         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
45758         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
45759
45760 2014-05-27  Roland McGrath  <roland@hack.frob.com>
45761
45762         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
45763
45764         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
45765         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
45766
45767 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
45768
45769         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
45770
45771 2014-05-27  Andreas Schwab  <schwab@suse.de>
45772
45773         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
45774         TLS_INIT_TP macro.
45775         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
45776         * elf/rtld.c (init_tls, dl_main): Likewise.
45777         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
45778         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
45779         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
45780         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
45781         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
45782         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
45783         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
45784         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
45785         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
45786         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
45787         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
45788         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
45789         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
45790         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
45791         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
45792         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
45793         * sysdeps/generic/tls.h: Update description.
45794
45795 2014-05-27  Will Newton  <will.newton@linaro.org>
45796
45797         [BZ #16990]
45798         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
45799         and restore r2 rather than just restoring.
45800
45801 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45802
45803         [BZ #16724]
45804         * libio/tst-ftell-append.c: New test case.
45805         * libio/Makefile (tests): Add test case.
45806         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
45807         append mode.
45808         * libio/wfileops.c (do_ftell_wide): Likewise.
45809
45810 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45811
45812         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45813
45814         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
45815         ...
45816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
45817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45818         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
45819         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
45820         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
45821         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
45822         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
45823         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
45824         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
45825         Moved ...
45826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
45827         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
45828         Moved ...
45829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
45830         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
45831         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
45832         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
45833         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
45834         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
45835         ...
45836         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
45837         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
45838         Moved ...
45839         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
45840         here.
45841         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
45842         ...
45843         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
45844         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
45845         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
45846
45847         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
45848         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
45849         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
45850         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
45851
45852         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
45853         merge into ...
45854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
45855         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
45856         ...
45857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
45858         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
45859         ...
45860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
45861         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
45862         Moved ...
45863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
45864         here.
45865         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
45866         Moved ...
45867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
45868         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
45869         Moved ...
45870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
45871
45872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
45873         conditional [RESET_PID].
45874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
45875         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
45876         removed.
45877         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
45878         removed.
45879
45880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
45881         <tcb-offsets.h>.
45882         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45883         (__libc_vfork): New strong alias.
45884         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
45885         removed.
45886         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
45887         Removed.
45888
45889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
45890         <tcb-offsets.h>.
45891         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
45892         (__libc_vfork): New strong alias.
45893         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
45894         removed.
45895         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
45896         removed.
45897
45898 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
45899
45900         * malloc/malloc.c (mi_arena): New function.
45901         (malloc_info): Remove nested function mi_arena. Call non-nosted
45902         function mi_arena.
45903
45904 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45905
45906         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
45907         by insrwi.
45908         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
45909         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
45910         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
45911         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
45912         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
45913         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
45914         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
45915
45916 2014-05-26  Andreas Schwab  <schwab@suse.de>
45917
45918         [BZ #16984]
45919         * locale/programs/repertoire.c (repertoire_read): Add slash
45920         between I18NPATH element and file name.
45921         * locale/programs/locfile.c (locfile_read): Likewise.
45922
45923 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45924
45925         * nptl/pthread_mutexattr_settype.c
45926         (__pthread_mutexattr_settype):
45927         Disable lock elision for PTHREAD_MUTEX_NORMAL.
45928
45929 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45930
45931         * nptl/tst-mutex5 (do_test):
45932         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
45933
45934 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45935
45936         * benchtests/README: Document 'init' directive.
45937         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
45938         BENCH_INIT.
45939         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
45940         (parse_file): Recognize 'init' directive.
45941
45942 2014-05-26  Kyle McMartin  <kyle@redhat.com>
45943
45944         [BZ #16796]
45945         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
45946         alignment of struct pthread.
45947
45948 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45949
45950         [BZ #16878]
45951         * nscd/netgroupcache.c (addgetnetgrentX): Look for
45952         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45953         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
45954         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45955
45956 2014-05-25  Richard Henderson  <rth@twiddle.net>
45957
45958         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45959         (SINGLE_THREAD_P_PIC): Remove.
45960         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
45961         (SINGLE_THREAD_P_PIC): Remove.
45962
45963         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
45964         branch to syscall error ...
45965         (PSEUDO): ... here.
45966         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
45967         from __local_syscall_error to .Lsyscall_error.
45968         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
45969         (SYSCALL_ERROR): Update label name.
45970
45971         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45972         Do not use DOARGS/UNDOARGS.
45973         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
45974         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
45975         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
45976         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
45977         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
45978
45979         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
45980         block comment.
45981
45982         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
45983         define if !NOT_IN_libc.
45984         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
45985         define with non-default symbol versions.
45986
45987 2014-05-23  Richard Henderson  <rth@twiddle.net>
45988
45989         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
45990         (vfork, __vfork): Define via compat_symbol.
45991
45992         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
45993         [!HAVE_IFUNC] (vfork_compat): Remove.
45994         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
45995
45996 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45997
45998         [BZ #16978]
45999         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
46000         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
46001         variable.
46002
46003 2014-05-23  Richard Henderson  <rth@twiddle.net>
46004
46005         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
46006         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
46007         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
46008         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
46009
46010         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
46011         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
46012         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
46013         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
46014         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
46015         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
46016         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
46017         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
46018         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
46019         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
46020         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
46021         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
46022         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
46023         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
46024         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
46025         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
46026         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
46027         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
46028         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
46029         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
46030         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
46031         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
46032         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
46033         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
46034         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
46035         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
46036         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
46037         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
46038         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
46039         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
46040         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
46041         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
46042         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
46043         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
46044         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
46045         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
46046         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
46047         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
46048         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
46049         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
46050         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
46051         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
46052         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
46053         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
46054         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
46055         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
46056         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
46057         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
46058         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
46059         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
46060         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
46061         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
46062         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
46063         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
46064         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
46065         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
46066
46067         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
46068         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
46069         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
46070         before exiting on error.
46071         (__libc_vfork): New strong alias.
46072         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
46073         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
46074
46075         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
46076         that was previously under [RESET_PID].
46077         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
46078
46079         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
46080
46081 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
46082
46083         [BZ #16977]
46084         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
46085         value when x - 1 is zero.
46086         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
46087         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
46088         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
46089         0.0L for an argument of 1.0L.
46090         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
46091         Likewise.
46092         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
46093         value when x - 1 is zero.
46094         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
46095         * sysdeps/i386/fpu/libm-test-ulps: Update.
46096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46097
46098 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
46099
46100         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
46101         alphasort and versionsort.
46102
46103 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46104
46105         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
46106         macro.
46107         [copysignf]: Likewise.
46108
46109 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46110
46111         * crypt/md5-crypt.c: Fix formatting.
46112
46113 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
46114
46115         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
46116         (b64_from_24bit): New function.
46117
46118 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46119
46120         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
46121         libc_hidden_builtin_def to ifunc.
46122         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
46123         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
46124
46125 2014-05-21  Roland McGrath  <roland@hack.frob.com>
46126
46127         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
46128         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
46129
46130 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
46131
46132         * nscd/Depend (linuxthreads): Remove.
46133         (nptl): Add.
46134         * resolv/Depend (linuxthreads): Remove.
46135         * rt/Depend (linuxthreads): Remove.
46136
46137         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
46138         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
46139         $(common-objpfx)elf/.
46140         (link-libc-before-gnulib): Likewise.
46141         (elfobjdir): Remove variable.
46142         * Makefile (install): Use $(elf-objpfx) instead of
46143         $(common-objpfx)elf/.
46144         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
46145         $(elfobjdir)/.
46146         (link-libc-deps): Likewise.
46147         ($(common-objpfx)libc.so): Likewise.
46148         ($(common-objpfx)linkobj/libc.so): Likewise.
46149         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
46150         instead of $(common-objpfx)elf/.
46151         (symbolic-link-list): Likewise.
46152         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
46153         [$(cross-compiling) = no]: Likewise.
46154         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
46155         $(elfobjdir)/.
46156         (static-gnulib-arch): Likewise.
46157         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
46158         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
46159         $(common-objpfx)elf/.
46160
46161 2014-05-21  Richard Henderson  <rth@redhat.com>
46162
46163         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46164         (SINGLE_THREAD_P): Use the correct width load.  Fold
46165         into the ldr offset.
46166
46167         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
46168         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
46169
46170 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
46171
46172         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
46173         (libgcc_s_resume): Use __attribute_used__.
46174         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
46175         Likewise.
46176
46177 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46178
46179         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
46180         optimization when used with float constants.
46181
46182         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46183
46184 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
46185
46186         [BZ #16915]
46187         * locale/nl_langinfo_l.c: Make direct reference to every
46188         _nl_current_CATEGORY symbol.
46189         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
46190         (tests-static): Add tst-langinfo-static.
46191         (tests-special): Add tst-langinfo-static.out.
46192         ($(objpfx)tst-langinfo.out): Redirect output.
46193         ($(objpfx)tst-langinfo-static.out): New.
46194         * localedata/tst-langinfo.sh: Send output to stdout.
46195         * localedata/tst-langinfo-static.c: New file.
46196
46197         [BZ #16965]
46198         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
46199         when the shift amount is modulo the limb size.
46200
46201 2014-05-20  Richard Henderson  <rth@redhat.com>
46202
46203         [BZ #16967]
46204         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
46205         Change type of sa_flags from unsigned int to int.
46206
46207         [BZ #16966]
46208         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
46209
46210         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
46211
46212 2014-05-20  Will Newton  <will.newton@linaro.org>
46213
46214         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46215         Test the return value of the system call in the nocancel case.
46216
46217 2014-05-20  Will Newton  <will.newton@linaro.org>
46218             Yvan Roux  <yvan.roux@linaro.org>
46219
46220         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
46221         #include of asm/ptrace.h.
46222         (PTRACE_GET_THREAD_AREA): Remove #undef.
46223         (PTRACE_GETHBPREGS): Likewise.
46224         (PTRACE_SETHBPREGS): Likewise.
46225         (struct user_regs_struct): New structure.
46226         (struct user_fpsimd_struct): New structure.
46227         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
46228         #include of asm/ptrace.h and second #include of sys/user.h.
46229         (PTRACE_GET_THREAD_AREA): Remove #undef.
46230         (PTRACE_GETHBPREGS): Likewise.
46231         (PTRACE_SETHBPREGS): Likewise.
46232         (ELF_NGREG): Use new struct user_regs_struct.
46233         (elf_fpregset_t): Use new struct user_fpsimd_struct.
46234
46235 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46236
46237         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
46238         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
46239
46240 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
46241
46242         [BZ #16958]
46243         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
46244         membar to avoid block loads/stores to overlap previous stores.
46245
46246 2014-05-17  Richard Henderson  <rth@redhat.com>
46247
46248         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
46249         Create the __##syscall_name##_nocancel entry point.
46250         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
46251         Remove; let the sysdep-cancel.h code create it.
46252
46253 2014-05-17  David S. Miller  <davem@davemloft.net>
46254
46255         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
46256         Protect with __USE_GNU.
46257         (TIOCSET_TEMPT): Likewise.
46258         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
46259         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
46260         these are already provided in bits/ioctl-types.h
46261
46262 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46263
46264         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
46265         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
46266
46267         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
46268         Use wait4 regardless of [__NR_waitpid].
46269
46270 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46271
46272         PR libgcc/60166
46273         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
46274         (_FP_NANSIGN_Q): Set the quiet bit.
46275
46276 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
46277
46278         * benchtests/Makefile
46279         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
46280         not $(common-objpfx)math/libm.so.
46281         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
46282         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
46283         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
46284         $(common-objpfx)dlfcn/libdl.so.
46285         ($(objpfx)tst-audit8): Depend on $(libm), not
46286         $(common-objpfx)math/libm.so.
46287         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
46288         not $(common-objpfx)dlfcn/libdl.so.
46289         * math/Makefile
46290         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
46291         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
46292         [$(build-shared) = yes].
46293         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
46294         $(common-objpfx)nptl/libpthread.so.
46295         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
46296         $(common-objpfx)math/libm.so$(libm.so-version) or
46297         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
46298         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
46299         $(common-objpfx)dlfcn/libdl.so.
46300         * setjmp/Makefile (link-libm): Remove variable.
46301         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
46302         * stdio-common/Makefile (link-libm): Remove variable.
46303         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
46304         * stdlib/Makefile (link-libm): Remove variable.
46305         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
46306         ($(objpfx)tst-strtod-round): Likewise.
46307         ($(objpfx)tst-tininess): Likewise.
46308         ($(objpfx)tst-strtod-underflow): Likewise.
46309         ($(objpfx)tst-strtod6): Likewise.
46310         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
46311         $(libdl), not $(common-objpfx)nptl/libpthread.so and
46312         $(common-objpfx)dlfcn/libdl.so.
46313
46314 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46315
46316         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
46317         BSD terminal modes definitions.
46318
46319 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46320
46321         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
46322         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
46323
46324         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
46325         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
46326         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
46327         Don't do #include_next.
46328         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
46329         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
46330         Don't do #include_next.
46331         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
46332         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
46333         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
46334         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
46335
46336 2014-05-16  Allan McRae  <allan@archlinux.org>
46337
46338         * po/sv.po: Update Swedish translation from translation project.
46339
46340         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
46341         in sed expression.
46342
46343 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
46344
46345         [BZ #16917]
46346         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
46347         errno if the TIOCGPTN ioctl fails with an error different than
46348         EINVAL.
46349         * login/tst-ptsname.c: New file.
46350         * login/Makefile (tests): Add tst-ptsname.
46351
46352         [BZ #16943]
46353         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
46354         and prlimit64.
46355
46356 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46357
46358         [BZ #16849]
46359         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
46360         herrno to return EAI_AGAIN.
46361
46362 2014-05-14  Roland McGrath  <roland@hack.frob.com>
46363
46364         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
46365         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
46366         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
46367         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
46368         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
46369         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
46370         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
46371         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
46372         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
46373         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
46374         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
46375         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
46376         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
46377         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
46378         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
46379         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
46380         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
46381         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
46382         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
46383         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
46384         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
46385         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
46386         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
46387         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
46388         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
46389         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
46390         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
46391         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
46392         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
46393         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
46394         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
46395         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
46396         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
46397         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
46398         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
46399         Moved ...
46400         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
46401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
46402         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
46403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
46404         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
46405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
46406         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
46407         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
46408         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
46409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
46410         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
46411         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
46412         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
46413         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
46414         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
46415         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
46416         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
46417         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
46418         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
46419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
46420         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
46421         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
46422         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
46423         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
46424         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
46425         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
46426         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
46427         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
46428         Moved ...
46429         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
46430         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
46431         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
46432         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
46433         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
46434         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
46435         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
46436         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
46437         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
46438         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
46439         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
46440         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
46441         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
46442         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
46443         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
46444         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
46445         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
46446         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
46447         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
46448         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
46449         Moved ...
46450         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
46451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
46452         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
46453
46454         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
46455         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
46456         (libpthread-sysdep_routines): Add elision-related stuff here instead.
46457         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
46458         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
46459         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
46460         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
46461         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
46462         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
46463         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
46464         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
46465         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
46466         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
46467         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
46468         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
46469         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
46470         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
46471         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
46472         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
46473         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
46474         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
46475         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
46476         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
46477         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
46478         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
46479         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
46480         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
46481         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
46482         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
46483         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
46484         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
46485
46486         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
46487         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
46488
46489         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
46490         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
46491         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
46492         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
46493         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
46494         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
46495         Moved ...
46496         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
46497         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
46498         Moved ...
46499         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
46500         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
46501         Moved ...
46502         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
46503         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
46504         Moved ...
46505         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
46506         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
46507         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
46508         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
46509         Moved ...
46510         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
46511         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
46512         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
46513         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
46514         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
46515         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
46516         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
46517         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
46518         Moved ...
46519         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
46520         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46521         Moved ...
46522         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46523         ... here.
46524         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
46525         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
46526         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
46527         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
46528         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46529         Moved ...
46530         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46531         ... here.
46532         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
46533         Moved ...
46534         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
46535         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
46536         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
46537         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
46538         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
46539         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
46540         Moved ...
46541         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
46542         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
46543         Moved ...
46544         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
46545         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
46546         Moved ...
46547         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
46548         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
46549         Moved ...
46550         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
46551         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
46552         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
46553         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
46554         Moved ...
46555         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
46556         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
46557         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
46558         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
46559         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
46560         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
46561         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
46562         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
46563         Moved ...
46564         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
46565         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46566         Moved ...
46567         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46568         ... here.
46569         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
46570         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
46571         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
46572         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
46573         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46574         Moved ...
46575         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46576         ... here.
46577         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
46578         Moved ...
46579         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
46580         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
46581         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
46582         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
46583         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
46584         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
46585         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
46586         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
46587         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
46588         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
46589         Moved ...
46590         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
46591         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
46592         Moved ...
46593         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
46594         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
46595         Moved ...
46596         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
46597         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
46598         Moved ...
46599         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
46600         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
46601         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
46602         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
46603         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
46604         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
46605         Moved ...
46606         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
46607         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
46608         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
46609         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
46610         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
46611         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
46612         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
46613         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
46614         Moved ...
46615         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
46616         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46617         Moved ...
46618         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46619         ... here.
46620         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
46621         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
46622         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
46623         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
46624         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46625         Moved ...
46626         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46627         ... here.
46628         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
46629         Moved ...
46630         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
46631         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
46632         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
46633         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
46634         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
46635         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
46636         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
46637         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
46638         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
46639         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
46640         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
46641
46642         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
46643         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
46644
46645         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
46646         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
46647
46648         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
46649         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
46650         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
46651         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
46652         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
46653         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
46654         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
46655         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
46656         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
46657         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
46658         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
46659         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
46660         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
46661         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
46662         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
46663         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
46664         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
46665         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
46666         Moved ...
46667         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
46668         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
46669         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
46670         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
46671         Moved ...
46672         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
46673         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
46674         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
46675         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
46676         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
46677         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
46678         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
46679         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
46680         Moved ...
46681         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
46682         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
46683         Moved ...
46684         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
46685         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
46686         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
46687         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
46688         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
46689         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
46690         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
46691         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
46692         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
46693         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
46694         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
46695         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
46696         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
46697         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
46698         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
46699         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
46700         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
46701
46702         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
46703         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
46704         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
46705         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
46706         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
46707
46708         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
46709         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
46710         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
46711         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
46712         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
46713         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
46714         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
46715         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
46716         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
46717         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
46718
46719         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
46720         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
46721
46722         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
46723         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
46724         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
46725         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
46726         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
46727         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
46728         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
46729         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
46730         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
46731         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
46732         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
46733         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
46734         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
46735         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
46736         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
46737         Update #include.
46738         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
46739         Likewise.
46740         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46741         Likewise.
46742         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46743         Likewise.
46744         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46745         Likewise.
46746         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
46747         Likewise.
46748         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
46749         Likewise.
46750         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
46751         Likewise.
46752         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
46753         Likewise.
46754         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
46755         Likewise.
46756         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
46757         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
46758         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
46759         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
46760         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
46761         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
46762         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
46763         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
46764         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
46765         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
46766         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
46767         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
46768         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
46769         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
46770         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
46771
46772         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
46773         that was previously under [RESET_PID].
46774         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
46775         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
46776         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
46777
46778         * sysdeps/i386/nptl/Implies: New file.
46779         * sysdeps/x86_64/nptl/Implies: New file.
46780         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
46781         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
46782         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
46783         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
46784
46785         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
46786         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46787         (__libc_vfork): New strong alias.
46788         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
46789         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
46790
46791         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
46792         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46793         (__libc_vfork): New strong alias.
46794         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
46795         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
46796
46797         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
46798         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46799         (__libc_vfork): New strong alias.
46800         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
46801         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
46802         * nptl/pt-vfork.c: New file.
46803         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
46804         (libpthread: GLIBC_2.20): New version set (empty).
46805
46806 2014-05-14  Will Newton  <will.newton@linaro.org>
46807
46808         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
46809         rather than #if.
46810
46811 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46812
46813         [BZ #16564]
46814         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
46815         arguments with exponent 65 or above.
46816         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
46817         arguments 0x1p113L or above.
46818         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
46819         to arguments 0x1p107L or above.
46820         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
46821         positive arguments with exponent 65 or above.
46822         * math/auto-libm-test-in: Add more tests of log1p.
46823         * math/auto-libm-test-out: Regenerated.
46824
46825         [BZ #16928]
46826         * math/s_cacos.c (__cacos): Ensure zero real part of result from
46827         non-finite arguments is +0.
46828         * math/s_cacosf.c (__cacosf): Likewise.
46829         * math/s_cacosl.c (__cacosl): Likewise.
46830         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
46831         * sysdeps/i386/fpu/libm-test-ulps: Update.
46832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46833
46834         [BZ #16927]
46835         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
46836         value.
46837         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
46838         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
46839         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
46840         for explicit high bit of mantissa when testing for argument equal
46841         to 1.
46842         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
46843         * sysdeps/i386/fpu/libm-test-ulps: Update.
46844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46845
46846         [BZ #16516]
46847         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
46848         (__erf): Scale by 16 instead of 8 in potentially underflowing
46849         case.  Ensure exception if result actually underflows.
46850         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
46851         (__erff): Scale by 16 instead of 8 in potentially underflowing
46852         case.  Ensure exception if result actually underflows.
46853         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
46854         (efx8): Remove variable.
46855         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46856         case.  Ensure exception if result actually underflows.
46857         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
46858         (efx8): Remove variable.
46859         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46860         case.  Ensure exception if result actually underflows.
46861         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
46862         (efx8): Remove variable.
46863         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46864         case.  Ensure exception if result actually underflows.
46865         * math/auto-libm-test-in: Add more tests of erf.
46866         * math/auto-libm-test-out: Regenerated.
46867
46868 2014-05-14  Andreas Schwab  <schwab@suse.de>
46869
46870         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
46871         Remove code conditionalized on USE___THREAD.
46872
46873         * config.h.in (HAVE_PT_CHOWN): Define as 0.
46874         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
46875         not definedness.
46876
46877 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46878
46879         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
46880         Define unconditionally.
46881         (__ASSUME_O_CLOEXEC): Likewise.
46882         (__ASSUME_SOCK_CLOEXEC): Likewise.
46883         (__ASSUME_IN_NONBLOCK): Likewise.
46884         (__ASSUME_PIPE2): Likewise.
46885         (__ASSUME_EVENTFD2): Likewise.
46886         (__ASSUME_SIGNALFD4): Likewise.
46887         (__ASSUME_DUP3): Likewise.
46888         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
46889         (__ASSUME_DUP3): Do not define.
46890         (__ASSUME_EVENTFD2): Likewise.
46891         (__ASSUME_IN_NONBLOCK): Likewise.
46892         (__ASSUME_O_CLOEXEC): Likewise.
46893         (__ASSUME_PIPE2): Likewise.
46894         (__ASSUME_SIGNALFD4): Likewise.
46895         (__ASSUME_SOCK_CLOEXEC): Likewise.
46896         (__ASSUME_UTIMES): Undefine.
46897         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46898         (__ASSUME_UTIMES): Do not define.
46899         (__ASSUME_O_CLOEXEC): Likewise.
46900         (__ASSUME_SOCK_CLOEXEC): Likewise.
46901         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
46902         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
46903         0x020621].
46904         (__ASSUME_PIPE2): Likewise.
46905         (__ASSUME_EVENTFD2): Likewise.
46906         (__ASSUME_SIGNALFD4): Likewise.
46907         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
46908         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
46909         Do not define.
46910         (__ASSUME_EVENTFD2): Likewise.
46911         (__ASSUME_SIGNALFD4): Likewise.
46912         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
46913         (__ASSUME_32BITUIDS): Likewise.
46914         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
46915         (__ASSUME_IPC64): Likewise.
46916         (__ASSUME_ST_INO_64_BIT): Likewise.
46917         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
46918         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
46919         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46920         (__ASSUME_UTIMES): Do not define.
46921         (__ASSUME_PSELECT): Likewise.
46922         (__ASSUME_PPOLL): Likewise.
46923         (__ASSUME_O_CLOEXEC): Likewise.
46924         (__ASSUME_SOCK_CLOEXEC): Likewise.
46925         (__ASSUME_IN_NONBLOCK): Likewise.
46926         (__ASSUME_PIPE2): Likewise.
46927         (__ASSUME_EVENTFD2): Likewise.
46928         (__ASSUME_SIGNALFD4): Likewise.
46929         (__ASSUME_DUP3): Likewise.
46930         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46931         (__ASSUME_UTIMES): Likewise.
46932         (__ASSUME_O_CLOEXEC): Likewise.
46933         (__ASSUME_SOCK_CLOEXEC): Likewise.
46934         (__ASSUME_IN_NONBLOCK): Likewise.
46935         (__ASSUME_PIPE2): Likewise.
46936         (__ASSUME_EVENTFD2): Likewise.
46937         (__ASSUME_SIGNALFD4): Likewise.
46938         (__ASSUME_DUP3): Likewise.
46939         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
46940         (__ASSUME_UTIMES): Likewise.
46941         (__ASSUME_O_CLOEXEC): Likewise.
46942         (__ASSUME_SOCK_CLOEXEC): Likewise.
46943         (__ASSUME_IN_NONBLOCK): Likewise.
46944         (__ASSUME_PIPE2): Likewise.
46945         (__ASSUME_EVENTFD2): Likewise.
46946         (__ASSUME_SIGNALFD4): Likewise.
46947         (__ASSUME_DUP3): Likewise.
46948         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
46949         Likewise.
46950         (__ASSUME_UTIMES): Likewise.
46951         (__ASSUME_EVENTFD2): Likewise.
46952         (__ASSUME_SIGNALFD4): Likewise.
46953         * sysdeps/unix/sysv/linux/tile/kernel-features.h
46954         (__ASSUME_O_CLOEXEC): Likewise.
46955         (__ASSUME_SOCK_CLOEXEC): Likewise.
46956         (__ASSUME_IN_NONBLOCK): Likewise.
46957         (__ASSUME_PIPE2): Likewise.
46958         (__ASSUME_EVENTFD2): Likewise.
46959         (__ASSUME_SIGNALFD4): Likewise.
46960         (__ASSUME_DUP3): Likewise.
46961         (__ASSUME_UTIMES): Undefine.
46962
46963         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
46964         feclearexcept.  Remove symbol versioning code.
46965         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
46966         symbol versioning code.
46967         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
46968         symbol versioning code.
46969         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
46970         feupdateenv.  Remove symbol versioning code.
46971         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
46972         fegetexceptflag.  Remove symbol versioning code.
46973         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
46974         fesetexceptflag.  Remove symbol versioning code.
46975         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
46976         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
46977         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
46978         (__posix_fadvise64_l32): Remove prototype.
46979         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
46980         code.
46981
46982 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46983
46984         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
46985         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
46986         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
46987         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
46988
46989 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
46990
46991         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
46992         current working directory
46993
46994 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46995
46996         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
46997         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
46998         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
46999         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
47000         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
47001         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
47002         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
47003         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
47004         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
47005         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
47006         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
47007         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
47008         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
47009         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
47010         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
47011         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
47012         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
47013         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
47014         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
47015         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
47016         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
47017         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
47018         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
47019         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
47020         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
47021         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
47022         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
47023         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
47024         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
47025         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
47026         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
47027         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
47028         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
47029         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
47030         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
47031         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
47032         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
47033         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
47034         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
47035         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
47036         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
47037         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
47038
47039         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
47040         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
47041
47042         * sysdeps/unix/sysv/linux/arm/Makefile
47043         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
47044         Add rt-aeabi_unwind_cpp_pr1.
47045         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
47046         Add nptl-aeabi_unwind_cpp_pr1.
47047         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
47048         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
47049         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
47050         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
47051         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
47052         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
47053
47054         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
47055         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
47056         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
47057         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
47058
47059         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
47060         Deconditionalize the code that was previously under [RESET_PID].
47061         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
47062
47063         * sysdeps/generic/exit-thread.h: New file.
47064         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
47065         * include/unistd.h (__exit_thread): Remove declaration.
47066         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
47067         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
47068         * csu/libc-start.c: Include <exit-thread.h>.
47069         (LIBC_START_MAIN): Pass no argument to __exit_thread.
47070         * nptl/pthread_create.c: Include <exit-thread.h>.
47071         (start_thread): Call __exit_thread in place of __exit_thread_inline.
47072         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
47073         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
47074         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
47075         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
47076         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
47077         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
47078         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
47079         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
47080         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
47081         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
47082         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
47083         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
47084         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
47085         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
47086         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
47087         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
47088
47089 2014-05-13  Andreas Schwab  <schwab@suse.de>
47090
47091         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
47092
47093 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
47094
47095         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
47096         (__ASSUME_UTIMES): Do not condition on kernel version.
47097         (__ASSUME_PSELECT): Define unconditionally.
47098         (__ASSUME_PPOLL): Likewise.
47099         (__ASSUME_ATFCTS): Likewise.
47100         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
47101         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
47102         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
47103         (__ASSUME_UTIMENSAT): Define unconditionally.
47104         (__ASSUME_PRIVATE_FUTEX): Likewise.
47105         (__ASSUME_FALLOCATE): Likewise.
47106         (__ASSUME_O_CLOEXEC): Likewise.
47107         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
47108         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
47109         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
47110         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
47111         (__ASSUME_IN_NONBLOCK): Likewise.
47112         (__ASSUME_PIPE2): Likewise.
47113         (__ASSUME_EVENTFD2): Likewise.
47114         (__ASSUME_SIGNALFD4): Likewise.
47115         (__ASSUME_DUP3): Likewise.
47116         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47117         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
47118         (__ASSUME_AT_RANDOM): Likewise.
47119         (__ASSUME_PREADV): Likewise.
47120         (__ASSUME_PWRITEV): Likewise.
47121         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
47122         (__ASSUME_F_GETOWN_EX): Define unconditionally.
47123         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
47124         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
47125         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
47126         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47127         (__ASSUME_O_CLOEXEC): Define unconditionally.
47128         (__ASSUME_PSELECT): Do not undefine conditionally.
47129         (__ASSUME_PPOLL): Likewise.
47130         (__ASSUME_ATFCTS): Likewise.
47131         (__ASSUME_SET_ROBUST_LIST): Likewise.
47132         (__ASSUME_UTIMENSAT): Likewise.
47133         (__ASSUME_FDATASYNC): Define unconditionally.
47134         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47135         (__ASSUME_SIGFRAME_V2): Likewise.
47136         )__ASSUME_EVENTFD2): Likewise.
47137         (__ASSUME_SIGNALFD4): Likewise.
47138         (__ASSUME_PSELECT): Do not undefine conditionally.
47139         (__ASSUME_PPOLL): Likewise.
47140         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
47141         (__ASSUME_PSELECT): Define unconditionally.
47142         (__ASSUME_PPOLL): Likewise.
47143         (__ASSUME_O_CLOEXEC): Likewise.
47144         (__ASSUME_SOCK_CLOEXEC): Likewise.
47145         (__ASSUME_IN_NONBLOCK): Likewise.
47146         (__ASSUME_PIPE2): Likewise.
47147         (__ASSUME_EVENTFD2): Likewise.
47148         (__ASSUME_SIGNALFD4): Likewise.
47149         (__ASSUME_DUP3): Likewise.
47150         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47151         (__ASSUME_O_CLOEXEC): Likewise.
47152         (__ASSUME_SOCK_CLOEXEC): Likewise.
47153         (__ASSUME_IN_NONBLOCK): Likewise.
47154         (__ASSUME_PIPE2): Likewise.
47155         (__ASSUME_EVENTFD2): Likewise.
47156         (__ASSUME_SIGNALFD4): Likewise.
47157         (__ASSUME_DUP3): Likewise.
47158         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47159         (__ASSUME_EVENTFD2): Likewise.
47160         (__ASSUME_SIGNALFD4): Likewise.
47161         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47162
47163 2014-05-12  Andreas Schwab  <schwab@suse.de>
47164
47165         [BZ #16932]
47166         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
47167         (_nss_nis_gethostbyname4_r): Return error if item length is larger
47168         than maximum RPC packet size.
47169         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
47170         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
47171         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
47172         (_nss_nis_getservbyport_r): Likewise.
47173
47174 2014-05-12  Will Newton  <will.newton@linaro.org>
47175
47176         * malloc/Makefile (tests): Add tst-mallopt.
47177         * malloc/tst-mallopt.c: New file.
47178
47179 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47180
47181         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
47182         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
47183
47184 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47185
47186         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
47187         (tst-tlsmod6.so): Likewise.
47188
47189 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47190
47191         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
47192
47193 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
47194
47195         [BZ #16064]
47196         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
47197         and <dl-procinfo.h>.
47198         (__fegetenv): Save SSE state in envp->__eip if supported.
47199         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
47200         envp->__eip if supported.
47201         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
47202         and <dl-procinfo.h>.
47203         (__fesetenv): Always set __eip, __cs_selector, __opcode,
47204         __data_offset and __data_selector in environment to 0.  Set SSE
47205         state if supported.
47206         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
47207         test-fenv-sse.
47208         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
47209         -mfpmath=sse.
47210         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
47211
47212 2014-05-09  Will Newton  <will.newton@linaro.org>
47213
47214         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
47215         and libc_relro_required for ARM.
47216         * sysdeps/arm/preconfigure: Regenerate.
47217
47218 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
47219             Stefan Liebler  <stli@linux.vnet.ibm.com>
47220
47221         * config.make.in (enable-lock-elision): New Makefile variable.
47222         * configure.ac: Likewise.
47223         * configure: Regenerate.
47224         * sysdeps/s390/configure.ac:
47225         Add check for gcc transactions support.
47226         * sysdeps/s390/configure: Regenerate.
47227         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
47228         Build elision files if enabled.
47229         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
47230         Add lock elision support for s390.
47231         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
47232         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
47233         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
47234         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
47235         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
47236         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
47237         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
47238         Likewise.
47239         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
47240         Likewise.
47241         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
47242         Likewise.
47243         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
47244         Likewise.
47245         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
47246         (__lll_timedlock_elision, __lll_lock_elision)
47247         (__lll_unlock_elision, __lll_trylock_elision)
47248         (lll_timedlock_elision, lll_lock_elision)
47249         (lll_unlock_elision, lll_trylock_elision): Add.
47250         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47251         (pthread_mutex_t): Add lock elision support for s390.
47252
47253 2014-05-14  Wilco  <wdijkstr@arm.com>
47254
47255         * sysdeps/arm/fclrexcpt.c: Cleanup.
47256         * sysdeps/arm/fedisblxcpt.c: Cleanup.
47257         * sysdeps/arm/feenablxcpt.c: Cleanup.
47258         * sysdeps/arm/fegetenv.c: Cleanup.
47259         * sysdeps/arm/fegetexcept.c: Cleanup.
47260         * sysdeps/arm/fegetround.c: Cleanup.
47261         * sysdeps/arm/feholdexcpt.c: Cleanup.
47262         * sysdeps/arm/fesetenv.c: Cleanup.
47263         * sysdeps/arm/fesetround.c: Cleanup.
47264         * sysdeps/arm/feupdateenv.c: Cleanup.
47265         * sysdeps/arm/fgetexcptflg.c: Cleanup.
47266         * sysdeps/arm/fraiseexcpt.c: Cleanup.
47267         * sysdeps/arm/fsetexcptflg.c: Cleanup.
47268         * sysdeps/arm/ftestexcept.c: Cleanup.
47269         * sysdeps/arm/get-rounding-mode.h: Cleanup.
47270         * sysdeps/arm/setfpucw.c: Cleanup.
47271
47272 2014-05-09  Will Newton  <will.newton@linaro.org>
47273
47274         * sysdeps/arm/armv7/strcmp.S: New file.
47275         * NEWS: Mention addition of ARMv7 optimized strcmp.
47276
47277 2014-05-08  Roland McGrath  <roland@hack.frob.com>
47278
47279         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
47280         look for %.ac rather than %.in.
47281
47282         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
47283         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
47284         * sysdeps/mach/hurd/configure: Regenerated.
47285         * sysdeps/unix/sysv/linux/configure: Regenerated.
47286
47287         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
47288
47289 2014-05-07  Steve Ellcey  <sellcey@mips.com>
47290
47291         [BZ #16922]
47292         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
47293         (LONG_SUB): Ditto.
47294         (PTR_SUB): Ditto.
47295
47296 2014-05-07  Andreas Schwab  <schwab@suse.de>
47297
47298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
47299         when skipping over non-matching result from nscd.
47300
47301 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
47302
47303         [BZ #16876]
47304         * nptl/sockperf.c (client): Check socket return value.
47305
47306         [BZ #16877]
47307         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
47308         nscd security class.
47309
47310 2014-05-06  Roland McGrath  <roland@hack.frob.com>
47311
47312         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
47313         * sysdeps/arm/unwind.h: ... here.
47314
47315 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
47316
47317         [BZ #16916]
47318         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
47319         Define.
47320
47321 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47322
47323         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
47324         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
47325         multiarch strncpy for PPC64.
47326         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
47327         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
47328         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
47329         multiarch optimizations.
47330         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47331         (__libc_ifunc_impl_list): Likewise.
47332         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
47333         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
47334         multiarch stpncpy for PPC64.
47335         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
47336         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
47337
47338 2014-05-06  Andreas Schwab  <schwab@suse.de>
47339
47340         [BZ #16912]
47341         * gmon/mcount.c (_MCOUNT_DECL): Use
47342         atomic_compare_and_exchange_bool_acq instead of
47343         catomic_compare_and_exchange_bool_acq.
47344
47345 2014-05-05  Roland McGrath  <roland@hack.frob.com>
47346
47347         * elf/Makefile (others, install-bin): Remove pldd.
47348         (pldd-modules): Variable removed.
47349         ($(objpfx)pldd): Target removed.
47350         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
47351         (others, install-bin): Append pldd here.
47352         ($(objpfx)pldd): New target.
47353
47354         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
47355         to 0, so the first #if test emitted later doesn't see it undefined.
47356         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
47357         * sysdeps/gnu/errlist.c: Regenerated.
47358
47359 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47360
47361         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
47362         [libc_hidden_builtin_def]: Define to empty value.
47363         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
47364         [libc_hidden_builtin_def]: Likewise.
47365         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
47366         [libc_hidden_builtin_def]: Likewise.
47367         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
47368         [libc_hidden_builtin_def]: Likewise.
47369         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
47370         __redirect_memcpy and define ifunc as default hidden symbol.
47371         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
47372         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
47373
47374 2014-05-04  Adam Conrad  <adconrad@0c3.net>
47375
47376         * locale/iso-4217.def: Reintroduce XDR currency.
47377
47378 2014-05-04  Allan McRae  <allan@archlinux.org>
47379
47380         * po/eo.po: Update Esperanto translation from translation project.
47381
47382 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
47383
47384         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
47385         and FEATURE_INDEX_MAX to 1.
47386         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
47387
47388 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47389
47390         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
47391         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
47392         * iconvdata/big5.c (ONE_DIRECTION): Define.
47393         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
47394         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
47395         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
47396         * iconvdata/cp932.c (ONE_DIRECTION): Define.
47397         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
47398         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
47399         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
47400         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
47401         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
47402         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
47403         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
47404         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
47405         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
47406         * iconvdata/gbk.c (ONE_DIRECTION): Define.
47407         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
47408         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
47409         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
47410         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
47411         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
47412         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
47413         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
47414         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
47415         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
47416         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
47417         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
47418         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
47419         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
47420         * iconvdata/iso646.c (ONE_DIRECTION): Define.
47421         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
47422         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
47423         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
47424         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
47425         * iconvdata/johab.c (ONE_DIRECTION): Define.
47426         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
47427         * iconvdata/sjis.c (ONE_DIRECTION): Define.
47428         * iconvdata/t.61.c (ONE_DIRECTION): Define.
47429         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
47430         * iconvdata/tscii.c (ONE_DIRECTION): Define.
47431         * iconvdata/uhc.c (ONE_DIRECTION): Define.
47432         * iconvdata/unicode.c (ONE_DIRECTION): Define.
47433         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
47434         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
47435         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
47436
47437 2014-05-01  Roland McGrath  <roland@hack.frob.com>
47438
47439         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
47440         (_IO_JUMPS_OFFSET): Define to 0.
47441
47442         * nptl/sysdeps/pthread/bits/libc-lock.h
47443         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
47444         (__libc_lock_define_initialized_recursive): Always define using
47445         initializer.  Modern compilers treat uninitialized (implicit zero) and
47446         explicit zero initializers the same (i.e. put the datum in bss).
47447
47448 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47449
47450         * nscd/nscd-client.h: Include <string.h>.
47451
47452 2014-05-01  David S. Miller  <davem@davemloft.net>
47453
47454         [BZ #16885]
47455         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
47456         multiple zero bytes exist at the end of a string.
47457         Reported by Aurelien Jarno <aurelien@aurel32.net>
47458
47459         * string/test-strcmp.c (check): Add explicit test for situations where
47460         there are multiple zero bytes after the first.
47461
47462 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47463
47464         [BZ #16890]
47465         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
47466         when compiling wprintf.
47467         * stdio-common/tstdiomisc.c (t3): New function.
47468         (main): Call it.
47469
47470 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47471
47472         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
47473         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
47474         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
47475         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
47476
47477 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47478
47479         * stdlib/longlong.h: Updated from GCC.
47480
47481 2014-05-01  Will Newton  <will.newton@linaro.org>
47482             Bernard Ogden  <bernie.ogden@linaro.org>
47483
47484         * NEWS: Update fixed bug list.
47485
47486         [BZ #15119]
47487         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
47488
47489 2014-04-30  David S. Miller  <davem@davemloft.net>
47490
47491         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
47492         (libc_feholdexcept_setround_sparc_ctx): New function.
47493         (libc_fesetenv_sparc_ctx): Likewise.
47494         (libc_feupdateenv_sparc_ctx): Likewise.
47495         (libc_feholdsetround_sparc_ctx): Likewise.
47496         (libc_feholdexcept_setround_ctx): Define.
47497         (libc_feholdexcept_setroundf_ctx): Likewise.
47498         (libc_feholdexcept_setroundl_ctx): Likewise.
47499         (libc_fesetenv_ctx): Likewise.
47500         (libc_fesetenvf_ctx): Likewise.
47501         (libc_fesetenvl_ctx): Likewise.
47502         (libc_feupdateenv_ctx): Likewise.
47503         (libc_feupdateenvf_ctx): Likewise.
47504         (libc_feupdateenvl_ctx): Likewise.
47505         (libc_feresetround_ctx): Likewise.
47506         (libc_feresetroundf_ctx): Likewise.
47507         (libc_feresetroundl_ctx): Likewise.
47508         (libc_feholdsetround_ctx): Likewise.
47509         (libc_feholdsetroundf_ctx): Likewise.
47510         (libc_feholdsetroundl_ctx): Likewise.
47511
47512         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47513         with __USE_GNU instead of XOPEN cpp guards.
47514
47515         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
47516         0.
47517
47518         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47519         with XOPEN cpp guards.
47520
47521 2014-04-30  Julian Brown  <julian@codesourcery.com>
47522
47523         [BZ #16888]
47524         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
47525         handling.
47526
47527 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
47528
47529         [BZ #9894]
47530         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
47531         Change to 2.6.32.
47532         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
47533         * sysdeps/unix/sysv/linux/configure: Regenerated.
47534         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
47535         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
47536         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
47537         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
47538         * README: Update reference to required Linux kernel version.
47539         * manual/install.texi (Linux): Update reference to required Linux
47540         kernel headers version.
47541         * INSTALL: Regenerated.
47542
47543         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
47544         header inclusion.
47545         [POSIX] (limits.h): Likewise.
47546         [POSIX] (math.h): Likewise.
47547         [POSIX] (sys/wait.h): Likewise.
47548         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
47549         function.
47550         [POSIX] (stddef.h): Do not allow header inclusion.
47551
47552 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47553
47554         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
47555
47556 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
47557
47558         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
47559         Return immediately after lll_futex_wake.
47560
47561 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47562
47563         [BZ #16791]
47564         * nscd/nscd-client.h (datahead_init_common): Initialize entire
47565         structure.
47566         (datahead_init_pos): Call datahead_init_common early.
47567         (datahead_init_neg): Likewise.
47568
47569         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
47570         datahead_init_neg): New functions.
47571         * nscd/aicache.c (addhstaiX): Use them.
47572         * nscd/grpcache.c (cache_addgr): Likewise.
47573         * nscd/hstcache.c (cache_addhst): Likewise.
47574         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47575         * nscd/netgroupcache.c (do_notfound): Likewise.
47576         (addgetnetgrentX): Likewise.
47577         (addinnetgrX): Likewise.
47578         * nscd/pwdcache.c (cache_addpw): Likewise.
47579         * nscd/servicescache.c (cache_addserv): Likewise.
47580
47581 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47582             Atsushi Onoe  <atsushi@onoe.org>
47583
47584         [BZ #14308]
47585         [BZ #12994]
47586         [BZ #13651]
47587         * resolv/res_query.c (__libc_res_nsearch): Return if at least
47588         one response is valid.
47589         * resolv/res_send.c (send_dg): Check for validity of other
47590         response if the current response is a referral.
47591
47592 2014-04-29  Steve Ellcey  <sellcey@mips.com>
47593
47594         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
47595
47596 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
47597
47598         [BZ #16823]
47599         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
47600         Always divide by positive zero when computing -Inf result.
47601         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
47602         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
47603
47604 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47605
47606         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
47607         FPSCR if value do not change.
47608         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
47609         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
47610         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
47611         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47612         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
47613         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
47614         function.
47615
47616 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
47617
47618         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
47619         * sysdeps/unix/sysv/linux/hppa: Move directory from
47620         ports/systeps/unix/sysv/linux/hppa.
47621         * README: Update listing for hppa-*-linux-gnu.
47622
47623 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
47624
47625         [BZ #16754]
47626         * manual/stdio.texi (Hook functions): Fix types of stream hook
47627         functions.
47628         [BZ #16854]
47629         * socket/sys/socket.h: Fix typo in comment.
47630
47631 2014-04-28  Wilco  <wdijkstr@arm.com>
47632
47633         * sysdeps/arm/fenv_private.h: New file.
47634         * sysdeps/arm/math_private.h: New file.
47635         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
47636
47637 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
47638
47639         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
47640         with __int128_t.
47641         (La_x86_64_retval): Likewise.
47642
47643 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
47644
47645         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
47646         fpsr if value didn't change.
47647         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
47648         to fpcr if value didn't change.
47649         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
47650         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
47651         fpsr or fpcr if value didn't change.
47652         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
47653         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
47654         fpcr if value didn't change.
47655         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
47656         to fpsr if value didn't change.
47657
47658 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47659
47660         * nptl/tst-sem3.c: Use test-skeleton.c
47661         (main): Rename to do_test.  Use return instead of
47662         exit.
47663         * nptl/tst-sem4.c: Use test-skeleton.c
47664         (main): Rename to do_test.
47665
47666 2014-04-22  David S. Miller  <davem@davemloft.net>
47667
47668         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
47669         (struct sigaction): New struct member __glibc_reserved0, change
47670         type of sa_flags to int.
47671
47672 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
47673
47674         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
47675         (COUNT_LEADING_ZEROS_0): Define for AArch64.
47676
47677 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47678
47679         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
47680         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
47681
47682 2014-04-22  Will Newton  <will.newton@linaro.org>
47683             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
47684
47685         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
47686         (__longjmp): Add longjmp and longjmp_target SystemTap
47687         probes.
47688         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
47689         (__sigsetjmp): Add setjmp SystemTap probe.
47690
47691 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
47692
47693         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
47694         match manual order.
47695
47696 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47697
47698         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
47699
47700         * sysdeps/powerpc/fpu/fenv_private.h
47701         (libc_feholdexcept_setroundl_ctx): Define to
47702         libc_feholdexcept_setround_ppc_ctx.
47703         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
47704         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
47705         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
47706         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
47707
47708 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47709
47710         * sysdeps/aarch64/math-tests.h: New file.
47711
47712 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
47713
47714         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
47715         New.
47716         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47717         Check and set bit_AVX2_Usable.
47718         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
47719         macro.
47720         (bit_AVX2): Likewise.
47721         (index_AVX2_Usable): Likewise.
47722         (CPUID_AVX2): Likewise.
47723         (HAS_AVX2): Likewise.
47724
47725 2014-04-17  Will Newton  <will.newton@linaro.org>
47726
47727         * manual/setjmp.texi (System V contexts): Add note that
47728         calling setcontext on a context created by a call to a
47729         signal handler is undefined.  Update text to note that
47730         setcontext from a signal handler is possible but not
47731         recommended.
47732
47733         [BZ #16629]
47734         * stdlib/tst-setcontext.c: Include signal.h.
47735         (main): Check that the signal stack before and
47736         after swapcontext is the same.
47737
47738         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
47739         Re-implement to restore registers in user code and avoid
47740         rt_sigreturn system call.
47741
47742 2014-04-17  Wilco  <wdijkstr@arm.com>
47743
47744         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
47745         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
47746         * math/test-fenv.c: Skip exception trap tests on targets which only
47747         support non-stop mode.
47748
47749 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47750             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47751
47752         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
47753         (libc_feholdsetround_aarch64_ctx)
47754         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
47755         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
47756         (libc_feresetround_ctx, libc_feresetroundf_ctx)
47757         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
47758         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
47759         (libc_feresetround_noexl_ctx): Define.
47760
47761 2014-04-16  Richard Henderson  <rth@redhat.com>
47762
47763         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
47764
47765         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
47766         unwind tables.
47767
47768         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
47769         const from the non-libc, non-ldso copy.
47770
47771         * sysdeps/alpha/libm-test-ulps: Regenerate.
47772
47773 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
47774             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47775
47776         * sysdeps/aarch64/fpu/math_private.h: New file.
47777
47778 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
47779
47780         * sysdeps/aarch64/libm-test-ulps: Regenerate.
47781
47782 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
47783
47784         [BZ #16275]
47785         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
47786         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
47787         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
47788         Intel MPX bound registers before _dl_profile_fixup.
47789         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
47790         registers after _dl_profile_fixup.  Save and restore bound
47791         registers bnd0/bnd1 when calling _dl_call_pltexit.
47792         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
47793         (LR_BND_OFFSET): Likewise.
47794         (LRV_BND0_OFFSET): Likewise.
47795         (LRV_BND1_OFFSET): Likewise.
47796
47797 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47798
47799         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
47800         to...
47801         * sysdeps/mach/hurd/i386/tls.h: ... here.
47802         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
47803         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
47804         fields.
47805
47806 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47807
47808         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
47809
47810 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47811
47812         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
47813
47814 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47815
47816         [BZ #14770]
47817         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
47818         * sysdeps/s390/configure: Regenerate.
47819
47820         [BZ #16824]
47821         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
47822         Set round-to-nearest internally to reduce error accumulation.
47823
47824 2014-04-16  Alan Modra  <amodra@gmail.com>
47825
47826         [BZ #16740]
47827         [BZ #16619]
47828         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
47829         * math/libm-test.inc (frexp_test_data): Add tests.
47830         * NEWS: Update fixed bug list.
47831
47832 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
47833
47834         * benchtests/Makefile: Depend on libraries in build directory.
47835         (bench-math): Separate out math tests.
47836         (bench-pthread): Separate out pthread tests.
47837         (bench): Include math and pthread tests.
47838
47839 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
47840
47841         [BZ #16831]
47842         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
47843         _dl_debug_initialize.
47844
47845         * configure.ac: Remove SELinux header check.
47846         * configure: Regenerate.
47847         * nscd/selinux.c (perms): Array of const char* to permission names.
47848         (nscd_request_avc_has_perm): Call security_deny_unknown to find
47849         default policy. Call string_to_security_class and string_to_av_perm to
47850         translate strings. Enforce default policy and call avs_has_perm with
47851         results of translated strings.
47852
47853 2014-04-13  David S. Miller  <davem@davemloft.net>
47854
47855         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47856
47857 2014-04-12  Allan McRae  <allan@archlinux.org>
47858
47859         [BZ #16838]
47860         * manual/string.texi (Collation Functions): Fix qsort argument
47861         order in example.
47862         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
47863
47864 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
47865
47866         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
47867         Make the test a no-op if there are no exceptions defined.
47868
47869 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
47870
47871         * elf/Makefile (tests): make tst-dlopen-aout conditional on
47872         enable-hardcoded-path-in-tests
47873
47874 2014-04-11  Will Newton  <will.newton@linaro.org>
47875
47876         * benchtests/Makefile (extra-objs): Add json-lib.o.
47877         (bench-func): Tidy up JSON output.
47878         * benchtests/bench-skeleton.c: Include json-lib.h.
47879         (main): Use JSON library functions to do output of
47880         benchmark results.
47881         * benchtests/bench-timing-type.c (main): Output the
47882         timing type simply, leaving formatting to the user.
47883         * benchtests/json-lib.c: New file.
47884         * benchtests/json-lib.h: Likewise.
47885
47886 2014-04-11  Torvald Riegel  <triegel@redhat.com>
47887
47888         [BZ #15215]
47889         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
47890         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
47891         memory barriers.  Add comments.
47892         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
47893         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
47894         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
47895         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
47896         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
47897         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
47898
47899 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
47900
47901         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
47902         * sysdeps/s390/s390-64/configure.ac: ... this ...
47903         * sysdeps/s390/configure.ac: ... to here.
47904         * sysdeps/s390/s390-32/configure: Delete file.
47905         * sysdeps/s390/s390-64/configure: Delete file.
47906         * sysdeps/s390/configure: Regenerate.
47907
47908 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
47909
47910         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
47911
47912 2014-04-11  Will Newton  <will.newton@linaro.org>
47913
47914         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
47915         to zero if it is not defined elsewhere.  (mtrim): Test
47916         the value of MALLOC_DEBUG with #if rather than #ifdef.
47917
47918 2014-04-10 Torvald Riegel  <triegel@redhat.com>
47919
47920         * benchtests/pthread_once-inputs: New file.
47921         * benchtests/pthread_once-source.c: New file.
47922         * benchtests/README: Update documentation.
47923
47924 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
47925             H.J. Lu  <hongjiu.lu@intel.com>
47926
47927         [BZ #16275]
47928         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
47929         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
47930         * sysdeps/x86_64/configure: Regenerated.
47931         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
47932         macro.
47933         (REGISTER_SAVE_RAX): Likewise.
47934         (REGISTER_SAVE_RCX): Likewise.
47935         (REGISTER_SAVE_RDX): Likewise.
47936         (REGISTER_SAVE_RSI): Likewise.
47937         (REGISTER_SAVE_RDI): Likewise.
47938         (REGISTER_SAVE_R8): Likewise.
47939         (REGISTER_SAVE_R9): Likewise.
47940         (REGISTER_SAVE_BND0): Likewise.
47941         (REGISTER_SAVE_BND1): Likewise.
47942         (REGISTER_SAVE_BND2): Likewise.
47943         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
47944         bound registers when calling _dl_fixup.
47945
47946 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47947
47948         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
47949         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
47950         of its definition.
47951         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
47952         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
47953         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
47954         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
47955         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
47956         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
47957         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
47958
47959 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
47960
47961         [BZ #15514]
47962         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
47963         pathconf(_PC_NAME_MAX).
47964
47965 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47966
47967         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
47968         Remove macro usage.
47969         (__PTHREAD_SPINS): Move definition to ...
47970         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
47971         (__PTHREAD_SPINS): ... here.
47972         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47973         (__PTHREAD_SPIN): Likewise.
47974         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
47975         (__PTHREAD_SPIN): Likewise.
47976         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
47977         (__PTHREAD_SPIN): Likewise.
47978         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
47979         (__PTHREAD_SPIN): Likewise.
47980         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
47981         (__PTHREAD_SPIN): Likewise.
47982         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
47983         (__PTHREAD_SPIN): Likewise.
47984         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
47985         (__PTHREAD_SPIN): Likewise.
47986         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
47987         (__PTHREAD_SPIN): Likewise.
47988         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
47989         (__PTHREAD_SPIN): Likewise.
47990         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
47991         (__PTHREAD_SPIN): Likewise.
47992         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
47993         (__PTHREAD_SPIN): Likewise.
47994         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
47995         (__PTHREAD_SPIN): Likewise.
47996
47997         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
47998         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
47999         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
48000         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
48001         imply folder.
48002         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
48003         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
48004         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
48005         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
48006         correct imply path.
48007         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
48008         strlen symbol for non multi-arch builds.
48009         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
48010         missing hidden_def and weak_alias.
48011
48012 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
48013
48014         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
48015
48016 2014-04-07  Will Newton  <will.newton@linaro.org>
48017
48018         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
48019         and contents.  [!_LIBC] Remove #ifndef and contents.
48020         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
48021         * string/memccpy.c (__memccpy): Use ANSI prototype.
48022         * string/memfrob.c (memfrob): Likewise.
48023         * string/strcoll.c (STRCOLL): Likewise.
48024         * string/strlen.c (strlen): Likewise.
48025         * string/strtok.c (STRTOK): Likewise.
48026         * string/strcat.c: Remove unused #include of memcopy.h.
48027         (strcat): Use ANSI prototype.
48028         * string/strchr.c: Remove unused #include of memcopy.h.
48029         (strchr): Use ANSI prototype.
48030         * string/strcmp.c: Remove unused #include of memcopy.h.
48031         (strcmp): Use ANSI prototype.
48032         * string/strcpy.c: Remove unused #include of memcopy.h.
48033         (strcpy): Use ANSI prototype.
48034
48035 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48036
48037         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
48038         * config.make.in (config-extra-cppflags): Set it from
48039         libc_extra_cppflags.
48040         * configure.ac (libc_extra_cflags): Make it accumulate over
48041         configure fragments.
48042         (libc_extra_cppflags): New flag.
48043         * configure. Regenerate.
48044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
48045         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
48046         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
48047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
48048
48049         [BZ #16815]
48050         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
48051         result for FE_DOWNWARD rounding mode.
48052         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
48053         Likewise.
48054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48055
48056 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
48057
48058         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
48059         in function argument name.
48060
48061 2014-04-03  David Svoboda  <svoboda@cert.org>
48062
48063         [BZ #5666]
48064         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
48065         explicitly.
48066
48067 2014-04-03  Roland McGrath  <roland@hack.frob.com>
48068
48069         * elf/dl-unmap-segments.h: New file.
48070         * sysdeps/generic/ldsodefs.h
48071         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
48072         * elf/dl-close.c: Include <dl-unmap-segments.h>.
48073         * elf/dl-fptr.c: Likewise.
48074         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
48075         * sysdeps/aarch64/tlsdesc.c: Likewise.
48076         * sysdeps/arm/tlsdesc.c: Likewise.
48077         * sysdeps/i386/tlsdesc.c: Likewise.
48078         * sysdeps/tile/dl-runtime.c: Likewise.
48079         * sysdeps/x86_64/tlsdesc.c: Likewise.
48080         * elf/dl-load.h: New file.
48081         * elf/dl-load.c: Include it.
48082         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
48083         Macros moved to dl-load.h.
48084         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
48085         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
48086         Use _dl_unmap_segments in place of __munmap.
48087         Break out segment-mapping loop into ...
48088         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
48089
48090 2014-04-03  Will Newton  <will.newton@linaro.org>
48091
48092         * elf/dl-lookup.c (do_lookup_x): Remove comment
48093         referring to nested function and move variable
48094         declarations down to before first use.
48095
48096 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
48097
48098         [BZ #16799]
48099         [BZ #16800]
48100         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
48101         with 0 numerator.
48102         * math/s_catanf.c (__catanf): Likewise.
48103         * math/s_catanh.c (__catanh): Likewise.
48104         * math/s_catanhf.c (__catanhf): Likewise.
48105         * math/s_catanhl.c (__catanhl): Likewise.
48106         * math/s_catanl.c (__catanl): Likewise.
48107         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
48108         by positive zero when computing -Inf result.
48109         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
48110         (catanh_test): Likewise.
48111         * sysdeps/i386/fpu/libm-test-ulps: Update.
48112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48113
48114         [BZ #16789]
48115         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
48116         instead of using underflowing value in computing result.
48117         * math/s_clog10.c (__clog10): Likewise.
48118         * math/s_clog10f.c (__clog10f): Likewise.
48119         * math/s_clog10l.c (__clog10l): Likewise.
48120         * math/s_clogf.c (__clogf): Likewise.
48121         * math/s_clogl.c (__clogl): Likewise.
48122         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
48123         (clog10_test): Likewise.
48124         * sysdeps/i386/fpu/libm-test-ulps: Update.
48125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48126
48127 2014-04-02  Alan Modra  <amodra@gmail.com>
48128
48129         [BZ #16739]
48130         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
48131         output when value is near a power of two.  Use int64_t for lx and
48132         remove casts.  Use decimal rather than hex exponent constants.
48133         Don't use long double multiplication when double will suffice.
48134         * math/libm-test.inc (nextafter_test_data): Add tests.
48135         * NEWS: Add 16739 and 16786 to bug list.
48136
48137         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
48138
48139         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
48140
48141 2014-04-01  Will Newton  <will.newton@linaro.org>
48142
48143         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
48144         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
48145
48146 2014-04-01  Florian Weimer  <fweimer@redhat.com>
48147
48148         [BZ #13347]
48149         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
48150         * nptl/tst-setuid2.c: New file.
48151         * nptl/Makefile (xtests): Add tst-setuid2.
48152
48153 2014-04-01  Alan Modra  <amodra@gmail.com>
48154
48155         [BZ #16786]
48156         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
48157
48158 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48159
48160         [BZ #6803]
48161         [BZ #6804]
48162         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
48163         set errno as appropriate.
48164         * math/w_scalbf.c (__scalbf): Likewise.
48165         * math/w_scalbl.c (__scalbl): Likewise.
48166         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
48167         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
48168         * math/libm-test.inc (scalb_test_data): Add errno expectations.
48169         Add more NaN tests.
48170
48171         [BZ #16349]
48172         * math/w_atan2.c: Include <errno.h>.
48173         (__atan2): Set errno for result underflowing to zero.
48174         * math/w_atan2f.c: Include <errno.h>.
48175         (__atan2f): Set errno for result underflowing to zero.
48176         * math/w_atan2l.c: Include <errno.h>.
48177         (__atan2l): Set errno for result underflowing to zero.
48178         * math/auto-libm-test-in: Don't allow missing errno for some atan2
48179         tests.
48180         * math/auto-libm-test-out: Regenerated.
48181
48182 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48183
48184         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
48185         Encode instruction correctly in little endian.
48186         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
48187         Likewise.
48188         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
48189         Likewise.
48190         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
48191         Likewise.
48192         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
48193         Likewise.
48194
48195 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48196
48197         [BZ #9894]
48198         * sysdeps/unix/sysv/linux/kernel-features.h
48199         [__sparc__ && !__arch64__ && !__sparc_v9__]
48200         (__ASSUME_SET_ROBUST_LIST): Do not define.
48201         [__sparc__ && !__arch64__ && !__sparc_v9__]
48202         (__ASSUME_FUTEX_LOCK_PI): Likewise.
48203         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
48204         Likewise.
48205         * sysdeps/unix/sysv/linux/arm/kernel-features.h
48206         (__ASSUME_FUTEX_LOCK_PI): Undefine.
48207         (__ASSUME_REQUEUE_PI): Likewise.
48208         (__ASSUME_SET_ROBUST_LIST): Likewise.
48209         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
48210         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
48211         Undefine.
48212         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48213         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
48214         Likewise.
48215         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
48216         Likewise.
48217         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
48218         Likewise.
48219         * sysdeps/unix/sysv/linux/mips/kernel-features.h
48220         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
48221         Undefine.
48222         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
48223         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
48224         Likewise.
48225
48226         [BZ #16648]
48227         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48228         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
48229         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
48230
48231 2014-03-31  Will Newton  <will.newton@linaro.org>
48232
48233         * benchtests/Makefile (bench): Add ffs and ffsll to list
48234         of tests.
48235         * benchtests/ffs-inputs: New file.
48236         * benchtests/ffsll-inputs: Likewise.
48237
48238 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
48239
48240         [BZ #16770]
48241         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
48242         too large before casting to int.
48243         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
48244         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
48245         * math/libm-test.inc (scalb_test_data): Add more tests.
48246
48247 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48248
48249         * benchtests/Makefile (DETAILED_OPT): New make option.
48250         (bench-func): Run benchmark program with -d if DETAILED_OPT is
48251         set.
48252         * benchtests/bench-skeleton.c: Include stdbool.h.
48253         (main): Store and print timings per input.
48254         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
48255         member to each argument value.
48256         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
48257         (_print_arg_data): Initialize per-input timing to 0.
48258
48259         * benchtests/Makefile (timing-type): New binary.
48260         (bench-clean): Also remove bench-timing-type.
48261         (bench): New target for timing-type.
48262         (bench-func): Print output in JSON format.
48263         * benchtests/bench-skeleton.c (main): Print output in JSON
48264         format.
48265         * benchtests/bench-timing-type.c: New file.
48266         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
48267         (TIMING_PRINT_STATS): Remove.
48268         * benchtests/scripts/bench.py (_print_arg_data): Store variant
48269         name separately.
48270
48271         * benchtests/bench-modf.c: Remove.
48272         * benchtests/modf-inputs: New inputs file.
48273
48274 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
48275
48276         [BZ #16362]
48277         * math/s_clog10.c (M_PI_LOG10E): New macro.
48278         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
48279         imaginary parts are 0.
48280         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
48281         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
48282         imaginary parts are 0.
48283         * math/s_clog10l.c (M_PI_LOG10El): New macro.
48284         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
48285         imaginary parts are 0.
48286         * math/libm-test.inc (clog10_test_data): Update expected results
48287         for when real and imaginary parts are 0.
48288
48289 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
48290
48291         * elf/dl-load.c: Finish conversion of __builtin_expect into
48292         __glibc_{un}likely.
48293
48294 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
48295
48296         [BZ #16348]
48297         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
48298         1+x for argument with exponent below -67.
48299         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
48300         Likewise.
48301         * math/auto-libm-test-in: Add more tests of exp.
48302         * math/auto-libm-test-out: Regenerated.
48303
48304 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48305
48306         [BZ #16759]
48307         * inet/getnetgrent_r.c (get_nonempty_val): New function.
48308         (nscd_getnetgrent): Use it.
48309
48310         [BZ #16760]
48311         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
48312         of stpcpy.
48313
48314 2014-03-27  Andi Kleen  <ak@linux.intel.com>
48315
48316         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
48317         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48318         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48319         (lll_robust_unlock): Remove out of line section. Use cfi
48320         intrinsics.
48321         (LLL_STUB_UNWIND_INFO*): Remove.
48322         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
48323         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48324         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48325         (lll_robust_unlock): Remove out of line section. Use cfi
48326         intrinsics.
48327         (LLL_STUB_UNWIND_INFO*): Remove.
48328
48329 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48330
48331         [BZ #16758]
48332         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
48333         blank values.
48334
48335 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
48336
48337         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
48338
48339 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
48340
48341         [BZ #16198]
48342         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
48343         fnstenv.
48344         * math/test-fenv-preserve.c: New file.
48345         * math/Makefile (tests): Add test-fenv-preserve.
48346
48347 2014-03-26  Will Newton <will.newton@linaro.org>
48348
48349         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
48350
48351 2014-03-25  Roland McGrath  <roland@hack.frob.com>
48352
48353         * scripts/versionlist.awk: Partition the version sets and emit all
48354         GLIBC_* (sorted) before all others (sorted).
48355
48356 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48357
48358         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
48359         GLIBC_2.2.5 version.
48360
48361 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48362
48363         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
48364         calls.
48365
48366         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
48367         previous change.
48368
48369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48370
48371 2014-03-25  Andreas Schwab  <schwab@suse.de>
48372
48373         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
48374         label to be used after in6ailist is initialized.
48375
48376 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48377
48378         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48379         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48380
48381 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48382
48383         [BZ #16357]
48384         [BZ #16599]
48385         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
48386         min_plus_half.
48387         (fp_formats): Update initializers.
48388         (init_fp_formats): Initialize new field.
48389         (output_for_one_input_case): Allow underflow for results up to
48390         min_plus_half.
48391         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
48392         * math/auto-libm-test-in: Don't mark some underflows from asin and
48393         atanh as spurious.
48394         * math/auto-libm-test-out: Regenerated.
48395         * sysdeps/i386/fpu/libm-test-ulps: Update.
48396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48397
48398 2014-03-25  Andreas Schwab  <schwab@suse.de>
48399
48400         * libio/Makefile (tst-ftell-partial-wide-ENV)
48401         (tst-ftell-active-handler-ENV): Define.
48402
48403 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
48404
48405         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
48406
48407 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48408
48409         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
48410
48411 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48412
48413         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
48414         * sysdeps/x86_64/fpu/multiarch/e_exp.c
48415         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
48416
48417 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48418
48419         [BZ #16634]
48420         * elf/dl-load.c (open_verify): Add mode parameter.
48421         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
48422         (open_path): Change from boolean 'secure' to complete flag 'mode'
48423         (_dl_map_object): Adjust.
48424         * elf/Makefile (tests): Add tst-dlopen-aout.
48425         * elf/tst-dlopen-aout.c: New test.
48426
48427 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
48428
48429         [BZ #16714]
48430         * sysdeps/unix/sysv/linux/s390/bits/stat.h
48431         (struct stat): Rename member pad0 to __glibc_reserved0.
48432
48433         [BZ #16712]
48434         * sysdeps/s390/s390-32/bits/wordsize.h
48435         (__WORDSIZE32_SIZE_ULONG): New define.
48436         * sysdeps/s390/s390-64/bits/wordsize.h
48437         (__WORDSIZE32_SIZE_ULONG): Likewise.
48438         * sysdeps/generic/stdint.h (SIZE_MAX):
48439         Define as UL if __WORDSIZE32_SIZE_ULONG.
48440
48441         [BZ #16713]
48442         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
48443         (__glibc_reserved0): New variable.
48444         (sa_flags): Change type to int.
48445
48446         * posix/Makefile (before-compile): Use += before-compile instead
48447         of a :=.
48448
48449         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48450         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48451
48452 2014-03-20  Andreas Schwab  <schwab@suse.de>
48453
48454         [BZ #16743]
48455         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
48456         non-matching result from nscd.
48457
48458 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48459
48460         * scripts/bench.py: Moved to ...
48461         * benchtests/scripts/bench.py: ... here.
48462         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
48463
48464 2014-03-24  Andreas Schwab  <schwab@suse.de>
48465
48466         [BZ #16002]
48467         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
48468         alloca_account and account alloca use for struct in6ailist.
48469
48470 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48471
48472         [BZ #16284]
48473         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
48474         rounding mode to recompute results that overflow to infinity or
48475         underflow to zero.
48476         * math/auto-libm-test-in: Don't mark tests as expected to fail for
48477         bug 16284.
48478         * math/auto-libm-test-out: Regenerated.
48479         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
48480         (ccosh_test): Likewise.
48481         (csin_test_data): Use plus_oflow.
48482         (csin_test): Use ALL_RM_TEST.
48483         (csinh_test_data): Use plus_oflow.
48484         (csinh_test): Use ALL_RM_TEST.
48485         * sysdeps/i386/fpu/libm-test-ulps: Update.
48486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48487
48488 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
48489
48490         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
48491         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
48492         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
48493
48494         [BZ #16731]
48495         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
48496         when x - 1 is zero.
48497         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
48498         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
48499         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
48500         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
48501         argument is 1.
48502         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
48503         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
48504         zero.
48505         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
48506         * sysdeps/i386/fpu/libm-test-ulps: Update.
48507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48508
48509 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48510
48511         * scripts/bench.pl: Remove file.
48512         * scripts/bench.py: New benchmark script.
48513         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
48514         * benchtests/README: Mention python dependency.
48515         * scripts/pylintrc: New file.
48516         * scripts/pylint: New file.
48517
48518         * bits/mathdef.h: Use #ifdef instead of #if.
48519         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
48520         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48521         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
48522         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48523         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
48524         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48525
48526 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48527             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48528
48529         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
48530         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
48531         and strpbrk-ppc64 objects.
48532         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48533         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
48534         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
48535         multiarch strpbrk for POWER7.
48536         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
48537         multiarch strpbrk for PPC64.
48538         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
48539         ifunc selector.
48540         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
48541         strpbrk for POWER7.
48542
48543 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48544
48545         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
48546         (atan_test): Likewise.
48547         (atanh_test_data): Use NO_TEST_INLINE for two tests.
48548         (atanh_test): Use ALL_RM_TEST.
48549         (atan2_test_data): Likewise.
48550         (cabs_test): Likewise.
48551         (cacosh_test): Likewise.
48552         (carg_test): Likewise.
48553         (casin_test): Likewise.
48554         (casinh_test): Likewise.
48555         (cbrt_test): Likewise.
48556         (csqrt_test): Likewise.
48557         (erf_test): Likewise.
48558         (erfc_test): Likewise.
48559         (pow10_test): Likewise.
48560         (exp2_test): Likewise.
48561         (hypot_test): Likewise.
48562         (j0_test): Likewise.
48563         (j1_test): Likewise.
48564         (lgamma_test): Likewise.
48565         (gamma_test): Likewise.
48566         (sincos_test): Likewise.
48567         (tanh_test): Likewise.
48568         (y0_test): Likewise.
48569         (y1_test): Likewise.
48570         * sysdeps/i386/fpu/libm-test-ulps: Update.
48571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48572
48573 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48574
48575         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
48576         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
48577         and strcspn-ppc64 objects.
48578         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48579         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
48580         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
48581         multiarch strcspn for POWER7.
48582         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
48583         multiarch strcspn for PPC64.
48584         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
48585         ifunc selector.
48586         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
48587         strcspn for POWER7.
48588
48589 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48590
48591         * math/gen-libm-test.pl (generate_testfile): Expect only function
48592         name as argument to AUTO_TESTS_* and pass results for all rounding
48593         modes to parse_args.
48594         (parse_auto_input): Separate inputs of automatic tests from
48595         outputs before storing in %auto_tests.
48596         * math/libm-test.inc (acos_test_data): Update call to
48597         AUTO_TESTS_f_f.
48598         (acos_test): Use ALL_RM_TEST.
48599         (acos_tonearest_test_data): Remove.
48600         (acos_test_tonearest): Likewise.
48601         (acos_towardzero_test_data): Likewise.
48602         (acos_test_towardzero): Likewise.
48603         (acos_downward_test_data): Likewise.
48604         (acos_test_downward): Likewise.
48605         (acos_upward_test_data): Likewise.
48606         (acos_test_upward): Likewise.
48607         (acosh_test_data): Update call to AUTO_TESTS_f_f.
48608         (asin_test_data): Likewise.
48609         (asin_test): Use ALL_RM_TEST.
48610         (asin_tonearest_test_data): Remove.
48611         (asin_test_tonearest): Likewise.
48612         (asin_towardzero_test_data): Likewise.
48613         (asin_test_towardzero): Likewise.
48614         (asin_downward_test_data): Likewise.
48615         (asin_test_downward): Likewise.
48616         (asin_upward_test_data): Likewise.
48617         (asin_test_upward): Likewise.
48618         (asinh_test_data): Update call to AUTO_TESTS_f_f.
48619         (atan_test_data): Likewise.
48620         (atanh_test_data): Likewise.
48621         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
48622         (cabs_test_data): Update call to AUTO_TESTS_c_f.
48623         (carg_test_data): Likewise.
48624         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
48625         (ccos_test_data): Update call to AUTO_TESTS_c_c.
48626         (ccosh_test_data): Likewise.
48627         (cexp_test_data): Likewise.
48628         (clog_test_data): Likewise.
48629         (clog10_test_data): Likewise.
48630         (cos_test_data): Update call to AUTO_TESTS_f_f.
48631         (cos_test): Use ALL_RM_TEST.
48632         (cos_tonearest_test_data): Remove.
48633         (cos_test_tonearest): Likewise.
48634         (cos_towardzero_test_data): Likewise.
48635         (cos_test_towardzero): Likewise.
48636         (cos_downward_test_data): Likewise.
48637         (cos_test_downward): Likewise.
48638         (cos_upward_test_data): Likewise.
48639         (cos_test_upward): Likewise.
48640         (cosh_test_data): Update call to AUTO_TESTS_f_f.
48641         (cosh_test): Use ALL_RM_TEST.
48642         (cosh_tonearest_test_data): Remove.
48643         (cosh_test_tonearest): Likewise.
48644         (cosh_towardzero_test_data): Likewise.
48645         (cosh_test_towardzero): Likewise.
48646         (cosh_downward_test_data): Likewise.
48647         (cosh_test_downward): Likewise.
48648         (cosh_upward_test_data): Likewise.
48649         (cosh_test_upward): Likewise.
48650         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
48651         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
48652         (ctan_test_data): Likewise.
48653         (ctan_test): Use ALL_RM_TEST.
48654         (ctan_tonearest_test_data): Remove.
48655         (ctan_test_tonearest): Likewise.
48656         (ctan_towardzero_test_data): Likewise.
48657         (ctan_test_towardzero): Likewise.
48658         (ctan_downward_test_data): Likewise.
48659         (ctan_test_downward): Likewise.
48660         (ctan_upward_test_data): Likewise.
48661         (ctan_test_upward): Likewise.
48662         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
48663         (ctanh_test): Use ALL_RM_TEST.
48664         (ctanh_tonearest_test_data): Remove.
48665         (ctanh_test_tonearest): Likewise.
48666         (ctanh_towardzero_test_data): Likewise.
48667         (ctanh_test_towardzero): Likewise.
48668         (ctanh_downward_test_data): Likewise.
48669         (ctanh_test_downward): Likewise.
48670         (ctanh_upward_test_data): Likewise.
48671         (ctanh_test_upward): Likewise.
48672         (erf_test_data): Update call to AUTO_TESTS_f_f.
48673         (erfc_test_data): Likewise.
48674         (exp_test_data): Likewise.
48675         (exp_test): Use ALL_RM_TEST.
48676         (exp_tonearest_test_data): Remove.
48677         (exp_test_tonearest): Likewise.
48678         (exp_towardzero_test_data): Likewise.
48679         (exp_test_towardzero): Likewise.
48680         (exp_downward_test_data): Likewise.
48681         (exp_test_downward): Likewise.
48682         (exp_upward_test_data): Likewise.
48683         (exp_test_upward): Likewise.
48684         (exp10_test_data): Update call to AUTO_TESTS_f_f.
48685         (exp10_test): Use ALL_RM_TEST.
48686         (exp10_tonearest_test_data): Remove.
48687         (exp10_test_tonearest): Likewise.
48688         (exp10_towardzero_test_data): Likewise.
48689         (exp10_test_towardzero): Likewise.
48690         (exp10_downward_test_data): Likewise.
48691         (exp10_test_downward): Likewise.
48692         (exp10_upward_test_data): Likewise.
48693         (exp10_test_upward): Likewise.
48694         (exp2_test_data): Update call to AUTO_TESTS_f_f.
48695         (expm1_test_data): Likewise.
48696         (expm1_test): Use ALL_RM_TEST.
48697         (expm1_tonearest_test_data): Remove.
48698         (expm1_test_tonearest): Likewise.
48699         (expm1_towardzero_test_data): Likewise.
48700         (expm1_test_towardzero): Likewise.
48701         (expm1_downward_test_data): Likewise.
48702         (expm1_test_downward): Likewise.
48703         (expm1_upward_test_data): Likewise.
48704         (expm1_test_upward): Likewise.
48705         (fma_test_data): Update call to AUTO_TESTS_fff_f.
48706         (fma_test): Use ALL_RM_TEST.
48707         (fma_towardzero_test_data): Remove.
48708         (fma_test_towardzero): Likewise.
48709         (fma_downward_test_data): Likewise.
48710         (fma_test_downward): Likewise.
48711         (fma_upward_test_data): Likewise.
48712         (fma_test_upward): Likewise.
48713         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
48714         (j0_test_data): Update call to AUTO_TESTS_f_f.
48715         (j1_test_data): Likewise.
48716         (jn_test_data): Update call to AUTO_TESTS_if_f.
48717         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
48718         (log_test_data): Update call to AUTO_TESTS_f_f.
48719         (log10_test_data): Likewise.
48720         (log1p_test_data): Likewise.
48721         (log2_test_data): Likewise.
48722         (pow_test_data): Update call to AUTO_TESTS_ff_f.
48723         (pow_tonearest_test_data): Likewise.
48724         (sin_test_data): Update call to AUTO_TESTS_f_f.
48725         (sin_test): Use ALL_RM_TEST.
48726         (sin_tonearest_test_data): Remove.
48727         (sin_test_tonearest): Likewise.
48728         (sin_towardzero_test_data): Likewise.
48729         (sin_test_towardzero): Likewise.
48730         (sin_downward_test_data): Likewise.
48731         (sin_test_downward): Likewise.
48732         (sin_upward_test_data): Likewise.
48733         (sin_test_upward): Likewise.
48734         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
48735         (sinh_test_data): Update call to AUTO_TESTS_f_f.
48736         (sinh_test): Use ALL_RM_TEST.
48737         (sinh_tonearest_test_data): Remove.
48738         (sinh_test_tonearest): Likewise.
48739         (sinh_towardzero_test_data): Likewise.
48740         (sinh_test_towardzero): Likewise.
48741         (sinh_downward_test_data): Likewise.
48742         (sinh_test_downward): Likewise.
48743         (sinh_upward_test_data): Likewise.
48744         (sinh_test_upward): Likewise.
48745         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
48746         (sqrt_test): Use ALL_RM_TEST.
48747         (sqrt_tonearest_test_data): Remove.
48748         (sqrt_test_tonearest): Likewise.
48749         (sqrt_towardzero_test_data): Likewise.
48750         (sqrt_test_towardzero): Likewise.
48751         (sqrt_downward_test_data): Likewise.
48752         (sqrt_test_downward): Likewise.
48753         (sqrt_upward_test_data): Likewise.
48754         (sqrt_test_upward): Likewise.
48755         (tan_test_data): Update call to AUTO_TESTS_f_f.
48756         (tan_test): Use ALL_RM_TEST.
48757         (tan_tonearest_test_data): Remove.
48758         (tan_test_tonearest): Likewise.
48759         (tan_towardzero_test_data): Likewise.
48760         (tan_test_towardzero): Likewise.
48761         (tan_downward_test_data): Likewise.
48762         (tan_test_downward): Likewise.
48763         (tan_upward_test_data): Likewise.
48764         (tan_test_upward): Likewise.
48765         (tanh_test_data): Update call to AUTO_TESTS_f_f.
48766         (tgamma_test_data): Likewise.
48767         (y0_test_data): Likewise.
48768         (y1_test_data): Likewise.
48769         (yn_test_data): Update call to AUTO_TESTS_if_f.
48770         (main): Do not call removed functions.
48771
48772 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48773
48774         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
48775         (ldexp_test_data): Remove.
48776         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
48777         scalbn_test_data.
48778         (scalb_test): Use ALL_RM_TEST.
48779
48780 2014-03-19  Andreas Schwab  <schwab@suse.de>
48781
48782         * nscd/nscd.service: Also invalidate netgroup cache on reload.
48783
48784 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48785
48786         [BZ #16649]
48787         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
48788         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
48789         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
48790         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48791         (__ASSUME_PREADV): Undefine.
48792         (__ASSUME_PWRITEV): Likewise.
48793
48794 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48795
48796         * bits/mman-linux.h: Add comment about non-Linux use.
48797         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
48798         bits/mman-linux.h resting place.
48799
48800         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
48801         * bits/mman-linux.h: ... here.
48802
48803 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48804
48805         * conform/conformtest.pl: Add standard definition when calling C
48806         preprocessor on data files.
48807         (checknamespace): Remove unused variable.
48808
48809 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48810
48811         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
48812         minus_oflow, plus_uflow and minus_uflow in expected results.
48813         * math/libm-test.inc (scalbn_test_data): Add more tests of
48814         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
48815         minus_uflow.
48816         (scalbn_test): Use ALL_RM_TEST.
48817         (scalbln_test_data): Add more tests of negative arguments.  Use
48818         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
48819         (scalbln_test): Use ALL_RM_TEST.
48820
48821 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48822
48823         * scripts/abilist.awk: Ignore symbols marked with .hidden.
48824
48825 2014-03-18  Will Newton  <will.newton@linaro.org>
48826
48827         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
48828         inaccurate comment.
48829
48830 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48831
48832         * Makerules [!subdir] (check-abi): Exit with error status if a
48833         test failed.
48834
48835 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48836
48837         * math/libm-test.inc (nearbyint_test_data): Include all tests used
48838         for rint.  Include results for all rounding modes.
48839         (nearbyint_test): Use ALL_RM_TEST.
48840         (rint_test_data): Include all tests used for nearbyint.
48841
48842 2014-03-17  Will Newton  <will.newton@linaro.org>
48843
48844         * nptl/sysdeps/pthread/pthread.h: Revert previous
48845         change.
48846
48847         * sysdeps/generic/ldsodefs.h: Revert previous
48848         change.
48849
48850         * libio/genops.c: Revert previous change.
48851         * libio/libioP.h: Likewise.
48852         * stdio-common/vfprintf.c: Likewise.
48853
48854         * sysdeps/generic/math_private.h: Revert previous
48855         change.
48856
48857         * sysdeps/generic/math_private.h: Check whether
48858         HAVE_RM_CTX is defined with #ifdef rather
48859         than #if.
48860
48861         * argp/argp-fmtstream.h: Check whether
48862         __STRICT_ANSI__ is defined with #ifdef rather
48863         than #if.
48864         * argp/argp.h: Likewise.
48865
48866         * libio/genops.c: Check whether
48867         _IO_JUMPS_OFFSET is defined with #ifdef rather
48868         than #if.
48869         * libio/libioP.h: Likewise.
48870         * stdio-common/vfprintf.c: Likewise.
48871
48872         * sysdeps/generic/ldsodefs.h: Check whether
48873         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
48874         than #if.
48875
48876         * nptl/sysdeps/pthread/pthread.h: Check
48877         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
48878         its value.
48879
48880 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48881
48882         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
48883         setting O_APPEND.
48884         * libio/tst-ftell-active-handler.c (do_append_test): Add a
48885         test case.
48886
48887         [BZ #16680]
48888         * libio/fileops.c (_IO_file_open): Seek to end of file but
48889         don't cache the offset.
48890         (get_file_offset): Remove function.
48891         (do_ftell): Use cached offset when available.
48892         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
48893         don't cache the offset.
48894         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
48895         case.
48896         (do_one_test): Call it.
48897         (do_ftell_test): Fix up expected old offset for a+ mode.
48898         * libio/wfileops.c (do_ftell_wide): Used cached offset when
48899         available.
48900
48901         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
48902         up test status with function return status.
48903         (do_write_test): Likewise.
48904         (do_append_test): Likewise.
48905
48906         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
48907         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
48908         Remove.
48909
48910 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48911
48912         * math/gen-libm-test.pl (parse_args): Handle results specified for
48913         each rounding mode separately.
48914         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
48915         tests and results from lrint_tonearest_test_data,
48916         lrint_towardzero_test_data, lrint_downward_test_data and
48917         lrint_upward_test_data.
48918         (lrint_test): Use ALL_RM_TEST.
48919         (lrint_tonearest_test_data): Remove.
48920         (lrint_test_tonearest): Likewise.
48921         (lrint_towardzero_test_data): Likewise.
48922         (lrint_test_towardzero): Likewise.
48923         (lrint_downward_test_data): Likewise.
48924         (lrint_test_downward): Likewise.
48925         (lrint_upward_test_data): Likewise.
48926         (lrint_test_upward): Likewise.
48927         (llrint_test_data): Merge in per-rounding-mode tests and results
48928         from llrint_tonearest_test_data, llrint_towardzero_test_data,
48929         llrint_downward_test_data and llrint_upward_test_data.
48930         (llrint_test): Use ALL_RM_TEST.
48931         (llrint_tonearest_test_data): Remove.
48932         (llrint_test_tonearest): Likewise.
48933         (llrint_towardzero_test_data): Likewise.
48934         (llrint_test_towardzero): Likewise.
48935         (llrint_downward_test_data): Likewise.
48936         (llrint_test_downward): Likewise.
48937         (llrint_upward_test_data): Likewise.
48938         (llrint_test_upward): Likewise.
48939         (rint_test_data): Merge in per-rounding-mode tests and results
48940         from rint_tonearest_test_data, rint_towardzero_test_data,
48941         rint_downward_test_data and rint_upward_test_data.  Add
48942         per-rounding-mode results for tests not in those arrays.
48943         (rint_test): Use ALL_RM_TEST.
48944         (rint_tonearest_test_data): Remove.
48945         (rint_test_tonearest): Likewise.
48946         (rint_towardzero_test_data): Likewise.
48947         (rint_test_towardzero): Likewise.
48948         (rint_downward_test_data): Likewise.
48949         (rint_test_downward): Likewise.
48950         (rint_upward_test_data): Likewise.
48951         (rint_test_upward): Likewise.
48952         (main): Don't call removed functions.
48953
48954 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48955
48956         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
48957         "Compiled on ..." crapola.  It is anti-useful.
48958
48959 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
48960
48961         * scripts/evaluate-test.sh: Handle fourth argument to determine
48962         whether test run should stop on failure.
48963         * Makeconfig (stop-on-test-failure): New variable.
48964         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
48965         $(stop-on-test-failure).
48966         * Makefile (tests): Give a summary of results from testing and
48967         exit with failure status if they include an ERROR or FAIL.
48968         (xtests): Likewise.
48969         * manual/install.texi (Configuring and compiling): Mention
48970         stop-on-test-failure=y.
48971         * INSTALL: Regenerated.
48972
48973 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48974
48975         * scripts/versionlist.awk: New file.
48976         * Makerules [$(build-shared) = yes]
48977         (postclean-generated): Add Versions.def, not Versions.def.v and
48978         Versions.def.v.i.
48979         ($(common-objpfx)Versions.def.v.i): Target removed.
48980         ($(common-objpfx)Versions.def): New target.
48981         ($(common-objpfx)Versions.all): Depend on that rather that
48982         $(common-objpfx)Versions.def.v.
48983         * Versions.def: File removed.
48984
48985         * Makeconfig (+gccwarn): Add -Wundef.
48986         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
48987         a dl-sysdep.h breaking its contract.
48988         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
48989         * include/stackinfo.h: New file.
48990         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
48991         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
48992         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
48993         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
48994         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
48995         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
48996         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48997         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48998         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48999         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49000         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49001         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
49002         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49003         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49004         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49005
49006 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49007
49008         [BZ #16707]
49009         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
49010         implementation.
49011         * math/libm-test.inc (round_test_data): Add more tests.
49012
49013         [BZ #16706]
49014         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
49015         implementation.
49016         * math/libm-test.inc (nearbyint_test_data): Add more tests.
49017
49018         [BZ #16701]
49019         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
49020         implementation.
49021         * math/libm-test.inc (ceil_test_data): Add more tests.
49022
49023         * math/libm-test.inc (trunc_test_data): Add more tests related to
49024         BZ#16414.
49025
49026 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49027
49028         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
49029         with #if rather than #ifdef.
49030         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
49031
49032 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
49033
49034         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
49035         first.  Disable AVX-512 GCC support if assembler doesn't support
49036         it.
49037         * sysdeps/x86_64/configure: Regenerated.
49038
49039 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
49040
49041         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
49042         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
49043         (__old_pthread_attr_setstack): Likewise.
49044         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
49045         [!_STACK_GROWS_DOWN]: Likewise.
49046
49047 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
49048
49049         * config.make.in (have-bash2): Delete.
49050         * configure.ac (libc_cv_have_bash2): Delete.
49051         * configure: Regenerate.
49052         * elf/Makefile (common-ldd-rewrite): Rename to ...
49053         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
49054         (sh-ldd-rewrite): Delete.
49055         (bash-ldd-rewrite): Delete.
49056         (have-bash2): Delete checks.
49057         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
49058         ldd-rewrite.
49059
49060         * config.make.in (have-ksh): Delete.
49061         (KSH): Delete.
49062         * configure.ac (libc_cv_have_ksh): Delete.
49063         * configure: Regenerate.
49064
49065         * elf/Makefile: Delete $(have-ksh) check.
49066         ($(objpfx)sotruss): Change KSH to BASH.
49067         * elf/sotruss.ksh: Rename to ...
49068         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
49069         function style to match POSIX.  Drop ksh vim mode setting.
49070
49071         * manual/time.texi (Specifying the Time Zone with TZ): Change
49072         Tuesday to Thursday.
49073
49074         * debug/tst-longjmp_chk2.c: Update header comment.
49075         (stackoverflow_handler): Add comment.  Call assert on pass value.
49076
49077 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
49078
49079         [BZ #16194]
49080         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
49081         (HAVE_AVX512_ASM_SUPPORT): Likewise.
49082         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
49083         (La_x86_64_vector): Add zmm.
49084         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
49085         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
49086         ($(objpfx)tst-audit10): New target.
49087         ($(objpfx)tst-audit10.out): Likewise.
49088         (tst-audit10-ENV): New.
49089         (AVX512-CFLAGS): Likewise.
49090         (CFLAGS-tst-audit10.c): Likewise.
49091         (CFLAGS-tst-auditmod10a.c): Likewise.
49092         (CFLAGS-tst-auditmod10b.c): Likewise.
49093         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
49094         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
49095         * sysdeps/x86_64/configure: Regenerated.
49096         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
49097         AVX-512 zmm register support.
49098         (_dl_x86_64_save_sse): Likewise.
49099         (_dl_x86_64_restore_sse): Likewise.
49100         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
49101         size vector registers.
49102         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
49103         (ZMM_SIZE): Likewise.
49104         * sysdeps/x86_64/tst-audit10.c: New file.
49105         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
49106         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
49107
49108 2014-03-13  Roland McGrath  <roland@hack.frob.com>
49109
49110         * configure.ac (HAVE_EHDR_START): New check.
49111         * configure: Regenerated.
49112         * config.h.in (HAVE_EHDR_START): New #undef.
49113         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
49114         assuming the lowest-addressed segment maps the start of the file.
49115
49116 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
49117
49118         * INSTALL: Regenerated.
49119
49120 2014-03-13  Will Newton  <will.newton@linaro.org>
49121
49122         * manual/setjmp.texi (System V contexts): Improve
49123         clarity and grammar of documentation.
49124
49125 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
49126
49127         [BZ #16381]
49128         * elf/Makefile (tests): Add tst-pie2.
49129         (tests-pie): Add tst-pie2.
49130         * elf/tst-pie2.c: New file.
49131         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
49132         for ET_EXEC.
49133         * elf/rtld.c (map_doit): Load executable as lt_executable.
49134         (dl_main): Likewise.
49135
49136 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
49137
49138         [BZ #16642]
49139         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
49140         (__ASSUME_PSELECT): Undefine.
49141
49142 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49143
49144         [BZ #16689]
49145         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
49146         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
49147         static build.
49148         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
49149         selector for static builds.
49150
49151 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49152
49153         [BZ #16695]
49154         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
49155         key in the buffer.
49156
49157 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49158
49159         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
49160         IFUNC selector for static builds.
49161
49162 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
49163
49164         * sysdeps/mips/math_private.h [__mips_hard_float]
49165         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
49166         libc_feresetround_mips_ctx.
49167         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
49168         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
49169         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
49170
49171         [BZ #16677]
49172         * math/s_nextafter.c (__nextafter): Do not return value from
49173         overflowing computation.
49174         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
49175         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
49176         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
49177         Likewise.
49178         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
49179         Likewise.
49180         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
49181         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
49182
49183 2014-03-11  Roland McGrath  <roland@hack.frob.com>
49184
49185         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
49186         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
49187         Move sfi_sp use from the load-multiple (that no longer sets sp) to
49188         the new mov targetting sp.
49189
49190 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49191
49192         [BZ #16683]
49193         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
49194         Define it for static builds as well.
49195         (NO_BZERO_IMPL): Likewise.
49196
49197 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49198
49199         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
49200         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
49201         multiarch strspn for PPC64.
49202         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
49203         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
49204         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49205         (__libc_ifunc_impl_list): Likewise.
49206         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
49207         multiarch optimizations
49208         * string/strspn.c (strspn): Using macro to redefine symbol name.
49209
49210 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49211             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49212
49213         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
49214         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
49215         multiarch strncat for PPC64.
49216         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
49217         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
49218         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49219         (__libc_ifunc_impl_list): Likewise.
49220         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
49221         multiarch optimizations
49222
49223 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49224
49225         [BZ #16639]
49226         * nscd/nscd.service: Make service type forking.
49227
49228 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49229
49230         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
49231         sign in non default rounding modes.
49232         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
49233
49234 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
49235
49236         * math/libm-test.inc (ALL_RM_TEST): New macro.
49237         (ceil_test): Use ALL_RM_TEST.
49238         (cimag_test): Likewise.
49239         (conj_test): Likewise.
49240         (copysign_test): Likewise.
49241         (cproj_test): Likewise.
49242         (creal_test): Likewise.
49243         (fabs_test): Likewise.
49244         (floor_test): Likewise.
49245         (fmax_test): Likewise.
49246         (fmin_test): Likewise.
49247         (fmod_test): Likewise.
49248         (fpclassify_test): Likewise.
49249         (frexp_test): Likewise.
49250         (ilogb_test): Likewise.
49251         (isfinite_test): Likewise.
49252         (finite_test): Likewise.
49253         (isgreater_test): Likewise.
49254         (isgreaterequal_test): Likewise.
49255         (isinf_test): Likewise.
49256         (isless_test): Likewise.
49257         (islessequal_test): Likewise.
49258         (islessgreater_test): Likewise.
49259         (isnan_test): Likewise.
49260         (isnormal_test): Likewise.
49261         (issignaling_test): Likewise.
49262         (isunordered_test): Likewise.
49263         (logb_test): Likewise.
49264         (logb_downward_test_data): Remove.
49265         (logb_test_downward): Likewise.
49266         (lround_test): Use ALL_RM_TEST.
49267         (llround_test): Likewise.
49268         (modf_test): Likewise.
49269         (nexttoward_test): Likewise.
49270         (remainder_test): Likewise.
49271         (drem_test): Likewise.
49272         (remainder_tonearest_test_data): Likewise.
49273         (remainder_test_tonearest): Likewise.
49274         (drem_test_tonearest): Likewise.
49275         (remainder_towardzero_test_data): Likewise.
49276         (remainder_test_towardzero): Likewise.
49277         (drem_test_towardzero): Likewise.
49278         (remainder_downward_test_data): Likewise.
49279         (remainder_test_downward): Likewise.
49280         (drem_test_downward): Likewise.
49281         (remainder_upward_test_data): Likewise.
49282         (remainder_test_upward): Likewise.
49283         (drem_test_upward): Likewise.
49284         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
49285         (round_test): Use ALL_RM_TEST.
49286         (signbit_test): Likewise.
49287         (trunc_test): Likewise.
49288         (significand_test): Likewise.
49289         (main): Don't call removed functions.
49290
49291 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49292
49293         [BZ #16674]
49294         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
49295         || __USE_XOPEN2K8].
49296         (ILL_ILLOPN): Likewise.
49297         (ILL_ILLADR): Likewise.
49298         (ILL_ILLTRP): Likewise.
49299         (ILL_PRVOPC): Likewise.
49300         (ILL_PRVREG): Likewise.
49301         (ILL_COPROC): Likewise.
49302         (ILL_BADSTK): Likewise.
49303         (FPE_INTDIV): Likewise.
49304         (FPE_INTOVF): Likewise.
49305         (FPE_FLTDIV): Likewise.
49306         (FPE_FLTOVF): Likewise.
49307         (FPE_FLTUND): Likewise.
49308         (FPE_FLTRES): Likewise.
49309         (FPE_FLTINV): Likewise.
49310         (FPE_FLTSUB): Likewise.
49311         (SEGV_MAPERR): Likewise.
49312         (SEGV_ACCERR): Likewise.
49313         (BUS_ADRALN): Likewise.
49314         (BUS_ADRERR): Likewise.
49315         (BUS_OBJERR): Likewise.
49316         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49317         (TRAP_TRACE): Likewise.
49318         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49319         __USE_XOPEN2K8].
49320         (CLD_KILLED): Likewise.
49321         (CLD_DUMPED): Likewise.
49322         (CLD_TRAPPED): Likewise.
49323         (CLD_STOPPED): Likewise.
49324         (CLD_CONTINUED): Likewise.
49325         (POLL_IN): Likewise.
49326         (POLL_OUT): Likewise.
49327         (POLL_MSG): Likewise.
49328         (POLL_ERR): Likewise.
49329         (POLL_PRI): Likewise.
49330         (POLL_HUP): Likewise.
49331         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
49332         Likewise.
49333         (ILL_ILLOPN): Likewise.
49334         (ILL_ILLADR): Likewise.
49335         (ILL_ILLTRP): Likewise.
49336         (ILL_PRVOPC): Likewise.
49337         (ILL_PRVREG): Likewise.
49338         (ILL_COPROC): Likewise.
49339         (ILL_BADSTK): Likewise.
49340         (FPE_INTDIV): Likewise.
49341         (FPE_INTOVF): Likewise.
49342         (FPE_FLTDIV): Likewise.
49343         (FPE_FLTOVF): Likewise.
49344         (FPE_FLTUND): Likewise.
49345         (FPE_FLTRES): Likewise.
49346         (FPE_FLTINV): Likewise.
49347         (FPE_FLTSUB): Likewise.
49348         (SEGV_MAPERR): Likewise.
49349         (SEGV_ACCERR): Likewise.
49350         (BUS_ADRALN): Likewise.
49351         (BUS_ADRERR): Likewise.
49352         (BUS_OBJERR): Likewise.
49353         (BUS_MCEERR_AR): Likewise.
49354         (BUS_MCEERR_AO): Likewise.
49355         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49356         (TRAP_TRACE): Likewise.
49357         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49358         __USE_XOPEN2K8].
49359         (CLD_KILLED): Likewise.
49360         (CLD_DUMPED): Likewise.
49361         (CLD_TRAPPED): Likewise.
49362         (CLD_STOPPED): Likewise.
49363         (CLD_CONTINUED): Likewise.
49364         (POLL_IN): Likewise.
49365         (POLL_OUT): Likewise.
49366         (POLL_MSG): Likewise.
49367         (POLL_ERR): Likewise.
49368         (POLL_PRI): Likewise.
49369         (POLL_HUP): Likewise.
49370         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
49371         (ILL_ILLOPN): Likewise.
49372         (ILL_ILLADR): Likewise.
49373         (ILL_ILLTRP): Likewise.
49374         (ILL_PRVOPC): Likewise.
49375         (ILL_PRVREG): Likewise.
49376         (ILL_COPROC): Likewise.
49377         (ILL_BADSTK): Likewise.
49378         (FPE_INTDIV): Likewise.
49379         (FPE_INTOVF): Likewise.
49380         (FPE_FLTDIV): Likewise.
49381         (FPE_FLTOVF): Likewise.
49382         (FPE_FLTUND): Likewise.
49383         (FPE_FLTRES): Likewise.
49384         (FPE_FLTINV): Likewise.
49385         (FPE_FLTSUB): Likewise.
49386         (SEGV_MAPERR): Likewise.
49387         (SEGV_ACCERR): Likewise.
49388         (BUS_ADRALN): Likewise.
49389         (BUS_ADRERR): Likewise.
49390         (BUS_OBJERR): Likewise.
49391         (BUS_MCEERR_AR): Likewise.
49392         (BUS_MCEERR_AO): Likewise.
49393         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49394         (TRAP_TRACE): Likewise.
49395         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49396         __USE_XOPEN2K8].
49397         (CLD_KILLED): Likewise.
49398         (CLD_DUMPED): Likewise.
49399         (CLD_TRAPPED): Likewise.
49400         (CLD_STOPPED): Likewise.
49401         (CLD_CONTINUED): Likewise.
49402         (POLL_IN): Likewise.
49403         (POLL_OUT): Likewise.
49404         (POLL_MSG): Likewise.
49405         (POLL_ERR): Likewise.
49406         (POLL_PRI): Likewise.
49407         (POLL_HUP): Likewise.
49408         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
49409         Likewise.
49410         (ILL_ILLOPN): Likewise.
49411         (ILL_ILLADR): Likewise.
49412         (ILL_ILLTRP): Likewise.
49413         (ILL_PRVOPC): Likewise.
49414         (ILL_PRVREG): Likewise.
49415         (ILL_COPROC): Likewise.
49416         (ILL_BADSTK): Likewise.
49417         (ILL_BADIADDR): Likewise.
49418         (ILL_BREAK): Likewise.
49419         (FPE_INTDIV): Likewise.
49420         (FPE_INTOVF): Likewise.
49421         (FPE_FLTDIV): Likewise.
49422         (FPE_FLTOVF): Likewise.
49423         (FPE_FLTUND): Likewise.
49424         (FPE_FLTRES): Likewise.
49425         (FPE_FLTINV): Likewise.
49426         (FPE_FLTSUB): Likewise.
49427         (FPE_DECOVF): Likewise.
49428         (FPE_DECDIV): Likewise.
49429         (FPE_DECERR): Likewise.
49430         (FPE_INVASC): Likewise.
49431         (FPE_INVDEC): Likewise.
49432         (SEGV_MAPERR): Likewise.
49433         (SEGV_ACCERR): Likewise.
49434         (SEGV_PSTKOVF): Likewise.
49435         (BUS_ADRALN): Likewise.
49436         (BUS_ADRERR): Likewise.
49437         (BUS_OBJERR): Likewise.
49438         (BUS_MCEERR_AR): Likewise.
49439         (BUS_MCEERR_AO): Likewise.
49440         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49441         (TRAP_TRACE): Likewise.
49442         (TRAP_BRANCH): Likewise.
49443         (TRAP_HWBKPT): Likewise.
49444         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49445         __USE_XOPEN2K8].
49446         (CLD_KILLED): Likewise.
49447         (CLD_DUMPED): Likewise.
49448         (CLD_TRAPPED): Likewise.
49449         (CLD_STOPPED): Likewise.
49450         (CLD_CONTINUED): Likewise.
49451         (POLL_IN): Likewise.
49452         (POLL_OUT): Likewise.
49453         (POLL_MSG): Likewise.
49454         (POLL_ERR): Likewise.
49455         (POLL_PRI): Likewise.
49456         (POLL_HUP): Likewise.
49457         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
49458         (ILL_ILLOPN): Likewise.
49459         (ILL_ILLADR): Likewise.
49460         (ILL_ILLTRP): Likewise.
49461         (ILL_PRVOPC): Likewise.
49462         (ILL_PRVREG): Likewise.
49463         (ILL_COPROC): Likewise.
49464         (ILL_BADSTK): Likewise.
49465         (FPE_INTDIV): Likewise.
49466         (FPE_INTOVF): Likewise.
49467         (FPE_FLTDIV): Likewise.
49468         (FPE_FLTOVF): Likewise.
49469         (FPE_FLTUND): Likewise.
49470         (FPE_FLTRES): Likewise.
49471         (FPE_FLTINV): Likewise.
49472         (FPE_FLTSUB): Likewise.
49473         (SEGV_MAPERR): Likewise.
49474         (SEGV_ACCERR): Likewise.
49475         (BUS_ADRALN): Likewise.
49476         (BUS_ADRERR): Likewise.
49477         (BUS_OBJERR): Likewise.
49478         (BUS_MCEERR_AR): Likewise.
49479         (BUS_MCEERR_AO): Likewise.
49480         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49481         (TRAP_TRACE): Likewise.
49482         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49483         __USE_XOPEN2K8].
49484         (CLD_KILLED): Likewise.
49485         (CLD_DUMPED): Likewise.
49486         (CLD_TRAPPED): Likewise.
49487         (CLD_STOPPED): Likewise.
49488         (CLD_CONTINUED): Likewise.
49489         (POLL_IN): Likewise.
49490         (POLL_OUT): Likewise.
49491         (POLL_MSG): Likewise.
49492         (POLL_ERR): Likewise.
49493         (POLL_PRI): Likewise.
49494         (POLL_HUP): Likewise.
49495         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
49496         (ILL_ILLOPN): Likewise.
49497         (ILL_ILLADR): Likewise.
49498         (ILL_ILLTRP): Likewise.
49499         (ILL_PRVOPC): Likewise.
49500         (ILL_PRVREG): Likewise.
49501         (ILL_COPROC): Likewise.
49502         (ILL_BADSTK): Likewise.
49503         (FPE_INTDIV): Likewise.
49504         (FPE_INTOVF): Likewise.
49505         (FPE_FLTDIV): Likewise.
49506         (FPE_FLTOVF): Likewise.
49507         (FPE_FLTUND): Likewise.
49508         (FPE_FLTRES): Likewise.
49509         (FPE_FLTINV): Likewise.
49510         (FPE_FLTSUB): Likewise.
49511         (SEGV_MAPERR): Likewise.
49512         (SEGV_ACCERR): Likewise.
49513         (BUS_ADRALN): Likewise.
49514         (BUS_ADRERR): Likewise.
49515         (BUS_OBJERR): Likewise.
49516         (BUS_MCEERR_AR): Likewise.
49517         (BUS_MCEERR_AO): Likewise.
49518         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49519         (TRAP_TRACE): Likewise.
49520         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49521         __USE_XOPEN2K8].
49522         (CLD_KILLED): Likewise.
49523         (CLD_DUMPED): Likewise.
49524         (CLD_TRAPPED): Likewise.
49525         (CLD_STOPPED): Likewise.
49526         (CLD_CONTINUED): Likewise.
49527         (POLL_IN): Likewise.
49528         (POLL_OUT): Likewise.
49529         (POLL_MSG): Likewise.
49530         (POLL_ERR): Likewise.
49531         (POLL_PRI): Likewise.
49532         (POLL_HUP): Likewise.
49533         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
49534         (ILL_ILLOPN): Likewise.
49535         (ILL_ILLADR): Likewise.
49536         (ILL_ILLTRP): Likewise.
49537         (ILL_PRVOPC): Likewise.
49538         (ILL_PRVREG): Likewise.
49539         (ILL_COPROC): Likewise.
49540         (ILL_BADSTK): Likewise.
49541         (FPE_INTDIV): Likewise.
49542         (FPE_INTOVF): Likewise.
49543         (FPE_FLTDIV): Likewise.
49544         (FPE_FLTOVF): Likewise.
49545         (FPE_FLTUND): Likewise.
49546         (FPE_FLTRES): Likewise.
49547         (FPE_FLTINV): Likewise.
49548         (FPE_FLTSUB): Likewise.
49549         (SEGV_MAPERR): Likewise.
49550         (SEGV_ACCERR): Likewise.
49551         (BUS_ADRALN): Likewise.
49552         (BUS_ADRERR): Likewise.
49553         (BUS_OBJERR): Likewise.
49554         (BUS_MCEERR_AR): Likewise.
49555         (BUS_MCEERR_AO): Likewise.
49556         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49557         (TRAP_TRACE): Likewise.
49558         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49559         __USE_XOPEN2K8].
49560         (CLD_KILLED): Likewise.
49561         (CLD_DUMPED): Likewise.
49562         (CLD_TRAPPED): Likewise.
49563         (CLD_STOPPED): Likewise.
49564         (CLD_CONTINUED): Likewise.
49565         (POLL_IN): Likewise.
49566         (POLL_OUT): Likewise.
49567         (POLL_MSG): Likewise.
49568         (POLL_ERR): Likewise.
49569         (POLL_PRI): Likewise.
49570         (POLL_HUP): Likewise.
49571         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
49572         (ILL_ILLOPN): Likewise.
49573         (ILL_ILLADR): Likewise.
49574         (ILL_ILLTRP): Likewise.
49575         (ILL_PRVOPC): Likewise.
49576         (ILL_PRVREG): Likewise.
49577         (ILL_COPROC): Likewise.
49578         (ILL_BADSTK): Likewise.
49579         (ILL_DBLFLT): Likewise.
49580         (ILL_HARDWALL): Likewise.
49581         (FPE_INTDIV): Likewise.
49582         (FPE_INTOVF): Likewise.
49583         (FPE_FLTDIV): Likewise.
49584         (FPE_FLTOVF): Likewise.
49585         (FPE_FLTUND): Likewise.
49586         (FPE_FLTRES): Likewise.
49587         (FPE_FLTINV): Likewise.
49588         (FPE_FLTSUB): Likewise.
49589         (SEGV_MAPERR): Likewise.
49590         (SEGV_ACCERR): Likewise.
49591         (BUS_ADRALN): Likewise.
49592         (BUS_ADRERR): Likewise.
49593         (BUS_OBJERR): Likewise.
49594         (BUS_MCEERR_AR): Likewise.
49595         (BUS_MCEERR_AO): Likewise.
49596         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49597         (TRAP_TRACE): Likewise.
49598         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49599         __USE_XOPEN2K8].
49600         (CLD_KILLED): Likewise.
49601         (CLD_DUMPED): Likewise.
49602         (CLD_TRAPPED): Likewise.
49603         (CLD_STOPPED): Likewise.
49604         (CLD_CONTINUED): Likewise.
49605         (POLL_IN): Likewise.
49606         (POLL_OUT): Likewise.
49607         (POLL_MSG): Likewise.
49608         (POLL_ERR): Likewise.
49609         (POLL_PRI): Likewise.
49610         (POLL_HUP): Likewise.
49611         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
49612         (ILL_ILLOPN): Likewise.
49613         (ILL_ILLADR): Likewise.
49614         (ILL_ILLTRP): Likewise.
49615         (ILL_PRVOPC): Likewise.
49616         (ILL_PRVREG): Likewise.
49617         (ILL_COPROC): Likewise.
49618         (ILL_BADSTK): Likewise.
49619         (FPE_INTDIV): Likewise.
49620         (FPE_INTOVF): Likewise.
49621         (FPE_FLTDIV): Likewise.
49622         (FPE_FLTOVF): Likewise.
49623         (FPE_FLTUND): Likewise.
49624         (FPE_FLTRES): Likewise.
49625         (FPE_FLTINV): Likewise.
49626         (FPE_FLTSUB): Likewise.
49627         (SEGV_MAPERR): Likewise.
49628         (SEGV_ACCERR): Likewise.
49629         (BUS_ADRALN): Likewise.
49630         (BUS_ADRERR): Likewise.
49631         (BUS_OBJERR): Likewise.
49632         (BUS_MCEERR_AR): Likewise.
49633         (BUS_MCEERR_AO): Likewise.
49634         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49635         (TRAP_TRACE): Likewise.
49636         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49637         __USE_XOPEN2K8].
49638         (CLD_KILLED): Likewise.
49639         (CLD_DUMPED): Likewise.
49640         (CLD_TRAPPED): Likewise.
49641         (CLD_STOPPED): Likewise.
49642         (CLD_CONTINUED): Likewise.
49643         (POLL_IN): Likewise.
49644         (POLL_OUT): Likewise.
49645         (POLL_MSG): Likewise.
49646         (POLL_ERR): Likewise.
49647         (POLL_PRI): Likewise.
49648         (POLL_HUP): Likewise.
49649         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
49650         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49651
49652         [BZ #16670]
49653         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
49654         before #include of <time.h>.
49655         [!__USE_XOPEN2K] (__need_timespec): Likewise.
49656         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
49657         (test-xfail-UNIX98/sched.h/conform): Likewise.
49658
49659 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
49660
49661         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
49662         error absence of trapping exception support.
49663         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
49664
49665 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49666
49667         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
49668         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
49669         * timezone/Makefile (testdata): Move definition above include of
49670         Rules.
49671         (test-zones): New variable.
49672         (tests-special): Add zone files.
49673         (build-testdata): Use $(evaluate-test).
49674
49675         * elf/Makefile (tests-special): Rename tests to end with .out.
49676         ($(objpfx)noload-mem): Likewise.
49677         ($(objpfx)tst-leaks1-mem): Likewise.
49678         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
49679         * iconv/Makefile (xtests-special): Change test-iconvconfig to
49680         $(objpfx)test-iconvconfig.out.
49681         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
49682         set -e inside subshell and redirect output to file.
49683         * iconvdata/Makefile (generated): Rename tests to end with .out.
49684         Correct type.
49685         (tests-special): Rename tests to end with .out.
49686         ($(objpfx)mtrace-tst-loading): Likewise.
49687         * intl/Makefile (generated): Likewise.
49688         (tests-special): Likewise.
49689         ($(objpfx)mtrace-tst-gettext): Likewise.
49690         * misc/Makefile (generated): Likewise.
49691         (tests-special): Likewise.
49692         ($(objpfx)tst-error1-mem): Likewise.
49693         * nptl/Makefile (tests-special): Likewise.
49694         ($(objpfx)tst-stack3-mem): Likewise.
49695         (generated): Likewise.
49696         * posix/Makefile (generated): Likewise.
49697         (tests-special): Likewise.
49698         (xtests-special): Likewise.
49699         ($(objpfx)tst-fnmatch-mem): Likewise.
49700         ($(objpfx)bug-regex2-mem): Likewise.
49701         ($(objpfx)bug-regex14-mem): Likewise.
49702         ($(objpfx)bug-regex21-mem): Likewise.
49703         ($(objpfx)bug-regex31-mem): Likewise.
49704         ($(objpfx)tst-vfork3-mem): Likewise.
49705         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
49706         ($(objpfx)tst-pcre-mem): Likewise.
49707         ($(objpfx)tst-boost-mem): Likewise.
49708         ($(objpfx)bug-ga2-mem): Likewise.
49709         ($(objpfx)bug-glob2-mem): Likewise.
49710         * resolv/Makefile (generate): Likewise.
49711         (tests-special): Likewise.
49712         (xtests-special): Likewise.
49713         (generated): Likewise.
49714         ($(objpfx)mtrace-tst-leaks): Likewise.
49715         ($(objpfx)mtrace-tst-leaks2): Likewise.
49716
49717         * scripts/merge-test-results.sh: New file.
49718         * Makefile (tests-special-notdir): New variable.
49719         (tests): Run merge-test-results.sh.
49720         (xtests): Likewise.
49721         * Rules (tests-special-notdir): New variable.
49722         (xtests-special-notdir): Likewise.
49723         (tests): Run merge-test-results.sh
49724         (xtests): Likewise.
49725
49726         * Makeconfig (test-xfail-name): New variable.
49727         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
49728         compute variable name for expected failures.
49729         * conform/Makefile (conformtest-headers-data): New variable.
49730         (conformtest-standards): Likewise.
49731         (conformtest-headers-ISO): Likewise.
49732         (conformtest-headers-ISO99): Likewise.
49733         (conformtest-headers-ISO11): Likewise.
49734         (conformtest-headers-POSIX): Likewise.
49735         (conformtest-headers-XPG3): Likewise.
49736         (conformtest-headers-XPG4): Likewise.
49737         (conformtest-headers-UNIX98): Likewise.
49738         (conformtest-headers-XOPEN2K): Likewise.
49739         (conformtest-headers-POSIX2008): Likewise.
49740         (conformtest-headers-XOPEN2K8): Likewise.
49741         (conformtest-header-list-base): Likewise.
49742         (conformtest-header-list-tests): Likewise.
49743         (conformtest-header-base): Likewise.
49744         (conformtest-header-tests): Likewise.
49745         (tests-special): Add $(conformtest-header-list-tests).  If
49746         [$(fast-check) && !$(cross-compiling)], add
49747         $(conformtest-header-tests) instead of
49748         $(objpfx)run-conformtest.out.
49749         (generated): Add $(conformtest-header-list-base).  If
49750         [$(fast-check) && !$(cross-compiling)], add
49751         $(conformtest-header-base).  Remove previous setting.
49752         ($(conformtest-header-list-tests)): New target.
49753         (test-xfail-run-conformtest): Remove variable.
49754         ($(objpfx)run-conformtest.out): Remove target.
49755         (test-xfail-ISO11/complex.h/conform): New variable.
49756         (test-xfail-ISO11/stdalign.h/conform): Likewise.
49757         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
49758         (test-xfail-XPG3/varargs.h/conform): Likewise.
49759         (test-xfail-XPG4/varargs.h/conform): Likewise.
49760         (test-xfail-UNIX98/varargs.h/conform): Likewise.
49761         (test-xfail-XPG4/ndbm.h/conform): Likewise.
49762         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
49763         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
49764         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
49765         (test-xfail-XPG3/fcntl.h/conform): Likewise.
49766         (test-xfail-XPG3/ftw.h/conform): Likewise.
49767         (test-xfail-XPG3/grp.h/conform): Likewise.
49768         (test-xfail-XPG3/langinfo.h/conform): Likewise.
49769         (test-xfail-XPG3/limits.h/conform): Likewise.
49770         (test-xfail-XPG3/pwd.h/conform): Likewise.
49771         (test-xfail-XPG3/search.h/conform): Likewise.
49772         (test-xfail-XPG3/signal.h/conform): Likewise.
49773         (test-xfail-XPG3/stdio.h/conform): Likewise.
49774         (test-xfail-XPG3/stdlib.h/conform): Likewise.
49775         (test-xfail-XPG3/string.h/conform): Likewise.
49776         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
49777         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
49778         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
49779         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
49780         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
49781         (test-xfail-XPG3/sys/types.h/conform): Likewise.
49782         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
49783         (test-xfail-XPG3/termios.h/conform): Likewise.
49784         (test-xfail-XPG3/time.h/conform): Likewise.
49785         (test-xfail-XPG3/unistd.h/conform): Likewise.
49786         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
49787         (test-xfail-XPG4/fcntl.h/conform): Likewise.
49788         (test-xfail-XPG4/langinfo.h/conform): Likewise.
49789         (test-xfail-XPG4/netdb.h/conform): Likewise.
49790         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
49791         (test-xfail-XPG4/signal.h/conform): Likewise.
49792         (test-xfail-XPG4/stdio.h/conform): Likewise.
49793         (test-xfail-XPG4/stdlib.h/conform): Likewise.
49794         (test-xfail-XPG4/stropts.h/conform): Likewise.
49795         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
49796         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
49797         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
49798         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
49799         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
49800         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
49801         (test-xfail-XPG4/sys/time.h/conform): Likewise.
49802         (test-xfail-XPG4/sys/types.h/conform): Likewise.
49803         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
49804         (test-xfail-XPG4/termios.h/conform): Likewise.
49805         (test-xfail-XPG4/ucontext.h/conform): Likewise.
49806         (test-xfail-XPG4/unistd.h/conform): Likewise.
49807         (test-xfail-XPG4/utmpx.h/conform): Likewise.
49808         (test-xfail-POSIX/sched.h/conform): Likewise.
49809         (test-xfail-POSIX/signal.h/conform): Likewise.
49810         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49811         (test-xfail-POSIX/tar.h/conform): Likewise.
49812         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
49813         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
49814         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
49815         (test-xfail-UNIX98/netdb.h/conform): Likewise.
49816         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
49817         (test-xfail-UNIX98/sched.h/conform): Likewise.
49818         (test-xfail-UNIX98/signal.h/conform): Likewise.
49819         (test-xfail-UNIX98/stdio.h/conform): Likewise.
49820         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
49821         (test-xfail-UNIX98/stropts.h/conform): Likewise.
49822         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
49823         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
49824         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
49825         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
49826         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
49827         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
49828         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
49829         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
49830         (test-xfail-UNIX98/unistd.h/conform): Likewise.
49831         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
49832         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
49833         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
49834         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
49835         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
49836         (test-xfail-XOPEN2K/math.h/conform): Likewise.
49837         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
49838         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
49839         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
49840         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
49841         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
49842         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
49843         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
49844         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
49845         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
49846         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
49847         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
49848         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
49849         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
49850         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
49851         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
49852         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
49853         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
49854         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
49855         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
49856         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
49857         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
49858         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
49859         (test-xfail-POSIX2008/signal.h/conform): Likewise.
49860         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
49861         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
49862         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
49863         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
49864         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
49865         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
49866         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
49867         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
49868         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
49869         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
49870         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
49871         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
49872         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
49873         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
49874         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
49875         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
49876         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
49877         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
49878         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
49879         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
49880         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
49881         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
49882         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
49883         (conformtest-cc-flags): Likewise.
49884         ($(conformtest-header-tests): New target.
49885         * conform/check-header-lists.sh: New file.
49886         * conform/run-conformtest.sh: Remove.
49887
49888         * conform/conformtest.pl: Allow ' and \ in values given for
49889         constants.
49890         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
49891         inclusion.
49892         [POSIX] (sys/types.h): Likewise.
49893         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
49894         inclusion.
49895         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
49896         inclusion.
49897         * conform/data/signal.h-data (SIGIO): Remove expectation.
49898         [XPG3] (SIGBUS): Do not expect.
49899         [POSIX || XPG3] (SIGPOLL): Likewise.
49900         [POSIX || XPG3] (SIGPROF): Likewise.
49901         [POSIX || XPG3] (SIGSYS): Likewise.
49902         [XPG3] (SIGTRAP): Likewise.
49903         [POSIX || XPG3] (SIGURG): Likewise.
49904         [POSIX || XPG3] (SIGVTALRM): Likewise.
49905         [POSIX || XPG3] (SIGXCPU): Likewise.
49906         [POSIX || XPG3] (SIGXFSZ): Likewise.
49907         [POSIX] (SA_SIGINFO): Expect.
49908         [XPG3] (siginfo_t): Do not expect type or contents.
49909         [POSIX] (si_pid): Do not expect element.
49910         [POSIX] (si_uid): Likewise.
49911         [POSIX] (si_addr): Likewise.
49912         [POSIX] (si_status): Likewise.
49913         [POSIX] (si_band): Likewise.
49914         [XPG4] (si_value): Likewise.
49915         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
49916         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
49917         [POSIX || XPG3] (ILL_ILLADR): Likewise.
49918         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
49919         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
49920         [POSIX || XPG3] (ILL_PRVREG): Likewise.
49921         [POSIX || XPG3] (ILL_COPROC): Likewise.
49922         [POSIX || XPG3] (ILL_BADSTK): Likewise.
49923         [POSIX || XPG3] (FPE_INTDIV): Likewise.
49924         [POSIX || XPG3] (FPE_INTOVF): Likewise.
49925         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
49926         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
49927         [POSIX || XPG3] (FPE_FLTUND): Likewise.
49928         [POSIX || XPG3] (FPE_FLTRES): Likewise.
49929         [POSIX || XPG3] (FPE_FLTINV): Likewise.
49930         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
49931         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
49932         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
49933         [POSIX || XPG3] (BUS_ADRALN): Likewise.
49934         [POSIX || XPG3] (BUS_ADRERR): Likewise.
49935         [POSIX || XPG3] (BUS_OBJERR): Likewise.
49936         [POSIX || XPG3] (CLD_EXITED): Likewise.
49937         [POSIX || XPG3] (CLD_KILLED): Likewise.
49938         [POSIX || XPG3] (CLD_DUMPED): Likewise.
49939         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
49940         [POSIX || XPG3] (CLD_STOPPED): Likewise.
49941         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
49942         [POSIX || XPG3] (POLL_IN): Likewise.
49943         [POSIX || XPG3] (POLL_OUT): Likewise.
49944         [POSIX || XPG3] (POLL_MSG): Likewise.
49945         [POSIX || XPG3] (POLL_ERR): Likewise.
49946         [POSIX || XPG3] (POLL_PRI): Likewise.
49947         [POSIX || XPG3] (POLL_HUP): Likewise.
49948         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
49949         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
49950         (SIG*): Do not allow.
49951         [XPG3] (si_*): Likewise.
49952         [XPG3] (SI_*): Likewise.
49953         [XPG3 || XPG4] (sigev_*): Likewise.
49954         [XPG3 || XPG4] (SIGEV_*): Likewise.
49955         [XPG3 || XPG4] (sival_*): Likewise.
49956         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
49957         [POSIX || XPG3] (BUS_*): Likewise.
49958         [POSIX || XPG3] (CLD_*): Likewise.
49959         [POSIX || XPG3] (FPE_*): Likewise.
49960         [POSIX || XPG3] (ILL_*): Likewise.
49961         [POSIX || XPG3] (POLL_*): Likewise.
49962         [POSIX || XPG3] (SEGV_*): Likewise.
49963         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
49964         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
49965         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
49966         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
49967         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
49968         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
49969         Specify type and value.
49970         (TVERSLEN): Likewise.
49971         (REGTYPE): Likewise.
49972         (AREGTYPE): Likewise.
49973         (LNKTYPE): Likewise.
49974         (SYMTYPE): Likewise.
49975         (CHRTYPE): Likewise.
49976         (BLKTYPE): Likewise.
49977         (DIRTYPE): Likewise.
49978         (FIFOTYPE): Likewise.
49979         (CONTTYPE): Likewise.
49980         (TSUID): Likewise.
49981         (TSGID): Likewise.
49982         (TSVTX): Likewise.
49983         (TUREAD): Likewise.
49984         (TUWRITE): Likewise.
49985         (TUEXEC): Likewise.
49986         (TGREAD): Likewise.
49987         (TGWRITE): Likewise.
49988         (TGEXEC): Likewise.
49989         (TOREAD): Likewise.
49990         (TOWRITE): Likewise.
49991         (TOEXEC): Likewise.
49992         [POSIX] (TSVTX): Expect constant.
49993
49994 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
49995
49996         * Makefile (tests): Change dependencies to ....
49997         (tests-special): ... additions to this variable.
49998         (tests): Depend on $(tests-special).
49999         * Makerules (check-abi-list): New variable.
50000         (check-abi): Depend on $(check-abi-list).
50001         [$(subdir) = elf] (tests-special): Add
50002         $(objpfx)check-abi-libc.out.
50003         [$(build-shared) = yes && subdir] (tests-special): Add
50004         $(check-abi-list).
50005         [$(build-shared) = yes && subdir] (tests): Do not depend on
50006         check-abi.
50007         * Rules (tests): Depend on $(tests-special).
50008         (xtests): Depend on $(xtests-special).
50009         * catgets/Makefile (tests): Change dependencies to ....
50010         (tests-special): ... additions to this variable.
50011         * conform/Makefile (tests): Change dependencies to ....
50012         (tests-special): ... additions to this variable.
50013         * elf/Makefile (tests): Change dependencies to ....
50014         (tests-special): ... additions to this variable.
50015         * grp/Makefile (tests): Change dependencies to ....
50016         (tests-special): ... additions to this variable.
50017         * iconv/Makefile (xtests): Change dependencies to ....
50018         (xtests-special): ... additions to this variable.
50019         * iconvdata/Makefile (tests): Change dependencies to ....
50020         (tests-special): ... additions to this variable.
50021         * intl/Makefile (tests): Change dependencies to ....
50022         (tests-special): ... additions to this variable.  Also add
50023         $(objpfx)tst-gettext.out.
50024         * io/Makefile (tests): Change dependencies to ....
50025         (tests-special): ... additions to this variable.
50026         * libio/Makefile (tests): Change dependencies to ....
50027         (tests-special): ... additions to this variable.
50028         * malloc/Makefile (tests): Change dependencies to ....
50029         (tests-special): ... additions to this variable.
50030         * misc/Makefile (tests): Change dependencies to ....
50031         (tests-special): ... additions to this variable.
50032         * nptl/Makefile (tests): Change dependencies to ....
50033         (tests-special): ... additions to this variable.
50034         * nptl_db/Makefile (tests): Change dependencies to ....
50035         (tests-special): ... additions to this variable.
50036         * posix/Makefile (tests): Change dependencies to ....
50037         (tests-special): ... additions to this variable.
50038         (xtests): Change dependencies to ....
50039         (xtests-special): ... additions to this variable.
50040         * resolv/Makefile (tests): Change dependencies to ....
50041         (tests-special): ... additions to this variable.
50042         (xtests): Change dependencies to ....
50043         (xtests-special): ... additions to this variable.
50044         * stdio-common/Makefile (tests): Change dependencies to ....
50045         (tests-special): ... additions to this variable.
50046         (do-tst-unbputc): Remove target.
50047         (do-tst-printf): Likewise.
50048         * stdlib/Makefile (tests): Change dependencies to ....
50049         (tests-special): ... additions to this variable.
50050         * string/Makefile (tests): Change dependencies to ....
50051         (tests-special): ... additions to this variable.
50052         * sysdeps/x86/Makefile (tests): Change dependencies to ....
50053         (tests-special): ... additions to this variable.
50054
50055         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
50056         whole file.
50057         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
50058         whole file.
50059         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
50060         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
50061
50062         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
50063         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
50064         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
50065         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
50066         * conform/data/libgen.h-data [XPG3]: Likewise.
50067         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
50068         * conform/data/ndbm.h-data [XPG3]: Likewise.
50069         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
50070         * conform/data/netdb.h-data [XPG3]: Likewise.
50071         * conform/data/netinet/in.h-data [XPG3]: Likewise.
50072         * conform/data/poll.h-data [XPG3]: Likewise.
50073         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
50074         * conform/data/strings.h-data [XPG3]: Likewise.
50075         * conform/data/stropts.h-data [XPG3]: Likewise.
50076         * conform/data/sys/mman.h-data [XPG3]: Likewise.
50077         * conform/data/sys/resource.h-data [XPG3]: Likewise.
50078         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
50079         Likewise.
50080         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
50081         * conform/data/sys/time.h-data [XPG3]: Likewise.
50082         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
50083         * conform/data/sys/uio.h-data [XPG3]: Likewise.
50084         * conform/data/sys/un.h-data [XPG3]: Likewise.
50085         * conform/data/syslog.h-data [XPG3]: Likewise.
50086         * conform/data/ucontext.h-data [XPG3]: Likewise.
50087         * conform/data/utmpx.h-data [XPG3]: Likewise.
50088         * conform/data/varargs.h-data [UNIX98]: Enable file.
50089
50090         * manual/Makefile (INSTALL_INFO): Remove variable setting.
50091
50092         * math/libm-test.inc (struct test_f_f_data): Move expected results
50093         into structure for each rounding mode.
50094         (struct test_ff_f_data): Likewise.
50095         (struct test_ff_f_data_nexttoward): Likewise.
50096         (struct test_fi_f_data): Likewise.
50097         (struct test_fl_f_data): Likewise.
50098         (struct test_if_f_data): Likewise.
50099         (struct test_fff_f_data): Likewise.
50100         (struct test_c_f_data): Likewise.
50101         (struct test_f_f1_data): Likewise.
50102         (struct test_fF_f1_data): Likewise.
50103         (struct test_ffI_f1_data): Likewise.
50104         (struct test_c_c_data): Likewise.
50105         (struct test_cc_c_data): Likewise.
50106         (struct test_f_i_data): Likewise.
50107         (struct test_ff_i_data): Likewise.
50108         (struct test_f_l_data): Likewise.
50109         (struct test_f_L_data): Likewise.
50110         (struct test_fFF_11_data): Likewise.
50111         (RM_): New macro.
50112         (RM_FE_DOWNWARD): Likewise.
50113         (RM_FE_TONEAREST): Likewise.
50114         (RM_FE_TOWARDZERO): Likewise.
50115         (RM_FE_UPWARD): Likewise.
50116         (RUN_TEST_LOOP_f_f): Update references to expected results.
50117         (RUN_TEST_LOOP_2_f): Likewise.
50118         (RUN_TEST_LOOP_fff_f): Likewise.
50119         (RUN_TEST_LOOP_c_f): Likewise.
50120         (RUN_TEST_LOOP_f_f1): Likewise.
50121         (RUN_TEST_LOOP_fF_f1): Likewise.
50122         (RUN_TEST_LOOP_fI_f1): Likewise.
50123         (RUN_TEST_LOOP_ffI_f1): Likewise.
50124         (RUN_TEST_LOOP_c_c): Likewise.
50125         (RUN_TEST_LOOP_cc_c): Likewise.
50126         (RUN_TEST_LOOP_f_i): Likewise.
50127         (RUN_TEST_LOOP_f_i_tg): Likewise.
50128         (RUN_TEST_LOOP_ff_i_tg): Likewise.
50129         (RUN_TEST_LOOP_f_b): Likewise.
50130         (RUN_TEST_LOOP_f_b_tg): Likewise.
50131         (RUN_TEST_LOOP_f_l): Likewise.
50132         (RUN_TEST_LOOP_f_L): Likewise.
50133         (RUN_TEST_LOOP_fFF_11): Likewise.
50134         * math/gen-libm-test.pl (parse_args): Output four copies of
50135         expected results for each test.
50136
50137         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50138         (__ASSUME_UTIMES): Remove.
50139         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50140         (__ASSUME_UTIMES): Likewise.
50141
50142         * math/gen-auto-libm-tests.c: Update comment on output format.
50143         (output_for_one_input_case): Generate before-rounding and
50144         after-rounding information as conditions on output flags not
50145         floating-point format.
50146         * math/auto-libm-test-out: Regenerated.
50147         * math/gen-libm-test.pl (cond_value): New function.
50148         (or_cond_value): Use cond_value.
50149         (generate_testfile): Handle conditional exceptions.
50150
50151 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
50152
50153         * math/libm-test.inc (max_valid_error): New variable.
50154         (init_max_error): Take new argument specifying whether function
50155         results are exactly determined.  Set max_valid_error and bound
50156         other variables for errors based on this argument.
50157         (set_max_error): Do not record results above max_valid_error.
50158         (check_float_internal): Only accept errors of up to 0.5ulps if
50159         also at most max_valid_error.
50160         (START): Take new argument EXACT and pass it to init_max_error.
50161         (acos_test): Update call to START.
50162         (acos_test_tonearest): Likewise.
50163         (acos_test_towardzero): Likewise.
50164         (acos_test_downward): Likewise.
50165         (acos_test_upward): Likewise.
50166         (acosh_test): Likewise.
50167         (asin_test): Likewise.
50168         (asin_test_tonearest): Likewise.
50169         (asin_test_towardzero): Likewise.
50170         (asin_test_downward): Likewise.
50171         (asin_test_upward): Likewise.
50172         (asinh_test): Likewise.
50173         (atan_test): Likewise.
50174         (atanh_test): Likewise.
50175         (atan2_test): Likewise.
50176         (cabs_test): Likewise.
50177         (cacos_test): Likewise.
50178         (cacosh_test): Likewise.
50179         (carg_test): Likewise.
50180         (casin_test): Likewise.
50181         (casinh_test): Likewise.
50182         (catan_test): Likewise.
50183         (catanh_test): Likewise.
50184         (cbrt_test): Likewise.
50185         (ccos_test): Likewise.
50186         (ccosh_test): Likewise.
50187         (ceil_test): Likewise.
50188         (cexp_test): Likewise.
50189         (cimag_test): Likewise.
50190         (clog_test): Likewise.
50191         (clog10_test): Likewise.
50192         (conj_test): Likewise.
50193         (copysign_test): Likewise.
50194         (cos_test): Likewise.
50195         (cos_test_tonearest): Likewise.
50196         (cos_test_towardzero): Likewise.
50197         (cos_test_downward): Likewise.
50198         (cos_test_upward): Likewise.
50199         (cosh_test): Likewise.
50200         (cosh_test_tonearest): Likewise.
50201         (cosh_test_towardzero): Likewise.
50202         (cosh_test_downward): Likewise.
50203         (cosh_test_upward): Likewise.
50204         (cpow_test): Likewise.
50205         (cproj_test): Likewise.
50206         (creal_test): Likewise.
50207         (csin_test): Likewise.
50208         (csinh_test): Likewise.
50209         (csqrt_test): Likewise.
50210         (ctan_test): Likewise.
50211         (ctan_test_tonearest): Likewise.
50212         (ctan_test_towardzero): Likewise.
50213         (ctan_test_downward): Likewise.
50214         (ctan_test_upward): Likewise.
50215         (ctanh_test): Likewise.
50216         (ctanh_test_tonearest): Likewise.
50217         (ctanh_test_towardzero): Likewise.
50218         (ctanh_test_downward): Likewise.
50219         (ctanh_test_upward): Likewise.
50220         (erf_test): Likewise.
50221         (erfc_test): Likewise.
50222         (exp_test): Likewise.
50223         (exp_test_tonearest): Likewise.
50224         (exp_test_towardzero): Likewise.
50225         (exp_test_downward): Likewise.
50226         (exp_test_upward): Likewise.
50227         (exp10_test): Likewise.
50228         (exp10_test_tonearest): Likewise.
50229         (exp10_test_towardzero): Likewise.
50230         (exp10_test_downward): Likewise.
50231         (exp10_test_upward): Likewise.
50232         (pow10_test): Likewise.
50233         (exp2_test): Likewise.
50234         (expm1_test): Likewise.
50235         (expm1_test_tonearest): Likewise.
50236         (expm1_test_towardzero): Likewise.
50237         (expm1_test_downward): Likewise.
50238         (expm1_test_upward): Likewise.
50239         (fabs_test): Likewise.
50240         (fdim_test): Likewise.
50241         (floor_test): Likewise.
50242         (fma_test): Likewise.
50243         (fma_test_towardzero): Likewise.
50244         (fma_test_downward): Likewise.
50245         (fma_test_upward): Likewise.
50246         (fmax_test): Likewise.
50247         (fmin_test): Likewise.
50248         (fmod_test): Likewise.
50249         (fpclassify_test): Likewise.
50250         (frexp_test): Likewise.
50251         (hypot_test): Likewise.
50252         (ilogb_test): Likewise.
50253         (isfinite_test): Likewise.
50254         (finite_test): Likewise.
50255         (isgreater_test): Likewise.
50256         (isgreaterequal_test): Likewise.
50257         (isinf_test): Likewise.
50258         (isless_test): Likewise.
50259         (islessequal_test): Likewise.
50260         (islessgreater_test): Likewise.
50261         (isnan_test): Likewise.
50262         (isnormal_test): Likewise.
50263         (issignaling_test): Likewise.
50264         (isunordered_test): Likewise.
50265         (j0_test): Likewise.
50266         (j1_test): Likewise.
50267         (jn_test): Likewise.
50268         (ldexp_test): Likewise.
50269         (lgamma_test): Likewise.
50270         (gamma_test): Likewise.
50271         (lrint_test): Likewise.
50272         (lrint_test_tonearest): Likewise.
50273         (lrint_test_towardzero): Likewise.
50274         (lrint_test_downward): Likewise.
50275         (lrint_test_upward): Likewise.
50276         (llrint_test): Likewise.
50277         (llrint_test_tonearest): Likewise.
50278         (llrint_test_towardzero): Likewise.
50279         (llrint_test_downward): Likewise.
50280         (llrint_test_upward): Likewise.
50281         (log_test): Likewise.
50282         (log10_test): Likewise.
50283         (log1p_test): Likewise.
50284         (log2_test): Likewise.
50285         (logb_test): Likewise.
50286         (logb_test_downward): Likewise.
50287         (lround_test): Likewise.
50288         (llround_test): Likewise.
50289         (modf_test): Likewise.
50290         (nearbyint_test): Likewise.
50291         (nextafter_test): Likewise.
50292         (nexttoward_test): Likewise.
50293         (pow_test): Likewise.
50294         (pow_test_tonearest): Likewise.
50295         (pow_test_towardzero): Likewise.
50296         (pow_test_downward): Likewise.
50297         (pow_test_upward): Likewise.
50298         (remainder_test): Likewise.
50299         (drem_test): Likewise.
50300         (remainder_test_tonearest): Likewise.
50301         (drem_test_tonearest): Likewise.
50302         (remainder_test_towardzero): Likewise.
50303         (drem_test_towardzero): Likewise.
50304         (remainder_test_downward): Likewise.
50305         (drem_test_downward): Likewise.
50306         (remainder_test_upward): Likewise.
50307         (drem_test_upward): Likewise.
50308         (remquo_test): Likewise.
50309         (rint_test): Likewise.
50310         (rint_test_tonearest): Likewise.
50311         (rint_test_towardzero): Likewise.
50312         (rint_test_downward): Likewise.
50313         (rint_test_upward): Likewise.
50314         (round_test): Likewise.
50315         (scalb_test): Likewise.
50316         (scalbn_test): Likewise.
50317         (scalbln_test): Likewise.
50318         (signbit_test): Likewise.
50319         (sin_test): Likewise.
50320         (sin_test_tonearest): Likewise.
50321         (sin_test_towardzero): Likewise.
50322         (sin_test_downward): Likewise.
50323         (sin_test_upward): Likewise.
50324         (sincos_test): Likewise.
50325         (sinh_test): Likewise.
50326         (sinh_test_tonearest): Likewise.
50327         (sinh_test_towardzero): Likewise.
50328         (sinh_test_downward): Likewise.
50329         (sinh_test_upward): Likewise.
50330         (sqrt_test): Likewise.
50331         (sqrt_test_tonearest): Likewise.
50332         (sqrt_test_towardzero): Likewise.
50333         (sqrt_test_downward): Likewise.
50334         (sqrt_test_upward): Likewise.
50335         (tan_test): Likewise.
50336         (tan_test_tonearest): Likewise.
50337         (tan_test_towardzero): Likewise.
50338         (tan_test_downward): Likewise.
50339         (tan_test_upward): Likewise.
50340         (tanh_test): Likewise.
50341         (tgamma_test): Likewise.
50342         (trunc_test): Likewise.
50343         (y0_test): Likewise.
50344         (y1_test): Likewise.
50345         (yn_test): Likewise.
50346         (significand_test): Likewise.
50347
50348         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
50349         individual tests in comment.
50350         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
50351         (prev_max_error): New variable.
50352         (prev_real_max_error): Likewise.
50353         (prev_imag_max_error): Likewise.
50354         (compare_ulp_data): Don't refer to test names in comment.
50355         (find_test_ulps): Remove function.
50356         (find_function_ulps): Likewise.
50357         (find_complex_function_ulps): Likewise.
50358         (init_max_error): Take function name as argument.  Look up ulps
50359         for that function.
50360         (print_ulps): Remove function.
50361         (print_max_error): Use prev_max_error instead of calling
50362         find_function_ulps.
50363         (print_complex_max_error): Use prev_real_max_error and
50364         prev_imag_max_error instead of calling find_complex_function_ulps.
50365         (check_float_internal): Take max_ulp parameter instead of calling
50366         find_test_ulps.  Don't call print_ulps.
50367         (check_float): Update call to check_float_internal.
50368         (check_complex): Update calls to check_float_internal.
50369         (START): Pass argument to init_max_error.
50370         * math/gen-libm-test.pl (%results): Don't include "kind"
50371         information.
50372         (parse_ulps): Don't handle ulps of individual tests.
50373         (print_ulps_file): Likewise.
50374         (output_ulps): Likewise.
50375         * math/README.libm-test: Update.
50376         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
50377         individual tests.
50378         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
50379         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
50380         * sysdeps/arm/libm-test-ulps: Likewise.
50381         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
50382         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
50383         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
50384         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
50385         * sysdeps/microblaze/libm-test-ulps: Likewise.
50386         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
50387         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
50388         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50389         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
50390         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50391         * sysdeps/sh/libm-test-ulps: Likewise.
50392         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50393         * sysdeps/tile/libm-test-ulps: Likewise.
50394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50395
50396 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
50397
50398         * math/libm-test.inc (print_complex_max_error): Check separately
50399         whether real and imaginary errors are within allowed range and
50400         pass 0 to print_complex_function_ulps instead of value within
50401         allowed range.
50402
50403 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50404
50405         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
50406         formatting.
50407         (get_handles_fopen): Likewise.
50408         (do_write_test): Likewise.
50409
50410         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
50411
50412         * libio/fileops.c (do_ftell): Use cached offset when
50413         available.
50414         * libio/iofwide.c (do_ftell_wide): Likewise.
50415         * libio/iofdopen.c (_IO_new_fdopen): Don't use
50416         _IO_file_attach.
50417         * libio/wfileops.c (_IO_fwide): Don't cache offset.
50418
50419         [BZ #16532]
50420         * libio/libioP.h (get_file_offset): New function.
50421         * libio/fileops.c (get_file_offset): Likewise.
50422         (do_ftell): Likewise.
50423         (_IO_new_file_seekoff): Split out ftell logic.
50424         * libio/wfileops.c (do_ftell_wide): Likewise.
50425         (_IO_wfile_seekoff): Split out ftell logic.
50426         * libio/tst-ftell-active-handler.c: New test case.
50427         * libio/Makefile (tests): Add it.
50428
50429 2014-03-03  Roland McGrath  <roland@hack.frob.com>
50430
50431         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
50432         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
50433
50434 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
50435
50436         [BZ #16639]
50437         * nscd/connections.c (nscd_init): Call do_exit.
50438         (start_threads): Call do_exit and notify_parent.
50439         (begin_drop_privileges): Call do_exit.
50440         (finish_drop_privileges): Likewise.
50441         * nscd/selinux.c (preserve_capabilities): Likewise.
50442         (install_real_capabilities): Likewise.
50443         (nscd_selinux_enabled): Likewise.
50444         (avc_create_thread): Likewise.
50445         (avc_alloc_lock): Likewise.
50446         (nscd_avc_init): Likewise.
50447         * nscd/nscd.c (parent_fd): New static variable.
50448         (main): Create a pipe between parent and child processes.
50449         Skip closing parent_fd.
50450         (monitor_child): New function.
50451         (do_exit): Likewise.
50452         (notify_parent): Likewise.
50453         * nscd/nscd.h (notify_parent): Likewise.
50454         (do_exit): Likewise.
50455
50456 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
50457
50458         * malloc/malloc.c (__libc_calloc): Revert last change.
50459
50460 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50461
50462         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50463
50464 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
50465
50466         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
50467         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
50468         implementation.
50469         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50470         (__libc_ifunc_impl_list): Likewise.
50471         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
50472         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
50473         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
50474         * string/strrchr.c: Define STRRCHR.
50475
50476 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
50477
50478         * benchtest/bench-strtok.c (simple_strtok): Delete.
50479         (strtok_string): Use as benchmark.
50480         * string/strtok (STRTOK): New macro.
50481
50482 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
50483
50484         * manual/threads.texi: Add header and standard comments to all
50485         functions.
50486
50487         * elf/dl-lookup.c (check_match): New function.
50488         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
50489         (do_lookup_x): Remove nested function check_match. Use non-nested
50490         function check_match.
50491
50492 2014-02-28  Roland McGrath  <roland@hack.frob.com>
50493
50494         * csu/Makefile (generated, before-compile): Use += rather than =.
50495         * catgets/Makefile (generated, generated-dirs): Likewise.
50496         * debug/Makefile (generated): Likewise.
50497         * dlfcn/Makefile (generated): Likewise.
50498         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
50499         * iconvdata/Makefile (before-compile, generated): Likewise.
50500         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
50501         * libio/Makefile (generated): Likewise.
50502         * malloc/Makefile (generated): Likewise.
50503         * manual/Makefile (generated, generated-dirs): Likewise.
50504         * misc/Makefile (generated): Likewise.
50505         * posix/Makefile (generated): Likewise.
50506         * resolv/Makefile (generated): Likewise.
50507         * sunrpc/Makefile (generated, generated-dirs): Likewise.
50508         * timezone/Makefile (generated, generated-dirs): Likewise.
50509
50510         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
50511
50512 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50513
50514         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
50515         power8 implementation.
50516         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
50517         file: POWER8 llround ifunc implementation.
50518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
50519         (__lllround): Add POWER8 implementation.
50520         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
50521         POWER8 llround implementation.
50522
50523         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
50524         power8 implementation.
50525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
50526         file: POWER8 llrint ifunc implementation.
50527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
50528         Add POWER8 implementation.
50529         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
50530         POWER8 llrint implementation.
50531
50532         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
50533         power8 implementation.
50534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
50535         file: POWER8 finite ifunc implementation.
50536         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
50537         Add POWER8 implementation.
50538         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
50539         Likewise.
50540         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
50541         POWER8 finite implementation.
50542         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
50543
50544         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
50545         power8 implementation.
50546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
50547         file: POWER8 isinf ifunc implementation.
50548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
50549         POWER8 implementation.
50550         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
50551         Likewise.
50552         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
50553         isinf implementation.
50554         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
50555
50556         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
50557         (INIT_ARCH): Add hwcap2 initialization.
50558         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
50559         power8 implementation.
50560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
50561         file: POWER8 isnan ifunc implementation.
50562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
50563         POWER8 implementation.
50564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
50565         Likewise.
50566         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
50567         isnan implementation.
50568         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
50569
50570 2014-02-27  Joey Ye  <joey.ye@arm.com>
50571
50572         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
50573         (_FP_NANFRAC_Q): Set to zero.
50574
50575 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50576
50577         [BZ #16623]
50578         * math/auto-libm-test-in: New test inputs.
50579         * math/auto-libm-test-out: Regenerate.
50580         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
50581         and DA.
50582         (__cos): Likewise.
50583         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
50584
50585 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
50586
50587         * scripts/evaluate-test.sh: Take new argument indicating whether
50588         failure is expected.
50589         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
50590         indicating whether failure is expected.
50591         * conform/Makefile (test-xfail-run-conformtest): New variable.
50592         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
50593         level.
50594         * posix/Makefile (test-xfail-annexc): New variable.
50595         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
50596
50597 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
50598
50599         * argp/Makefile: Include Makeconfig immediately after defining
50600         subdir.
50601         * assert/Makefile: Likewise.
50602         * benchtests/Makefile: Likewise.
50603         * catgets/Makefile: Likewise.
50604         * conform/Makefile: Likewise.
50605         * crypt/Makefile: Likewise.
50606         * csu/Makefile: Likewise.
50607         (all): Remove target.
50608         * ctype/Makefile: Include Makeconfig immediately after defining
50609         subdir.
50610         * debug/Makefile: Likewise.
50611         * dirent/Makefile: Likewise.
50612         * dlfcn/Makefile: Likewise.
50613         * gmon/Makefile: Likewise.
50614         * gnulib/Makefile: Likewise.
50615         * grp/Makefile: Likewise.
50616         * gshadow/Makefile: Likewise.
50617         * hesiod/Makefile: Likewise.
50618         * hurd/Makefile: Likewise.
50619         (all): Remove target.
50620         * iconvdata/Makefile: Include Makeconfig immediately after
50621         defining subdir.
50622         * inet/Makefile: Likewise.
50623         * intl/Makefile: Likewise.
50624         * io/Makefile: Likewise.
50625         * libio/Makefile: Likewise.
50626         (all): Remove target.
50627         * locale/Makefile: Include Makeconfig immediately after defining
50628         subdir.
50629         * login/Makefile: Likewise.
50630         * mach/Makefile: Likewise.
50631         (all): Remove target.
50632         * malloc/Makefile: Include Makeconfig immediately after defining
50633         subdir.
50634         (all): Remove target.
50635         * manual/Makefile: Include Makeconfig immediately after defining
50636         subdir.
50637         * math/Makefile: Likewise.
50638         * misc/Makefile: Likewise.
50639         * nis/Makefile: Likewise.
50640         * nss/Makefile: Likewise.
50641         * po/Makefile: Likewise.
50642         (all): Remove target.
50643         * posix/Makefile: Include Makeconfig immediately after defining
50644         subdir.
50645         * pwd/Makefile: Likewise.
50646         * resolv/Makefile: Likewise.
50647         * resource/Makefile: Likewise.
50648         * rt/Makefile: Likewise.
50649         * setjmp/Makefile: Likewise.
50650         * shadow/Makefile: Likewise.
50651         * signal/Makefile: Likewise.
50652         * socket/Makefile: Likewise.
50653         * soft-fp/Makefile: Likewise.
50654         * stdio-common/Makefile: Likewise.
50655         * stdlib/Makefile: Likewise.
50656         * streams/Makefile: Likewise.
50657         * string/Makefile: Likewise.
50658         * sunrpc/Makefile: Likewise.
50659         (all): Remove target.
50660         * sysvipc/Makefile: Include Makeconfig immediately after defining
50661         subdir.
50662         * termios/Makefile: Likewise.
50663         * time/Makefile: Likewise.
50664         * timezone/Makefile: Likewise.
50665         (all): Remove target.
50666         * wcsmbs/Makefile: Include Makeconfig immediately after defining
50667         subdir.
50668         * wctype/Makefile: Likewise.
50669
50670 2014-02-26  Steve Ellcey  <sellcey@mips.com>
50671
50672         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
50673         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
50674         (libc_feholdexcept_setround_mips): Ditto.
50675         (libc_feholdsetround): New.
50676         (libc_feholdsetroundf): New.
50677         (libc_feholdsetroundl): New.
50678         (libc_feupdateenv_test_mips): New.
50679         (libc_feupdateenv_test): New.
50680         (libc_feupdateenv_testf): New.
50681         (libc_feupdateenv_testl): New.
50682         (libc_feresetround): New.
50683         (libc_feresetroundf): New.
50684         (libc_feresetroundl): New.
50685         (libc_fetestexcept_mips): New.
50686         (libc_fetestexcept): New.
50687         (libc_fetestexceptf): New.
50688         (libc_fetestexceptl): New.
50689         (HAVE_RM_CTX): New.
50690         (libc_feholdexcept_setround_mips_ctx): New.
50691         (libc_feholdexcept_setround_ctx): New.
50692         (libc_feholdexcept_setroundf_ctx): New.
50693         (libc_feholdexcept_setroundl_ctx): New.
50694         (libc_fesetenv_mips_ctx): New.
50695         (libc_fesetenv_ctx): New.
50696         (libc_fesetenv_ctxf): New.
50697         (libc_fesetenv_ctxl): New.
50698         (libc_feupdateenv_mips_ctx): New.
50699         (libc_feupdateenv_ctx): New.
50700         (libc_feupdateenvf_ctx): New.
50701         (libc_feupdateenvl_ctx): New.
50702         (libc_feholdsetround_mips_ctx): New.
50703         (libc_feholdsetround_ctx): New.
50704         (libc_feholdsetroundf_ctx): New.
50705         (libc_feholdsetroundl_ctx): New.
50706         (libc_feresetround_mips_ctx): New.
50707         (libc_feresetround_ctx): New.
50708         (libc_feresetroundf_ctx): New.
50709         (libc_feresetroundl_ctx): New.
50710
50711 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
50712
50713         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
50714
50715         * manual/ipc.texi: New file.
50716         * manual/Makefile (chapters): Add ipc.
50717         * manual/job.texi: Add "Inter-Process Communication" to next.
50718         * manual/process.texi: Add "Inter-Process Communication" to prev.
50719
50720 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50721
50722         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50723
50724 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
50725
50726         * malloc/malloc.c (__libc_calloc): Simplify implementation.
50727
50728         * manual/arith.texi: Fix spaces after sentences.
50729         * manual/charset.texi: Likewise.
50730         * manual/errno.texi: Likewise.
50731         * manual/install.texi: Likewise.
50732         * manual/llio.texi: Likewise.
50733         * manual/locale.texi: Likewise.
50734         * manual/maint.texi: Likewise.
50735         * manual/math.texi: Likewise.
50736         * manual/memory.texi: Likewise.
50737         * manual/message.texi: Likewise.
50738         * manual/probes.texi: Likewise.
50739         * manual/resource.texi: Likewise.
50740         * manual/signal.texi: Likewise.
50741         * manual/socket.texi: Likewise.
50742         * manual/stdio.texi: Likewise.
50743         * manual/string.texi: Likewise.
50744         * manual/time.texi: Likewise.
50745         * manual/users.texi: Likewise.
50746
50747 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
50748
50749         [BZ #16632]
50750         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
50751         _DEFAULT_SOURCE is defined.
50752
50753 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
50754             Carlos O'Donell  <carlos@redhat.com>
50755
50756         [BZ #16613]
50757         * elf/dl-tls.c (_dl_count_modids): New function.
50758         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
50759         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
50760         audit library and increment generation counter.
50761         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
50762         * elf/tst-audit9.c: New file.
50763         * elf/tst-auditmod9a.c: New file.
50764         * elf/tst-auditmod9b.c: New file.
50765         * elf/Makefile: Add rules to build and run tst-audit9.
50766
50767 2014-02-25  Florian Weimer  <fweimer@redhat.com>
50768
50769         [BZ #15347]
50770         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
50771
50772 2014-02-25  Will Newton  <will.newton@linaro.org>
50773
50774         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
50775         (__longjmp): Restore sp and lr before restoring callee
50776         saved registers.  Add longjmp and longjmp_target
50777         SystemTap probe point.
50778         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
50779         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
50780         Define to zero to match jmpbuf layout.
50781         * sysdeps/arm/setjmp.S: Include stap-probe.h.
50782         (__sigsetjmp): Save sp and lr before saving callee
50783         saved registers.  Add setjmp SystemTap probe point.
50784
50785 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
50786
50787         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
50788
50789 2014-02-24  Andreas Schwab  <schwab@suse.de>
50790
50791         [BZ #15804]
50792         * elf/pldd.c (wait_for_ptrace_stop): New function.
50793         (main): Call it after attaching.
50794
50795 2014-02-22  Roland McGrath  <roland@hack.frob.com>
50796
50797         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
50798         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
50799         Versions files is now verboten.
50800         * hurd/Versions (libc: GLIBC_2.0):
50801         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
50802         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
50803         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
50804         * mach/Versions: Likewise.
50805
50806         * csu/Versions: Remove unused %include.
50807         * resolv/Versions: Likewise.
50808
50809 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
50810
50811         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
50812         ($(objpfx)check-local-headers.out): Likewise.
50813         ($(objpfx)begin-end-check.out): Likewise.
50814         * Makerules (check-abi-%.out): Likewise.
50815         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
50816         ($(objpfx)test2.cat): Likewise.
50817         ($(objpfx)de/libc.cat): Likewise.
50818         ($(objpfx)test-gencat.out): Likewise.
50819         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
50820         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
50821         ($(objpfx)noload-mem): Likewise.
50822         ($(objpfx)tst-pathopt.out): Likewise.
50823         ($(objpfx)tst-rtld-load-self.out): Likewise.
50824         ($(objpfx)tst-array1-cmp.out): Likewise.
50825         ($(objpfx)tst-array1-static-cmp.out): Likewise.
50826         ($(objpfx)tst-array2-cmp.out): Likewise.
50827         ($(objpfx)tst-array3-cmp.out): Likewise.
50828         ($(objpfx)tst-array4-cmp.out): Likewise.
50829         ($(objpfx)tst-array5-cmp.out): Likewise.
50830         ($(objpfx)tst-array5-static-cmp.out): Likewise.
50831         ($(objpfx)check-textrel.out): Likewise.
50832         ($(objpfx)check-execstack.out): Likewise.
50833         ($(objpfx)check-localplt.out): Likewise.
50834         ($(objpfx)order2-cmp.out): Likewise.
50835         ($(objpfx)tst-leaks1-mem): Likewise.
50836         ($(objpfx)tst-leaks1-static-mem): Likewise.
50837         ($(objpfx)tst-initorder-cmp.out): Likewise.
50838         ($(objpfx)tst-initorder2-cmp.out): Likewise.
50839         ($(objpfx)tst-unused-dep.out): Likewise.
50840         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
50841         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
50842         * iconv/Makefile (test-iconvconfig): Likewise.
50843         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
50844         ($(objpfx)iconv-test.out): Likewise.
50845         ($(objpfx)tst-tables.out): Likewise.
50846         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
50847         ($(objpfx)tst-gettext.out): Likewise.
50848         ($(objpfx)tst-translit.out): Likewise.
50849         ($(objpfx)tst-gettext2.out): Likewise.
50850         ($(objpfx)tst-gettext4.out): Likewise.
50851         ($(objpfx)tst-gettext6.out): Likewise.
50852         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
50853         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
50854         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
50855         ($(objpfx)tst-fopenloc-mem.out): Likewise.
50856         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
50857         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
50858         * posix/Makefile ($(objpfx)globtest.out): Likewise.
50859         ($(objpfx)wordexp-tst.out): Likewise.
50860         ($(objpfx)annexc.out): Likewise.
50861         ($(objpfx)tst-fnmatch-mem): Likewise.
50862         ($(objpfx)bug-regex2-mem): Likewise.
50863         ($(objpfx)bug-regex14-mem): Likewise.
50864         ($(objpfx)bug-regex21-mem): Likewise.
50865         ($(objpfx)bug-regex31-mem): Likewise.
50866         ($(objpfx)tst-vfork3-mem): Likewise.
50867         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
50868         ($(objpfx)tst-pcre-mem): Likewise.
50869         ($(objpfx)tst-boost-mem): Likewise.
50870         ($(objpfx)tst-getconf.out): Likewise.
50871         ($(objpfx)bug-ga2-mem): Likewise.
50872         ($(objpfx)bug-glob2-mem): Likewise.
50873         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
50874         ($(objpfx)mtrace-tst-leaks2): Likewise.
50875         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
50876         ($(objpfx)tst-printf.out): Likewise.
50877         ($(objpfx)tst-setvbuf1.out): Likewise.
50878         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
50879         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
50880         ($(objpfx)tst-fmtmsg.out): Likewise.
50881         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
50882         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
50883
50884         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
50885         * bits/sigaction.h [__USE_MISC]: Likewise.
50886         * bits/waitstatus.h: Update #endif comments.
50887         * ctype/ctype.h: Likewise.
50888         * dirent/dirent.h: Likewise.
50889         [__USE_MISC]: Remove redundant conditionals.
50890         * grp/grp.h: Update #endif comments.
50891         [__USE_GNU]: Remove redundant conditionals.
50892         [__USE_MISC]: Likewise.
50893         * inet/netinet/in.h [__USE_GNU]: Likewise.
50894         * io/sys/stat.h [__USE_MISC]: Likewise.
50895         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
50896         * libio/bits/stdio.h: Update #endif comments.
50897         [__USE_MISC]: Remove redundant conditionals.
50898         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
50899         * libio/stdio.h: Update #endif comments.
50900         [__USE_MISC]: Remove redundant conditionals.
50901         * math/bits/math-finite.h [__USE_MISC]: Likewise.
50902         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
50903         * math/math.h: Update #else and #endif comments.
50904         [__USE_MISC]: Remove redundant conditionals.
50905         * misc/sys/uio.h: Update #endif comments.
50906         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
50907         * posix/glob.h [__USE_MISC]: Likewise.
50908         * posix/sys/types.h: Update #endif comments.
50909         [__USE_MISC]: Remove redundant conditionals.
50910         * posix/sys/wait.h: Update #endif comments.
50911         [__USE_MISC]: Remove redundant conditionals.
50912         * posix/unistd.h: Update #endif comments.
50913         [__USE_MISC]: Remove redundant conditionals.
50914         * pwd/pwd.h [__USE_GNU]: Likewise.
50915         [__USE_MISC]: Likewise.
50916         * resolv/netdb.h [__USE_GNU]: Likewise.
50917         * signal/signal.h: Update #endif comments.
50918         [__USE_MISC]: Remove redundant conditionals.
50919         * stdlib/stdlib.h: Update #else and #endif comments.
50920         [__USE_MISC]: Remove redundant conditionals.
50921         [__USE_GNU]: Likewise.
50922         * string/bits/string2.h [__USE_MISC]: Likewise.
50923         * string/string.h: Update #endif comments.
50924         [__USE_MISC]: Remove redundant conditionals.
50925         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
50926         Likewise.
50927         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
50928         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
50929         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
50930         Likewise.
50931         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
50932         Likewise.
50933         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
50934         comments.
50935         [__USE_MISC]: Remove redundant conditionals.
50936         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
50937         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
50938         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
50939         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
50940         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
50941         Likewise.
50942         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
50943         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
50944         Likewise.
50945         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
50946         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
50947         Likewise.
50948         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
50949         Likewise.
50950         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
50951         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
50952         Likewise.
50953         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
50954         Likewise.
50955         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
50956         * sysdeps/x86/bits/string.h: Update #endif comments.
50957         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
50958         conditionals.
50959         * time/sys/time.h: Update #endif comments.
50960         * time/time.h: Likewise.
50961         [__USE_MISC]: Remove redundant conditionals.
50962
50963 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
50964
50965         [BZ #16600]
50966         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
50967
50968 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
50969
50970         * Versions.def (librt): Add GLIBC_2.17.
50971
50972 2014-02-21  Adam Conrad  <adconrad@0c3.net>
50973
50974         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
50975         synonym for _SYS_AUXV_H to allow direct inclusion.
50976         * sysdeps/sparc/bits/hwcap.h: Likewise.
50977         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
50978         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
50979         * sysdeps/sparc/sysdep.h: Likewise.
50980
50981 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50982
50983         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
50984
50985 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
50986
50987         * benchtests/bench-strrchr.c: Print length instead of position.
50988
50989 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
50990
50991         [BZ #16611]
50992         * sysdeps/unix/sysv/linux/kernel-features.h
50993         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
50994         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
50995         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
50996         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
50997         Likewise.
50998         [__i386__ || __powerpc__ || __sh__ || __sparc__]
50999         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51000         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
51001         (__ASSUME_SENDMMSG): Define instead of using previous
51002         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
51003         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51004         (__ASSUME_SENDMMSG_SYSCALL): Define.
51005         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51006         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
51007         Likewise.
51008         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51009         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51010         Likewise.
51011         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51012         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51013         Likewise.
51014         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
51015         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
51016         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
51017         [__ASSUME_SENDMMSG]: Change conditionals to
51018         [__ASSUME_SENDMMSG_SOCKETCALL].
51019         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51020         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
51021         Define.
51022         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51023         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
51024         Likewise.
51025         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
51026         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
51027         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
51028         [!__ASSUME_SENDMMSG]: Change conditional to
51029         [!__ASSUME_SENDMMSG_SOCKETCALL].
51030         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51031         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51032         Define.
51033
51034         [BZ #16610]
51035         * sysdeps/unix/sysv/linux/kernel-features.h
51036         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
51037         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
51038         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
51039         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
51040         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
51041         [__i386__ || __sparc__]
51042         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51043         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
51044         (__ASSUME_RECVMMSG): Define instead of using previous
51045         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
51046         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51047         (__ASSUME_RECVMMSG_SYSCALL): Define.
51048         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51049         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51050         Likewise.
51051         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51052         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51053         Likewise.
51054         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51055         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51056         Likewise.
51057         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
51058         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
51059         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
51060         [__ASSUME_RECVMMSG]: Change condition to
51061         [__ASSUME_RECVMMSG_SOCKETCALL].
51062         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51063         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51064         Define.
51065         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51066         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51067         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51068         Likewise.
51069         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
51070         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
51071         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
51072         [!__ASSUME_RECVMMSG]: Change condition to
51073         [!__ASSUME_RECVMMSG_SOCKETCALL].
51074         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51075         (__ASSUME_RECVMMSG_SYSCALL): Define.
51076
51077         [BZ #16609]
51078         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
51079         __powerpc__ || __s390__ || __sh__ || __sparc__]
51080         (__ASSUME_SOCKETCALL): Define.
51081         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
51082         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
51083         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
51084         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
51085         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
51086         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
51087         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
51088         (__ASSUME_ACCEPT4): Define instead of using previous
51089         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
51090         __powerpc__ || __sparc__ || __s390__)] condition.
51091         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51092         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51093         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
51094         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51095         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51096         [!__ASSUME_ACCEPT4]: Change condition to
51097         [!__ASSUME_ACCEPT4_SOCKETCALL].
51098         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51099         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
51100         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
51101         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51102         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
51103         __ASSUME_ACCEPT4_SYSCALL.
51104         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
51105         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
51106         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51107         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
51108         __ASSUME_ACCEPT4_SYSCALL.
51109         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
51110         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51111         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51112         [__ASSUME_ACCEPT4]: Change condition to
51113         [__ASSUME_ACCEPT4_SOCKETCALL].
51114         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
51115         (__ASSUME_SOCKETCALL): Define.
51116         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
51117         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51118         (__ASSUME_SOCKETCALL): Define.
51119         (__ASSUME_ACCEPT4): Remove.
51120         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
51121         Define.
51122         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51123         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
51124         Likewise.
51125         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51126         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51127
51128         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
51129         macro.
51130         (HWCAP_ARM_LPAE): Likewise.
51131         (HWCAP_ARM_EVTSTRM): Likewise.
51132         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
51133         Add vpfd32, lpae and evtstrm.
51134         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
51135         Increase to 22.
51136
51137 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
51138
51139         * math/auto-libm-test-in: Add tests of clog10.
51140         * math/auto-libm-test-out: Regenerated.
51141         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
51142         * sysdeps/i386/fpu/libm-test-ulps: Update.
51143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51144
51145 2014-02-18  Andreas Schwab  <schwab@suse.de>
51146
51147         [BZ #16574]
51148         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
51149         Store non-zero if the second buffer was newly allocated.
51150         (send_dg): Likewise.
51151         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
51152         to send_vc and send_dg.
51153         (res_nsend): Pass NULL for ansp2_malloced.
51154         * resolv/res_query.c (__libc_res_nquery): Add parameter
51155         answerp2_malloced and pass it down to __libc_res_nsend.
51156         (res_nquery): Pass additional NULL to __libc_res_nquery.
51157         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
51158         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
51159         second answer buffer if answerp2_malloced was set.
51160         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
51161         (__libc_res_nquerydomain): Add parameter
51162         answerp2_malloced and pass it down to __libc_res_nquery.
51163         (res_nquerydomain): Pass additional NULL to
51164         __libc_res_nquerydomain.
51165         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
51166         additional NULL to __libc_res_nsend and __libc_res_nquery.
51167         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
51168         additional NULL to __libc_res_nsearch.
51169         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
51170         parameter of __libc_res_nsearch to check for separately allocated
51171         second buffer.
51172         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
51173         __libc_res_nquery.
51174         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
51175         additional NULL to __libc_res_nquery.
51176         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
51177         __libc_res_nsearch.
51178         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
51179         * include/resolv.h: Update prototypes of __libc_res_nquery,
51180         __libc_res_nsearch, __libc_res_nsend.
51181
51182 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
51183
51184         * math/auto-libm-test-in: Add tests of fma.
51185         * math/auto-libm-test-out: Regenerated.
51186         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
51187         (fma_towardzero_test_data): Likewise.
51188         (fma_downward_test_data): Likewise.
51189         (fma_upward_test_data): Likewise.
51190         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
51191         mpc_mode.
51192         (rounding_modes): Add values for new field.
51193         (func_calc_method): Add value mpfr_fff_f.
51194         (func_calc_desc): Add mpfr_fff_f union field.
51195         (test_function): Add field exact_args.
51196         (FUNC): Add macro argument EXACT_ARGS.
51197         (FUNC_mpfr_f_f): Update call to FUNC.
51198         (FUNC_mpfr_f_f): Likewise.
51199         (FUNC_mpfr_ff_f): Likewise.
51200         (FUNC_mpfr_if_f): Likewise.
51201         (FUNC_mpc_c_f): Likewise.
51202         (FUNC_mpc_c_c): Likewise.
51203         (test_functions): Add fma.  Update calls to FUNC.
51204         (handle_input_arg): Add argument exact_args.
51205         (add_test): Update call to handle_input_arg.
51206         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
51207         (output_for_one_input_case): Update call to calc_generic_results.
51208         Recalculate exact zero results in each rounding mode.
51209
51210         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
51211         non-negative before setting low bit.
51212         * math/auto-libm-test-in: Mark one asin test possibly having
51213         spurious underflow.
51214         * math/auto-libm-test-out: Regenerated.
51215         * sysdeps/i386/fpu/libm-test-ulps: Update.
51216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51217
51218 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
51219
51220         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
51221         * sysdeps/unix/sysv/linux/microblaze: Move directory from
51222         ports/sysdeps/unix/sysv/linux/microblaze.
51223         * README: Add missing listing for microblaze*-*-linux-gnu.
51224
51225 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
51226
51227         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
51228         duplicate code
51229
51230 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
51231
51232         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
51233         * sysdeps/unix/sysv/linux/ia64: Move directory from
51234         ports/sysdeps/unix/sysv/linux/ia64.
51235         * README: Update listing for ia64-*-linux-gnu.
51236
51237 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
51238             Joseph Myers  <joseph@codesourcery.com>
51239
51240         * Makeconfig (test-name): New variable.
51241         (evaluate-test): Likewise.
51242         * Makerules (do-test-clean): Remove .test-result files.
51243         (common-mostlyclean): Likewise.
51244         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
51245         * scripts/evaluate-test.sh: New file.
51246
51247 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
51248
51249         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
51250         separate $(objpfx)tst-fopenloc-cmp.out and
51251         $(objpfx)tst-fopenloc-mem.out targets.
51252         (tests): Update dependencies.
51253         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
51254         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
51255         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
51256         (tst-rxspencer-no-utf8-ARGS): New variable.
51257         (tst-rxspencer-no-utf8-ENV): Likewise.
51258         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
51259         instead of $(objpfx)tst-rxspencer-mem.
51260         ($(objpfx)tst-rxspencer-mem): Change target to
51261         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
51262         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
51263         * posix/tst-rxspencer-no-utf8.c: New file.
51264
51265         * elf/Makefile ($(objpfx)order.out): Remove rule.
51266         [$(run-built-tests) = yes] (tests): Depend on
51267         $(objpfx)order-cmp.out.
51268         ($(objpfx)order-cmp.out): New rule.
51269         [$(run-built-tests) = yes] (tests): Depend on
51270         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
51271         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
51272         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
51273         $(objpfx)tst-array5-static-cmp.out.
51274         ($(objpfx)tst-array1.out): Remove rule.
51275         ($(objpfx)tst-array1-cmp.out): New rule.
51276         ($(objpfx)tst-array1-static.out): Remove rule.
51277         ($(objpfx)tst-array1-static-cmp.out): New rule.
51278         ($(objpfx)tst-array2.out): Remove rule.
51279         ($(objpfx)tst-array2-cmp.out): New rule.
51280         ($(objpfx)tst-array3.out): Remove rule.
51281         ($(objpfx)tst-array3-cmp.out): New rule.
51282         ($(objpfx)tst-array4.out): Remove rule.
51283         ($(objpfx)tst-array4-cmp.out): New rule.
51284         ($(objpfx)tst-array5.out): Remove rule.
51285         ($(objpfx)tst-array5-cmp.out): New rule.
51286         ($(objpfx)tst-array5-static.out): Remove rule.
51287         ($(objpfx)tst-array5-static-cmp.out): New rule.
51288         [$(run-built-tests) = yes] (tests): Depend on
51289         $(objpfx)order2-cmp.out.
51290         ($(objpfx)order2.out): Remove rule.
51291         ($(objpfx)order2-cmp.out): New rule.
51292         ($(objpfx)tst-initorder.out): Remove rule.
51293         [$(run-built-tests) = yes] (tests): Depend on
51294         $(objpfx)tst-initorder-cmp.out.
51295         ($(objpfx)tst-initorder-cmp.out): New rule.
51296         ($(objpfx)tst-initorder2.out): Remove rule.
51297         [$(run-built-tests) = yes] (tests): Depend on
51298         $(objpfx)tst-initorder2-cmp.out.
51299         ($(objpfx)tst-initorder2-cmp.out): New rule.
51300         [$(run-built-tests) = yes] (tests): Depend on
51301         $(objpfx)tst-unused-dep-cmp.out.
51302         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
51303         ($(objpfx)tst-unused-dep-cmp.out): New rule.
51304         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
51305         on $(objpfx)tst-setvbuf1-cmp.out.
51306         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
51307         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
51308         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
51309         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
51310         ($(objpfx)tst-svc.out): Remove rule.
51311         ($(objpfx)tst-svc-cmp.out): New rule.
51312
51313 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
51314
51315         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
51316         * ctype/ctype.h [__USE_MISC]: Likewise.
51317         * dirent/dirent.h [__USE_MISC]: Likewise.
51318         * grp/grp.h [__USE_MISC]: Likewise.
51319         * io/fcntl.h [__USE_MISC]: Likewise.
51320         * io/sys/stat.h [__USE_MISC]: Likewise.
51321         * libio/stdio.h [__USE_MISC]: Likewise.
51322         * posix/unistd.h [__USE_MISC]: Likewise.
51323         * pwd/pwd.h [__USE_MISC]: Likewise.
51324         * stdlib.h [__USE_MISC]: Likewise.
51325         * string/bits/string2.h [__USE_MISC]: Likewise.
51326         * string/string.h [__USE_MISC]: Likewise.
51327         * time/time.h [__USE_MISC]: Likewise.
51328
51329 2014-02-13  Andreas Schwab  <schwab@suse.de>
51330
51331         [BZ #16574]
51332         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
51333         second answer buffer if it was separately allocated.
51334
51335 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
51336
51337         * sysdeps/mips/math-tests.h: Include <features.h>.
51338         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51339         (ROUNDING_TESTS_long_double): Do not define.
51340         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51341         (EXCEPTION_TESTS_long_double): Likewise.
51342         * sysdeps/mips/mips64/libm-test-ulps: Update.
51343
51344         * include/features.h (__USE_BSD): Remove macro definitions.
51345         (__USE_SVID): Likewise.
51346         (_BSD_SOURCE): Likewise.
51347         (_SVID_SOURCE): Likewise.
51348         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
51349         from definition of _DEFAULT_SOURCE.
51350         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
51351         [_DEFAULT_SOURCE].
51352         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
51353         * bits/mman.h [__USE_BSD]: Likewise.
51354         * bits/termios.h [__USE_BSD]: Likewise.
51355         * bits/waitstatus.h [__USE_BSD]: Likewise.
51356         * ctype/ctype.h [__USE_SVID]: Likewise.
51357         * dirent/dirent.h [__USE_BSD]: Likewise.
51358         * grp/grp.h [__USE_SVID]: Likewise.
51359         [__USE_BSD]: Likewise.
51360         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
51361         * io/fcntl.h [__USE_BSD]: Likewise.
51362         * io/ftw.h [__USE_BSD]: Likewise.
51363         * io/sys/stat.h [__USE_BSD]: Likewise.
51364         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
51365         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
51366         * libio/stdio.h [__USE_SVID]: Likewise.
51367         [__USE_BSD]: Likewise.
51368         * math/math.h [__USE_SVID]: Likewise.
51369         [__USE_BSD]: Likewise.
51370         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
51371         * misc/bits/syslog.h [__USE_BSD]: Likewise.
51372         * misc/search.h [__USE_SVID]: Likewise.
51373         * misc/sys/mman.h [__USE_BSD]: Likewise.
51374         * misc/sys/syslog.h [__USE_BSD]: Likewise.
51375         * misc/sys/uio.h [__USE_BSD]: Likewise.
51376         * posix/bits/unistd.h [__USE_BSD]: Likewise.
51377         * posix/glob.h [__USE_BSD]: Likewise.
51378         * posix/regex.h [__USE_BSD]: Likewise.
51379         * posix/sys/types.h [__USE_BSD]: Likewise.
51380         [__USE_SVID]: Likewise.
51381         * posix/sys/utsname.h [__USE_SVID]: Likewise.
51382         * posix/sys/wait.h [__USE_BSD]: Likewise.
51383         [__USE_SVID]: Likewise.
51384         * posix/unistd.h [__USE_BSD]: Likewise.
51385         [__USE_SVID]: Likewise.
51386         * pwd/pwd.h [__USE_SVID]: Likewise.
51387         * resolv/netdb.h [__USE_BSD]: Likewise.
51388         * setjmp/setjmp.h [__USE_BSD]: Likewise.
51389         * signal/signal.h [__USE_BSD]: Likewise.
51390         [__USE_SVID]: Likewise.
51391         * socket/sys/socket.h [__USE_BSD]: Likewise.
51392         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
51393         * stdlib/stdlib.h [__USE_BSD]: Likewise.
51394         [__USE_SVID]: Likewise.
51395         * string/bits/string2.h [__USE_BSD]: Likewise.
51396         [__USE_SVID]: Likewise.
51397         * string/bits/string3.h [__USE_BSD]: Likewise.
51398         * string/endian.h [__USE_BSD]: Likewise.
51399         * string/string.h [__USE_SVID]: Likewise.
51400         [__USE_BSD]: Likewise.
51401         * string/strings.h [__USE_BSD]: Likewise.
51402         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
51403         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
51404         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
51405         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
51406         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
51407         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
51408         Likewise.
51409         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
51410         Likewise.
51411         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
51412         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
51413         Likewise.
51414         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
51415         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
51416         Likewise.
51417         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
51418         Likewise.
51419         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
51420         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
51421         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
51422         Likewise.
51423         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
51424         Likewise.
51425         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
51426         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
51427         * termios/termios.h [__USE_BSD]: Likewise.
51428         * time/sys/time.h [__USE_BSD]: Likewise.
51429         * time/time.h [__USE_BSD]: Likewise.
51430         [__USE_SVID]: Likewise.
51431
51432         * Makefile (subdir_targets): Remove subdir_lint.out.
51433
51434         * stdio-common/Makefile (do-tst-unbputc): Remove target.
51435         (do-tst-printf): Likewise.
51436         (tests): Depend directly on $(objpfx)tst-unbputc.out and
51437         $(objpfx)tst-printf.out.
51438
51439         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
51440
51441         * Makerules (check-abi-%): Change target to
51442         $(objpfx)check-abi-%.out.
51443         (check-abi target): Update dependencies.
51444         (check-abi-pattern variable): Redirect output of diff to $@.
51445         (check-abi variable): Likewise.
51446         * elf/Makefile (check-abi): Update dependencies.
51447
51448         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
51449         unused.
51450         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
51451         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
51452         subnormal range.
51453         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
51454         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
51455         value has largest subnormal exponent.
51456         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
51457         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
51458         * sysdeps/aarch64/soft-fp/sfp-machine.h
51459         (_FP_TININESS_AFTER_ROUNDING): New macro.
51460         * sysdeps/alpha/soft-fp/sfp-machine.h
51461         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51462         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51463         Likewise.
51464         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
51465         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51466         * sysdeps/mips/soft-fp/sfp-machine.h
51467         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51468         * sysdeps/powerpc/soft-fp/sfp-machine.h
51469         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51470         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51471         Likewise.
51472         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
51473         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51474         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
51475         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51476         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51477         Likewise.
51478
51479 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
51480
51481         [BZ #16545]
51482         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
51483         model 1.
51484
51485 2014-02-12  Richard Henderson  <rth@redhat.com>
51486
51487         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
51488         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
51489         * sysdeps/unix/sysv/linux/alpha: Move directory from
51490         ports/sysdeps/unix/sysv/linux/alpha.
51491         * README: Update listing for alpha-*-linux-gnu.
51492
51493 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
51494
51495         * include/features.h: Update comment documenting feature test
51496         macros.
51497         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
51498         _DEFAULT_SOURCE.
51499         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
51500         (_SVID_SOURCE): Likewise.
51501         (_DEFAULT_SOURCE): Update description of default features.
51502         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
51503         with _GNU_SOURCE.
51504         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
51505         (S_ISVTX): Likewise.
51506         * manual/math.texi (Mathematical Constants): Likewise.
51507         * manual/signal.texi (Interrupted Primitives): Likewise.
51508         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
51509         * math/test-matherr.c (_SVID_SOURCE): Do not define.
51510         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
51511         Don't refer to _SVID_SOURCE in warning text.
51512
51513         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51514
51515         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
51516         already defined.
51517         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
51518         * sysdeps/mips/dl-lookup.c: Remove.
51519         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
51520
51521 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51522
51523         [BZ #16447]
51524         * math/auto-libm-test-in: Add testcase for expl.
51525         * math/auto-libm-test-out: Regenerate.
51526         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
51527         calculation of unsafe.
51528         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
51529
51530 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51531
51532         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
51533         * sysdeps/unix/sysv/linux/aarch64: Move directory from
51534         ports/sysdeps/unix/sysv/linux/aarch64.
51535         * README: Update listing for aarch64*-*-linux-gnu.
51536
51537 2014-02-11  Will Newton  <will.newton@linaro.org>
51538
51539         * manual/probes.texi (Mathematical Function Probes): Use
51540         "triggered" instead of "hit".
51541
51542         * manual/probes.texi (Internal Probes): Add documentation
51543         of setjmp, longjmp and longjmp_target probes.
51544
51545         * include/stap-probe.h: Add comment about probe argument
51546         format.
51547
51548         * malloc/mtrace.c (attribute_hidden): Remove unused macro
51549         definition.  (tr_where, tr_freehook, tr_mallochook,
51550         tr_reallochook, tr_memalignhook): Use ANSI protoype.
51551
51552 2014-02-11  David S. Miller  <davem@davemloft.net>
51553
51554         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
51555         processing int_tests.
51556
51557 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
51558
51559         * sysdeps/mips: Move directory from ports/sysdeps/mips.
51560         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
51561         * sysdeps/unix/sysv/linux/mips: Move directory from
51562         ports/sysdeps/unix/sysv/linux/mips.
51563         * README: Update listing for mips-*-linux-gnu and
51564         mips64-*-linux-gnu.
51565
51566 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
51567
51568         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
51569         * sysdeps/unix/sysv/linux/m68k: Move directory from
51570         ports/sysdeps/unix/sysv/linux/m68k.
51571         * README: Update listing for m68k-*-linux-gnu.
51572
51573 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
51574
51575         * sysdeps/tile: Move directory from ports/sysdeps/tile.
51576         * sysdeps/unix/sysv/linux/generic: Move directory from
51577         ports/sysdeps/unix/sysv/linux/generic.
51578         * sysdeps/unix/sysv/linux/tile: Move directory from
51579         ports/sysdeps/unix/sysv/linux/tile.
51580         * README: Update listing for tile*-*-linux-gnu.
51581
51582 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
51583
51584         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
51585         __builtin_expect.
51586         * benchtests/bench-memmem.c (simple_memmem): Likewise.
51587         * catgets/open_catalog.c (__open_catalog): Likewise.
51588         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
51589         * debug/confstr_chk.c: Likewise.
51590         * debug/fread_chk.c (__fread_chk): Likewise.
51591         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
51592         * debug/getgroups_chk.c: Likewise.
51593         * debug/mbsnrtowcs_chk.c: Likewise.
51594         * debug/mbsrtowcs_chk.c: Likewise.
51595         * debug/mbstowcs_chk.c: Likewise.
51596         * debug/memcpy_chk.c: Likewise.
51597         * debug/memmove_chk.c: Likewise.
51598         * debug/mempcpy_chk.c: Likewise.
51599         * debug/memset_chk.c: Likewise.
51600         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
51601         * debug/strcat_chk.c (__strcat_chk): Likewise.
51602         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
51603         * debug/strncat_chk.c (__strncat_chk): Likewise.
51604         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
51605         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
51606         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
51607         * debug/wcpncpy_chk.c: Likewise.
51608         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
51609         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
51610         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
51611         * debug/wcsncpy_chk.c: Likewise.
51612         * debug/wcsnrtombs_chk.c: Likewise.
51613         * debug/wcsrtombs_chk.c: Likewise.
51614         * debug/wcstombs_chk.c: Likewise.
51615         * debug/wmemcpy_chk.c: Likewise.
51616         * debug/wmemmove_chk.c: Likewise.
51617         * debug/wmempcpy_chk.c: Likewise.
51618         * debug/wmemset_chk.c: Likewise.
51619         * dirent/scandirat.c (SCANDIRAT): Likewise.
51620         * dlfcn/dladdr1.c (dladdr1): Likewise.
51621         * dlfcn/dladdr.c (dladdr): Likewise.
51622         * dlfcn/dlclose.c (dlclose_doit): Likewise.
51623         * dlfcn/dlerror.c (__dlerror): Likewise.
51624         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
51625         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
51626         * dlfcn/dlopen.c (dlopen_doit): Likewise.
51627         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
51628         * dlfcn/dlsym.c (dlsym_doit): Likewise.
51629         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
51630         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
51631         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
51632         Likewise.
51633         * elf/dl-conflict.c: Likewise.
51634         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
51635         * elf/dl-dst.h: Likewise.
51636         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
51637         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
51638         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
51639         * elf/dl-init.c (call_init, _dl_init): Likewise.
51640         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
51641         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
51642         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
51643         Likewise.
51644         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
51645         Likewise.
51646         * elf/dl-minimal.c (__libc_memalign): Likewise.
51647         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
51648         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
51649         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
51650         * elf/dl-sym.c (do_sym): Likewise.
51651         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
51652         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
51653         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
51654         * elf/dl-writev.h (_dl_writev): Likewise.
51655         * elf/ldconfig.c (search_dir): Likewise.
51656         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
51657         (dl_main): Likewise.
51658         * elf/setup-vdso.h (setup_vdso): Likewise.
51659         * grp/compat-initgroups.c (compat_call): Likewise.
51660         * grp/fgetgrent.c (fgetgrent): Likewise.
51661         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
51662         * grp/putgrent.c (putgrent): Likewise.
51663         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
51664         Likewise.
51665         * hurd/hurdinit.c: Likewise.
51666         * iconvdata/8bit-gap.c (struct): Likewise.
51667         * iconvdata/ansi_x3.110.c : Likewise.
51668         * iconvdata/big5.c : Likewise.
51669         * iconvdata/big5hkscs.c : Likewise.
51670         * iconvdata/cp1255.c: Likewise.
51671         * iconvdata/cp1258.c : Likewise.
51672         * iconvdata/cp932.c : Likewise.
51673         * iconvdata/euc-cn.c: Likewise.
51674         * iconvdata/euc-jisx0213.c : Likewise.
51675         * iconvdata/euc-jp.c: Likewise.
51676         * iconvdata/euc-jp-ms.c : Likewise.
51677         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
51678         * iconvdata/gb18030.c : Likewise.
51679         * iconvdata/gbbig5.c (const): Likewise.
51680         * iconvdata/gbgbk.c: Likewise.
51681         * iconvdata/gbk.c : Likewise.
51682         * iconvdata/ibm1364.c : Likewise.
51683         * iconvdata/ibm930.c : Likewise.
51684         * iconvdata/ibm932.c: Likewise.
51685         * iconvdata/ibm933.c : Likewise.
51686         * iconvdata/ibm935.c : Likewise.
51687         * iconvdata/ibm937.c : Likewise.
51688         * iconvdata/ibm939.c : Likewise.
51689         * iconvdata/ibm943.c: Likewise.
51690         * iconvdata/iso_11548-1.c: Likewise.
51691         * iconvdata/iso-2022-cn.c : Likewise.
51692         * iconvdata/iso-2022-cn-ext.c : Likewise.
51693         * iconvdata/iso-2022-jp-3.c: Likewise.
51694         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
51695         * iconvdata/iso-2022-kr.c : Likewise.
51696         * iconvdata/iso646.c (gconv_end): Likewise.
51697         * iconvdata/iso_6937-2.c : Likewise.
51698         * iconvdata/iso_6937.c : Likewise.
51699         * iconvdata/iso8859-1.c: Likewise.
51700         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
51701         * iconvdata/shift_jisx0213.c : Likewise.
51702         * iconvdata/sjis.c : Likewise.
51703         * iconvdata/t.61.c : Likewise.
51704         * iconvdata/tcvn5712-1.c : Likewise.
51705         * iconvdata/tscii.c: Likewise.
51706         * iconvdata/uhc.c : Likewise.
51707         * iconvdata/unicode.c (gconv_end): Likewise.
51708         * iconvdata/utf-16.c (gconv_end): Likewise.
51709         * iconvdata/utf-32.c (gconv_end): Likewise.
51710         * iconvdata/utf-7.c (base64): Likewise.
51711         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
51712         * iconv/gconv_close.c (__gconv_close): Likewise.
51713         * iconv/gconv_open.c (__gconv_open): Likewise.
51714         * iconv/gconv_simple.c (internal_ucs4_loop_single)
51715         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
51716         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
51717         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
51718         (ucs4le_internal_loop_single): Likewise.
51719         * iconv/iconv.c (iconv): Likewise.
51720         * iconv/iconv_close.c: Likewise.
51721         * iconv/loop.c (SINGLE): Likewise.
51722         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
51723         * include/atomic.h: Likewise.
51724         * inet/inet6_option.c (option_alloc): Likewise.
51725         * intl/bindtextdom.c (set_binding_values): Likewise.
51726         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
51727         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
51728         * intl/localealias.c (read_alias_file): Likewise.
51729         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
51730         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
51731         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
51732         * libio/fmemopen.c (fmemopen): Likewise.
51733         * libio/iofgets.c (_IO_fgets): Likewise.
51734         * libio/iofgets_u.c (fgets_unlocked): Likewise.
51735         * libio/iofgetws.c (fgetws): Likewise.
51736         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
51737         * libio/iogetdelim.c (_IO_getdelim): Likewise.
51738         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
51739         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
51740         * locale/findlocale.c (_nl_find_locale): Likewise.
51741         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
51742         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
51743         Likewise.
51744         * locale/setlocale.c (setlocale): Likewise.
51745         * login/programs/pt_chown.c (main): Likewise.
51746         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
51747         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
51748         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
51749         (mmap, mmap64, mremap, munmap): Likewise.
51750         * math/e_exp2l.c: Likewise.
51751         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
51752         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
51753         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
51754         * math/s_catan.c (__catan): Likewise.
51755         * math/s_catanf.c (__catanf): Likewise.
51756         * math/s_catanh.c (__catanh): Likewise.
51757         * math/s_catanhf.c (__catanhf): Likewise.
51758         * math/s_catanhl.c (__catanhl): Likewise.
51759         * math/s_catanl.c (__catanl): Likewise.
51760         * math/s_ccosh.c (__ccosh): Likewise.
51761         * math/s_ccoshf.c (__ccoshf): Likewise.
51762         * math/s_ccoshl.c (__ccoshl): Likewise.
51763         * math/s_cexp.c (__cexp): Likewise.
51764         * math/s_cexpf.c (__cexpf): Likewise.
51765         * math/s_cexpl.c (__cexpl): Likewise.
51766         * math/s_clog10.c (__clog10): Likewise.
51767         * math/s_clog10f.c (__clog10f): Likewise.
51768         * math/s_clog10l.c (__clog10l): Likewise.
51769         * math/s_clog.c (__clog): Likewise.
51770         * math/s_clogf.c (__clogf): Likewise.
51771         * math/s_clogl.c (__clogl): Likewise.
51772         * math/s_csin.c (__csin): Likewise.
51773         * math/s_csinf.c (__csinf): Likewise.
51774         * math/s_csinh.c (__csinh): Likewise.
51775         * math/s_csinhf.c (__csinhf): Likewise.
51776         * math/s_csinhl.c (__csinhl): Likewise.
51777         * math/s_csinl.c (__csinl): Likewise.
51778         * math/s_csqrt.c (__csqrt): Likewise.
51779         * math/s_csqrtf.c (__csqrtf): Likewise.
51780         * math/s_csqrtl.c (__csqrtl): Likewise.
51781         * math/s_ctan.c (__ctan): Likewise.
51782         * math/s_ctanf.c (__ctanf): Likewise.
51783         * math/s_ctanh.c (__ctanh): Likewise.
51784         * math/s_ctanhf.c (__ctanhf): Likewise.
51785         * math/s_ctanhl.c (__ctanhl): Likewise.
51786         * math/s_ctanl.c (__ctanl): Likewise.
51787         * math/w_pow.c: Likewise.
51788         * math/w_powf.c: Likewise.
51789         * math/w_powl.c: Likewise.
51790         * math/w_scalb.c (sysv_scalb): Likewise.
51791         * math/w_scalbf.c (sysv_scalbf): Likewise.
51792         * math/w_scalbl.c (sysv_scalbl): Likewise.
51793         * misc/error.c (error_tail): Likewise.
51794         * misc/pselect.c (__pselect): Likewise.
51795         * nis/nis_callback.c (__nis_create_callback): Likewise.
51796         * nis/nis_call.c (__nisfind_server): Likewise.
51797         * nis/nis_creategroup.c (nis_creategroup): Likewise.
51798         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
51799         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
51800         * nis/nis_getservlist.c (nis_getservlist): Likewise.
51801         * nis/nis_lookup.c (nis_lookup): Likewise.
51802         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
51803         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
51804         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
51805         * nis/nis_xdr.c (xdr_endpoint): Likewise.
51806         * nis/nss_compat/compat-grp.c (getgrent_next_file)
51807         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
51808         * nis/nss_compat/compat-initgroups.c (add_group)
51809         (internal_getgrent_r): Likewise.
51810         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
51811         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
51812         * nis/nss_compat/compat-spwd.c (getspent_next_file)
51813         (internal_getspnam_r): Likewise.
51814         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
51815         (_nss_nis_getaliasbyname_r): Likewise.
51816         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
51817         (_nss_nis_getntohost_r): Likewise.
51818         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
51819         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
51820         (_nss_nis_getgrgid_r): Likewise.
51821         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
51822         (internal_nis_gethostent_r, internal_gethostbyname2_r)
51823         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
51824         (_nss_nis_gethostbyname4_r): Likewise.
51825         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
51826         (initgroups_netid): Likewise.
51827         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
51828         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
51829         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
51830         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
51831         (_nss_nis_getprotobynumber_r): Likewise.
51832         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
51833         (_nss_nis_getsecretkey): Likewise.
51834         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
51835         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
51836         (_nss_nis_getpwuid_r): Likewise.
51837         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
51838         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
51839         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
51840         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
51841         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
51842         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
51843         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
51844         Likewise.
51845         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
51846         (_nss_nisplus_getntohost_r): Likewise.
51847         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
51848         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
51849         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
51850         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
51851         Likewise.
51852         * nis/nss_nisplus/nisplus-initgroups.c
51853         (_nss_nisplus_initgroups_dyn): Likewise.
51854         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
51855         (_nss_nisplus_getnetbyaddr_r): Likewise.
51856         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
51857         (_nss_nisplus_getprotobynumber_r): Likewise.
51858         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
51859         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
51860         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
51861         Likewise.
51862         * nis/nss_nisplus/nisplus-service.c
51863         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
51864         (_nss_nisplus_getservbyport_r): Likewise.
51865         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
51866         (_nss_nisplus_getspnam_r): Likewise.
51867         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
51868         Likewise.
51869         * nscd/aicache.c (addhstaiX): Likewise.
51870         * nscd/cache.c (cache_search, prune_cache): Likewise.
51871         * nscd/connections.c (register_traced_file, send_ro_fd)
51872         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
51873         (main_loop_epoll): Likewise.
51874         * nscd/grpcache.c (addgrbyX): Likewise.
51875         * nscd/hstcache.c (addhstbyX): Likewise.
51876         * nscd/initgrcache.c (addinitgroupsX): Likewise.
51877         * nscd/mem.c (gc, mempool_alloc): Likewise.
51878         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
51879         (addinnetgrX): Likewise.
51880         * nscd/nscd-client.h (__nscd_acquire_maplock)
51881         (__nscd_drop_map_ref): Likewise.
51882         * nscd/nscd_getai.c (__nscd_getai): Likewise.
51883         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
51884         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
51885         Likewise.
51886         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
51887         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
51888         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
51889         (__nscd_get_map_ref): Likewise.
51890         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
51891         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
51892         Likewise.
51893         * nscd/pwdcache.c (addpwbyX): Likewise.
51894         * nscd/selinux.c (preserve_capabilities): Likewise.
51895         * nscd/servicescache.c (addservbyX): Likewise.
51896         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
51897         * posix/fnmatch.c (fnmatch): Likewise.
51898         * posix/getopt.c (_getopt_internal_r): Likewise.
51899         * posix/glob.c (glob, glob_in_dir): Likewise.
51900         * posix/wordexp.c (exec_comm_child): Likewise.
51901         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
51902         (getanswer_r, gaih_getanswer_slice): Likewise.
51903         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
51904         * resolv/res_init.c: Likewise.
51905         * resolv/res_mkquery.c (res_nmkquery): Likewise.
51906         * resolv/res_query.c (__libc_res_nquery): Likewise.
51907         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
51908         Likewise.
51909         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
51910         * stdio-common/perror.c (perror): Likewise.
51911         * stdio-common/printf_fp.c (___printf_fp): Likewise.
51912         * stdio-common/tmpnam.c (tmpnam): Likewise.
51913         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
51914         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
51915         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
51916         Likewise.
51917         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
51918         * stdlib/putenv.c (putenv): Likewise.
51919         * stdlib/setenv.c (__add_to_environ): Likewise.
51920         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
51921         * stdlib/strtol_l.c (INTERNAL): Likewise.
51922         * string/memmem.c (memmem): Likewise.
51923         * string/strerror.c (strerror): Likewise.
51924         * string/strnlen.c (__strnlen): Likewise.
51925         * string/test-memmem.c (simple_memmem): Likewise.
51926         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
51927         * sunrpc/pm_getport.c (__get_socket): Likewise.
51928         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
51929         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
51930         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
51931         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
51932         Likewise.
51933         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
51934         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
51935         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
51936         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
51937         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
51938         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
51939         Likewise.
51940         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
51941         Likewise.
51942         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
51943         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
51944         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
51945         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
51946         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
51947         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
51948         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
51949         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
51950         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
51951         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
51952         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
51953         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
51954         Likewise.
51955         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
51956         Likewise.
51957         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
51958         Likewise.
51959         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
51960         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
51961         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
51962         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
51963         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
51964         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
51965         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
51966         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
51967         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
51968         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
51969         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
51970         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
51971         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
51972         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
51973         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
51974         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
51975         Likewise.
51976         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
51977         Likewise.
51978         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
51979         Likewise.
51980         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
51981         Likewise.
51982         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
51983         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
51984         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
51985         Likewise.
51986         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
51987         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
51988         * sysdeps/posix/opendir.c (__opendirat): Likewise.
51989         * sysdeps/posix/sleep.c: Likewise.
51990         * sysdeps/posix/tempname.c: Likewise.
51991         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
51992         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
51993         Likewise.
51994         * sysdeps/powerpc/powerpc32/dl-machine.h
51995         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
51996         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
51997         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
51998         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
51999         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
52000         Likewise.
52001         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
52002         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
52003         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
52004         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
52005         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
52006         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
52007         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
52008         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
52009         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52010         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
52011         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
52012         (elf_machine_lazy_rel): Likewise.
52013         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
52014         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
52015         (elf_machine_lazy_rel): Likewise.
52016         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
52017         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
52018         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
52019         * sysdeps/unix/grantpt.c (grantpt): Likewise.
52020         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
52021         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
52022         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
52023         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
52024         Likewise.
52025         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
52026         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
52027         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
52028         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
52029         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52030         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52031         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
52032         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
52033         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
52034         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52035         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
52036         Likewise.
52037         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
52038         (__posix_fallocate64_l64): Likewise.
52039         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
52040         (posix_fallocate): Likewise.
52041         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
52042         Likewise.
52043         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
52044         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
52045         (getifaddrs_internal): Likewise.
52046         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
52047         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
52048         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
52049         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
52050         * sysdeps/unix/sysv/linux/posix_fallocate64.c
52051         (__posix_fallocate64_l64): Likewise.
52052         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
52053         Likewise.
52054         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
52055         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
52056         (__get_clockfreq): Likewise.
52057         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
52058         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
52059         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
52060         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
52061         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
52062         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
52063         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
52064         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
52065         Likewise.
52066         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
52067         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
52068         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
52069         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
52070         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
52071         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
52072         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
52073         Likewise.
52074         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
52075         (posix_fallocate): Likewise.
52076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
52077         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
52078         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
52079         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
52080         (elf_machine_rela, elf_machine_rela_relative)
52081         (elf_machine_lazy_rel): Likewise.
52082         * time/asctime.c (asctime_internal): Likewise.
52083         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
52084         * time/tzset.c (__tzset_parse_tz): Likewise.
52085         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
52086         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
52087         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
52088         * wcsmbs/wcsmbsload.h: Likewise.
52089
52090         [BZ #15894]
52091         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
52092
52093         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
52094         (arena_get2): Remove THREAD_STATS conditionals.
52095         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
52096         (__malloc_stats, int): Likewise.
52097
52098 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
52099
52100         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
52101         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
52102
52103         * manual/setjmp.texi: Fix typos/grammar errors.
52104
52105         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
52106         Only return early when n is <= 0.  Delete unused return statement.
52107
52108         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
52109         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
52110         * debug/tst-longjmp_chk3.c: New file.
52111
52112         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
52113         (test_main): Replace code with set_fortify_handler call.
52114         * debug/test-strcpy_chk.c: Likewise.
52115         * debug/tst-chk1.c: Likewise.
52116         * debug/tst-longjmp_chk.c: Likewise.
52117         * test-skeleton.c: Include fcntl.h & paths.h
52118         (set_fortify_handler): Define.
52119
52120         * debug/tst-longjmp_chk.c: Add header comment and include
52121         ../test-skeleton.c.
52122         (do_test): Mark static.
52123         (TEST_FUNCTION): Define.
52124
52125         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
52126         (IP_PMTUDISC_INTERFACE): Likewise.
52127         (IP_MULTICAST_IF): Likewise.
52128         (IP_MULTICAST_TTL): Likewise.
52129         (IP_MULTICAST_LOOP): Likewise.
52130         (IP_ADD_MEMBERSHIP): Likewise.
52131         (IP_DROP_MEMBERSHIP): Likewise.
52132         (IP_UNBLOCK_SOURCE): Likewise.
52133         (IP_BLOCK_SOURCE): Likewise.
52134         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
52135         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
52136         (IP_MSFILTER): Likewise.
52137         (MCAST_JOIN_GROUP): Likewise.
52138         (MCAST_BLOCK_SOURCE): Likewise.
52139         (MCAST_UNBLOCK_SOURCE): Likewise.
52140         (MCAST_LEAVE_GROUP): Likewise.
52141         (MCAST_JOIN_SOURCE_GROUP): Likewise.
52142         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
52143         (MCAST_MSFILTER): Likewise.
52144         (IP_MULTICAST_ALL): Likewise.
52145         (IP_UNICAST_IF): Likewise.
52146
52147         * timezone/Makefile: Delete $(have-ksh) check.
52148         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
52149         * timezone/tzselect.ksh: Add +x mode bits.
52150
52151         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
52152         (ANON_INODE_FS_MAGIC): Likewise.
52153         (BDEVFS_MAGIC): Likewise.
52154         (BINFMTFS_MAGIC): Likewise.
52155         (BTRFS_TEST_MAGIC): Likewise.
52156         (CRAMFS_MAGIC_WEND): Likewise.
52157         (DEBUGFS_MAGIC): Likewise.
52158         (ECRYPTFS_SUPER_MAGIC): Likewise.
52159         (EXT3_SUPER_MAGIC): Likewise.
52160         (EXT4_SUPER_MAGIC): Likewise.
52161         (FUTEXFS_SUPER_MAGIC): Likewise.
52162         (HOSTFS_SUPER_MAGIC): Likewise.
52163         (HUGETLBFS_MAGIC): Likewise.
52164         (MINIX3_SUPER_MAGIC): Likewise.
52165         (MTD_INODE_FS_MAGIC): Likewise.
52166         (NILFS_SUPER_MAGIC): Likewise.
52167         (OPENPROM_SUPER_MAGIC): Likewise.
52168         (PIPEFS_MAGIC): Likewise.
52169         (PSTOREFS_MAGIC): Likewise.
52170         (QNX6_SUPER_MAGIC): Likewise.
52171         (RAMFS_MAGIC): Likewise.
52172         (REISERFS_SUPER_MAGIC_STRING): Likewise.
52173         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
52174         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
52175         (SECURITYFS_MAGIC): Likewise.
52176         (SELINUX_MAGIC): Likewise.
52177         (SMACK_MAGIC): Likewise.
52178         (SOCKFS_MAGIC): Likewise.
52179         (SQUASHFS_MAGIC): Likewise.
52180         (STACK_END_MAGIC): Likewise.
52181         (TMPFS_MAGIC): Likewise.
52182         (USBDEVICE_SUPER_MAGIC): Likewise.
52183         (V9FS_MAGIC): Likewise.
52184         (XENFS_SUPER_MAGIC): Likewise.
52185         (CRAMFS_MAGIC): Fix typo in comment.
52186         (EXT2_SUPER_MAGIC): Update comment.
52187         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
52188
52189 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
52190
52191         * sysdeps/arm: Move directory from ports/sysdeps/arm.
52192         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
52193         * sysdeps/unix/sysv/linux/arm: Move directory from
52194         ports/sysdeps/unix/sysv/linux/arm.
52195         * README: Update listing for arm-*-linux-gnueabi.
52196
52197         * README: Remove mention of am33.
52198
52199 2014-02-07  Roland McGrath  <roland@hack.frob.com>
52200
52201         * bits/sigset.h (__sigemptyset): Use a statement expression rather
52202         than the comma operator, to avoid "rhs of comma has no effect"
52203         compiler warnings.
52204         (__sigfillset, __sigandset, __sigorset): Likewise.
52205         * include/signal.h (__sigemptyset): Likewise.
52206         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
52207
52208 2014-02-07  Allan McRae  <allan@archlinux.org>
52209
52210         * version.h (RELEASE): Set to "development".
52211         (VERSION): Set to "2.19.90"
52212         * NEWS: Add 2.20 section.
52213
52214 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
52215
52216         [BZ #16529]
52217         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
52218
52219 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
52220
52221         * manual/contrib.texi: Update entry for Carlos O'Donell,
52222         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
52223
52224 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
52225
52226         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
52227
52228         * sysdeps/unix/sysv/linux/kernel-features.h
52229         [__LINUX_KERNEL_VERSION >= 0x020621]
52230         (__ASSUME_PROC_PID_TASK_COMM): Define.
52231
52232 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52233
52234         [BZ #16398]
52235         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
52236         conversion when destination buffer does not have enough space.
52237         * libio/tst-ftell-partial-wide.c: New test case.
52238         * libio/Makefile (tests): Add tst-ftell-partial-wide.
52239
52240         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
52241         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
52242         Leonard and Allan McRae.
52243
52244 2014-02-04  David S. Miller  <davem@davemloft.net>
52245
52246         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
52247         32-bit.
52248
52249 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52250
52251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
52252         New file
52253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
52254         New file
52255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
52256         New file.
52257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
52258         New file.
52259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
52260         New file.
52261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
52262         New file.
52263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
52264         New file.
52265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
52266         New file.
52267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
52268         New file.
52269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
52270         New file.
52271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
52272         New file.
52273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
52274         New file.
52275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
52276         New file.
52277
52278 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52279
52280         * nptl/shlib-versions: Change powerpc*le start to 2.17.
52281         * shlib-versions: Likewise.
52282
52283 2014-02-04  Roland McGrath  <roland@hack.frob.com>
52284             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52285
52286         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
52287         (abilist-pattern): New variable, set to %-le.abilist.
52288
52289         * Makerules (abilist-pattern): New variable.
52290         (vpath): Use $(abilist-pattern) in place of %.abilist.
52291         (check-abi-% pattern rule): Likewise.
52292         (check-abi, update-abi): Likewise.
52293
52294 2014-02-04  Eric Wong  <normalperson@yhbt.net>
52295
52296         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52297
52298 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
52299
52300         * manual/startup.texi: Add next, previous, and top entries for
52301         the `Program Arguments' and `Environment Variables' nodes.
52302
52303 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
52304
52305         * manual/macros.texi: Add comments before MTASC-safety macros.
52306
52307         * manual/users.texi: Document MTASC-safety properties.
52308
52309         * manual/threads.texi (pthread_key_create, pthread_key_delete)
52310         (pthread_getspecific, pthread_setspecific): Format with
52311         @deftypefun, and add @safety note.
52312         * manual/signal.texi: Move comments that analyze the above
52313         functions to their home place.
52314
52315 2014-02-03  Allan McRae  <allan@archlinux.org>
52316
52317         * po/sl.po: Update Slovenian translation from translation project.
52318
52319 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
52320
52321         * manual/time.texi (timegm): Add missing blank after @c.
52322         Reported by Joseph Myers <joseph@codesourcery.com>.
52323
52324 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
52325
52326         * manual/check-safety.sh: New.
52327         * manual/Makefile ($(objpfx)stamp-summary): Run it.
52328
52329         * manual/terminal.texi: Document MTASC-safety properties.
52330
52331         * manual/filesys.texi: Document MTASC-safety properties.
52332
52333         * manual/errno.texi: Document MTASC-safety properties.
52334
52335         * manual/intro.texi: Document safety identifiers and
52336         conditionals.
52337
52338         * manual/string.texi (wcstok): Fix prototype.
52339         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
52340
52341         * manual/time.texi: Document MTASC-safety properties.
52342
52343         * manual/string.texi: Document MTASC-safety properties.
52344
52345         * manual/threads.texi: Document MTASC-safety properties.
52346
52347         * manual/stdio.texi: Document MTASC-safety properties.
52348
52349         * manual/syslog.texi: Document MTASC-safety properties.
52350
52351         * manual/sysinfo.texi: Document MTASC-safety properties.
52352
52353         * manual/startup.texi: Document MTASC-safety properties.
52354
52355         * manual/socket.texi: Document MTASC-safety properties.
52356
52357         * manual/signal.texi: Document MTASC-safety properties.
52358
52359 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
52360
52361         * manual/setjmp.texi: Document MTASC-safety properties.
52362
52363         * manual/search.texi: Document MTASC-safety properties.
52364
52365         * manual/resource.texi: Document MTASC-safety properties.
52366
52367         * manual/process.texi: Document MTASC-safety properties.
52368
52369         * manual/platform.texi: Document MTASC-safety properties.
52370
52371         * manual/pipe.texi: Document MTASC-safety properties.
52372
52373         * manual/pattern.texi: Document MTASC-safety properties.
52374
52375         * manual/message.texi: Document MTASC-safety properties.
52376
52377         [BZ #12751]
52378         * manual/memory.texi: Document MTASC-safety properties.
52379
52380         * manual/math.texi: Document MTASC-safety properties.
52381
52382         * manual/locale.texi: Document MTASC-safety properties.
52383
52384         * manual/llio.texi: Document MTASC-safety properties.
52385
52386         * manual/libdl.texi: New.
52387
52388         * manual/lang.texi: Document MTASC-safety properties.
52389
52390         * manual/job.texi: Document MTASC-safety properties.
52391
52392         * manual/getopt.texi: Document MTASC-safety properties.
52393
52394         * manual/ctype.texi: Document MTASC-safety properties.
52395
52396 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
52397
52398         [BZ #16046]
52399         * csu/libc-tls.c (static_map): Remove variable.
52400         (__libc_setup_tls): Use main executable's link map for TLS data.
52401         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
52402         casing for LM_ID_BASE and GL(dl_nns).
52403         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
52404         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
52405         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
52406         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
52407         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
52408         member.
52409         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
52410         l_phnum members.
52411
52412 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
52413
52414         * manual/debug.texi: Document MTASC-safety properties.
52415
52416 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
52417
52418         [BZ #16510]
52419         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
52420         of __x86_64__ when disabling x87 inline functions.
52421
52422 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52423
52424         * manual/charset.texi: Document MTASC-safety properties.
52425
52426         * manual/crypt.texi: Document MTASC-safety properties.
52427
52428         * manual/conf.texi: Document MTASC-safety properties.
52429
52430         * manual/arith.texi: Document MTASC-safety properties.
52431
52432         * manual/argp.texi: Document MTASC-safety properties.
52433
52434         * manual/macros.texi: Introduce macros to document multi
52435         thread, asynchronous signal and asynchronous cancellation
52436         safety properties.
52437         * manual/intro.texi: Introduce the properties themselves.
52438
52439 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52440
52441         * sysdeps/sh/sh4/Makefile: New file.
52442
52443 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
52444
52445         * math/gen-libm-test.pl ($srcdir): New variable.
52446         ($auto_input): Use it.
52447
52448 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
52449
52450         [BZ #16506]
52451         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
52452         access beyond array bounds when parsing netgroups file.
52453
52454         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
52455         the old buffer before realloc.
52456
52457 2014-01-27  Allan McRae  <allan@archlinux.org>
52458
52459         * po/fr.po: Update French translation from translation project.
52460
52461 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52462
52463         * sysdeps/sh/libm-test-ulps: Regenerate.
52464
52465 2014-01-24  David S. Miller  <davem@davemloft.net>
52466
52467         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
52468
52469 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52470
52471         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
52472         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
52473
52474 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52475
52476         [BZ #16474]
52477         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
52478         string pointers after reallocation.
52479
52480 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52481
52482         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
52483         __SH4A__ instead of __SH_FPU_ANY__.
52484
52485 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52486
52487         * sysdeps/sh/fpu_control.h: New file.
52488         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
52489         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
52490         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
52491         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
52492         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
52493         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
52494         * sysdeps/sh/sys/ucontext.h: Remove.
52495         * sysdeps/sh/sys: Remove directory.
52496
52497 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52498
52499         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
52500         s390/sys/ucontext.h.
52501         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
52502         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
52503
52504 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
52505
52506         [BZ #15605]
52507         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
52508
52509 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52510
52511         [BZ #16431]
52512         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
52513         Adjust the vDSO correctly for internal calls.
52514         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
52515
52516 2014-01-20  Allan McRae  <allan@archlinux.org>
52517
52518         * po/ca.po: Update Catalan translation from translation project.
52519
52520 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
52521
52522         * sysdeps/s390/sotruss-lib.c: New file.
52523
52524 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52525
52526         [BZ #16430]
52527         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
52528         (__GI___gettimeofday): Alias for a different internal symbol to avoid
52529         local calls issues by not having a PLT stub required for IFUNC calls.
52530         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
52531
52532 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
52533
52534         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
52535         * math/test-fpucw-static.c: Likewise.
52536
52537 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52538
52539         [BZ #16453]
52540         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
52541
52542 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52543
52544         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
52545         implementation for powerpc.
52546
52547 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
52548
52549         [BZ #14782]
52550         * sysdeps/posix/system.c (__libc_system): Do not enable
52551         asynchronous cancellation.
52552
52553 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52554
52555         [BZ #16427]
52556         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
52557         handling only for numbers special also in the IEEE case.
52558
52559 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52560
52561         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
52562
52563 2014-01-11  Allan McRae  <allan@archlinux.org>
52564
52565         * po/bg.po: Update Bulgarian translation from translation project.
52566
52567         * po/de.po: Update German translation from translation project.
52568
52569 2014-01-10  Roland McGrath  <roland@hack.frob.com>
52570
52571         * sysdeps/generic/gcc-compat.h: New file.
52572
52573 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52574
52575         * benchtests/asin-inputs: Correct slow inputs.
52576         * benchtests/acos-inputs: Likewise.
52577
52578 2014-01-10  Allan McRae  <allan@archlinux.org>
52579
52580         * po:sv.po: Update Swedish translation from translation project.
52581
52582         * po/vi.po: Update Vietnamese translation from translation project.
52583
52584         * po/eo.po: Update Esperanto translation from translation project.
52585
52586         * po/cs.po: Update Czech translation from translation project.
52587
52588         * po/nl.po: Update Dutch translation from translation project.
52589
52590         * po/pl.po: Update Polish translation from translation project.
52591
52592         * po/ru.po: Update Russian translation from translation project.
52593
52594         * po/uk.po: Update Ukrainian translation from translation project.
52595
52596 2014-01-08  Brooks Moses  <bmoses@google.com>
52597
52598         * elf/dl-load.c: Fix comment typo.
52599
52600 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
52601
52602         * po/header.pot: Rename to...
52603         * po/pot.header: ... this.
52604         * po/Makefile: Use pot.header.
52605
52606 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
52607             Maxim Kuvyrkov  <maxim@kugelworks.com>
52608
52609         [BZ #16394]
52610         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
52611         SRC and DEST against LEN.
52612
52613 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52614
52615         [BZ #16414]
52616         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
52617         implementation.
52618         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
52619
52620 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52621
52622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52623
52624 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
52625
52626         [BZ #16408]
52627         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
52628         for large positive arguments.
52629
52630 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
52631
52632         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52633
52634         * math/auto-libm-test-in: Mark various tests with
52635         xfail-rounding:ldbl-128ibm.
52636         * math/auto-libm-test-out: Regenerated.
52637
52638         [BZ #16407]
52639         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
52640         Increase overflow threshold.
52641
52642 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
52643
52644         [BZ #14286]
52645         * stdio-common/vfprintf.c: Check for integer overflow.
52646
52647 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52648
52649         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
52650         the first argument and return value of __tls_get_addr_internal.
52651
52652 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52653
52654         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
52655         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
52656
52657 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52658
52659         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
52660         * sysdeps/s390/rtld-global-offsets.sym: New file.
52661         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
52662         GLIBC_2.19 symbol.
52663         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
52664         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
52665         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
52666         ... this.
52667         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
52668         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
52669         ... this.
52670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52671         Regenerate.
52672         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52673         Regenerate.
52674         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
52675         halfs of GPRs for high_gprs contexts.
52676         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
52677         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
52678         field.
52679         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
52680         uc_flags field.
52681         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
52682         64 bit versions:
52683         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
52684         for high GPRs (uc_high_gprs) and for future extensions
52685         (__reserved).
52686         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
52687         for future extensions (__reserved).
52688         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
52689         64 bit versions:
52690         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
52691         SC_HIGHGPRS offset definition.
52692         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
52693         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
52694
52695         * Versions.def: Add GLIBC_2.19 for libpthread.
52696         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
52697         siglongjmp for libpthread with GLIBC_2.19 symver.
52698         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
52699         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
52700         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
52701         * sysdeps/s390/__longjmp.c: New file.
52702         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
52703         * sysdeps/s390/longjmp.c: New file.
52704         * sysdeps/s390/setjmp.S: New file.
52705         * sysdeps/s390/sigjmp.S: New file.
52706         * sysdeps/s390/v1-longjmp.c: New file.
52707         * sysdeps/s390/v1-setjmp.h: New file.
52708         * sysdeps/s390/v1-sigjmp.c: New file.
52709         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
52710         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
52711         GLIBC_2.19 version.
52712         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
52713         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
52714         versioned symbols for ____longjmp_chk.
52715         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
52716         Likewise.
52717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52718         Regenerate.
52719         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52720         Regenerate.
52721         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52722         Regenerate.
52723         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52724         Regenerate.
52725         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
52726         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
52727         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
52728         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
52729         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
52730         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
52731         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
52732         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
52733         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
52734         * sysdeps/s390/rtld-__longjmp.c: New file.
52735         * sysdeps/s390/rtld-setjmp.S: New file.
52736
52737 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
52738
52739         [BZ #16400]
52740         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52741         Return -__logl (x) for small positive arguments without evaluating
52742         a polynomial.
52743
52744 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
52745
52746         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
52747         Rename to ...
52748         (__ptrace_peeksiginfo_args): ... this.
52749         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
52750         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
52751         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
52752
52753 2014-01-06  Allan McRae  <allan@archlinux.org>
52754
52755         * inet/netinet/in.h: Fix typo in comment.
52756
52757 2014-01-05  Andreas Jaeger  <aj@suse.de>
52758
52759         * sysdeps/i386/fpu/libm-test-ulps: Update.
52760
52761 2014-01-05  Allan McRae  <allan@archlinux.org>
52762
52763         * po/libc.pot: Regenerated.
52764
52765         * malloc/memusagestat.c: Fix gettext call formatting.
52766
52767 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
52768
52769         * nscd/nscd.c: Improve usage() output.
52770
52771 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
52772
52773         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
52774         * sysdeps/unix/sysv/linux/configure: Regenerated.
52775         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
52776         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
52777
52778 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52779
52780         [BZ #16390]
52781         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
52782         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
52783
52784 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52785
52786         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
52787         extra tokens at end of #undef directive.
52788         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
52789         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
52790         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
52791
52792 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52793
52794         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52795
52796         * math/auto-libm-test-in: Mark various tests with
52797         xfail-rounding:ldbl-128ibm.
52798         * math/auto-libm-test-out: Regenerated.
52799
52800 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
52801
52802         [BZ #16386]
52803         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
52804         numbers with subnormal high part when calculating exponent.
52805
52806         [BZ #16385]
52807         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
52808         fabs.
52809
52810         [BZ #16384]
52811         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
52812         M_LN2l.
52813         (__ieee754_acoshl): Use __log1pl not __log1p.
52814
52815 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
52816
52817         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
52818         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
52819         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
52820         (grow_heap, heap_trim, _int_new_arena, get_free_list)
52821         (reused_arena, arena_get2): Convert to GNU style.
52822         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
52823         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
52824         (memalign_check, __malloc_set_state): Likewise.
52825         * malloc/mallocbug.c (main): Likewise.
52826         * malloc/malloc.c (__malloc_assert, malloc_init_state)
52827         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
52828         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
52829         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
52830         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
52831         (__posix_memalign, malloc_info): Likewise.
52832         * malloc/malloc.h: Likewise.
52833         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
52834         (mallochook, memalignhook, reallochook, mabort): Likewise.
52835         * malloc/mcheck.h: Likewise.
52836         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
52837         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
52838         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
52839         * malloc/morecore.c (__default_morecore): Likewise.
52840         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
52841         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
52842         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
52843         (print_and_abort): Likewise.
52844         * malloc/obstack.h: Likewise.
52845         * malloc/set-freeres.c (__libc_freeres): Likewise.
52846         * malloc/tst-mallocstate.c (main): Likewise.
52847         * malloc/tst-mtrace.c (main): Likewise.
52848         * malloc/tst-realloc.c (do_test): Likewise.
52849
52850 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
52851
52852         [BZ #16366]
52853         * nscd/netgroupcache.c (do_notfound): New function.
52854         (addgetnetgrentX): Use it.
52855
52856         [BZ # 16365]
52857         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
52858         NSS_STATUS_NOTFOUND.
52859
52860 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
52861
52862         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
52863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52864
52865 2014-01-01  Allan McRae  <allan@archlinux.org>
52866
52867         * scripts/update-copyrights: Update configure input file suffix.
52868
52869         * NEWS: Update copyright year.
52870         * catgets/gencat.c: Likewise.
52871         * csu/version.c: Likewise.
52872         * debug/catchsegv.sh: Likewise.
52873         * debug/pcprofiledump.c: Likewise.
52874         * debug/xtrace.sh: Likewise.
52875         * elf/ldconfig.c: Likewise.
52876         * elf/ldd.bash.in: Likewise.
52877         * elf/pldd.c: Likewise.
52878         * elf/sotruss.ksh: Likewise.
52879         * elf/sprof.c: Likewise.
52880         * iconv/iconv_prog.c: Likewise.
52881         * iconv/iconvconfig.c: Likewise.
52882         * locale/programs/locale.c: Likewise.
52883         * locale/programs/localedef.c: Likewise.
52884         * login/programs/pt_chown.c: Likewise.
52885         * malloc/memusage.sh: Likewise.
52886         * malloc/memusagestat.c: Likewise.
52887         * malloc/mtrace.pl: Likewise.
52888         * manual/libc.texinfo: Likewise.
52889         * nscd/nscd.c: Likewise.
52890         * nss/getent.c: Likewise.
52891         * nss/makedb.c: Likewise.
52892         * posix/getconf.c: Likewise.
52893         * scripts/test-installation.pl: Likewise.
52894
52895         * All files with FSF copyright notices: Update copyright dates
52896         using scripts/update-copyrights.
52897         * intl/plural.c: Regenerated.
52898         * locale/programs/charmap-kw.h: Likewise.
52899         * locale/programs/locfile-kw.h: Likewise.
52900
52901 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
52902
52903         * sysdeps/unix/sysv/linux/configure: Regenerated.
52904         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
52905         the linux/fanotify.h header.
52906         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
52907         HAVE_LINUX_FANOTIFY_H is defined.
52908
52909 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
52910
52911         * benchtests/cos-inputs: New inputs.
52912         * benchtests/sin-inputs: Likewise.
52913
52914         * benchtests/atan-inputs: New inputs. Fix name of multiple
52915         precision fallback inputs.
52916
52917         * benchtests/atanh-inputs: New inputs.
52918         * benchtests/tanh-inputs: Likewise.
52919
52920         * benchtests/acosh-inputs: New inputs.
52921         * benchtests/asinh-inputs: Likewise.
52922
52923         * benchtests/cosh-inputs: New inputs.
52924         * benchtests/sinh-inputs: Likewise.
52925
52926         * benchtests/acos-inputs: Add more inputs.
52927         * benchtests/asin-inputs: Likewise.
52928
52929 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
52930
52931         [BZ #16375]
52932         * manual/arith.texi: Fix spelling.
52933         * manual/charset.texi: Likewise.
52934         * manual/errno.texi: Likewise.
52935         * manual/filesys.texi: Likewise.
52936         * manual/lang.texi: Likewise.
52937         * manual/llio.texi: Likewise.
52938         * manual/locale.texi: Likewise.
52939         * manual/message.texi: Likewise.
52940         * manual/resource.texi: Likewise.
52941         * manual/search.texi: Likewise.
52942         * manual/setjmp.texi: Likewise.
52943         * manual/stdio.texi: Likewise.
52944         * manual/string.texi: Likewise.
52945         * manual/sysinfo.texi: Likewise.
52946         * manual/time.texi: Likewise.
52947
52948 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
52949
52950         * po/sl.po: New file.
52951
52952 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
52953
52954         * .gitignore: Add core/.gdbinit/.gdb_history.
52955
52956 2013-12-27  Allan McRae  <allan@archlinux.org>
52957
52958         [BZ #16369]
52959         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
52960         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
52961
52962 2013-12-24  Brooks Moses  <bmoses@google.com>
52963
52964         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
52965         all compilers that claim C++98 compliance, not just GCC.
52966         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
52967         Likewise.
52968
52969 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52970
52971         * NEWS: Restore accidentally deleted bug-fix entries.
52972
52973 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52974             Ondřej Bílka  <neleai@seznam.cz>
52975
52976         [BZ #15073]
52977         * malloc/malloc.c (_int_free): Perform sanity check only if we
52978         have_lock.
52979
52980 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
52981
52982         [BZ #12986]
52983         * manual/stdio.texi (String Input Conversions): Clarify that character
52984         classes are not supported.
52985
52986 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52987
52988         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52989
52990 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
52991
52992         [BZ #16337]
52993         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52994         Calculate results for small negative arguments directly rather
52995         than using reflection formula with special underflow handling.
52996
52997         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
52998         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
52999         sysdeps/unix/bsd/bsd4.4/syscalls.list.
53000         (fchflags): Likewise.
53001         (revoke): Likewise.
53002         (setlogin): Likewise.
53003         (sigaltstack): Likewise.
53004         (wait4): Likewise.
53005         (sigblock): Remove.
53006         (sigsetmask): Likewise.
53007         (wait3): Likewise.
53008         (waitpid): Likewise.
53009         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
53010         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
53011         file.
53012         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
53013         * sysdeps/unix/bsd/Makefile: ... here.
53014         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
53015         * sysdeps/unix/bsd/Versions: ... here.
53016         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
53017         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
53018         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
53019         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
53020         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
53021         * sysdeps/unix/bsd/sigblock.c: ... here.
53022         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
53023         * sysdeps/unix/bsd/sigsetmask.c: ... here.
53024         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
53025         * sysdeps/unix/bsd/sigvec.c: ... here.
53026         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
53027         * sysdeps/unix/bsd/tcdrain.c: ... here.
53028         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
53029         * sysdeps/unix/bsd/tcgetattr.c: ... here.
53030         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
53031         * sysdeps/unix/bsd/tcsetattr.c: ... here.
53032         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
53033         * sysdeps/unix/bsd/wait.c: ... here.
53034         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
53035         * sysdeps/unix/bsd/wait3.c: ... here.
53036         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
53037         * sysdeps/unix/bsd/waitpid.c: ... here.
53038
53039 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
53040
53041         [BZ #16356]
53042         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
53043         round-to-nearest for [!USE_AS_EXPM1L].
53044         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
53045         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
53046         more tests of exp and exp10.  Expect some exp10 tests to miss
53047         exceptions or fail in directed rounding modes.
53048         * math/auto-libm-test-out: Regenerated.
53049         * math/libm-test.inc (exp10_tonearest_test_data): New array.
53050         (exp10_test_tonearest): New function.
53051         (exp10_towardzero_test_data): New array.
53052         (exp10_test_towardzero): New function.
53053         (exp10_downward_test_data): New array.
53054         (exp10_test_downward): New function.
53055         (exp10_upward_test_data): New array.
53056         (exp10_test_upward): New function.
53057         (main): Call the new functions.
53058         * sysdeps/i386/fpu/libm-test-ulps: Update.
53059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53060
53061 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
53062
53063         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
53064         asinh, atan, atan2, atanh, cbrt, cos and cosh.
53065         * math/auto-libm-test-out: Regenerated.
53066         * math/libm-test.inc (acosh_test_data): Add more tests.
53067         (atanh_test_data): Likewise.
53068         (ceil_test_data): Likewise.
53069         (copysign_test_data): Likewise.
53070         * sysdeps/i386/fpu/libm-test-ulps: Update.
53071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53072
53073         * timezone/checktab.awk: Update from tzcode 2013i.
53074         * timezone/private.h: Likewise.
53075         * timezone/scheck.c: Likewise.
53076         * timezone/tzfile.h: Likewise.
53077         * timezone/tzselect.ksh: Likewise.
53078         * timezone/zdump.c: Likewise.
53079         * timezone/zic.c: Likewise.
53080
53081         * math/auto-libm-test-in: Add tests of cpow.
53082         * math/auto-libm-test-out: Regenerated.
53083         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
53084         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53085         mpc_cc_c.
53086         (func_calc_desc): Add mpc_cc_c union field.
53087         (test_functions): Add cpow.
53088         (special_fill_2pi): New function.
53089         (special_real_inputs): Add 2pi.
53090         (calc_generic_results): Handle mpc_cc_c.
53091         * sysdeps/i386/fpu/libm-test-ulps: Update.
53092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53093
53094         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
53095         csqrt, ctan and ctanh.
53096         * math/auto-libm-test-out: Regenerated.
53097         * math/libm-test.inc (TEST_COND_x86_64): New macro.
53098         (TEST_COND_x86): Likewise.
53099         (ccos_test_data): Use AUTO_TESTS_c_c.
53100         (ccosh_test_data): Likewise.
53101         (cexp_test_data): Likewise.
53102         (clog_test_data): Likewise.
53103         (csqrt_test_data): Likewise.
53104         (ctan_test_data): Likewise.
53105         (ctan_tonearest_test_data): Likewise.
53106         (ctan_towardzero_test_data): Likewise.
53107         (ctan_downward_test_data): Likewise.
53108         (ctan_upward_test_data): Likewise.
53109         (ctanh_test_data): Likewise.
53110         (ctanh_tonearest_test_data): Likewise.
53111         (ctanh_towardzero_test_data): Likewise.
53112         (ctanh_downward_test_data): Likewise.
53113         (ctanh_upward_test_data): Likewise.
53114         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53115         mpc_c_c.
53116         (func_calc_desc): Add mpc_c_c union field.
53117         (FUNC_mpc_c_c): New macro.
53118         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
53119         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
53120         ctanh.
53121         (special_fill_min_subnorm_p120): New function.
53122         (special_real_inputs): Add min_subnorm_p120.
53123         (calc_generic_results): Handle mpc_c_c.
53124         * sysdeps/i386/fpu/libm-test-ulps: Update.
53125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53126
53127 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
53128
53129         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
53130         (do_sin_slow): New functions.
53131         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
53132         (cslow2, csloww1, csloww2): Use the new functions.
53133
53134         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
53135         Use M to change sign of result instead of X.  Assume X is
53136         positive.
53137         (csloww1): Likewise.
53138         (__sin): Adjust.
53139         (__cos): Adjust.
53140
53141         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
53142         arguments A and DA.
53143         (__sin): Adjust.
53144         (__cos): Likewise.
53145
53146         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
53147         (__cos): Likewise.
53148         (sloww1): Don't adjust sign of DX.
53149         (csloww1): Likewise.
53150         (sloww2): Use X directly and don't adjust sign of DX.
53151         (csloww2): Likewise.
53152
53153 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53154
53155         * math/auto-libm-test-in: Add tests of cabs and carg.
53156         * math/auto-libm-test-out: Regenerated.
53157         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
53158         (carg_test_data): Likewise.
53159         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53160         mpc_c_f.
53161         (func_calc_desc): Add mpc_c_f union field.
53162         (test_functions): Add cabs and carg.
53163         (calc_generic_results): Handle mpc_c_f.
53164
53165         * sysdeps/powerpc/powerpc32/libgcc-compat.S
53166         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
53167         as a macro and a compat symbol.
53168         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
53169         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
53170         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
53171         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
53172         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
53173         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
53174         not use .hidden.
53175         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
53176         Likewise.
53177         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
53178         Likewise.
53179         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
53180         Likewise.
53181         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
53182         Likewise.
53183         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
53184         Likewise.
53185         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
53186         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
53187         from GLIBC_2.3.2.
53188
53189 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53190
53191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53192
53193 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53194
53195         * manual/texinfo.tex: Update to version 2013-11-26.10 with
53196         trailing whitespace removed.
53197         * scripts/config.guess: Update to version 2013-11-29.
53198         * scripts/config.sub: Update to version 2013-10-01.
53199
53200         * math/auto-libm-test-in: Add tests of sincos.
53201         * math/auto-libm-test-out: Regenerated.
53202         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
53203         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53204         mpfr_f_11.
53205         (func_calc_desc): Add mpfr_f_11 union field.
53206         (test_functions): Add sincos.
53207         (calc_generic_results): Handle mpfr_f_11.
53208         * sysdeps/i386/fpu/libm-test-ulps: Update.
53209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53210
53211 2013-12-19  Andreas Schwab  <schwab@suse.de>
53212
53213         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
53214         CALL_MCOUNT.
53215         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53216         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
53217         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
53218
53219 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53220
53221         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
53222         * sysdeps/i386/fpu/libm-test-ulps: Update.
53223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53224
53225         [BZ #16293]
53226         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
53227         round-to-nearest mode when using frndint.
53228         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
53229         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
53230         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
53231         Likewise.
53232         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
53233         sinh test to fail.
53234         * math/auto-libm-test-out: Regenerated.
53235         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
53236         (TEST_COND_x86): Likewise.
53237         (expm1_tonearest_test_data): New array.
53238         (expm1_test_tonearest): New function.
53239         (expm1_towardzero_test_data): New array.
53240         (expm1_test_towardzero): New function.
53241         (expm1_downward_test_data): New array.
53242         (expm1_test_downward): New function.
53243         (expm1_upward_test_data): New array.
53244         (expm1_test_upward): New function.
53245         (main): Run the new test functions.
53246         * sysdeps/i386/fpu/libm-test-ulps: Update.
53247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53248
53249         * include/features.h: Update comment documenting feature test
53250         macros.  Mention _DEFAULT_SOURCE in comment.
53251         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
53252         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
53253         _BSD_SOURCE and _SVID_SOURCE.
53254         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
53255         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
53256         !_SVID_SOURCE]: Likewise.
53257         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53258         (__USE_POSIX_IMPLICITLY): Define.
53259         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53260         (_POSIX_SOURCE): Undefine and redefine.
53261         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53262         (_POSIX_C_SOURCE): Likewise.
53263         * manual/creature.texi (_DEFAULT_SOURCE): Document.
53264         (Feature Test Macros): Update documentation of default features.
53265
53266 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
53267
53268         * benchtests/Makefile: Add bench-strtok.
53269         * benchtests/bench-strtok.c: New file: strtok benchtest.
53270
53271 2013-12-19  Allan McRae  <allan@archlinux.org>
53272
53273         * manual/install.texi: Suppress menu for plain text output.
53274         * INSTALL: Regenerated.
53275
53276 2013-12-18  Brooks Moses  <bmoses@google.com>
53277
53278         [BZ #15846]
53279         * misc/getauxval.c: Include errno.h.
53280         (__getauxval): Set errno to ENOENT if the requested type is not
53281         found.
53282         * misc/sys/auxv.h (getauxval): Document that it may set errno;
53283         don't declare with __attribute_const__.
53284         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
53285         * manual/startup.texi: Document that getauxval sets errno.
53286
53287 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53288
53289         * math/auto-libm-test-in: Add tests of jn and yn.
53290         * math/auto-libm-test-out: Regenerated.
53291         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
53292         (yn_test_data): Likewise.
53293         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53294         mpfr_if_f.
53295         (func_calc_desc): Add mpfr_if_f union field.
53296         (FUNC_mpfr_if_f): New macro.
53297         (test_functions): Add jn and yn.
53298         (calc_generic_results): Assert type of second input for
53299         mpfr_ff_f.  Handle mpfr_if_f.
53300         (output_for_one_input_case): Disable all checking for arguments
53301         fitting floating-point types in case of an integer argument.
53302         * sysdeps/i386/fpu/libm-test-ulps: Update.
53303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53304
53305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
53306         Don't expect fegetround reference in libm.so.
53307
53308 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53309
53310         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
53311         $(config-cflags-nofma).
53312
53313 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53314
53315         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
53316         * math/auto-libm-test-out: Regenerated.
53317
53318         [BZ #16338]
53319         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
53320         to determine exponent and adjust argument to have exponent of -1.
53321         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
53322         log2.
53323         * math/auto-libm-test-out: Regenerated.
53324         * sysdeps/i386/fpu/libm-test-ulps: Update.
53325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53326
53327 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
53328
53329         * manual/probes.texi: Remove cases when per-thread arenas are
53330         disabled.
53331
53332 2013-12-18  Andreas Schwab  <schwab@suse.de>
53333
53334         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
53335         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
53336         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
53337         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
53338         * sysdeps/i386/i686/multiarch/Makefile: Update.
53339         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
53340
53341 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53342
53343         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
53344         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
53345
53346 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         [BZ #15968]
53349         Support TZ transition times < 00:00:00.
53350         This is needed for version-3 tz-format files; it supports time
53351         stamps past 2037 for America/Godthab (the only entry in the tz
53352         database for which this change is relevant).
53353         * manual/time.texi (TZ Variable): Document transition times
53354         from -167:59:59 through -00:00:01.
53355         * time/tzset.c (tz_rule): Time of day is now signed.
53356         (__tzset_parse_tz): Parse negative time of day.
53357
53358         Document TZ transition times >= 25:00:00.
53359         * manual/time.texi (TZ Variable): Document transition times from
53360         25:00:00 through 167:59:59.  These are already supported, and this
53361         support will help with version-3 tz-format files.
53362
53363         * manual/time.texi (TZ Variable): Modernize North America example
53364         to reflect current (i.e., 2007-and-later) daylight saving rules.
53365
53366         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
53367
53368 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53369
53370         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
53371         * sysdeps/unix/bsd/bits/stat.h: Likewise.
53372         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
53373         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
53374         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
53375         * sysdeps/unix/bsd/bsdstat.h: Likewise.
53376         * sysdeps/unix/bsd/clock.c: Likewise.
53377         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
53378         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
53379         * sysdeps/unix/bsd/init-posix.c: Likewise.
53380         * sysdeps/unix/bsd/poll.c: Likewise.
53381         * sysdeps/unix/bsd/ptsname.c: Likewise.
53382         * sysdeps/unix/bsd/seekdir.c: Likewise.
53383         * sysdeps/unix/bsd/setegid.c: Likewise.
53384         * sysdeps/unix/bsd/seteuid.c: Likewise.
53385         * sysdeps/unix/bsd/setgid.c: Likewise.
53386         * sysdeps/unix/bsd/setrgid.c: Likewise.
53387         * sysdeps/unix/bsd/setruid.c: Likewise.
53388         * sysdeps/unix/bsd/setsid.c: Likewise.
53389         * sysdeps/unix/bsd/setuid.c: Likewise.
53390         * sysdeps/unix/bsd/sigaction.c: Likewise.
53391         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
53392         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
53393         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
53394         * sysdeps/unix/bsd/telldir.c: Likewise.
53395         * sysdeps/unix/bsd/times.c: Likewise.
53396         * sysdeps/unix/bsd/usleep.c: Likewise.
53397
53398         * misc/Makefile (install-lib): Remove libbsd-compat.a.
53399         ($(objpfx)libbsd-compat.a): Remove rule.
53400
53401         * include/features.h (__FAVOR_BSD): Do not define.
53402         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
53403         features conflicting with POSIX.
53404         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
53405         (_BSD_SOURCE): Remove description of not being a subset of other
53406         feature test macros.
53407         * manual/job.texi (getpgrp): Do not document BSD version.
53408         (getpgid): Do not document by reference to BSD getpgrp.
53409         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
53410         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
53411         * signal/signal.h [__FAVOR_BSD]: Likewise.
53412         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
53413         instead of making contents conditional on [__FAVOR_BSD].
53414         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
53415
53416 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53417
53418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53419
53420 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53421
53422         [BZ #16314]
53423         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
53424         values below 2**-450, not 2**-500.
53425         * math/auto-libm-test-in: Don't allow spurious underflow from
53426         hypot.
53427         * math/auto-libm-test-out: Regenerated.
53428
53429         [BZ #16316]
53430         [BZ #16330]
53431         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
53432         values of ha and hb and sort them after adjusting subnormal
53433         arguments.
53434         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
53435         Likewise.
53436         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
53437         values of ea and eb and sort them after adjusting subnormal
53438         arguments.
53439         * math/auto-libm-test-in: Do not expect some hypot tests of
53440         subnormals to fail.  Add more hypot tests.
53441         * math/auto-libm-test-out: Regenerated.
53442
53443 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53444
53445         [BZ #13304]
53446         * sysdeps/sh/s_fma.c: New file.
53447         * sysdeps/sh/s_fmaf.c: New file.
53448         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
53449         version.
53450         * sysdeps/sh/Implies: Add sh/soft-fp.
53451
53452 2013-12-16  Roland McGrath  <roland@hack.frob.com>
53453
53454         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
53455         level of indirection to members `objname', `errstring', `malloced'.
53456         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
53457         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
53458         it as the __longjmp argument (just pass 1 instead).
53459         (_dl_catch_error): Initialize C with argument pointers and address of
53460         volatile local ERRCODE rather than copying values out of C at return.
53461
53462 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
53463
53464         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
53465         * math/auto-libm-test-out: Regenerated.
53466         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
53467         (hypot_test_data): Likewise.
53468         (pow_test_data): Likewise.
53469         (pow_tonearest_test_data): Likewise.
53470         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53471         mpfr_ff_f.
53472         (func_calc_desc): Add mpfr_ff_f union field.
53473         (FUNC_mpfr_ff_f): New macro.
53474         (test_functions): Add atan2, hypot and pow.
53475         (special_fill_min): New function.
53476         (special_fill_minus_min): Likewise.
53477         (special_fill_min_subnorm): Likewise.
53478         (special_fill_minus_min_subnorm): Likewise.
53479         (special_real_inputs): Add min, -min, min_subnorm and
53480         -min_subnorm.
53481         (calc_generic_results): Handle mpfr_ff_f.
53482         * sysdeps/i386/fpu/libm-test-ulps: Update.
53483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53484
53485 2013-12-16  Will Newton  <will.newton@linaro.org>
53486
53487         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
53488         (Aligned Memory Blocks): Add documentation for aligned_alloc
53489         and suggest it as an alternative to posix_memalign.
53490         (Hooks for Malloc): Document __memalign_hook is also called
53491         for aligned_alloc.  (Summary of Malloc): Add summary for
53492         aligned alloc.  Document __memalign_hook is also called
53493         for aligned_alloc.
53494
53495 2013-12-16  Will Newton  <will.newton@linaro.org>
53496
53497         * manual/memory.texi (Malloc Examples): Clarify default
53498         alignment documentation.  Suggest posix_memalign rather
53499         than memalign or valloc.
53500         (Aligned Memory Blocks): Remove suggestion to use memalign
53501         or valloc.  Remove obsolete comment about BSD.
53502         Document memalign errno values and mark the function obsolete.
53503         Document posix_memalign returned error codes.  Mark valloc
53504         as obsolete.  (Hooks for Malloc): __memalign_hook is also
53505         called for posix_memalign and valloc.
53506         (Summary of Malloc): Add posix_memalign to function summary.
53507         __memalign_hook is also called for posix_memalign and valloc.
53508
53509 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53510
53511         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
53512         TAYLOR_SIN.
53513         (__sin): Adjust.
53514         (__cos): Likewise.
53515         (sloww): Use mynumber union.  Expand ternary operator into
53516         if-else statements.
53517         (cslow): use mynumber union.
53518
53519 2013-12-16  Allan McRae  <allan@archlinux.org>
53520
53521         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
53522         * configure: Regenerated.
53523
53524         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
53525
53526         [BZ #14120]
53527         * configure.ac: Added --enable-maintainer-mode. Check for
53528         autoconf when enabled.
53529         * configure: Regenerated.
53530
53531         * nscd/nscd.service: New file.
53532         * nscd/nscd.tmpfiles: New file.
53533
53534 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
53535
53536         [BZ #12100]
53537         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
53538         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
53539         * sysdeps/x86_64/multiarch/strstr.c: ... here.
53540         (strstr): Add __strstr_sse2_unaligned ifunc.
53541         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
53542         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
53543         (strcasestr): Remove __strcasestr_sse42 ifunc.
53544         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
53545         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
53547
53548 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53549
53550         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
53551         * sysdeps/sh/bits/fenv.h: ... here.
53552         * sysdeps/sh/sh4/fpu/bits: Remove directory.
53553
53554 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53555
53556         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
53557
53558         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
53559         hypotf multiarch implementations.
53560         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
53561         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
53562         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
53563         multiarch hypot for PPC64.
53564         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
53565         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
53566         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
53567         multiarch hypotf for PPC64.
53568
53569         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
53570         modff multiarch implementations.
53571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
53572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
53573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
53574         multiarch modf for PPC64.
53575         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
53576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
53577         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
53578         multiarch modff for PPC64.
53579
53580         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
53581         and logl multiarch implementations.
53582         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
53583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
53584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
53585         multiarch logb for PPC64.
53586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
53587         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
53588         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
53589         multiarch logb for PPC64.
53590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
53591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
53592         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
53593         multiarch logb for PPC64.
53594
53595         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
53596         isinff multiarch implementation.
53597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
53598         file.
53599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
53600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
53601         multiarch isinf for PPC64.
53602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
53603         file.
53604         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
53605         multiarch isinff for PPC64.
53606
53607         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
53608         finitef multiarch implementation.
53609         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
53610         file.
53611         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
53612         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
53613         multiarch finite for PPC64.
53614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
53615         file.
53616         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
53617         multiarch finitef for PPC64.
53618
53619         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
53620         lrint multiarch implementation.
53621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
53622         file.
53623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
53624         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
53625         multiarch llrint for PPC64.
53626         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
53627         multiarch lrint for PPC64.
53628
53629         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
53630         copysignf multiarch implementation.
53631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
53632         file.
53633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
53634         file.
53635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
53636         multiarch copysign for PPC64.
53637         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
53638         multiarch copysignf for PPC64.
53639
53640         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
53641         multiarch implementation.
53642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
53643         file.
53644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
53645         file.
53646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
53647         file.
53648         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
53649         file.
53650         multiarch llround for PPC64.
53651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
53652         multiarch trunc for PPC64.
53653         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
53654         multiarch truncf for PPC64.
53655
53656         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
53657         multiarch implementation.
53658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
53659         file.
53660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
53661         file.
53662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
53663         file.
53664         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
53665         file.
53666         multiarch llround for PPC64.
53667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
53668         multiarch round for PPC64.
53669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
53670         multiarch roundf for PPC64.
53671
53672         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
53673         multiarch implementation.
53674         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
53675         file.
53676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
53677         file.
53678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
53679         file.
53680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
53681         file.
53682         multiarch llround for PPC64.
53683         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
53684         multiarch floor for PPC64.
53685         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
53686         multiarch floorf for PPC64.
53687
53688         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
53689         multiarch implementation.
53690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
53691         file.
53692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
53693         file.
53694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
53695         file.
53696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
53697         file.
53698         multiarch llround for PPC64.
53699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
53700         multiarch ceil for PPC64.
53701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
53702         multiarch ceilf for PPC64.
53703
53704         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
53705         multiarch implementation.
53706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
53707         file.
53708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
53709         file.
53710         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
53711         file.
53712         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
53713         multiarch llround for PPC64.
53714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
53715         multiarch lround for PPC64.
53716
53717         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
53718         multiarch implementation.
53719         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
53720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
53721         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
53722         file.
53723         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
53724         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
53725         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
53726         multiarch isnan for PPC64.
53727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
53728         multiarch isnanf for PPC64.
53729
53730         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
53731         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
53732         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
53733         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
53734         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
53735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
53736
53737         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
53738         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
53739         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
53740         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
53741
53742         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
53743         multiarch implementations.
53744         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53745         (__libc_ifunc_impl_list): Likewise.
53746         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
53747         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
53748         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
53749         multiarch stpcpy for PPC64.
53750
53751         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
53752         multiarch implementations.
53753         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53754         (__libc_ifunc_impl_list): Likewise.
53755         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
53756         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
53757         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
53758         multiarch strcpy for PPC64.
53759
53760         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
53761         redefine function name.
53762         (_wordcopy_fwd_dest_aligned): Likewise.
53763         (_wordcopy_bwd_aligned): Likewise.
53764         (_wordcopy_bwd_dest_aligned): Likewise.
53765         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
53766         multiarch implementations.
53767         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53768         (__libc_ifunc_impl_list): Likewise.
53769         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
53770         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
53771         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
53772         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
53773         multiarch wcscpy for PPC64.
53774
53775         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
53776         multiarch implementations.
53777         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53778         (__libc_ifunc_impl_list): Likewise.
53779         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
53780         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
53781         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
53782         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
53783         multiarch wcscpy for PPC64.
53784
53785         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
53786         multiarch implementations.
53787         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53788         (__libc_ifunc_impl_list): Likewise.
53789         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
53790         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
53791         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
53792         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
53793         multiarch wcsrchr for PPC64.
53794
53795         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
53796         multiarch implementations.
53797         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53798         (__libc_ifunc_impl_list): Likewise.
53799         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
53800         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
53801         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
53802         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
53803         multiarch wcschr for PPC64.
53804
53805         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
53806         multiarch implementations.
53807         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53808         (__libc_ifunc_impl_list): Likewise.
53809         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
53810         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
53811         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
53812         multiarch strchrnul for PPC64.
53813
53814         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
53815         implementations.
53816         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53817         (__libc_ifunc_impl_list): Likewise.
53818         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
53819         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
53820         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
53821         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
53822         strchr for PPC64.
53823
53824         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
53825         implementations.
53826         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53827         (__libc_ifunc_impl_list): Likewise.
53828         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
53829         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
53830         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
53831         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
53832         strncmp for PPC64.
53833
53834         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
53835         multiarch implementations.
53836         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53837         (__libc_ifunc_impl_list): Likewise.
53838         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
53839         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
53840         strncasecmp for PPC64.
53841         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
53842         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
53843         multiarch strncasecmp_l for PPC64.
53844
53845         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
53846         multiarch implementations.
53847         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
53848         (__libc_ifunc_impl_list): Likewise.
53849         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
53850         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
53851         multiarch strcasecmp for PPC64.
53852         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
53853         file.
53854         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
53855         multiarch strcasecmp_l for PPC64.
53856
53857         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
53858         implementations.
53859         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53860         (__libc_ifunc_impl_list): Likewise.
53861         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
53862         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
53863         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
53864         strnlen for PPC64.
53865
53866         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
53867         implementations.
53868         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53869         (__libc_ifunc_impl_list): Likewise.
53870         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
53871         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
53872         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
53873         strlen for PPC64.
53874
53875         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
53876         implementations.
53877         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53878         (__libc_ifunc_impl_list): Likewise.
53879         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
53880         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
53881         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
53882         rawmemrchr for PPC64.
53883
53884         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
53885         implementation.
53886         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53887         (__libc_ifunc_impl_list): Likewise.
53888         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
53889         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
53890         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
53891         memrchr for PPC64.
53892
53893         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
53894         implementation.
53895         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53896         (__libc_ifunc_impl_list): Likewise.
53897         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
53898         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
53899         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
53900         memchr for PPC64.
53901
53902         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
53903         implementation.
53904         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53905         (__libc_ifunc_impl_list): Likewise.
53906         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
53907         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
53908         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
53909         mempcpy for PPC64.
53910
53911         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
53912         avoid cretion of __bzero symbol.
53913         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
53914         Likewise.
53915         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
53916         Likewise.
53917         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
53918         Likewise.
53919         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
53920         multiarch implementations.
53921         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53922         (__libc_ifunc_impl_list): Likewise.
53923         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
53924         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
53925         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
53926         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
53927         bzero for PPC32.
53928         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
53929         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
53930         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
53931         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
53932         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
53933         memset for PPC64.
53934         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
53935
53936         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
53937         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
53938         implementations.
53939         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53940         (__libc_ifunc_impl_list): Likewise.
53941         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
53942         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
53943         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
53944         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
53945         memcmp for PPC64.
53946
53947         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
53948         multiarch for POWER/PPC64.
53949         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
53950         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
53951         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
53952         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
53953         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
53954         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
53955         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
53956         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
53957         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
53958         memcpy for PPC64.
53959
53960         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
53961         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
53962         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
53963         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
53964         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
53965         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
53966         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
53967         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
53968         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
53969         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
53970         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
53971         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
53972         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
53973         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
53974         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
53975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
53976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
53977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
53978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
53979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
53980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
53981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
53982
53983 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53984
53985         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
53986
53987 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
53988
53989         * benchtests/Makefile (bench): Add exp2 and log2.
53990         (LDLIBS-bench-exp2): Add -lm.
53991         (LDLIBS-bench-log2): Likewise.
53992         * benchtests/exp2-inputs: New inputs file.
53993         * benchtests/log2-inputs: New inputs file.
53994         * benchtests/log-inputs: Add new inputs.
53995         * benchtests/tan-inputs: Likewise.
53996
53997 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53998
53999         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
54000         definition...
54001         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
54002         (csloww2): ... from here.
54003
54004         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
54005         instead of structures.
54006         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
54007         (POLYNOMIAL): Likewise.
54008         (TAYLOR_SLOW): Likewise.
54009         (__sin): Likewise.
54010         (__cos): Likewise.
54011         (slow1): Likewise.
54012         (slow2): Likewise.
54013         (sloww): Likewise.
54014         (sloww1); Likewise.
54015         (sloww2): Likewise.
54016         (bsloww1): Likewise.
54017         (bsloww2): Likewise.
54018         (cslow2): Likewise.
54019         (csloww): Likewise.
54020         (csloww1): Likewise.
54021         (csloww2): Likewise.
54022
54023 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
54024
54025         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
54026         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
54027         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
54028         * malloc/hooks.c (realloc_check): Likewise.
54029
54030         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
54031         * malloc/arena.c: Remove PER_THREAD conditional.
54032         [!PER_THREAD]: Remove code.
54033         (ptmalloc_unlock_all2): Likewise.
54034         (ptmalloc_init): Likewise.
54035         (_int_new_arena): Likewise.
54036         (arena_get2): Likewise.
54037         * malloc/hooks.c (__malloc_get_state): Likewise.
54038         (__malloc_set_state): Likewise.
54039         * malloc/malloc.c: Likewise.
54040         (struct malloc_state): Likewise.
54041         (struct malloc_par): Likewise.
54042         (__libc_realloc): Likewise.
54043         (__libc_mallopt): Likewise.
54044
54045 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54046
54047         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
54048
54049 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
54050
54051         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
54052         macro to a function.  Check for zero perturb_byte.
54053         (_int_malloc, _int_free): Remove zero perturb_byte checks.
54054
54055         * malloc/malloc.c: (force_reg): Remove.
54056         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
54057         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
54058         force_reg by atomic_forced_read.
54059         * malloc/arena.c (ptmalloc_init): Likewise.
54060         * malloc/hooks.c (top_check): Likewise.
54061
54062 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54063
54064         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54065
54066 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
54067
54068         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54069
54070 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
54071
54072         * math/auto-libm-test-in: Add tests of lgamma.
54073         * math/auto-libm-test-out: Regenerated.
54074         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
54075         (M_LOG_2_SQRT_PIl): Likewise.
54076         (lgamma_test_data): Use AUTO_TESTS_f_f1.
54077         * math/gen-auto-libm-tests.c (func_calc_method): Add value
54078         mpfr_f_f1.
54079         (func_calc_desc): Add mpfr_f_f1 union field.
54080         (ARGS1): New macro.
54081         (ARGS2): Likewise.
54082         (ARGS3): Likewise.
54083         (ARGS4): Likewise.
54084         (RET1): Likewise.
54085         (RET2): Likewise.
54086         (CALC): Likewise.
54087         (FUNC): Likewise.
54088         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
54089         (test_functions): Add lgamma.
54090         (calc_generic_results): Handle mpfr_f_f1.
54091         * sysdeps/i386/fpu/libm-test-ulps: Update.
54092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54093
54094 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54095
54096         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
54097         __mpn_add_n for PowerPC64/POWER7.
54098         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
54099         __mpn_sub_n for PowerPC64/POWER7.
54100
54101         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
54102         __mpn_addmul_1 for PowerPC64.
54103         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
54104         __mpn_submul_1 for PowerPC64.
54105         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
54106         for PowerPC64.
54107         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
54108         for PowerPC64.
54109
54110 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
54111
54112         [BZ #15089]
54113         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
54114
54115 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54116
54117         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
54118
54119         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
54120         add multiarch folders.
54121         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
54122         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
54123         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
54124         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
54125         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
54126         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
54127         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
54128         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
54129         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
54130         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
54131         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
54132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
54133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
54134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
54135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
54136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
54137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
54138
54139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54140         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
54141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
54142         New file.
54143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
54144         New file.
54145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
54146         multiarch __ieee754_hypot for PowerPC32.
54147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
54148         New file.
54149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
54150         New file.
54151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
54152         multiarch __ieee754_hypotf for PowerPC32.
54153
54154         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
54155         long_double_symbol only if __logbl is defined.
54156         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
54157         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
54158         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
54159         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
54160         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
54161         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
54162         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
54163         path for implementation.
54164         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
54165         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
54166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
54167         logb, and logbl multiarch implementations for PowerPC32.
54168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
54169         file.
54170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
54171         file.
54172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
54173         multiarch logb for PowerPC32.
54174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
54175         file.
54176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
54177         file.
54178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
54179         multiarch logbf for PowerPC32.
54180         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
54181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
54182         file.
54183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
54184         multiarch logbl implementation for PowerPC32.
54185
54186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
54187         and modff multiarch implementations.
54188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
54189         New file.
54190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
54191         New file.
54192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
54193         multiarch modf for PowerPC32.
54194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
54195         New file.
54196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
54197         New file.
54198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
54199         multiarch modff for PowerPC32.
54200
54201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
54202         and lrintf multiarch implementations.
54203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
54204         New file.
54205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
54206         New file.
54207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
54208         multiarch lrint for PowerPC32.
54209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
54210         file: multiarch lrintf for PowerPC32.
54211
54212         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
54213         and lroundf multiarch implementations.
54214         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
54215         New file.
54216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
54217         New file.
54218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
54219         New file.
54220         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
54221         multiarch lround for PowerPC32.
54222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
54223         file: multiarch lroundf for PowerPC32.
54224
54225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54226         copysign and copysignf multiarch implementations.
54227         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
54228         New file.
54229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
54230         New file.
54231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
54232         file: multiarch copysign for PowerPC32.
54233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
54234         file: multiarch copysignf for PowerPC32.
54235
54236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
54237         and truncf multiarch implementations.
54238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
54239         New file.
54240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
54241         file.
54242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
54243         multiarch trunc for PowerPC32.
54244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
54245         New file.
54246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
54247         New file.
54248         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
54249         multiarch truncf for PowerPC32.
54250
54251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
54252         and roundf multiarch implementations.
54253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
54254         New file.
54255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
54256         file.
54257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
54258         multiarch round for PowerPC32.
54259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
54260         New file.
54261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
54262         New file.
54263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
54264         multiarch roundf for PowerPC32.
54265
54266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
54267         and floorf multiarch implementations.
54268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
54269         New file.
54270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
54271         file.
54272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
54273         multiarch floor for PowerPC32.
54274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
54275         New file.
54276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
54277         New file.
54278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
54279         multiarch floorf for PowerPC32.
54280
54281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
54282         and ceilf multiarch implementations.
54283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
54284         New file.
54285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
54286         file.
54287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
54288         multiarch ceil for PowerPC32.
54289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
54290         New file.
54291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
54292         file.
54293         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
54294         multiarch ceilf for PowerPC32.
54295
54296         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
54297         is defined.
54298         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
54299         FINITEF is defined.
54300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
54301         and finitef multiarch implementations.
54302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
54303         New file.
54304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
54305         file.
54306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
54307         multiarch finite for PowerPC32.
54308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
54309         New file.
54310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
54311         file: multiarch finitef for PowerPC32.
54312
54313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
54314         and isinff multiarch implementations.
54315         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
54316         file.
54317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
54318         file.
54319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
54320         multiarch isinf for PowerPC32.
54321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
54322         New file.
54323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
54324         multiarch isinff for PowerPC32.
54325
54326         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
54327         alias when __isnan is defined.
54328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
54329         and isnanf multiarch implementations.
54330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
54331         file.
54332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
54333         file.
54334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
54335         file.
54336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
54337         file.
54338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
54339         multiarch isnan for PowerPC32.
54340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
54341         New file.
54342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
54343         New file.
54344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
54345         multiarch isnanf for PowerPC32.
54346
54347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
54348         and sqrtf multiarch implementations.
54349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
54350         file.
54351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
54352         file.
54353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
54354         multiarch sqrt for PowerPC32.
54355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
54356         file.
54357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
54358         file.
54359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
54360         multiarch sqrtf for PowerPC32.
54361
54362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
54363         and llroundf multiarch implementations.
54364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
54365         New file.
54366         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
54367         New file.
54368         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
54369         New file.
54370         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
54371         file: multiarch llround for PowerPC32.
54372         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
54373         file: multiarch llroundf for PowerPC32.
54374
54375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
54376         multiarch PowerPC32 fpu implementations.
54377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
54378         New file.
54379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
54380         New file.
54381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
54382         multiarch llrint for PowerPC32.
54383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
54384         New file.
54385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
54386         New file.
54387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
54388         file.
54389
54390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
54391
54392         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
54393         file.
54394         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
54395         file.
54396         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
54397         file.
54398         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
54399         multiarch wordcopy for PPC32.
54400         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54401         wordcopy objects.
54402         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54403         (__libc_ifunc_impl_list): Likewise.
54404         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
54405         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
54406         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
54407         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
54408         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
54409         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
54410
54411         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
54412         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
54413         file.
54414         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
54415         file.
54416         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
54417         file.
54418         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
54419         multiarch wcscpy for PPC32.
54420         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54421         multiarch objects.
54422         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54423         (__libc_ifunc_impl_list): Likewise.
54424         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54425         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54426         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
54427         sysdeps/powerpc/power6/wcscpy.c.
54428
54429         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
54430         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
54431         file.
54432         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
54433         file.
54434         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
54435         file.
54436         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
54437         multiarch wcsrchr for PPC32.
54438         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54439         multiarch objects.
54440         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54441         (__libc_ifunc_impl_list): Likewise.
54442         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54443         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54444         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
54445         sysdeps/powerpc/power6/wcsrchr.c.
54446
54447         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
54448         file.
54449         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
54450         file.
54451         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
54452         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
54453         multiarch wcschr for PPc32.
54454         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54455         multiarch objects.
54456         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54457         (__libc_ifunc_impl_list): Likewise.
54458         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
54459         * sysdeps/powerpc/power6/wcschr.c: ... to here.
54460         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
54461         sysdeps/powerpc/power6/wcschr.c.
54462
54463         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
54464         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
54465         file.
54466         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
54467         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
54468         file: multiarch strchr for PPC32.
54469         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
54470         multiarch objects.
54471         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54472         (__libc_ifunc_impl_list): Likewise.
54473
54474         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
54475         name.
54476         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
54477         file.
54478         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
54479         file.
54480         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
54481         multiarch strchrnul for PPC32.
54482         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
54483         multiarch objects.
54484         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54485         (__libc_ifunc_impl_list): Likewise.
54486
54487         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
54488         file.
54489         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
54490         multiarch strncasecmp for PPC32.
54491         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
54492         file.
54493         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
54494         multiarch strncasecmp_l for PPC32.
54495         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
54496         strncasecmp multiarch objects.
54497         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54498         (__libc_ifunc_impl_list): Likewise.
54499
54500         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
54501         file.
54502         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
54503         multiarch strncasecmp for PPC32.
54504         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
54505         New file.
54506         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
54507         multiarch strcasecmp_l for PPC32.
54508         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
54509         multiarch objects.
54510         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54511         (__libc_ifunc_impl_list): Likewise.
54512
54513         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
54514         file.
54515         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
54516         file.
54517         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
54518         multiarch strncmp for PPC32.
54519         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
54520         multiarch objects.
54521         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54522         (__libc_ifunc_impl_list): Likewise.
54523
54524         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
54525         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
54526         file.
54527         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
54528         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
54529         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
54530         multiarch objects.
54531         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54532         (__libc_ifunc_impl_list): Likewise.
54533
54534         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
54535         file.
54536         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
54537         file.
54538         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
54539         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
54540         multiarch objects.
54541         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54542         (__libc_ifunc_impl_list): Likewise.
54543
54544         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
54545         file.
54546         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
54547         file.
54548         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
54549         multiarch rawmemchr for PPC32.
54550         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
54551         multiarch objects.
54552         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54553         (__libc_ifunc_impl_list): Likewise.
54554
54555         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
54556         file.
54557         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
54558         file.
54559         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
54560         file: memrchr multiarch for PPC32.
54561         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
54562         multiarch objects.
54563         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54564         (__libc_ifunc_impl_list): Likewise.
54565
54566         * string/memchr.c (__memchr): Using macro to redefine symbol name.
54567         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
54568         file.
54569         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
54570         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
54571         multiarch memchr for PPC32.
54572         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
54573         multiarch objects.
54574         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54575         (__libc_ifunc_impl_list): Likewise.
54576
54577         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
54578         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
54579         file.
54580         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
54581         file.
54582         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
54583         file: multiarch mempcpy for PPC32.
54584         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
54585         multiarch objects.
54586         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54587         (__libc_ifunc_impl_list): Likewise.
54588
54589         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
54590         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
54591         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
54592         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
54593         multiarch bzero for PPC32.
54594         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
54595         file.
54596         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
54597         file.
54598         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
54599         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
54600         file: multiarch memset for PPC32.
54601         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
54602         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
54603         memset multiarch objects.
54604         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54605         (__libc_ifunc_impl_list): Likewise.
54606
54607         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
54608         file.
54609         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
54610         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
54611         memcmp for PPC32.
54612         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
54613         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
54614         multiarch objects.
54615         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54616         (__libc_ifunc_impl_list): Likewise.
54617
54618         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
54619         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
54620         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
54621         file.
54622         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
54623         file.
54624         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
54625         file.
54626         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
54627         multiarch memcpy for PPC32.
54628         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
54629         multiarch objects.
54630         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54631         (__libc_ifunc_impl_list): Likewise.
54632
54633         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
54634         support multiarch for POWER/PPC32.
54635         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
54636         Likewise.
54637         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
54638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
54639         Implies file to make multiarch folder appers before the fpu and
54640         default folder for power4 configuration.
54641
54642 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54643
54644         * scripts/bench.pl: Append volatile keyword to type.
54645
54646 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54647
54648         * sysdeps/sh/sotruss-lib.c: New file.
54649         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
54650
54651 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54652
54653         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54654
54655 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
54656
54657         [BZ #6810]
54658         * math/w_tgamma.c: Include <errno.h>.
54659         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
54660         * math/w_tgammaf.c: Include <errno.h>.
54661         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
54662         * math/w_tgammal.c: Include <errno.h>.
54663         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
54664         * math/auto-libm-test-in: Do not allow missing errno on tgamma
54665         underflow.  Add more tgamma tests.
54666         * math/auto-libm-test-out: Regenerated.
54667         * sysdeps/i386/fpu/libm-test-ulps: Update.
54668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54669
54670         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
54671         sin, sinh, tan, tanh, tgamma, y0 and y1.
54672         * math/auto-libm-test-out: Regenerated.
54673         * math/libm-test.inc (TEST_COND_x86_64): New macro.
54674         (TEST_COND_x86): Likewise.
54675         (M_E2l): Remove macro.
54676         (M_E3l): Likewise.
54677         (M_2_SQRT_PIl): Likewise.
54678         (M_SQRT_PIl): Likewise.
54679         (M_1_DIV_El): Likewise.
54680         (log_test_data): Use AUTO_TESTS_f_f.
54681         (log10_test_data): Likewise.
54682         (log1p_test_data): Likewise.
54683         (log2_test_data): Likewise.
54684         (sin_test_data): Likewise.
54685         (sin_tonearest_test_data): Likewise.
54686         (sin_towardzero_test_data): Likewise.
54687         (sin_downward_test_data): Likewise.
54688         (sin_upward_test_data): Likewise.
54689         (sinh_test_data): Likewise.
54690         (sinh_tonearest_test_data): Likewise.
54691         (sinh_towardzero_test_data): Likewise.
54692         (sinh_downward_test_data): Likewise.
54693         (sinh_upward_test_data): Likewise.
54694         (tan_test_data): Likewise.
54695         (tan_tonearest_test_data): Likewise.
54696         (tan_towardzero_test_data): Likewise.
54697         (tan_downward_test_data): Likewise.
54698         (tan_upward_test_data): Likewise.
54699         (tanh_test_data): Likewise.
54700         (tgamma_test_data): Likewise.
54701         (y0_test_data): Likewise.
54702         (y1_test_data): Likewise.
54703         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
54704         (special_real_inputs): Add pi/4.
54705         * sysdeps/i386/fpu/libm-test-ulps: Update.
54706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54707
54708 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54709
54710         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
54711         "longjmp_target" static probes.
54712         (__longjmp): Rename to __longjmp_symbol.
54713         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
54714         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
54715         on which longjmp to generate.
54716         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
54717         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
54718         probe.
54719         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54720         (__sigjmp_save): Rename to __sigjmp_save_symbol.
54721         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
54722         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
54723         and __sigjmp_save_symbol based on which sigsetjmp to generated.
54724         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
54725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
54726         __longjmp_symbol based on which __longjmp to generate.
54727         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
54728         probe.
54729         (setjmp): Rename to setjmp_symbol.
54730         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54731         (_setjmp): Rename to _setjmp_symbol.
54732         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54733         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
54734         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
54735         which setjmp to generate.
54736         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
54737         "longjmp_target" static probes.
54738
54739 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
54740
54741         * benchtests/README: Add note about output arguments.
54742         * benchtests/bench-sincos.c: Remove file.
54743         * benchtests/sincos-inputs: New file.
54744         * scripts/bench.pl: Identify output arguments and define
54745         static variables for them.
54746
54747         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
54748
54749         [BZ #15941]
54750         * Makefile (INSTALL): Add install-plain.texi as the primary
54751         dependency.
54752         * manual/install-plain.texi: New file.
54753         * manual/install.texi: Include node directive only for
54754         non-plaintext output.
54755
54756 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
54757
54758         * stdlib/longlong.h: Update from GCC.
54759
54760         [BZ #6807]
54761         [BZ #15901]
54762         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
54763         * math/w_j0f.c (y0f): Likewise.
54764         * math/w_j0l.c (__y0l): Likewise.
54765         * math/w_j1.c (y1): Likewise.
54766         * math/w_j1f.c (y1f): Likewise.
54767         * math/w_j1l.c (__y1l): Likewise.
54768         * math/w_jn.c (yn): Likewise.
54769         * math/w_jnf.c (ynf): Likewise.
54770         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
54771         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
54772         value for Bessel function domain errors outside _SVID_ mode.
54773         Adjust sign of return value for yn (negative integer, 0).
54774         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
54775         by zero in return for negative x and set sign appropriately for
54776         negative n.
54777         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
54778         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
54779         * math/libm-test.inc (y0_test_data): Add more tests and adjust
54780         expectations in error cases.
54781         (y1_test_data): Likewise.
54782         (yn_test_data): Likewise.
54783         * sysdeps/i386/fpu/libm-test-ulps: Update.
54784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54785
54786 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54787
54788         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
54789         "64" to "64-v1".  Add "64-v2".
54790         (abi-64-options): Rename to ...
54791         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
54792         (abi-64-condition): Rename to ...
54793         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
54794         (abi-64-ld-soname): Rename to ...
54795         (abi-64-v1-ld-soname): ... this.
54796         (abi-64-v2-options): Define.
54797         (abi-64-v2-condition): Likewise.
54798         (abi-64-v2-ld-soname): Likewise.
54799         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
54800         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
54801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
54802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
54803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
54804
54805 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54806             Alan Modra  <amodra@gmail.com>
54807
54808         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
54809         New versions for use with the ELFv2 ABI.
54810         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
54811         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
54812         declaration.
54813         (struct La_ppc64v2_retval): Likewise.
54814         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
54815         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
54816         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
54817         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
54818         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
54819         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
54820         Do not save or restore CR.
54821         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
54822         (_dl_profile_resolve): Do no save or restore CR.  Support extended
54823         return values for ELFv2 ABI.  Fix location of FPR return registers.
54824         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
54825         updated values for _CALL_ELF == 2.
54826         (La_regs, La_retval, int_retval): Likewise.
54827
54828 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54829
54830         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
54831         (FRAME_MIN_SIZE_PARM): Likewise.
54832         (FRAME_BACKCHAIN): Likewise.
54833         (FRAME_CR_SAVE): Likewise.
54834         (FRAME_LR_SAVE): Likewise.
54835         (FRAME_TOC_SAVE): Likewise.
54836         (FRAME_PARM_SAVE): Likewise.
54837         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
54838         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
54839         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54840         (call_mcount_parm_offset): New macro.
54841         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
54842         (PROF): Use symbolic stack frame offsets.
54843         (TAIL_CALL_SYSCALL_ERROR): Likewise.
54844         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
54845         Redefine in terms of FRAME_MIN_SIZE.
54846         (_dl_runtime_resolve): Use symbolic stack frame offsets.
54847         (_dl_profile_resolve): Likewise.  Update comment.
54848         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
54849         symbols stack frame offsets.
54850         (__sigsetjmp): Likewise.
54851         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
54852         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
54853         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
54854         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
54855
54856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
54857         (FRAME_BACKCHAIN): Remove.
54858         (FRAME_CR_SAVE): Likewise.
54859         (FRAME_LR_SAVE): Likewise.
54860         (FRAME_COMPILER_DW): Likewise.
54861         (FRAME_LINKER_DW): Likewise.
54862         (FRAME_TOC_SAVE): Likewise.
54863         (FRAME_PARM_SAVE): Likewise.
54864         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
54865         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
54866         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
54868         (CHECK_SP): Use symbolic stack frame offsets.
54869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
54870         zone" instead of caller's parameter save area for temp storage.
54871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
54872         Likewise.  Also, use symbolic stack frame offsets.
54873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
54874         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
54875         our own stack frame instead of the caller's.
54876         (__socket): Use symbolic stack frame offsets.
54877
54878 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54879             Alan Modra  <amodra@gmail.com>
54880
54881         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
54882         Define.
54883         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
54884         (PPC64_LOCAL_ENTRY_OFFSET): Define.
54885         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
54886         New function.
54887         (elf_machine_fixup_plt): Call it.
54888         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
54889         reloc arguments.
54890         (elf_machine_rela): Update call to elf_machine_plt_conflict.
54891         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54892         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
54893         r2 before calling target.
54894
54895 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54896             Alan Modra  <amodra@gmail.com>
54897
54898         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
54899         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
54900         versions of macros to support ELFv2 ABI.
54901         (LOCALENTRY): New macro.
54902         (ENTRY, EALIGN): Use it.
54903         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
54904         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
54905         fall through into ENTRY entry point.
54906         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
54907         Only define if _CALL_ELF != 2.
54908
54909         (elf_machine_matches_host): Verify ABI version matches.
54910         (RTLD_START): Use LOCALENTRY.
54911         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
54912         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
54913         (PLT_ENTRY_WORDS): New macro.
54914         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
54915         (elf_machine_runtime_setup): Support ELFv2 ABI.
54916         (elf_machine_fixup_plt): Likewise.
54917         (elf_machine_plt_conflict): Likewise.
54918         (resolve_ifunc): Likewise.
54919         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
54920         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
54921         Likewise.
54922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
54923         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
54924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54925         (makecontext): Support ELFv2 ABI.
54926         * elf/elf.h (EF_PPC64_ABI): Define.
54927
54928 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54929
54930         * sysdeps/powerpc/powerpc64/sysdep.h
54931         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
54932         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
54933         (ENTRY) [ASSEMBLER]: ... but instead here ...
54934         (EALIGN) [ASSEMBLER]: ... and here.
54935         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
54936         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
54937         (ENTRY_2) [!ASSEMBLER]: Use it.
54938         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
54939         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
54940         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54941         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
54942         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
54943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
54944         Use PPC64_LOAD_FUNCPTR.
54945
54946         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
54947
54948 2013-12-04  Alan Modra  <amodra@gmail.com>
54949
54950         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
54951         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
54952         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
54953         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
54954
54955         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
54956         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
54957         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
54958         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
54959         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
54960         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
54961
54962 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54963
54964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54965         (__makecontext): Fix incorrect CFI when backtracing out of
54966         context created via makecontext.
54967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
54968         (__setcontext): Fix incorrect CFI during switch to new context.
54969         (__novec_setcontext): Likewise.
54970
54971 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54972
54973         [BZ #4772]
54974         * time/strptime_l.c (__strptime_internal): Allow modifiers
54975         in strptime.
54976         * time/tst-strptime.c (day_tests): Add testcase.
54977
54978 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
54979
54980         * scripts/bench.pl: Skip over blank lines.
54981
54982 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54983
54984         [BZ #926]
54985         * manual/time.texi (Calendar Time): Clarify what timezone functions
54986         use.
54987
54988 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54989
54990         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54991
54992 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54993
54994         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
54995         implementation.
54996         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
54997         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
54998         * debug/memset_chk.c (__memset_chk): Likewise.
54999         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
55000         * debug/strncpy_chk.c: Likewise.
55001
55002 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
55003
55004         [BZ #15268]
55005         [BZ #15425]
55006         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
55007         (__ieee754_exp): For possibly underflowing results, check size of
55008         result and force underflow exception if required.
55009         * math/auto-libm-test-in: Add more tests of exp.
55010         * math/auto-libm-test-out: Regenerated.
55011         * sysdeps/i386/fpu/libm-test-ulps: Update.
55012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55013
55014         [BZ #16283]
55015         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
55016         * math/w_exp2f.c (__exp2f): Likewise.
55017         * math/w_exp2l.c (__exp2l): Likewise.
55018         * math/auto-libm-test-in: Do not allow missing errno on exp2
55019         underflow.
55020         * math/auto-libm-test-out: Regenerated.
55021
55022 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
55023
55024         [BZ #16274]
55025         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
55026         handle filename validation.
55027         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
55028         (do_open): Delete.
55029
55030 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
55031
55032         [BZ #6786]
55033         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
55034         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
55035         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
55036         <float.h>.
55037         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
55038         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
55039         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55040         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
55041         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55042         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
55043         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55044         * math/auto-libm-test-in: Don't allow missing errno from erfc.
55045         Add more erfc tests.
55046         * math/auto-libm-test-out: Regenerated.
55047         * sysdeps/i386/fpu/libm-test-ulps: Update.
55048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55049
55050         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
55051         exp2, expm1, j0 and j1.
55052         * math/auto-libm-test-out: Regenerated.
55053         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
55054         (erfc_test_data): Likewise.
55055         (exp_test_data): Likewise.
55056         (exp_tonearest_test_data): Likewise.
55057         (exp_towardzero_test_data): Likewise.
55058         (exp_downward_test_data): Likewise.
55059         (exp_upward_test_data): Likewise.
55060         (exp10_test_data): Likewise.
55061         (exp2_test_data): Likewise.
55062         (expm1_test_data): Likewise.
55063         (j0_test_data): Likewise.
55064         (j1_test_data): Likewise.
55065         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
55066         (input_flag_type): Add flag_xfail_rounding.
55067         (input_flags): Add xfail-rounding.
55068         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
55069         (output_for_one_input_case): Handle flag_xfail_rounding.
55070         * sysdeps/i386/fpu/libm-test-ulps: Update.
55071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55072
55073 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
55074
55075         [BZ #16289]
55076         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
55077         division by 0.
55078
55079 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55080
55081         [BZ #16195]
55082         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
55083         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
55084         (STAP_PROBE0): New macro.
55085         (STAP_PROBE1): Likewise.
55086         (STAP_PROBE2): Likewise.
55087         (STAP_PROBE3): Likewise.
55088         (STAP_PROBE4): Likewise.
55089
55090 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
55091
55092         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
55093
55094 2013-12-02  Steve Ellcey  <sellcey@mips.com>
55095
55096         * benchtests/Makefile (bench): Add sqrt.
55097         (LDLIBS-bench-sqrt): New.
55098         * benchtests/sqrt-input: New.
55099
55100 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
55101
55102         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
55103         (GAIH_EAI): Likewise.
55104         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
55105         (gaih_inet): Likewise.
55106         (getaddrinfo): Don't use GAIH_EAI.
55107
55108         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
55109         (struct gaih): Remove definition.
55110
55111 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55112
55113         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
55114         Use HERRNOP directly.
55115
55116 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55117
55118         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55119
55120 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
55121
55122         * math/gen-auto-libm-tests.c (test_functions): Add more
55123         single-argument functions.
55124         (special_fill_pi_2): New function.
55125         (special_fill_minus_pi_2): Likewise.
55126         (special_fill_pi_6): Likewise.
55127         (special_fill_minus_pi_6): Likewise.
55128         (special_fill_pi_3): Likewise.
55129         (special_fill_2pi_3): Likewise.
55130         (special_fill_e): Likewise.
55131         (special_fill_1_e): Likewise.
55132         (special_fill_e_minus_1): Likewise.
55133         (special_real_inputs): Add more special inputs.
55134         (output_for_one_input_case): Do not require ERANGE on underflow to
55135         zero if round-to-nearest result does not underflow to zero, unless
55136         exact results required.
55137         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
55138         atan, atanh, cbrt, cos and cosh.
55139         * math/auto-libm-test-out: Regenerated.
55140         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
55141         (acos_tonearest_test_data): Likewise.
55142         (acos_towardzero_test_data): Likewise.
55143         (acos_downward_test_data): Likewise.
55144         (acos_upward_test_data): Likewise.
55145         (acosh_test_data): Likewise.
55146         (asin_test_data): Likewise.
55147         (asin_tonearest_test_data): Likewise.
55148         (asin_towardzero_test_data): Likewise.
55149         (asin_upward_test_data): Likewise.
55150         (asinh_test_data): Likewise.
55151         (atan_test_data): Likewise.
55152         (atanh_test_data): Likewise.
55153         (cbrt_test_data): Likewise.
55154         (cos_test_data): Likewise.
55155         (cos_tonearest_test_data): Likewise.
55156         (cos_towardzero_test_data): Likewise.
55157         (cos_downward_test_data): Likewise.
55158         (cos_upward_test_data): Likewise.
55159         (cosh_test_data): Likewise.
55160         (cosh_tonearest_test_data): Likewise.
55161         (cosh_towardzero_test_data): Likewise.
55162         (cosh_downward_test_data): Likewise.
55163         (cosh_upward_test_data): Likewise.
55164         * sysdeps/i386/fpu/libm-test-ulps: Update.
55165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55166
55167 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
55168
55169         [BZ #6787]
55170         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
55171         * math/w_exp10f.c (__exp10f): Likewise.
55172         * math/w_exp10l.c (__exp10l): Likewise.
55173         * math/libm-test.inc (exp10_test_data): Add more tests and expect
55174         errno settings in existing tests.
55175
55176         [BZ #14032]
55177         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
55178         precision control set to double precision.
55179         * sysdeps/i386/fpu/w_sqrt.c: New file.
55180         * math/auto-libm-test-in: Add more tests.
55181         * math/auto-libm-test-out: Update.
55182
55183         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
55184         (sqrt_test_tonearest): New function.
55185         (sqrt_towardzero_test_data): New variable.
55186         (sqrt_test_towardzero): New function.
55187         (sqrt_downward_test_data): New variable.
55188         (sqrt_test_downward): New function.
55189         (sqrt_upward_test_data): New variable.
55190         (sqrt_test_upward): New function.
55191         (main): Call the new functions.
55192
55193         * math/gen-auto-libm-tests.c: New file.
55194         * math/auto-libm-test-in: Likewise.
55195         * math/auto-libm-test-out: New generated file.
55196         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
55197         variables.
55198         (%beautify): Add generated representations of zero.
55199         (top level): Set $auto_input and call parse_auto_input.
55200         (beautify): Remove trailing "f" from hex float constants.
55201         (parse_args): Handle XFAIL_TEST.
55202         (convert_condition): New function.
55203         (or_value): Likewise.
55204         (or_cond_value): Likewise.
55205         (generate_testfile): Handle AUTO_TESTS_* lines.
55206         (parse_auto_input): New function.
55207         * math/libm-test.inc (XFAIL_TEST): New macro.
55208         (ERRNO_UNCHANGED): Update value.
55209         (ERRNO_EDOM): Likewise.
55210         (ERRNO_ERANGE): Likewise.
55211         (IGNORE_RESULT): Likewise.
55212         (TEST_COND_flt_32): New macro.
55213         (TEST_COND_dbl_64): Likewise.
55214         (TEST_COND_ldbl_96_intel): Likewise.
55215         (TEST_COND_ldbl_96_m68k): Likewise.
55216         (TEST_COND_ldbl_128): Likewise.
55217         (TEST_COND_ldbl_128ibm): Likewise.
55218         (TEST_COND_long32): Likewise.
55219         (TEST_COND_long64): Likewise.
55220         (TEST_COND_before_rounding): Likewise.
55221         (TEST_COND_after_rounding): Likewise.
55222         (enable_test): Handle XFAIL_TEST flag.
55223         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
55224         with finite results.
55225         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
55226         auto-libm-test-out.
55227
55228 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55229             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55230
55231         [BZ #16214]
55232         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
55233         __tls_get_addr_internal instead of __tls_get_offset in order to
55234         avoid GOT pointer dependency.  Make rtld export
55235         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
55236         __tls_get_addr since we are a __tls_get_offset platform.
55237         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
55238         GOT pointer being set up before.
55239         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
55240
55241 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
55242
55243         * manual/math.texi (Errors in Math Functions): Document accuracy
55244         goals.
55245
55246         [BZ #15004]
55247         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
55248         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
55249         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
55250         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
55251         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
55252         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
55253         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
55254         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
55255         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
55256         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
55257         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
55258         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
55259         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
55260         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
55261         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
55262         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
55263
55264         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
55265         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
55266         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
55267         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
55268         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
55269         Likewise.
55270         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
55271         Likewise.
55272         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
55273         Likewise.
55274         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
55275         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
55276         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
55277         atomic-feupdateenv and flt-rounds.
55278         * sysdeps/powerpc/nofpu/Versions (libc): Add
55279         __atomic_feholdexcept, __atomic_feclearexcept,
55280         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
55281         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
55282         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
55283         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
55284         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
55285         here.
55286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
55287         Update.
55288
55289         * manual/arith.texi (FP Exceptions): Document that exceptions may
55290         not be raised when matherr is used.
55291         (Math Error Reporting): Document overflow in directed rounding
55292         modes.  Document that errno may not be set when finite values are
55293         returned on overflow.  Document intent to set errno on underflow
55294         only for underflow to zero.
55295
55296         [BZ #16271]
55297         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
55298         round-to-nearest then adjust result for other rounding modes.
55299         * include/fenv.h (fegetround): Use libm_hidden_proto.
55300         * math/fegetround.c (fegetround): Use libm_hidden_def.
55301         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
55302         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
55303         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55304         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
55305         Likewise.
55306         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
55307         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
55308         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
55309         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
55310
55311 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55312
55313         [BZ #16077]
55314         * nss/Versions (libnss_files): Add
55315         _nss_files_gethostbyname3_r.
55316         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
55317         New function.
55318         (HOST_DB_LOOKUP): Remove macro.
55319         (_nss_files_gethostbyname_r): Implement function without the
55320         HOST_DB_LOOKUP macro.
55321         (_nss_files_gethostbyname2_r): Likewise.
55322
55323 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
55324
55325         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
55326
55327 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
55328
55329         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
55330         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
55331         warning.
55332
55333 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55334
55335         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
55336         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
55337         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
55338         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
55339         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
55340         __fe_nomask_env_priv and attribute_hidden.
55341         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
55342         (libc_feupdateenv_test_ppc): Likewise.
55343         (libc_feresetround_ppc): Likewise.
55344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55345         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
55346         compat_symbol macro.
55347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55348         (__fe_nomask_env): Likewise.
55349         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
55350
55351 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55352
55353         * string/Makefile: Remove ifunc tests.
55354         * string/test-string.h: Define TEST_IFUNC.
55355         * string/test-bcopy-ifunc.c: Remove.
55356         * string/test-bzero-ifunc.c: Likewise.
55357         * string/test-memccpy-ifunc.c: Likewise.
55358         * string/test-memchr-ifunc.c: Likewise.
55359         * string/test-memcmp-ifunc.c: Likewise.
55360         * string/test-memcpy-ifunc.c: Likewise.
55361         * string/test-memmem-ifunc.c: Likewise.
55362         * string/test-memmove-ifunc.c: Likewise.
55363         * string/test-mempcpy-ifunc.c: Likewise.
55364         * string/test-memrchr-ifunc.c: Likewise.
55365         * string/test-memset-ifunc.c: Likewise.
55366         * string/test-rawmemchr-ifunc.c: Likewise.
55367         * string/test-stpcpy-ifunc.c: Likewise.
55368         * string/test-stpncpy-ifunc.c: Likewise.
55369         * string/test-strcasecmp-ifunc.c: Likewise.
55370         * string/test-strcasestr-ifunc.c: Likewise.
55371         * string/test-strcat-ifunc.c: Likewise.
55372         * string/test-strchr-ifunc.c: Likewise.
55373         * string/test-strchrnul-ifunc.c: Likewise.
55374         * string/test-strcmp-ifunc.c: Likewise.
55375         * string/test-strcpy-ifunc.c: Likewise.
55376         * string/test-strcspn-ifunc.c: Likewise.
55377         * string/test-strlen-ifunc.c: Likewise.
55378         * string/test-strncasecmp-ifunc.c: Likewise.
55379         * string/test-strncat-ifunc.c: Likewise.
55380         * string/test-strncmp-ifunc.c: Likewise.
55381         * string/test-strncpy-ifunc.c: Likewise.
55382         * string/test-strnlen-ifunc.c: Likewise.
55383         * string/test-strpbrk-ifunc.c: Likewise.
55384         * string/test-strrchr-ifunc.c: Likewise.
55385         * string/test-strspn-ifunc.c: Likewise.
55386         * string/test-strstr-ifunc.c: Likewise.
55387
55388 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55389
55390         * benchtests/Makefile: Remove ifunc tests.
55391         * benchtests/bench-string.h: Define TEST_IFUNC.
55392         * benchtests/bench-bcopy-ifunc.c: Remove.
55393         * benchtests/bench-bzero-ifunc.c: Likewise.
55394         * benchtests/bench-memccpy-ifunc.c: Likewise.
55395         * benchtests/bench-memchr-ifunc.c: Likewise.
55396         * benchtests/bench-memcmp-ifunc.c: Likewise.
55397         * benchtests/bench-memcpy-ifunc.c: Likewise.
55398         * benchtests/bench-memmem-ifunc.c: Likewise.
55399         * benchtests/bench-memmove-ifunc.c: Likewise.
55400         * benchtests/bench-mempcpy-ifunc.c: Likewise.
55401         * benchtests/bench-memrchr-ifunc.c: Likewise.
55402         * benchtests/bench-memset-ifunc.c: Likewise.
55403         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
55404         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
55405         * benchtests/bench-stpcpy-ifunc.c: Likewise.
55406         * benchtests/bench-stpncpy-ifunc.c: Likewise.
55407         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
55408         * benchtests/bench-strcasestr-ifunc.c: Likewise.
55409         * benchtests/bench-strcat-ifunc.c: Likewise.
55410         * benchtests/bench-strchr-ifunc.c: Likewise.
55411         * benchtests/bench-strchrnul-ifunc.c: Likewise.
55412         * benchtests/bench-strcmp-ifunc.c: Likewise.
55413         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
55414         * benchtests/bench-strcpy-ifunc.c: Likewise.
55415         * benchtests/bench-strcspn-ifunc.c: Likewise.
55416         * benchtests/bench-strlen-ifunc.c: Likewise.
55417         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
55418         * benchtests/bench-strncat-ifunc.c: Likewise.
55419         * benchtests/bench-strncmp-ifunc.c: Likewise.
55420         * benchtests/bench-strncpy-ifunc.c: Likewise.
55421         * benchtests/bench-strnlen-ifunc.c: Likewise.
55422         * benchtests/bench-strpbrk-ifunc.c: Likewise.
55423         * benchtests/bench-strrchr-ifunc.c: Likewise.
55424         * benchtests/bench-strsep-ifunc.c: Likewise.
55425         * benchtests/bench-strspn-ifunc.c: Likewise.
55426         * benchtests/bench-strstr-ifunc.c: Likewise.
55427
55428 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55429
55430         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
55431
55432 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55433
55434         * resolv/netdb.h: Use __glibc_reserved instead __unused.
55435         * rt/aio.h: Likewise.
55436         * sysdeps/gnu/bits/utmp.h: Likewise.
55437         * sysdeps/gnu/bits/utmpx.h: Likewise.
55438         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
55439         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
55440         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
55441         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
55442         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
55443         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
55444         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
55445         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
55446         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
55447         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
55448         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
55449         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
55450         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
55451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
55452         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
55453         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
55454         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
55455         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
55456         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
55457         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
55458         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
55459         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
55460         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
55461         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
55462         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
55463         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
55464         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
55465         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
55466         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
55467         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
55468         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
55469         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
55470         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
55471         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
55472         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
55473         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
55474         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
55475         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
55476         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
55477         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
55478         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
55479         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
55480
55481 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
55482
55483         [BZ #16245]
55484         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
55485         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
55486
55487 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
55488
55489         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
55490         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
55491         Likewise.
55492
55493 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55494
55495         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
55496         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
55497         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
55498         (__fesetround): Remove define.
55499         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
55500         rounding and exceptions handling.
55501         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
55502         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
55503         (__fe_nomask_env): Likewise.
55504         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
55505         __fegetround instead of fegetround.
55506         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55507         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
55508
55509 2013-11-21  Roland McGrath  <roland@hack.frob.com>
55510
55511         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
55512         it's there.
55513
55514         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
55515
55516 2013-11-21  Meador Inge  <meadori@codesourcery.com>
55517
55518         [BZ #11157]
55519         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
55520         (encrypt_r): Likewise.
55521         * malloc/obstack.h (obstack_free): Likewise.
55522         * posix/unistd.h (encrypt): Likewise.
55523
55524 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
55525
55526         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
55527         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
55528         DL_CALL_DT_FINI() that call the functions directly.
55529         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
55530         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
55531         * elf/dl-fini.c: Likewise.
55532
55533 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
55534
55535         * malloc/hooks.c (memalign_check): Add alignment rounding.
55536         * malloc/malloc.c (_mid_memalign): New function.
55537         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
55538         Implement by calling _mid_memalign.
55539         * manual/probes.texi (Memory Allocation Probes): Remove
55540         memory_valloc_retry and memory_pvalloc_retry.
55541
55542 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
55543
55544         * locale/programs/locarchive.c (open_archive): Add const
55545         qualifier to ARCHIVEFNAME and copy default fname to
55546         DEFAULT_FNAME.
55547
55548         [BZ #15601]
55549         * libio/tst-widetext.input: Rename Oriya to Odia.
55550         * locale/iso-639.def: Likewise.
55551
55552         * manual/probes.texi (Mathematical Function Probes): Add
55553         documentation for sin, cos, asin and acos probes.
55554         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
55555         (__sin32): Add slowasin probe.
55556         (__cos32): Add slowacos probe.
55557         (__mpsin): Add slowsin probe.
55558         (__mpcos): Add slowcos probe.
55559
55560 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
55561
55562         [BZ #15483]
55563         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
55564         thread-local __sim_exceptions_thread and global
55565         __sim_exceptions_global.
55566         (__sim_disabled_exceptions): Change to thread-local
55567         __sim_disabled_exceptions_thread and global
55568         __sim_disabled_exceptions_global.
55569         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55570         and global __sim_round_mode_global.
55571         (__simulate_exceptions): Use thread-local floating-point state and
55572         set global state from it as needed.
55573         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
55574         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
55575         __sim_round_mode_thread.
55576         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
55577         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
55578         and global __sim_exceptions_global.
55579         (__sim_disabled_exceptions): Change to thread-local
55580         __sim_disabled_exceptions_thread and global
55581         __sim_disabled_exceptions_global.
55582         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55583         and global __sim_round_mode_global.
55584         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
55585         (SIM_SET_GLOBAL): Likewise.
55586         * sysdeps/powerpc/soft-fp/sfp-machine.h
55587         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
55588         __sim_round_mode_thread.
55589         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
55590         __sim_disabled_exceptions_thread.
55591         (__sim_exceptions): Change to __sim_exceptions_thread.
55592         (__sim_disabled_exceptions): Change to
55593         __sim_disabled_exceptions_thread.
55594         (__sim_round_mode): Change to __sim_round_mode_thread.
55595         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
55596         thread-local floating-point state and set global state from it as
55597         needed.
55598         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
55599         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
55600         (__sim_disabled_exceptions): Remove extern declaration.
55601         (feenableexcept): Use thread-local floating-point state and set
55602         global state from it as needed.
55603         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
55604         extern declaration.
55605         (__sim_disabled_exceptions): Likewise.
55606         (__sim_round_mode): Likewise.
55607         (__fegetenv): Use thread-local floating-point state.
55608         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
55609         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55610         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
55611         floating-point state and set global state from it as needed.
55612         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
55613         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
55614         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
55615         Likewise.
55616         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
55617         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
55618         Likewise.
55619         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
55620         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
55621         Use __sim_round_mode_thread.
55622         * math/test-fenv-tls.c: New file.
55623         * math/Makefile (tests): Add test-fenv-tls.
55624         ($(objpfx)test-fenv-tls): Depend on
55625         $(common-objpfx)nptl/libpthread.so.
55626
55627 2013-11-19  Andreas Schwab  <schwab@suse.de>
55628
55629         * locale/programs/locale.c (show_info): Decode wordarray elements.
55630         * locale/categories.def (LC_MONETARY): Add element for
55631         _NL_MONETARY_CRNCYSTR.
55632         * locale/C-monetary.c (conversion_rate): New variable.
55633         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
55634         element.
55635
55636 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
55637
55638         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
55639         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
55640
55641 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
55642
55643         * elf/Makefile (tst-auxv): New test.
55644         * elf/tst-auxv.c: New
55645         * elf/rtld.c (dl_main): Adjust AT_EXECFN
55646
55647 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
55648
55649         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
55650         (hidden_proto): Caller changed.
55651         (hidden_tls_proto): New macro.
55652         (libc_hidden_tls_proto): Likewise.
55653         (rtld_hidden_tls_proto): Likewise.
55654         (libm_hidden_tls_proto): Likewise.
55655         (libresolv_hidden_tls_proto): Likewise.
55656         (librt_hidden_tls_proto): Likewise.
55657         (libdl_hidden_tls_proto): Likewise.
55658         (libnss_files_hidden_tls_proto): Likewise.
55659         (libnsl_hidden_tls_proto): Likewise.
55660         (libnss_nisplus_hidden_tls_proto): Likewise.
55661         (libutil_hidden_tls_proto): Likewise.
55662
55663 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
55664
55665         [BZ #10253]
55666         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
55667         (decompose_rpath): Defer expansion to fillin_rpath.
55668         (_dl_init_paths): Pass linkmap to fillin_rpath.
55669
55670 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
55671
55672         * benchtests/Makefile: Add strsep.
55673         * benchtests/bench-strsep.c: New file: strsep benchtest.
55674         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
55675
55676 2013-11-18  Andreas Schwab  <schwab@suse.de>
55677
55678         * locale/programs/locale.c (show_info) [case byte]: Check for
55679         '\377' instead of '\177'.
55680         * locale/C-monetary.c (not_available): Always use "\377".
55681         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
55682         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
55683         detect unavailable sign_posn locale elements.
55684         * locale/localeconv.c (__localeconv): For grouping and
55685         mon_grouping handle "\177" and "\377" like no grouping.
55686         (INT_ELEM): New macro.  Use it to set all numeric members.
55687         * locale/programs/ld-monetary.c (monetary_read)
55688         <tok_mon_grouping>: Normalize single -1 to the empty string.
55689         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
55690         Likewise.
55691
55692 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55693
55694         [BZ #16055]
55695         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
55696         when we match (nil).
55697         * stdio-common/tst-sscanf.c (struct test): Add testcase.
55698
55699 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
55700
55701         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
55702         (NO_TEST_INLINE): Update value.
55703         (ERRNO_UNCHANGED): Likewise.
55704         (ERRNO_EDOM): Likewise.
55705         (ERRNO_ERANGE): Likewise.
55706         (IGNORE_RESULT): Likewise.
55707         (check_float_internal): Check signs of NaN results if
55708         TEST_NAN_SIGN used.
55709         (check_complex): Pass TEST_NAN_SIGN flag through to second
55710         check_float_internal call.
55711         (copysign_test_data): Add tests with quiet NaNs as second
55712         argument.  Use TEST_NAN_SIGN.
55713         (fabs_test_data): Add test of negative quiet NaN argument.  Use
55714         TEST_NAN_SIGN.
55715         (signbit_test_data): Add tests of quiet NaN argument.
55716         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
55717
55718         * math/gen-libm-test.pl (show_exceptions): Take extra argument
55719         $ignore_result.
55720         (parse_args): Handle function results specified as IGNORE.
55721         * math/libm-test.inc (IGNORE_RESULT): New macro.
55722         (check_float_internal): Do not check numerical result if flag
55723         IGNORE_RESULT set.
55724         (check_complex): Pass through IGNORE_RESULT to second
55725         check_float_internal call.
55726         (check_int): Do not check numerical result if flag IGNORE_RESULT
55727         set.
55728         (check_long): Likewise.
55729         (check_bool): Likewise.
55730         (check_longlong): Likewise.
55731         (lrint_test_data): Add tests of infinite and NaN arguments.
55732         (lrint_tonearest_test_data): Likewise.
55733         (lrint_towardzero_test_data): Likewise.
55734         (lrint_downward_test_data): Likewise.
55735         (lrint_upward_test_data): Likewise.
55736         (llrint_test_data): Likewise.
55737         (llrint_tonearest_test_data): Likewise.
55738         (llrint_towardzero_test_data): Likewise.
55739         (llrint_downward_test_data): Likewise.
55740         (llrint_upward_test_data): Likewise.
55741         (lround_test_data): Likewise.
55742         (llround_test_data): Likewise.
55743
55744         * math/libm-test.inc (NO_TEST_INLINE): New macro.
55745         (ERRNO_UNCHANGED): Update value.
55746         (ERRNO_EDOM): Likewise.
55747         (ERRNO_ERANGE): Likewise.
55748         (NO_TEST_INLINE_FLOAT): New macro.
55749         (NO_TEST_INLINE_DOUBLE): Likewise.
55750         (enable_test): New function.
55751         (RUN_TEST_f_f): Check enable_test before running test.
55752         (RUN_TEST_2_f): Likewise.
55753         (RUN_TEST_fff_f): Likewise.
55754         (RUN_TEST_c_f): Likewise.
55755         (RUN_TEST_f_f1): Likewise.
55756         (RUN_TEST_fF_f1): Likewise.
55757         (RUN_TEST_fI_f1): Likewise.
55758         (RUN_TEST_ffI_f1): Likewise.
55759         (RUN_TEST_c_c): Likewise.
55760         (RUN_TEST_cc_c): Likewise.
55761         (RUN_TEST_f_i): Likewise.
55762         (RUN_TEST_f_i_tg): Likewise.
55763         (RUN_TEST_ff_i_tg): Likewise.
55764         (RUN_TEST_f_b): Likewise.
55765         (RUN_TEST_f_b_tg): Likewise.
55766         (RUN_TEST_f_l): Likewise.
55767         (RUN_TEST_f_L): Likewise.
55768         (RUN_TEST_fFF_11): Likewise.
55769         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
55770         conditionals.
55771         (cosh_test_data): Likewise.
55772         (exp_test_data): Likewise.
55773         (expm1_test_data): Likewise.
55774         (hypot_test_data): Likewise.
55775         (pow_test_data): Likewise.
55776         (sinh_test_data): Likewise.
55777         (tanh_test_data): Likewise.
55778         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
55779         flags argument.
55780
55781         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
55782         tests with quiet NaN input and output.
55783         (acosh_test_data): Likewise.
55784         (asin_test_data): Likewise.
55785         (asinh_test_data): Likewise.
55786         (atan_test_data): Likewise.
55787         (atanh_test_data): Likewise.
55788         (atan2_test_data): Likewise.
55789         (cbrt_test_data): Likewise.
55790         (cos_test_data): Likewise.
55791         (cosh_test_data): Likewise.
55792         (erf_test_data): Likewise.
55793         (erfc_test_data): Likewise.
55794         (exp_test_data): Likewise.
55795         (exp10_test_data): Likewise.
55796         (exp2_test_data): Likewise.
55797         (expm1_test_data): Likewise.
55798         (hypot_test_data): Likewise.
55799         (j0_test_data): Likewise.
55800         (j1_test_data): Likewise.
55801         (jn_test_data): Likewise.
55802         (lgamma_test_data): Likewise.
55803         (log_test_data): Likewise.
55804         (log10_test_data): Likewise.
55805         (log1p_test_data): Likewise.
55806         (log2_test_data): Likewise.
55807         (pow_test_data): Likewise.
55808         (scalb_test_data): Likewise.
55809         (sin_test_data): Likewise.
55810         (sincos_test_data): Likewise.
55811         (sinh_test_data): Likewise.
55812         (tan_test_data): Likewise.
55813         (tanh_test_data): Likewise.
55814         (tgamma_test_data): Likewise.
55815         (y0_test_data): Likewise.
55816         (y1_test_data): Likewise.
55817         (yn_test_data): Likewise.
55818
55819         [BZ #16167]
55820         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
55821         argument being NaN and avoid computations with second argument in
55822         that case.
55823         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
55824         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
55825         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
55826
55827 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
55828
55829         * locale/iso-639.def: Add Chitwani Tharu (the).
55830
55831 2013-11-14  Andreas Schwab  <schwab@suse.de>
55832
55833         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
55834         word instead of empty string.
55835
55836 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55837
55838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55839         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
55840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55841         (__fe_nomask_env): Likewise.
55842
55843 2013-11-13  Steve Ellcey  <sellcey@mips.com>
55844
55845         * benchtests/bench-timing.h: Include time.h.
55846
55847 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
55848
55849         [BZ #15997]
55850         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
55851         to 3.4.0 for x32.
55852         * sysdeps/unix/sysv/linux/configure: Regenerated.
55853
55854 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
55855
55856         [BZ #16151]
55857         * stdlib/strtod_l.c (round_and_return): Do not consider
55858         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
55859         exponent one less than half the least subnormal exponent.
55860         * stdlib/test-strtod-round-data: Add more tests.
55861         * stdlib/tst-strtod-round.c (tests): Regenerated.
55862
55863 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55864
55865         [BZ #14143]
55866         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
55867         (__fe_mask_env): Likewise.
55868         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
55869         libm_hidden_proto and add function prototype.
55870         (__fe_mask_env): Add function prototype.
55871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55872         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
55873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
55874         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
55875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55876         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
55877
55878 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55879
55880         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
55881         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
55882
55883 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55884
55885         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
55886         of htab_find_slot().
55887
55888 2013-11-11  David S. Miller  <davem@davemloft.net>
55889
55890         [BZ #16150]
55891         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
55892         symbol in the non-vis3 case in static builds.
55893         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
55894         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
55895         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
55896         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
55897
55898 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
55899
55900         [BZ #387]
55901         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
55902         it is empty.
55903
55904 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55905
55906         * benchtests/Makefile: Add bench-strtod.
55907         * benchtests/bench-strtod.c: New file: strtod benchtest
55908
55909 2013-11-11  Andreas Schwab  <schwab@suse.de>
55910
55911         [BZ #16153]
55912         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
55913         terminating NUL in key length.
55914
55915 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55916
55917         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55918         Add artificial ODP entry for vDSO symbol for PPC64.
55919         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
55920         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
55921
55922 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55923
55924         [BZ #15374]
55925         * nss/getent.c (services_keys): Recognize services starting with digit.
55926
55927 2013-11-06  David S. Miller  <davem@davemloft.net>
55928
55929         [BZ #15985]
55930         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
55931         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
55932
55933 2013-11-06  Will Newton  <will.newton@linaro.org>
55934
55935         * manual/memory.texi (Malloc Examples): Remove register
55936         keyword from examples.
55937
55938 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
55939
55940         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
55941
55942 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
55943
55944         [BZ #6981]
55945         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
55946         depending on [__GCC_IEC_559 > 0].
55947         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
55948         depending on [__GCC_IEC_559_COMPLEX > 0].
55949
55950 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
55951
55952         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
55953         to iso-639.def.
55954
55955 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
55956
55957         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
55958
55959 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
55960
55961         [BZ #16112]
55962         * malloc/malloc (malloc_info): Do not handle first bin as
55963         special case.
55964
55965 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
55966
55967         * locale/iso-639.def: Add Central Nahuatl (nhn).
55968
55969 2013-11-01  Bruno Haible  <bruno@clisp.org>
55970
55971         [BZ #7003]
55972         * manual/math.texi (BSD Random): Specify range upper bound as
55973         in POSIX.
55974
55975 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
55976
55977         * locale/iso-639.def: Add Meadow Mari (mhr).
55978
55979 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
55980
55981         [BZ #14752], [BZ #15763]
55982         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
55983         Validate name.
55984         * rt/tst_shm.c: Add test for escaping directory.
55985
55986 2013-10-31  Andreas Schwab  <schwab@suse.de>
55987
55988         [BZ #15917]
55989         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
55990         followed by 'x' as part of digit sequence.
55991         * stdio-common/tst-sscanf.c (double_tests2): New tests.
55992
55993 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
55994
55995         [BZ #16037]
55996         * configure.ac: allow GNU Make 4.0 and greater.
55997         * configure: Regenerated.
55998
55999 2013-10-30  Will Newton  <will.newton@linaro.org>
56000
56001         [BZ #16038]
56002         * malloc/hooks.c (memalign_check): Limit alignment to the
56003         maximum representable power of two.
56004         * malloc/malloc.c (__libc_memalign): Likewise.
56005         * malloc/tst-memalign.c (do_test): Add test for very
56006         large alignment values.
56007         * malloc/tst-posix_memalign.c (do_test): Likewise.
56008
56009 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
56010
56011         [BZ #11087]
56012         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
56013         (munmap_chunk): Likewise.
56014         (mremap_chunk): Likewise.
56015
56016 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
56017
56018         [BZ #15799]
56019         * stdlib/div.c (div): Remove obsolete code.
56020         * stdlib/ldiv.c (ldiv): Likewise.
56021         * stdlib/lldiv.c (lldiv): Likewise.
56022
56023 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
56024
56025         [BZ #16071]
56026         * nss/nss_files/files-XXX.c (get_contents_ret): New
56027         enumerator.
56028         (get_contents): New function.
56029         (internal_getent): Use it.  Expand size of LINEBUFLEN.
56030
56031 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
56032
56033         * configure.in: Moved to ...
56034         * configure.ac: ... here. Change reference to configure.in
56035         to configure.ac.
56036         * sysdeps/arm/preconfigure.ac: ... here.
56037         configure.in to configure.ac.
56038         * sysdeps/gnu/configure.in: Moved to ...
56039         * sysdeps/gnu/configure.ac: ... here.
56040         * sysdeps/i386/configure.in: Moved to ...
56041         * sysdeps/i386/configure.ac: ... here.
56042         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
56043         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
56044         * sysdeps/mach/configure.in: Moved to ...
56045         * sysdeps/mach/configure.ac: ... here.
56046         * sysdeps/mach/hurd/configure.in: Moved to ...
56047         * sysdeps/mach/hurd/configure.ac: ... here.
56048         * sysdeps/powerpc/configure.in: Moved to ...
56049         * sysdeps/powerpc/configure.ac: ... here.
56050         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
56051         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
56052         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
56053         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
56054         * sysdeps/s390/s390-32/configure.in: Moved to ...
56055         * sysdeps/s390/s390-32/configure.ac: ... here.
56056         * sysdeps/s390/s390-64/configure.in: Moved to ...
56057         * sysdeps/s390/s390-64/configure.ac: ... here.
56058         * sysdeps/sh/configure.in: Moved to ...
56059         * sysdeps/sh/configure.ac: ... here.
56060         * sysdeps/sparc/configure.in: Moved to ...
56061         * sysdeps/sparc/configure.ac: ... here.
56062         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
56063         * sysdeps/unix/sysv/linux/configure.ac: ... here.
56064         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
56065         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
56066         * sysdeps/x86_64/configure.in: Moved to ...
56067         * sysdeps/x86_64/configure.ac: ... here.
56068         * sysdeps/x86_64/preconfigure.in: Moved to ...
56069         * sysdeps/x86_64/preconfigure.ac: ... here.
56070         * aclocal.m4: Change reference to configure.in to configure.ac.
56071         * config.h.in: Likewise.
56072         * manual/install.texi: Likewise.
56073         * manual/maint.texi: Likewise.
56074         * Makefile: Likewise.
56075         * malloc/Makefile: Likewise.
56076         * nscd/Makefile: Likewise.
56077         * Makeconfig: Change reference to configure.in and
56078         preconfigure.in to configure.ac and preconfigure.ac
56079         respectively.
56080         * INSTALL: Regenerated.
56081         * configure: Likewise.
56082         * sysdeps/gnu/configure: Likewise.
56083         * sysdeps/i386/configure: Likewise.
56084         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
56085         * sysdeps/mach/configure: Likewise.
56086         * sysdeps/mach/hurd/configure: Likewise.
56087         * sysdeps/powerpc/configure: Likewise.
56088         * sysdeps/powerpc/powerpc32/configure: Likewise.
56089         * sysdeps/powerpc/powerpc64/configure: Likewise.
56090         * sysdeps/s390/s390-32/configure: Likewise.
56091         * sysdeps/s390/s390-64/configure: Likewise.
56092         * sysdeps/sh/configure: Likewise.
56093         * sysdeps/sparc/configure: Likewise.
56094         * sysdeps/unix/sysv/linux/configure: Likewise.
56095         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
56096         * sysdeps/x86_64/configure: Likewise.
56097         * sysdeps/x86_64/preconfigure: Likewise.
56098
56099 2013-10-29  Andreas Schwab  <schwab@suse.de>
56100
56101         * stdio-common/Makefile (tst-swscanf-ENV): Define.
56102
56103 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56104
56105         * benchtests/pow-inputs: Add new inputs.
56106
56107         * benchtests/exp-inputs: Add new inputs.
56108
56109         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
56110         conditional check for return value.
56111         (__cos32): Likewise.
56112
56113 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56114
56115         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
56116         to provide a boost for large inputs with word alignment.
56117         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
56118         implementation based on optimized PPC64 strcpy.
56119         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
56120         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
56121         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
56122         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
56123
56124 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56125
56126         [BZ #2801]
56127         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
56128
56129 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56130
56131         [BZ #14876]
56132         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
56133         * time/tst-strptime.c (day_tests): Add testcase.
56134
56135 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56136
56137         [BZ #14029]
56138         * manual/pattern.texi: Acknowledge that fnmatch can fail.
56139
56140 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
56141
56142         [BZ #16074]
56143         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
56144         MAP_FAILED on error.
56145
56146 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
56147
56148         [BZ #16072]
56149         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
56150         heap for large requests.
56151
56152 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
56153
56154         [BZ #9954]
56155         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
56156         result if the result has no associated interface.
56157         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
56158         interface for all 127.X.Y.Z addresses.
56159
56160 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
56161
56162         * locale/iso-639.def: Add Ligurian (lij)
56163
56164 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
56165
56166         [BZ #15825]
56167         * sunrpc/rpc_main.c: Document rpcgen -5.
56168
56169 2013-10-19  Michael Stahl  <mstahl@redhat.com>
56170
56171         * elf/rtld.c (do_preload): Print the reason why preloading failed.
56172
56173 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56174
56175         [BZ #10278]
56176         * posix/glob.c: Match only directories when trailing slash is present.
56177         * posix/tst-gnuglob.c (my_opendir): Do not open files.
56178         (main): Add testcase.
56179
56180 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56181
56182         [BZ #15670]
56183         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
56184
56185 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
56186
56187         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
56188         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
56189         AUTH_DES and cindex for FIPS 140-2.
56190         (DES Encryption): Add cindex FIPS 46-3.
56191
56192         * locale/locarchive.h (struct locarhandle): Add fname.
56193         * locale/programs/localedef.c (main): Pass ARGV[remaining]
56194         if an optional argument was specified to --list-archive,
56195         otherwise NULL.
56196         * locale/programs/locarchive.c (show_archive_content): Take new
56197         argument fname and pass it via ah.fname to open_archive.
56198         * locale/programs/localedef.h: Update decl.
56199         (open_archive): If AH->fname is non-null, open that file
56200         rather than the default file name, and don't ignore ENOENT.
56201         (create_archive): Set AH.fname to NULL.
56202         (delete_locales_from_archive): Likewise.
56203         (add_locales_to_archive): Likewise.
56204         * locale/programs/locfile.c (write_all_categories): Likewise.
56205
56206 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
56207             Aldy Hernandez  <aldyh@redhat.com>
56208
56209         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
56210         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
56211         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
56212         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
56213         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
56214         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
56215         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
56216         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
56217         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
56218         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
56219         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
56220         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
56221         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
56222         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
56223         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
56224         Likewise.
56225         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
56226         Likewise.
56227         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
56228         Likewise.
56229         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
56230         Likewise.
56231         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
56232         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
56233         Likewise.
56234         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
56235         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
56236         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
56237         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
56238         Likewise.
56239         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
56240         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
56241         * sysdeps/powerpc/preconfigure: Likewise.
56242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
56243         Likewise.
56244         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
56245         Replace contents of file by #include of <fenv_libc.h>.
56246         * sysdeps/powerpc/soft-fp/sfp-machine.h
56247         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
56248         and <sys/prctl.h>.
56249         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
56250         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
56251         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
56252         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
56253         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
56254         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
56255         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
56256         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
56257         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
56258         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
56259         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
56260         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
56261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
56262         Allow copysignl PLT reference to be missing.
56263
56264 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
56265             Joseph Myers  <joseph@codesourcery.com
56266
56267         [BZ #15948]
56268         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
56269         single character.
56270         (add_to_tablewc): Assert sequence of wide characters is nonempty.
56271
56272 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56273
56274         * elf/tst-tls-dlinfo.c: Don't include tls.h.
56275         * elf/tst-tls1.c: Likewise.
56276         * elf/tst-tls10.h: Likewise.
56277         * elf/tst-tls14.c: Likewise.
56278         * elf/tst-tls2.c: Likewise.
56279         * elf/tst-tls3.c: Likewise.
56280         * elf/tst-tls4.c: Likewise.
56281         * elf/tst-tls5.c: Likewise.
56282         * elf/tst-tls6.c: Likewise.
56283         * elf/tst-tls7.c: Likewise.
56284         * elf/tst-tls8.c: Likewise.
56285         * elf/tst-tls9.c: Likewise.
56286         * elf/tst-tlsmod1.c: Likewise.
56287         * elf/tst-tlsmod13.c: Likewise.
56288         * elf/tst-tlsmod13a.c: Likewise.
56289         * elf/tst-tlsmod14a.c: Likewise.
56290         * elf/tst-tlsmod16a.c: Likewise.
56291         * elf/tst-tlsmod16b.c: Likewise.
56292         * elf/tst-tlsmod2.c: Likewise.
56293         * elf/tst-tlsmod3.c: Likewise.
56294         * elf/tst-tlsmod4.c: Likewise.
56295         * elf/tst-tlsmod5.c: Likewise.
56296         * elf/tst-tlsmod6.c: Likewise.
56297
56298 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
56299
56300         [BZ #12486]
56301         * malloc/malloc.c: remove checks for statistics.
56302
56303 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56304
56305         [BZ #15277]
56306         * inet/inet_net.c (inet_network): Detect additional invalid strings.
56307         * inet/tst-network.c: Add testcase.
56308
56309 2013-10-17  Andreas Schwab  <schwab@suse.de>
56310
56311         [BZ #15218]
56312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
56313         to determine canonical name.
56314
56315 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56316
56317         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
56318         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
56319         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56320         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
56321         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56322         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
56323         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
56324         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
56325         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
56326         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
56327         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
56328         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
56329         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
56330         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
56331         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
56332         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
56333         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56334         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56335         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
56336         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
56337         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56338         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56339         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
56340         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
56341         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
56342         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56343         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56344         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
56345         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56346         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
56347         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
56348         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56349         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
56350         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
56351         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
56352         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
56353         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
56354         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
56355         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
56356         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
56357         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
56358         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
56359         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
56360         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
56361         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
56362         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
56363         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
56364         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
56365         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
56366         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
56367         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
56368         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
56369         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
56370         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
56371         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56372         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
56373         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56374         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
56375
56376 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
56377
56378         [BZ #16041]
56379         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
56380         make result into a quiet NaN.
56381
56382 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
56383
56384         * soft-fp/adddf3.c: Fix horizontal whitespace.
56385         * soft-fp/addsf3.c: Likewise.
56386         * soft-fp/addtf3.c: Likewise.
56387         * soft-fp/divdf3.c: Likewise.
56388         * soft-fp/divsf3.c: Likewise.
56389         * soft-fp/divtf3.c: Likewise.
56390         * soft-fp/double.h: Likewise.
56391         * soft-fp/eqdf2.c: Likewise.
56392         * soft-fp/eqsf2.c: Likewise.
56393         * soft-fp/eqtf2.c: Likewise.
56394         * soft-fp/extenddftf2.c: Likewise.
56395         * soft-fp/extended.h: Likewise.
56396         * soft-fp/extendsfdf2.c: Likewise.
56397         * soft-fp/extendsftf2.c: Likewise.
56398         * soft-fp/extendxftf2.c: Likewise.
56399         * soft-fp/fixdfdi.c: Likewise.
56400         * soft-fp/fixdfsi.c: Likewise.
56401         * soft-fp/fixdfti.c: Likewise.
56402         * soft-fp/fixsfdi.c: Likewise.
56403         * soft-fp/fixsfsi.c: Likewise.
56404         * soft-fp/fixsfti.c: Likewise.
56405         * soft-fp/fixtfdi.c: Likewise.
56406         * soft-fp/fixtfsi.c: Likewise.
56407         * soft-fp/fixtfti.c: Likewise.
56408         * soft-fp/fixunsdfdi.c: Likewise.
56409         * soft-fp/fixunsdfsi.c: Likewise.
56410         * soft-fp/fixunsdfti.c: Likewise.
56411         * soft-fp/fixunssfdi.c: Likewise.
56412         * soft-fp/fixunssfsi.c: Likewise.
56413         * soft-fp/fixunssfti.c: Likewise.
56414         * soft-fp/fixunstfdi.c: Likewise.
56415         * soft-fp/fixunstfsi.c: Likewise.
56416         * soft-fp/fixunstfti.c: Likewise.
56417         * soft-fp/floatdidf.c: Likewise.
56418         * soft-fp/floatdisf.c: Likewise.
56419         * soft-fp/floatditf.c: Likewise.
56420         * soft-fp/floatsidf.c: Likewise.
56421         * soft-fp/floatsisf.c: Likewise.
56422         * soft-fp/floatsitf.c: Likewise.
56423         * soft-fp/floattidf.c: Likewise.
56424         * soft-fp/floattisf.c: Likewise.
56425         * soft-fp/floattitf.c: Likewise.
56426         * soft-fp/floatundidf.c: Likewise.
56427         * soft-fp/floatundisf.c: Likewise.
56428         * soft-fp/floatunditf.c: Likewise.
56429         * soft-fp/floatunsidf.c: Likewise.
56430         * soft-fp/floatunsisf.c: Likewise.
56431         * soft-fp/floatunsitf.c: Likewise.
56432         * soft-fp/floatuntidf.c: Likewise.
56433         * soft-fp/floatuntisf.c: Likewise.
56434         * soft-fp/floatuntitf.c: Likewise.
56435         * soft-fp/fmadf4.c: Likewise.
56436         * soft-fp/fmasf4.c: Likewise.
56437         * soft-fp/fmatf4.c: Likewise.
56438         * soft-fp/gedf2.c: Likewise.
56439         * soft-fp/gesf2.c: Likewise.
56440         * soft-fp/getf2.c: Likewise.
56441         * soft-fp/ledf2.c: Likewise.
56442         * soft-fp/lesf2.c: Likewise.
56443         * soft-fp/letf2.c: Likewise.
56444         * soft-fp/muldf3.c: Likewise.
56445         * soft-fp/mulsf3.c: Likewise.
56446         * soft-fp/multf3.c: Likewise.
56447         * soft-fp/negdf2.c: Likewise.
56448         * soft-fp/negsf2.c: Likewise.
56449         * soft-fp/negtf2.c: Likewise.
56450         * soft-fp/op-1.h: Likewise.
56451         * soft-fp/op-2.h: Likewise.
56452         * soft-fp/op-4.h: Likewise.
56453         * soft-fp/op-8.h: Likewise.
56454         * soft-fp/op-common.h: Likewise.
56455         * soft-fp/quad.h: Likewise.
56456         * soft-fp/single.h: Likewise.
56457         * soft-fp/soft-fp.h: Likewise.
56458         * soft-fp/sqrtdf2.c: Likewise.
56459         * soft-fp/sqrtsf2.c: Likewise.
56460         * soft-fp/sqrttf2.c: Likewise.
56461         * soft-fp/subdf3.c: Likewise.
56462         * soft-fp/subsf3.c: Likewise.
56463         * soft-fp/subtf3.c: Likewise.
56464         * soft-fp/truncdfsf2.c: Likewise.
56465         * soft-fp/trunctfdf2.c: Likewise.
56466         * soft-fp/trunctfsf2.c: Likewise.
56467         * soft-fp/trunctfxf2.c: Likewise.
56468         * soft-fp/unorddf2.c: Likewise.
56469         * soft-fp/unordsf2.c: Likewise.
56470         * soft-fp/unordtf2.c: Likewise.
56471
56472 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
56473
56474         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
56475         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
56476
56477 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
56478
56479         * elf/dl-libc.c: Clear initfini list after freeing.
56480
56481 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
56482
56483         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
56484         * soft-fp/addsf3.c: Likewise.
56485         * soft-fp/addtf3.c: Likewise.
56486         * soft-fp/divdf3.c: Likewise.
56487         * soft-fp/divsf3.c: Likewise.
56488         * soft-fp/divtf3.c: Likewise.
56489         * soft-fp/double.h: Likewise.
56490         * soft-fp/eqdf2.c: Likewise.
56491         * soft-fp/eqsf2.c: Likewise.
56492         * soft-fp/eqtf2.c: Likewise.
56493         * soft-fp/extenddftf2.c: Likewise.
56494         * soft-fp/extended.h: Likewise.
56495         * soft-fp/extendsfdf2.c: Likewise.
56496         * soft-fp/extendsftf2.c: Likewise.
56497         * soft-fp/extendxftf2.c: Likewise.
56498         * soft-fp/fixdfdi.c: Likewise.
56499         * soft-fp/fixdfsi.c: Likewise.
56500         * soft-fp/fixdfti.c: Likewise.
56501         * soft-fp/fixsfdi.c: Likewise.
56502         * soft-fp/fixsfsi.c: Likewise.
56503         * soft-fp/fixsfti.c: Likewise.
56504         * soft-fp/fixtfdi.c: Likewise.
56505         * soft-fp/fixtfsi.c: Likewise.
56506         * soft-fp/fixtfti.c: Likewise.
56507         * soft-fp/fixunsdfdi.c: Likewise.
56508         * soft-fp/fixunsdfsi.c: Likewise.
56509         * soft-fp/fixunsdfti.c: Likewise.
56510         * soft-fp/fixunssfdi.c: Likewise.
56511         * soft-fp/fixunssfsi.c: Likewise.
56512         * soft-fp/fixunssfti.c: Likewise.
56513         * soft-fp/fixunstfdi.c: Likewise.
56514         * soft-fp/fixunstfsi.c: Likewise.
56515         * soft-fp/fixunstfti.c: Likewise.
56516         * soft-fp/floatdidf.c: Likewise.
56517         * soft-fp/floatdisf.c: Likewise.
56518         * soft-fp/floatditf.c: Likewise.
56519         * soft-fp/floatsidf.c: Likewise.
56520         * soft-fp/floatsisf.c: Likewise.
56521         * soft-fp/floatsitf.c: Likewise.
56522         * soft-fp/floattidf.c: Likewise.
56523         * soft-fp/floattisf.c: Likewise.
56524         * soft-fp/floattitf.c: Likewise.
56525         * soft-fp/floatundidf.c: Likewise.
56526         * soft-fp/floatundisf.c: Likewise.
56527         * soft-fp/floatunsidf.c: Likewise.
56528         * soft-fp/floatunsisf.c: Likewise.
56529         * soft-fp/floatuntidf.c: Likewise.
56530         * soft-fp/floatuntisf.c: Likewise.
56531         * soft-fp/floatuntitf.c: Likewise.
56532         * soft-fp/fmadf4.c: Likewise.
56533         * soft-fp/fmasf4.c: Likewise.
56534         * soft-fp/fmatf4.c: Likewise.
56535         * soft-fp/gedf2.c: Likewise.
56536         * soft-fp/gesf2.c: Likewise.
56537         * soft-fp/getf2.c: Likewise.
56538         * soft-fp/ledf2.c: Likewise.
56539         * soft-fp/lesf2.c: Likewise.
56540         * soft-fp/letf2.c: Likewise.
56541         * soft-fp/muldf3.c: Likewise.
56542         * soft-fp/mulsf3.c: Likewise.
56543         * soft-fp/multf3.c: Likewise.
56544         * soft-fp/negdf2.c: Likewise.
56545         * soft-fp/negsf2.c: Likewise.
56546         * soft-fp/negtf2.c: Likewise.
56547         * soft-fp/op-1.h: Likewise.
56548         * soft-fp/op-2.h: Likewise.
56549         * soft-fp/op-4.h: Likewise.
56550         * soft-fp/op-8.h: Likewise.
56551         * soft-fp/op-common.h: Likewise.
56552         * soft-fp/quad.h: Likewise.
56553         * soft-fp/single.h: Likewise.
56554         * soft-fp/soft-fp.h: Likewise.
56555         * soft-fp/sqrtdf2.c: Likewise.
56556         * soft-fp/sqrtsf2.c: Likewise.
56557         * soft-fp/sqrttf2.c: Likewise.
56558         * soft-fp/subdf3.c: Likewise.
56559         * soft-fp/subsf3.c: Likewise.
56560         * soft-fp/subtf3.c: Likewise.
56561         * soft-fp/truncdfsf2.c: Likewise.
56562         * soft-fp/trunctfdf2.c: Likewise.
56563         * soft-fp/trunctfsf2.c: Likewise.
56564         * soft-fp/trunctfxf2.c: Likewise.
56565         * soft-fp/unorddf2.c: Likewise.
56566         * soft-fp/unordsf2.c: Likewise.
56567         * soft-fp/unordtf2.c: Likewise.
56568
56569 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
56570
56571         [BZ #15672]
56572         * misc/error.c (error_tail): Fix possible buffer overflow.
56573
56574 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
56575
56576         [BZ #13028]
56577         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
56578         address.
56579
56580 2013-10-14  P. J. McDermott  <pj@pehjota.net>
56581
56582         [BZ #832]
56583         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
56584         testing pipefail option.
56585
56586 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56587
56588         * soft-fp/double.h: Indent preprocessor directives inside #if.
56589         * soft-fp/extended.h: Likewise.
56590         * soft-fp/op-2.h: Likewise.
56591         * soft-fp/op-4.h: Likewise.
56592         * soft-fp/op-common.h: Likewise.
56593         * soft-fp/quad.h: Likewise.
56594         * soft-fp/single.h: Likewise.
56595         * soft-fp/soft-fp.h: Likewise.
56596
56597 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
56598
56599         * iconv/iconv_prog.c: Fix typos.
56600         * stdio-common/psiginfo-data.h: Likewise.
56601
56602 2013-10-12   Reuben Thomas <rrt@sc3d.org>
56603
56604         [BZ #15764]
56605         * locale/setlocale.c: Fix typo.
56606
56607 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56608
56609         [BZ #16036]
56610         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
56611         signaling NaN arguments.
56612         * soft-fp/unordsf2.c (__unordsf2): Likewise.
56613         * soft-fp/unordtf2.c (__unordtf2): Likewise.
56614
56615         [BZ #14910]
56616         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
56617         unordered operands.
56618         * soft-fp/gesf2.c (__gesf2): Likewise.
56619         * soft-fp/getf2.c (__getf2): Likewise.
56620         * soft-fp/ledf2.c (__ledf2): Likewise.
56621         * soft-fp/lesf2.c (__lesf2): Likewise.
56622         * soft-fp/letf2.c (__letf2): Likewise.
56623
56624         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
56625         * soft-fp/eqsf2.c (__eqsf2): Likewise.
56626         * soft-fp/eqtf2.c (__eqtf2): Likewise.
56627         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
56628         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
56629         * soft-fp/fixdfti.c (__fixdfti): Likewise.
56630         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
56631         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
56632         * soft-fp/fixsfti.c (__fixsfti): Likewise.
56633         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
56634         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
56635         * soft-fp/fixtfti.c (__fixtfti): Likewise.
56636         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
56637         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
56638         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
56639         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
56640         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
56641         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
56642         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
56643         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
56644         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
56645         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
56646         * soft-fp/floatdisf.c (__floatdisf): Likewise.
56647         * soft-fp/floatsisf.c (__floatsisf): Likewise.
56648         * soft-fp/floattidf.c (__floattidf): Likewise.
56649         * soft-fp/floattisf.c (__floattisf): Likewise.
56650         * soft-fp/floattitf.c (__floattitf): Likewise.
56651         * soft-fp/floatundidf.c (__floatundidf): Likewise.
56652         * soft-fp/floatundisf.c (__floatundisf): Likewise.
56653         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
56654         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
56655         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
56656         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
56657         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
56658         * soft-fp/gesf2.c (__gesf2): Likewise.
56659         * soft-fp/getf2.c (__getf2): Likewise.
56660         * soft-fp/ledf2.c (__ledf2): Likewise.
56661         * soft-fp/lesf2.c (__lesf2): Likewise.
56662         * soft-fp/letf2.c (__letf2): Likewise.
56663
56664         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
56665         Undefine and redefine.
56666         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
56667         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
56668         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
56669         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
56670         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56671         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
56672         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56673         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
56674         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56675         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
56676         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56677         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
56678         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56679         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
56680         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56681
56682         [BZ #16032]
56683         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
56684         without decrementing exponent if mantissa >= that for the
56685         denominator, not >.
56686         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
56687         denominator, not >.  Decrement exponent in < case instead of
56688         incrementing in >= case.
56689         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
56690         without decrementing exponent if mantissa >= that for the
56691         denominator, not >.
56692
56693         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
56694         computing saturated result for unsigned overflow.
56695
56696 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
56697             Jeff Law  <law@redhat.com>
56698
56699         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
56700         (atan2Mp): Add systemtap probe marker.
56701         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
56702         (__ieee754_log): Add systemtap probe marker.
56703         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
56704         (atanMp): Add systemtap probe marker.
56705         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
56706         (tanMp): Add systemtap probe marker.
56707         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
56708         (__slowexp): Add systemtap probe marker.
56709         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
56710         (__slowpow): Add systemtap probe marker.
56711         * manual/probes.texi: Document probes.
56712
56713 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
56714
56715         [BZ #15362]
56716         * libio/fileops.c (_IO_new_file_write): Return count of bytes
56717         written.
56718         (_IO_new_file_xsputn): Don't return EOF if nothing has been
56719         written.
56720         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
56721         written to buffer but not flushed.
56722         * libio/iofwrite_u.c:  Likewise.
56723         * libio/iopadn.c:  Return bytes returned even if EOF was
56724         encountered.
56725         * libio/iowpadn.c:  Likewise.
56726         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
56727         if _IO_padn does not write the whole buffer.
56728         [!COMPILE_WPRINTF] (PAD): Likewise.
56729
56730 2013-10-10  David S. Miller  <davem@davemloft.net>
56731
56732         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
56733         directory block.
56734
56735 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56736
56737         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
56738         instead of FSF address.
56739         * soft-fp/fixdfti.c: Likewise.
56740         * soft-fp/fixsfti.c: Likewise.
56741         * soft-fp/fixtfti.c: Likewise.
56742         * soft-fp/fixunsdfti.c: Likewise.
56743         * soft-fp/fixunssfti.c: Likewise.
56744         * soft-fp/fixunstfti.c: Likewise.
56745         * soft-fp/floattidf.c: Likewise.
56746         * soft-fp/floattisf.c: Likewise.
56747         * soft-fp/floattitf.c: Likewise.
56748         * soft-fp/floatuntidf.c: Likewise.
56749         * soft-fp/floatuntisf.c: Likewise.
56750         * soft-fp/floatuntitf.c: Likewise.
56751         * soft-fp/trunctfxf2.c: Likewise.
56752
56753         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
56754         * soft-fp/fixdfti.c: Likewise.
56755         * soft-fp/fixsfti.c: Likewise.
56756         * soft-fp/fixtfti.c: Likewise.
56757         * soft-fp/fixunsdfti.c: Likewise.
56758         * soft-fp/fixunssfti.c: Likewise.
56759         * soft-fp/fixunstfti.c: Likewise.
56760         * soft-fp/floattidf.c: Likewise.
56761         * soft-fp/floattisf.c: Likewise.
56762         * soft-fp/floattitf.c: Likewise.
56763         * soft-fp/floatuntidf.c: Likewise.
56764         * soft-fp/floatuntisf.c: Likewise.
56765         * soft-fp/floatuntitf.c: Likewise.
56766         * soft-fp/trunctfxf2.c: Likewise.
56767
56768 2013-10-10  David S. Miller  <davem@davemloft.net>
56769
56770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56771
56772 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
56773
56774         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
56775         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
56776         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
56777         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
56778         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
56779         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
56780         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
56781
56782         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
56783         for NaNs before doing comparisons on argument.
56784         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
56785         Likewise.
56786
56787 2013-10-10  Will Newton  <will.newton@linaro.org>
56788
56789         * malloc/hooks.c (memalign_check): Ensure the value of bytes
56790         passed to _int_memalign does not overflow.
56791
56792 2013-10-10  Torvald Riegel  <triegel@redhat.com>
56793
56794         * scripts/bench.pl: Add include-sources directive.
56795         * benchtests/README: Update documentation.
56796
56797 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56798
56799         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
56800         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
56801         instead of FP_INIT_ROUNDMODE.
56802         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
56803         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
56804
56805         [BZ #16034]
56806         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
56807         copy class of input value.
56808         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
56809         not handle exceptions.
56810         * soft-fp/negsf2.c (__negsf2): Likewise.
56811         * soft-fp/negtf2.c (__negtf2): Likewise.
56812         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
56813
56814 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
56815
56816         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
56817         semicolon.  From Linux kernel.
56818
56819 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
56820
56821         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
56822
56823 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
56824
56825         [BZ #156]
56826         * manual/socket.texi: Added statement about buffer
56827         for gethostbyname2_r.
56828
56829 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
56830
56831         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
56832         Use .p2align directive instead, throughout.
56833         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
56834         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
56835         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
56836         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
56837         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
56838         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
56839         * sysdeps/x86_64/strchr.S: Likewise.
56840         * sysdeps/x86_64/strrchr.S: Likewise.
56841
56842 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56843
56844         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
56845
56846         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
56847
56848         * sysdeps/generic/math_private.h (__mpsin1): Remove
56849         declaration.
56850         (__mpcos1): Likewise.
56851         (__mpsin): New argument __range_reduce.
56852         (__mpcos): Likewise.
56853         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56854         (slow): Use __mpsin and __mpcos.
56855         (slow1): Likewise.
56856         (slow2): Likewise.
56857         (sloww): Likewise.
56858         (sloww1): Likewise.
56859         (sloww2): Likewise.
56860         (bsloww): Likewise.
56861         (bsloww1): Likewise.
56862         (bsloww2): Likewise.
56863         (cslow2): Likewise.
56864         (csloww): Likewise.
56865         (csloww1): Likewise.
56866         (csloww2): Likewise.
56867         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
56868         range_reduce.  Merge in __mpsin1.
56869         (__mpcos): Likewise.
56870         (__mpsin1): Remove.
56871         (__mpcos1): Likewise.
56872
56873 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
56874
56875         * locale/loadlocale.c (_nl_intern_locale_data): Use
56876         LOCFILE_ALIGNED_P.
56877         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
56878         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
56879         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
56880         obstack data is appropriately aligned.
56881         (obstack_int32_grow_fast): Likewise.
56882         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
56883         * locale/programs/locfile.c (add_locale_uint32): Likewise.
56884         (add_locale_uint32_array): Likewise.
56885
56886 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56887
56888         * benchtests/Makefile: Remove ARGLIST and RET variables.
56889         ($(objpfx)bench-%.c): Pass only function name to the script.
56890         * benchtests/README: Update documentation.
56891         * benchtests/acos-inputs: Add new directives.
56892         * benchtests/acosh-inputs: Likewise.
56893         * benchtests/asin-inputs: Likewise.
56894         * benchtests/asinh-inputs: Likewise.
56895         * benchtests/atan-inputs: Likewise.
56896         * benchtests/atanh-inputs: Likewise.
56897         * benchtests/cos-inputs: Likewise.
56898         * benchtests/cosh-inputs: Likewise.
56899         * benchtests/exp-inputs: Likewise.
56900         * benchtests/log-inputs: Likewise.
56901         * benchtests/pow-inputs: Likewise.
56902         * benchtests/rint-inputs: Likewise.
56903         * benchtests/sin-inputs: Likewise.
56904         * benchtests/sinh-inputs: Likewise.
56905         * benchtests/tan-inputs: Likewise.
56906         * benchtests/tanh-inputs: Likewise.
56907         * scripts/bench.pl: Add support for new directives.
56908
56909 2013-10-07  Alan Modra  <amodra@gmail.com>
56910
56911         * README: Fix careless merge.
56912
56913 2013-10-05  Alan Modra  <amodra@gmail.com>
56914
56915         * NEWS: Mention powerpc64le support and bugs fixed.
56916         * README: Both big-endian and little-endian powerpc64 supported.
56917
56918 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56919
56920         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
56921         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
56922         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
56923         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
56924
56925 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
56926
56927         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
56928         match prototype.
56929
56930 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
56931
56932         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
56933         Move -mhard-float appending from
56934         ports/sysdeps/powerpc/powerpc32/Makefile.
56935         [$(with-fp) = yes] (ASFLAGS): Likewise.
56936         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
56937         * sysdeps/powerpc/nofpu: Move directory from
56938         ports/sysdeps/powerpc/nofpu.
56939         * sysdeps/powerpc/soft-fp: Move directory from
56940         ports/sysdeps/powerpc/soft-fp.
56941         * sysdeps/powerpc/powerpc32/405: Move directory from
56942         ports/sysdeps/powerpc/powerpc32/405.
56943         * sysdeps/powerpc/powerpc32/440: Move directory from
56944         ports/sysdeps/powerpc/powerpc32/440.
56945         * sysdeps/powerpc/powerpc32/464: Move directory from
56946         ports/sysdeps/powerpc/powerpc32/464.
56947         * sysdeps/powerpc/powerpc32/476: Move directory from
56948         ports/sysdeps/powerpc/powerpc32/476.
56949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
56950         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
56951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
56952         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
56953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
56954         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
56955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
56956         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
56957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
56958         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
56959         * README: Update for powerpc-*-linux-gnu software floating point
56960         support in libc.
56961
56962         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
56963         case to powerpc/powerpc32*.
56964         * sysdeps/unix/sysv/linux/configure: Regenerated.
56965
56966         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
56967         (_FPU_MASK_OM): Define as 0x04.
56968         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
56969         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
56970         0x00c10080.
56971         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
56972         0x0000003c.
56973         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
56974
56975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
56976         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56977         getcontext_e500.
56978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
56979         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56980         setcontext_e500.
56981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
56982         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
56983         and setcontext_e500.
56984
56985 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
56986
56987         * locale/iso-3166.def: Update iso-1366.def and related occurrences
56988
56989 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56990
56991         * manual/threads.texi (Default Thread Attributes): Fix typo.
56992
56993 2013-10-04  Will Newton  <will.newton@linaro.org>
56994
56995         * malloc/Makefile: Add tst-memalign.
56996         * malloc/tst-memalign.c: New file.
56997
56998         * malloc/tst-posix_memalign.c: Add comments.
56999         (do_test): Add comments and call free on all potentially
57000         allocated pointers. Add space after cast.
57001
57002         * malloc/tst-pvalloc.c: Add comments.
57003         (do_test): Add comments and call free on all potentially
57004         allocated pointers. Remove duplicate check for NULL pointer.
57005         Add space after cast.
57006
57007         * malloc/tst-valloc.c: Add comments.
57008         (do_test): Add comments and call free on all potentially
57009         allocated pointers. Remove duplicate check for NULL pointer.
57010         Add space after cast.
57011
57012 2013-10-04  Alan Modra  <amodra@gmail.com>
57013
57014         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
57015         Use stdint types in rather than __attribute__((mode())).
57016         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
57017
57018 2013-10-04  Alan Modra  <amodra@gmail.com>
57019
57020         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
57021         Correct handling of unaligned relocs for little-endian.
57022         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
57023
57024 2013-10-04  Alan Modra  <amodra@gmail.com>
57025
57026         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
57027         * configure: Regenerate.
57028         * nptl/shlib-versions: Powerpc*le starts at 2.18.
57029         * shlib-versions: Likewise.
57030
57031 2013-10-04  Alan Modra  <amodra@gmail.com>
57032
57033         * string/tester.c (test_memrchr): Increment reported test cycle.
57034
57035 2013-10-04  Alan Modra  <amodra@gmail.com>
57036
57037         * string/test-memcpy.c (do_one_test): When reporting errors, print
57038         string address and don't overrun end of string.
57039
57040 2013-10-04  Alan Modra  <amodra@gmail.com>
57041
57042         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
57043         insrdi.  Make better use of reg selection to speed exit slightly.
57044         Schedule entry path a little better.  Remove useless "are we done"
57045         checks on entry to main loop.  Handle wrapping around zero address.
57046         Correct main loop count.  Handle single left-over word from main
57047         loop inline rather than by using loop_small.  Remove extra word
57048         case in loop_small caused by wrong loop count.  Add little-endian
57049         support.
57050         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
57051         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
57052         cache hint.
57053         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
57054         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
57055         support.  Avoid rlwimi.
57056         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
57057
57058 2013-10-04  Alan Modra  <amodra@gmail.com>
57059
57060         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
57061         insrdi.  Formatting.
57062         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
57063         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
57064         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
57065         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
57066         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
57067         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
57068
57069 2013-10-04  Alan Modra  <amodra@gmail.com>
57070
57071         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
57072         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
57073         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
57074         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
57075         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
57076         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
57077         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
57078         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
57079         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
57080         use of regs.  Use power7 mtocrf.  Tidy function tails.
57081
57082 2013-10-04  Alan Modra  <amodra@gmail.com>
57083
57084         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
57085         Formatting.  Consistently use rXXX register defines or rN defines.
57086         Use early exit labels that avoid restoring unused non-volatile regs.
57087         Make cr field use more consistent with rWORDn compares.  Rename
57088         regs used as shift registers for unaligned loop, using rN defines
57089         for short lifetime/multiple use regs.
57090         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
57091         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
57092         addi 1,1,64 to pop stack frame.  Simplify return value code.
57093         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
57094
57095 2013-10-04  Alan Modra  <amodra@gmail.com>
57096
57097         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
57098         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
57099         rather than rlwimi.
57100         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
57101         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
57102         little-endian support.  Correct typos.
57103         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
57104         rather than rlwimi.
57105         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
57106         in loop and entry code to keep "and." results.
57107         (strchr): Add little-endian support.  Comment.  Move cntlzd
57108         earlier in tail.
57109         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
57110
57111 2013-10-04  Alan Modra  <amodra@gmail.com>
57112
57113         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
57114         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
57115         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
57116         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
57117
57118 2013-10-04  Alan Modra  <amodra@gmail.com>
57119
57120         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
57121         (rTMP): Define as r11.
57122         (strcmp): Add little-endian support.  Optimise tail.
57123         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
57124         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
57125         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
57126         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
57127         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
57128         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
57129         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
57130
57131 2013-10-04  Alan Modra  <amodra@gmail.com>
57132
57133         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
57134         little-endian support.  Remove unnecessary "are we done" tests.
57135         Handle "s" wrapping around zero and extremely large "size".
57136         Correct main loop count.  Handle single left-over word from main
57137         loop inline rather than by using small_loop.  Correct comments.
57138         Delete "zero" tail, use "end_max" instead.
57139         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
57140
57141 2013-10-04  Alan Modra  <amodra@gmail.com>
57142
57143         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
57144         support.  Don't branch over align.
57145         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
57146         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
57147         support.  Rearrange tmp reg use to suit.  Comment.
57148         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
57149
57150 2013-10-04  Alan Modra  <amodra@gmail.com>
57151
57152         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
57153
57154 2013-10-04  Alan Modra  <amodra@gmail.com>
57155
57156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
57157         conditional form of branch and link when obtaining pc.
57158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
57159
57160 2013-10-04  Alan Modra  <amodra@gmail.com>
57161
57162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
57163         HIWORD/LOWORD.
57164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
57165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
57166
57167 2013-10-04  Alan Modra  <amodra@gmail.com>
57168
57169         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
57170         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
57171         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
57172         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
57173         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
57174         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
57175         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
57176         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
57177         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
57178         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
57179
57180 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57181             Alistair Popple <alistair@ozlabs.au.ibm.com>
57182             Alan Modra <amodra@gmail.com>
57183
57184         [BZ #15723]
57185         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
57186         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
57187         _dl_hwcap access for little-endian.
57188         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
57189         destroy vmx regs when saving unaligned.
57190         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
57191         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
57192         destroy vmx regs when saving unaligned.
57193
57194 2013-10-04  Alan Modra  <amodra@gmail.com>
57195
57196         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
57197         Don't use a union to pack hi/low value.
57198
57199 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57200
57201         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
57202         for little-endian.
57203         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
57204         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
57205         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
57206         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
57207         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
57208
57209 2013-10-04  Alan Modra  <amodra@gmail.com>
57210
57211         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
57212         constants to usual value for .cst8 section, and remove redundant
57213         high address load.
57214         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
57215         constant for 0x1p52.  Load little-endian words of double from
57216         correct stack offsets.
57217
57218 2013-10-04  Alan Modra  <amodra@gmail.com>
57219
57220         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
57221         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
57222         words of double from correct stack offsets.
57223         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
57224         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
57225         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
57226         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
57227         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
57228         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
57229         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
57230         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
57231         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
57232         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
57233         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
57234         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
57235         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
57236         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
57237         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
57238         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
57239         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
57240
57241 2013-10-04  Alan Modra  <amodra@gmail.com>
57242
57243         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
57244         64-bit int/double union.
57245         (_FPU_SETCW): Likewise.
57246         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
57247         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
57248
57249 2013-10-04  Alan Modra  <amodra@gmail.com>
57250
57251         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
57252         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
57253
57254 2013-10-04  Alan Modra  <amodra@gmail.com>
57255
57256         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
57257         use vector int constants.
57258         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
57259
57260 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57261
57262         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
57263         array with long long.
57264         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
57265         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
57266         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
57267         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
57268         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
57269         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
57270         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
57271         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
57272         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
57273         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
57274         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
57275         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
57276         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
57277
57278 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57279
57280         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
57281         (__signbit): Likewise.  Correct for little-endian.
57282         (__signbitl): Call __signbit.
57283         (lrint): Correct for little-endian.
57284         (lrintf): Call lrint.
57285
57286 2013-10-04  Alan Modra  <amodra@gmail.com>
57287
57288         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
57289         union 32-bit int array member with 64-bit int array.
57290         (t515, tm256): Double rather than long double.
57291         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
57292
57293 2013-10-04  Alan Modra  <amodra@gmail.com>
57294
57295         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
57296         Delete.
57297         (IEEE854_LONG_DOUBLE_BIAS): Delete.
57298         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
57299         version of math_ldbl.h.
57300
57301 2013-10-04  Alan Modra  <amodra@gmail.com>
57302
57303         [BZ #15734], [BZ #15735]
57304         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
57305         all uses of ieee875 long double macros and unions.  Simplify test
57306         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
57307         ldbl_extract_mantissa value for ix,iy exponents.  Properly
57308         normalize after ldbl_extract_mantissa, and don't add hidden bit
57309         already handled.  Don't treat low word of ieee854 mantissa like
57310         low word of IBM long double and mask off bit when testing for
57311         zero.
57312         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
57313         all uses of ieee875 long double macros and unions.  Simplify tests
57314         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
57315         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
57316         two1022, instead use their values.  Recognise that tests for large
57317         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
57318         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
57319         Rewrite all uses of ieee875 long double macros and unions.  Simplify
57320         test for 0.0L and nan.  Correct negation.
57321         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
57322         ieee875 long double macros and unions.  Correct output for large
57323         magnitude x.  Correct absolute value calculation.
57324         (__erfcl): Likewise.
57325         * math/libm-test.inc: Add tests for errors discovered in IBM long
57326         double versions of fmodl, remainderl, erfl and erfcl.
57327
57328 2013-10-04  Alan Modra  <amodra@gmail.com>
57329
57330         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
57331         all uses of ieee854 long double macros and unions.  Simplify tests
57332         for long doubles that are fully specified by the high double.
57333         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
57334         Likewise.
57335         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
57336         Remove dead code too.
57337         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
57338         (__ieee754_ynl): Likewise.
57339         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
57340         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
57341         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
57342         Remove dead code too.
57343         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
57344         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
57345         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
57346         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
57347         Simplify.
57348         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
57349         Simplify.
57350         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
57351         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
57352         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
57353         Comment on variable precision.
57354         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
57355         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
57356         Likewise.
57357         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
57358         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
57359         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
57360         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
57361         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
57362
57363 2013-10-04  Alan Modra  <amodra@gmail.com>
57364
57365         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
57366         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
57367         all uses of ieee854 long double macros and unions.
57368         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
57369         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
57370         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
57371         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
57372         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
57373         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57374         Likewise.
57375         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
57376         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
57377         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
57378         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
57379         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
57380         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
57381         Simplify sign and nan test too.
57382         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
57383         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
57384         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
57385         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
57386         Likewise.
57387         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57388         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
57389         Likewise.
57390         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57391         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
57392         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
57393         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
57394         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
57395         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
57396
57397 2013-10-04  Alan Modra  <amodra@gmail.com>
57398
57399         * stdio-common/printf_size.c (__printf_size): Don't use
57400         union ieee854_long_double in fpnum union.
57401         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
57402         signbit macro to retrieve sign from long double.
57403         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
57404         retrieve sign from long double.
57405         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
57406         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
57407         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
57408         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
57409         * math/test-misc.c (main): Don't use union ieee854_long_double.
57410
57411 2013-10-04  Alan Modra  <amodra@gmail.com>
57412
57413         [BZ #15680]
57414         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
57415         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
57416         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
57417         calculation.  Remove unnecessary test for denormal exponent.
57418         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
57419         Correct handling of denormals.  Avoid undefined shift behaviour.
57420         Correct normalisation of low mantissa when low double is denormal.
57421         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
57422         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
57423         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
57424         Correct normalisation of low mantissa.  Test for overflow of high
57425         mantissa and normalise.
57426         (ldbl_nearbyint): Use more readable constant for two52.
57427         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
57428         (__mpn_construct_long_double): Fix test for overflow of high
57429         mantissa and correct normalisation.  Avoid undefined shift.
57430
57431 2013-10-04  Alan Modra  <amodra@gmail.com>
57432
57433         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57434         (union ibm_extended_long_double): Define as an array of ieee754_double.
57435         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
57436         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
57437         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
57438         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
57439         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57440         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
57441         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
57442         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57443         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
57444         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
57445         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57446
57447 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
57448
57449         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
57450         page size instead of calling getpagesize.
57451
57452         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
57453         (LOCFILE_ALIGN_MASK): Likewise.
57454         (LOCFILE_ALIGN_UP): Likewise.
57455         (LOCFILE_ALIGNED_P): Likewise.
57456         * locale/programs/ld-collate.c (collate_output): Use the new
57457         macros instead of __alignof__ (int32_t).
57458         * locale/weight.h (findidx): Likewise.
57459
57460 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
57461
57462         [BZ #431]
57463         * manual/string.texi: Fix strncat and wcsncat.
57464
57465 2013-10-03  Brooks Moses  <bmoses@google.com>
57466
57467         [BZ #15915]
57468         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
57469         * Makerules: ...here, and adjust associated comments.
57470
57471 2013-10-02  Will Newton  <will.newton@linaro.org>
57472
57473         * malloc/Makefile: Add tst-pvalloc.
57474         * malloc/tst-pvalloc.c: New file.
57475
57476 2013-10-02  Will Newton  <will.newton@linaro.org>
57477
57478         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
57479         improve test coverage.
57480
57481 2013-10-02  Will Newton  <will.newton@linaro.org>
57482
57483         * malloc/Makefile: Add tst-posix_memalign.
57484         * malloc/tst-posix_memalign.c: New file.
57485
57486 2013-10-01  Eric Blake  <eblake@redhat.com>
57487
57488         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
57489         Use __THROWNL rather than __THROW on static functions.
57490
57491 2013-09-30  Petr Machata  <pmachata@redhat.com>
57492
57493         * elf/elf.h (R_AARCH64_ABS16): New macro.
57494         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
57495         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
57496         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
57497         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
57498         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
57499         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
57500         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
57501         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
57502         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
57503         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
57504         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
57505         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
57506         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
57507         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
57508         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
57509         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
57510         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
57511         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
57512         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
57513         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
57514         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
57515         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
57516         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
57517         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
57518         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
57519         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
57520         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
57521         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
57522         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
57523         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
57524         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
57525         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
57526         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
57527         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
57528         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
57529         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
57530         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
57531         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
57532         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
57533         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
57534         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
57535         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
57536         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
57537         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
57538         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
57539         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
57540         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
57541         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
57542         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
57543         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
57544         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
57545         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
57546         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
57547         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
57548         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
57549         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
57550         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
57551         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
57552         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
57553         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
57554         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
57555         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
57556         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
57557         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
57558         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
57559         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
57560         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
57561         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
57562         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
57563         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
57564         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
57565         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
57566         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
57567         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
57568         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
57569         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
57570         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
57571         (R_AARCH64_TLSDESC_LDR): Likewise.
57572         (R_AARCH64_TLSDESC_ADD): Likewise.
57573         (R_AARCH64_TLSDESC_CALL): Likewise.
57574
57575 2013-09-30  Andreas Schwab  <schwab@suse.de>
57576
57577         [BZ #15048]
57578         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
57579         the nss database lookup.
57580         * nscd/initgrcache.c (addinitgroupsX): Likewise.
57581         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57582
57583 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
57584
57585         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
57586
57587 2013-09-28  P. J. McDermott  <pj@pehjota.net>
57588
57589         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
57590         ${Bash-specific parameter/pattern/string} parameter expansion.
57591         * sysdeps/unix/make-syscalls.sh: Likewise.
57592
57593 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57594
57595         * sysdeps/sh/stackguard-macros.h: New file.
57596
57597 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
57598
57599         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
57600         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
57601         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
57602         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
57603         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57604         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
57605
57606 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57607
57608         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
57609         Fix thread ID register.
57610
57611 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
57612
57613         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
57614         [POSIX || UNIX98]: Require rather than permitting all symbols from
57615         <time.h>.
57616         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
57617         element of struct sched_param.
57618         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
57619         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
57620         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
57621         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
57622         constant.
57623
57624 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
57625
57626         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
57627         argument calculation.
57628
57629 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57630
57631         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
57632         Expect macro.
57633         [POSIX] (pthread_attr_t): Do not require type.
57634         [POSIX] (pthread_cond_t): Likewise.
57635         [POSIX] (pthread_condattr_t): Likewise.
57636         [POSIX] (pthread_key_t): Likewise.
57637         [POSIX] (pthread_mutex_t): Likewise.
57638         [POSIX] (pthread_mutexattr_t): Likewise.
57639         [POSIX] (pthread_once_t): Likewise.
57640         [POSIX] (pthread_t): Likewise.
57641         [POSIX-based standards] (pthread_atfork): Expect function.
57642
57643 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57644             Richard Sandiford  <richard@codesourcery.com>
57645
57646         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
57647         (swap_endianness_p): New extern variable.
57648         (set_big_endian): New inline function.
57649         (maybe_swap_uint32): Likewise.
57650         (maybe_swap_uint32_array): Likewise.
57651         (maybe_swap_uint32_obstack): Likewise.
57652         * locale/programs/locfile.c: Include <stdbool.h>.
57653         (swap_endianness_p): New variable.
57654         (add_locale_uint32): Call maybe_swap_uint32.
57655         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
57656         (write_locale_data): Call maybe_swap_uint32_array.
57657         * locale/programs/ld-collate.c (obstack_int32_grow): Call
57658         maybe_swap_uint32.
57659         (obstack_int32_grow_fast): Likewise.
57660         (output_weightwc): Call maybe_swap_uint32_obstack.
57661         (collate_output): Likewise.
57662         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
57663         (OPT_LITTLE_ENDIAN): Likewise.
57664         (options): Add --little-endian and --big-endian options.
57665         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
57666         * locale/programs/locarchive.c: Include "locfile.h".
57667         (GET): New macro.
57668         (SET): Likewise.
57669         (INC): Likewise.
57670         (create_archive): Use the new macros to access fields of
57671         structures directly mapped from or written to locale archives.
57672         (oldlocrecentcmp): Likewise.
57673         (enlarge_archive): Likewise.
57674         (insert_name): Likewise.
57675         (add_alias): Likewise.
57676         (add_locale): Likewise.
57677         (delete_locales_from_archive): Likewise.
57678         (show_archive_content): Likewise.
57679         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
57680         locale data.
57681
57682 2013-09-24  Roland McGrath  <roland@hack.frob.com>
57683
57684         * manual/freemanuals.texi: Updated from (newly) canonical copy at
57685         http://www.gnu.org/doc/freemanuals.texi.
57686         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
57687
57688 2013-09-24  Will Newton  <will.newton@linaro.org>
57689
57690         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
57691         macro.
57692
57693 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
57694
57695         * locale/hashval.h (compute_hashval): Interpret bytes of key as
57696         unsigned char.
57697
57698 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
57699
57700         * manual/threads.texi (POSIX Threads): Fix a typo.
57701
57702 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
57703
57704         [BZ #14547]
57705         * string/tst-strcoll-overflow.c: New test case.
57706         * string/Makefile (xtests): Add tst-strcoll-overflow.
57707         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
57708         cache if string sizes may cause integer overflow.
57709
57710         [BZ #14547]
57711         * string/strcoll_l.c (coll_seq): New members rule, idx,
57712         save_idx and back_us.
57713         (get_next_seq_nocache): New function.
57714         (do_compare_nocache): New function.
57715         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
57716         when malloc fails.
57717
57718 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
57719
57720         [BZ #15754]
57721         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
57722         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
57723         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
57724
57725         [BZ #15754]
57726         * elf/Makefile (tests): Add tst-ptrguard1.
57727         (tests-static): Add tst-ptrguard1-static.
57728         (tst-ptrguard1-ARGS): Define.
57729         (tst-ptrguard1-static-ARGS): Define.
57730         * elf/tst-ptrguard1.c: New file.
57731         * elf/tst-ptrguard1-static.c: New file.
57732         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
57733         * sysdeps/i386/stackguard-macros.h: Likewise.
57734         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
57735         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
57736         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
57737         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
57738         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
57739         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
57740
57741 2013-09-23  Hector Marco  <hecmargi@upv.es>
57742             Ismael Ripoll  <iripoll@disca.upv.es>
57743             Carlos O'Donell  <carlos@redhat.com>
57744
57745         [BZ #15754]
57746         * sysdeps/generic/stackguard-macros.h: Define
57747         __pointer_chk_guard_local and POINTER_CHK_GUARD.
57748         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
57749         Define __pointer_chk_guard_local.
57750         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
57751         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
57752
57753 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
57754
57755         [BZ #15859]
57756         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
57757
57758 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
57759
57760         * include/string.h (__ffs): Declare as hidden.
57761         * string/ffs.c (__ffs): Define as hidden.
57762         * sysdeps/i386/ffs.c (__ffs): Likewise.
57763         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
57764         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
57765         * sysdeps/s390/ffs.c (__ffs): Likewise.
57766         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
57767
57768 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
57769
57770         * NEWS: Mention malloc probes.
57771
57772         * malloc/arena.c (new_heap): New memory_heap_new probe.
57773         (grow_heap): New memory_heap_more probe.
57774         (shrink_heap): New memory_heap_less probe.
57775         (heap_trim): New memory_heap_free probe.
57776         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
57777         (systrim): New memory_sbrk_less probe.
57778         * manual/probes.texi: Document them.
57779
57780         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
57781         * manual/probes.texi: Document it.
57782
57783         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
57784         (__libc_realloc): Add memory_realloc_retry probe.
57785         (__libc_memalign): Add memory_memalign_retry probe.
57786         (__libc_valloc): Add memory_valloc_retry probe.
57787         (__libc_pvalloc): Add memory_pvalloc_retry probe.
57788         (__libc_calloc): Add memory_calloc_retry probe.
57789         * manual/probes.texi: Document them.
57790
57791         * malloc/arena.c (get_free_list): Add probe
57792         memory_arena_reuse_free_list.
57793         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
57794         and memory_arena_reuse.
57795         (arena_get2) [!PER_THREAD]: Likewise.
57796         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
57797         memory_arena_reuse_realloc.
57798         * manual/probes.texi: Document them.
57799
57800         * malloc/malloc.c (__libc_free): Add
57801         memory_mallopt_free_dyn_thresholds probe.
57802         (__libc_mallopt): Add multiple memory_mallopt probes.
57803         * manual/probes.texi: Document them.
57804
57805         * malloc/malloc.c: Include stap-probe.h.
57806         (__libc_mallopt): Add memory_mallopt probe.
57807         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
57808         * manual/probes.texi: New.
57809         * manual/Makefile (chapters): Add probes.
57810         * manual/threads.texi: Set next node.
57811
57812 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
57813
57814         [BZ #15963, #13985]
57815         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
57816         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
57817         Add `Chinese' to `nan' entry name.
57818
57819 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57820
57821         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
57822         (POLYNOMIAL): Likewise.
57823         (TAYLOR_SINCOS): Likewise.
57824         (TAYLOR_SLOW): Likewise.
57825         (__sin): Use TAYLOR_SINCOS.
57826         (__cos): Likewise.
57827         (slow): Use TAYLOR_SLOW.
57828         (sloww): Likewise.
57829         (bsloww): Likewise.
57830         (csloww): Likewise.
57831
57832 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
57833
57834         * stdlib/strtod_l.c: Fix buffer overrun.
57835
57836 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57837
57838         * benchtests/Makefile (bench): Add sincos.
57839         * benchtests/bench-sincos.c: New file.
57840
57841         * math/libm-test.inc (cos_test_data): New test inputs.
57842         (sin_test_data): Likewise.
57843
57844         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
57845         macro.
57846         (__sin): Use it.
57847         (__cos): Likewise.
57848         (slow1): Likewise.
57849         (slow2): Likewise.
57850         (sloww1): Likewise.
57851         (sloww2): Likewise.
57852         (bsloww1): Likewise.
57853         (bsloww2): Likewise.
57854         (cslow2): Likewise.
57855         (csloww1): Likewise.
57856         (csloww2): Likewise.
57857
57858         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
57859         function.
57860         (__sin): Use it.
57861         (__cos): Likewise.
57862
57863         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
57864         gotos.
57865         (__cos): Likewise.
57866
57867 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
57868
57869         * config.h.in (HAVE_MIPS_NAN2008): New macro.
57870         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
57871         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
57872         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
57873         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
57874         * elf/cache.c (print_entry): Handle the new cache flags.
57875
57876 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57877             Aldy Hernandez  <aldyh@redhat.com>
57878
57879         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
57880         Change condition to [_SOFT_FLOAT].
57881         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
57882         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
57883         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
57884         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
57885         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
57886         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
57887         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
57888         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
57889         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
57890         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
57891         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
57892         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
57893         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
57894         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
57895         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
57896         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
57897         declaration.
57898
57899 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57900
57901         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
57902         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57903         (__longjmp): Use LOAD_GP to load saved GPRs.
57904         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
57905         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57906         (__sigsetjmp): Use SAVE_GP to save GPRs.
57907
57908         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
57909         Do not append -msoft-float.
57910         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
57911
57912 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57913
57914         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
57915
57916 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
57917
57918         [BZ #15966]
57919         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
57920         (_FPU_GETCW): Use initial "__" on variable and field names but not
57921         on macro parameter name.
57922         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
57923         parentheses around reference to macro parameter.
57924
57925 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
57926
57927         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
57928         prototype.
57929         (ctype_startup): Use uint32_t in cast and sizeof for
57930         ctype->charnames.
57931
57932 2013-09-11  Jia Liu  <proljc@gmail.com>
57933
57934         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
57935         __daddr_t_defined.
57936         [__FreeBSD__]: Likewise.
57937
57938 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
57939
57940         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
57941         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
57942         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
57943         (strchr): Remove __strchr_sse42 ifunc selection.
57944         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
57945         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
57946
57947 2013-09-11  Will Newton  <will.newton@linaro.org>
57948
57949         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
57950         parameter to RES. Remove hardcoded 1000 value.
57951         * benchtests/bench-skeleton.c (main): Pass RES parameter
57952         to TIMING_INIT and multiply result by 1000.
57953
57954 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57955
57956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57957
57958 2013-09-11  Andreas Schwab  <schwab@suse.de>
57959
57960         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
57961         if not defined.
57962         (O_TMPFILE) [__USE_GNU]: Define.
57963         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
57964         Define.
57965
57966 2013-09-11  Will Newton  <will.newton@linaro.org>
57967
57968         [BZ #15857]
57969         * malloc/malloc.c (__libc_memalign): Check the value of bytes
57970         does not overflow.
57971
57972 2013-09-11  Will Newton  <will.newton@linaro.org>
57973
57974         [BZ #15856]
57975         * malloc/malloc.c (__libc_valloc): Check the value of bytes
57976         does not overflow.
57977
57978 2013-09-11  Will Newton  <will.newton@linaro.org>
57979
57980         [BZ #15855]
57981         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
57982         does not overflow.
57983
57984 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
57985
57986         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
57987         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
57988         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
57989         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
57990         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
57991
57992 2013-09-10  Allan McRae  <allan@archlinux.org>
57993
57994         [BZ #15748]
57995         * manual/arith.texi (Parsing of Floats): Clarify
57996         cross-reference.
57997
57998         [BZ #15849]
57999         * manual/install.texi (Running make install): Mention
58000         --enable-pt-chown.
58001         * INSTALL: Regenerated.
58002
58003 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
58004
58005         * csu/init-first.c (_init): Remove the !SHARED condition around
58006         FPU control word initialization.
58007         * elf/dl-support.c (_dl_fpu_control): New variable.
58008         (_dl_aux_init) <AT_FPUCW>: Initialize it.
58009         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
58010         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
58011         * math/test-fpucw-static.c: New file.
58012         * math/test-fpucw-ieee.c: New file.
58013         * math/test-fpucw-ieee-static.c: New file.
58014         * math/Makefile (tests): Add `test-fpucw-ieee' and
58015         `$(tests-static)'.
58016         (tests-static): New variable.
58017         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
58018         dependency to...
58019         [($(build-shared),yes)]
58020         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
58021         ... this.
58022         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
58023         New dependency.
58024
58025 2013-09-09  Allan McRae  <allan@archlinux.org>
58026
58027         [BZ #15939]
58028         * manual/string.texi (Collation Functions): Fix typo in
58029         strcoll example.
58030         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
58031
58032         [BZ #15893]
58033         * stdlib/isomac.c (get_null_defines): Fix memory leak.
58034
58035         [BZ #15892]
58036         * libio/memstream.c (open_memstream): Fix memory leak.
58037         * libio/wmemstream.c (open_wmemstream): Likewise.
58038
58039         [BZ #15895]
58040         * nscd/netgroupcache.c: Fix nesting of ifdefs.
58041
58042 2013-09-09  Will Newton  <will.newton@linaro.org>
58043
58044         * malloc/Makefile: Add tst-realloc to tests.
58045         * malloc/tst-realloc.c: New file.
58046
58047 2013-09-09  Allan McRae  <allan@archlinux.org>
58048
58049         [BZ #15844]
58050         * COPYING: Update from GNU website to fix FSF address.
58051         * COPYING.LIB: Likewise.
58052
58053 2013-09-06  David S. Miller  <davem@davemloft.net>
58054
58055         * po/zh_TW.po: Update Chinese (traditional) translation from
58056         translation project.
58057
58058 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
58059             Joseph Myers  <joseph@codesourcery.com>
58060
58061         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
58062         "localeinfo.h".
58063         (obstack_chunk_alloc): New macro.
58064         (obstack_chunk_free): Likewise.
58065         (record_offset): New function.
58066         (init_locale_data): Likewise.
58067         (align_locale_data): Likewise.
58068         (add_locale_empty): Likewise.
58069         (add_locale_raw_data): Likewise.
58070         (add_locale_raw_obstack): Likewise.
58071         (add_locale_string): Likewise.
58072         (add_locale_wstring): Likewise.
58073         (add_locale_uint32): Likewise.
58074         (add_locale_uint32_array): Likewise.
58075         (add_locale_char): Likewise.
58076         (start_locale_structure): Likewise.
58077         (end_locale_structure): Likewise.
58078         (start_locale_prelude): Likewise.
58079         (end_locale_prelude): Likewise.
58080         (write_locale_data): Take locale_file structure rather than an
58081         iovec.
58082         * locale/programs/locfile.h: Include "obstack.h".
58083         (struct locale_file): Change to store locale file contents instead
58084         of header.
58085         (init_locale_data): New prototype.
58086         (align_locale_data): Likewise.
58087         (add_locale_empty): Likewise.
58088         (add_locale_raw_data): Likewise.
58089         (add_locale_raw_obstack): Likewise.
58090         (add_locale_string): Likewise.
58091         (add_locale_wstring): Likewise.
58092         (add_locale_uint32): Likewise.
58093         (add_locale_uint32_array): Likewise.
58094         (add_locale_char): Likewise.
58095         (start_locale_structure): Likewise.
58096         (end_locale_structure): Likewise.
58097         (start_locale_prelude): Likewise.
58098         (end_locale_prelude): Likewise.
58099         (write_locale_data): Update prototype.
58100         * locale/programs/3level.h (struct TABLE): Remove result field.
58101         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
58102         Use new locale_file interface.
58103         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
58104         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
58105         * locale/programs/ld-address.c (address_output): Use new
58106         locale_file interface.
58107         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
58108         NO_ADD_LOCALE.
58109         (collate_finish): Don't call collseq_table_finalize.
58110         (collate_output): Use new locale_file interface.
58111         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
58112         in file.
58113         (NO_FINALIZE): Change to NO_ADD_LOCALE.
58114         (TABLE): Move defines earlier in file.
58115         (ELEMENT): Likewise.
58116         (DEFAULT): Likewise.
58117         (wctrans_table_add): Move macro and inline function earlier in
58118         file.
58119         (struct wctype_table): Move type earlier in file.
58120         (add_locale_wctype_table): New static prototype.
58121         (struct locale_ctype_t): Use logical types instead of struct iovec
58122         pointers for members.
58123         (ctype_output): Use new locale_file interface.
58124         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
58125         new locale_file interface.
58126         (allocate_arrays): Update for use of new locale_file interface.
58127         * locale/programs/ld-identification.c (identification_output): Use
58128         new locale_file interface.
58129         * locale/programs/ld-measurement.c (measurement_output): Likewise.
58130         * locale/programs/ld-messages.c (messages_output): Likewise.
58131         * locale/programs/ld-monetary.c (monetary_output): Likewise.
58132         * locale/programs/ld-name.c (name_output): Likewise.
58133         * locale/programs/ld-numeric.c (numeric_output): Likewise.
58134         * locale/programs/ld-paper.c (paper_output): Likewise.
58135         * locale/programs/ld-telephone.c (telephone_output): Likewise.
58136         * locale/programs/ld-time.c (time_output): Likewise.
58137
58138 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58139
58140         * benchtests/Makefile: Add memrchr benchmark.
58141         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
58142         benchmark as memrchr.
58143         * benchtests/bench-memrchr-ifunc.c: New file.
58144         * benchtests/bench-memrchr.c: New file.
58145
58146 2013-09-06   Will Newton  <will.newton@linaro.org>
58147
58148         * benchtests/Makefile (string-bench): Add memcpy.
58149
58150 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
58151             Cong Wang  <amwang@redhat.com>
58152
58153         [BZ #15850]
58154         * sysdeps/unix/sysv/linux/bits/in.h
58155         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
58156         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
58157         before __USE_KERNEL_IPV6_DEFS uses.
58158         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
58159         IPPROTO_BEETPH.
58160         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
58161         sockaddr_in6, or ipv6_mreq.
58162
58163 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58164
58165         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
58166         memory access for final bytes in some large inputs.
58167         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
58168
58169 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58170
58171         * string/test-memrchr.c: New file.
58172         * string/test-memrchr-ifunc.c: New file.
58173         * string/Makefile: Add new memrchr testcase.
58174
58175 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
58176
58177         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
58178         fanotify_init returns EPERM.
58179
58180 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58181
58182         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
58183         errors.
58184         (top level): Treat second token from macro or constant entries for
58185         allowed headers as allowed.
58186         * include/complex.h: Condition internal declarations on
58187         [!_ISOMAC].
58188         * include/fenv.h: Condition include of <stdbool.h> and internal
58189         declarations on [!_ISOMAC].
58190
58191 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
58192
58193         [BZ #15923]
58194         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
58195
58196 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58197
58198         * configure.in (--enable-versioning): Remove configure option.
58199         (libc_cv_asm_symver_directive): Remove configure test.
58200         (libc_cv_ld_version_script_option): Likewise.
58201         (VERSIONING): Remove variable and AC_SUBST.
58202         (DO_VERSIONING): Remove AC_DEFINE.
58203         * configure: Regenerated.
58204         * config.h.in (DO_VERSIONING): Remove macro.
58205         * Makerules [$(versioning) = yes]: Change conditionals to
58206         [$(build-shared) = yes].
58207         * config.make.in (versioning): Remove variable.
58208         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
58209         [$(build-shared) = yes].
58210         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
58211         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
58212         * elf/Makefile [$(versioning) = yes]: Change conditionals to
58213         [$(build-shared) = yes].
58214         * extra-lib.mk [$(versioning) = yes]: Likewise.
58215         * hurd/Makefile [$(versioning) = yes]: Likewise.
58216         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
58217         [SHARED].
58218         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
58219         [SHARED].
58220         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58221         [SHARED && !NO_HIDDEN].
58222         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
58223         [SHARED].
58224         [SHARED && DO_VERSIONING]: Likewise..
58225         * libio/Makefile [$(versioning) = yes]: Change conditionals to
58226         [$(build-shared) = yes].
58227         * manual/install.texi (--disable-versioning): Remove
58228         documentation.
58229         * INSTALL: Regenerated.
58230         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
58231         to [SHARED].
58232         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
58233         [$(build-shared) = yes].
58234         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
58235         * sysdeps/i386/i686/multiarch/strstr-c.c
58236         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58237         [SHARED && !NO_HIDDEN].
58238         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
58239         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
58240         * sysdeps/powerpc/powerpc32/dl-machine.c
58241         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
58242         * sysdeps/powerpc/powerpc32/sysdep.h
58243         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
58244         to [SHARED && PIC && !NO_HIDDEN].
58245         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
58246         conditional to [SHARED].
58247
58248 2013-09-04   Will Newton  <will.newton@linaro.org>
58249
58250         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
58251         * benchtests/bench-string.h: Include bench-timing.h instead
58252         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
58253         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
58254         call to HP_TIMING_DIFF_INIT.
58255         * benchtests/bench-memccpy.c: Use bench-timing.h macros
58256         instead of hp-timing.h macros.
58257         * benchtests/bench-memchr.c: Likewise.
58258         * benchtests/bench-memcmp.c: Likewise.
58259         * benchtests/bench-memcpy.c: Likewise.
58260         * benchtests/bench-memmem.c: Likewise.
58261         * benchtests/bench-memmove.c: Likewise.
58262         * benchtests/bench-memset.c: Likewise.
58263         * benchtests/bench-rawmemchr.c: Likewise.
58264         * benchtests/bench-strcasecmp.c: Likewise.
58265         * benchtests/bench-strcasestr.c: Likewise.
58266         * benchtests/bench-strcat.c: Likewise.
58267         * benchtests/bench-strchr.c: Likewise.
58268         * benchtests/bench-strcmp.c: Likewise.
58269         * benchtests/bench-strcpy.c: Likewise.
58270         * benchtests/bench-strcpy_chk.c: Likewise.
58271         * benchtests/bench-strlen.c: Likewise.
58272         * benchtests/bench-strncasecmp.c: Likewise.
58273         * benchtests/bench-strncat.c: Likewise.
58274         * benchtests/bench-strncmp.c: Likewise.
58275         * benchtests/bench-strncpy.c: Likewise.
58276         * benchtests/bench-strnlen.c: Likewise.
58277         * benchtests/bench-strpbrk.c: Likewise.
58278         * benchtests/bench-strrchr.c: Likewise.
58279         * benchtests/bench-strspn.c: Likewise.
58280         * benchtests/bench-strstr.c: Likewise.
58281
58282 2013-09-04  Will Newton  <will.newton@linaro.org>
58283
58284         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
58285
58286 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
58287
58288         [BZ #15427]
58289         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
58290         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
58291         * math/libm-test.inc (lgamma_test_data): Add more tests.
58292         * sysdeps/i386/fpu/libm-test-ulps: Update.
58293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58294
58295 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
58296
58297         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
58298         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
58299         Add ifunc.
58300         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
58301         Add strcmp-sse2-unaligned
58302         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
58303
58304 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58305
58306         * Versions.def (libc): Add GLIBC_2.19.
58307
58308 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58309
58310         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
58311         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
58312
58313 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
58314
58315         [BZ #14155]
58316         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
58317         intermediate calculations in recurrence.
58318         (__ieee754_ynf): Likewise.
58319         * math/libm-test.inc (jn_test_data): Do not allow spurious
58320         underflow exception.  Add more tests.
58321         (yn_test_data): Add more tests.
58322         * sysdeps/i386/fpu/libm-test-ulps: Update.
58323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58324
58325 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
58326
58327         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
58328
58329 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58330
58331         * csu/init-first.c: Fix then/than typos.
58332         * locale/programs/ld-collate.c: Likewise.
58333         * locale/programs/linereader.h: Likewise.
58334         * manual/charset.texi: Likewise.
58335         * manual/filesys.texi: Likewise.
58336         * manual/stdio.texi: Likewise.
58337         * manual/string.texi: Likewise.
58338         * stdlib/fmtmsg.c: Likewise.
58339         * sysdeps/i386/stpncpy.S: Likewise.
58340         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
58341         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
58342         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
58343         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
58344
58345 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58346
58347         * elf/dl-open.c: Fix typos.
58348         * iconvdata/gbbig5.c: Likewise.
58349         * iconvdata/iso-2022-jp.c: Likewise.
58350         * iconv/gconv_int.h: Likewise.
58351         * iconv/loop.c: Likewise.
58352         * nis/rpcsvc/nis.h: Likewise.
58353         * resolv/ns_name.c: Likewise.
58354         * stdio-common/vfscanf.c: Likewise.
58355         * streams/stropts.h: Likewise.
58356         * sunrpc/rpc_thread.c: Likewise.
58357         * sysdeps/i386/strpbrk.S: Likewise.
58358         * sysdeps/ieee754/k_standard.c: Likewise.
58359         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
58360         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
58361         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
58362         * sysdeps/mach/hurd/profil.c: Likewise.
58363         * sysdeps/s390/dl-procinfo.h: Likewise.
58364         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
58365         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
58366         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
58367         * sysdeps/x86_64/dl-trampoline.S: Likewise.
58368         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
58369
58370 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
58371
58372         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
58373         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
58374
58375 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
58376
58377         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
58378         aix specific files.
58379         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
58380         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
58381         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
58382         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
58383         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
58384         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
58385         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
58386         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
58387
58388 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58389             Roland McGrath  <roland@hack.frob.com>
58390
58391         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
58392         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
58393
58394 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58395
58396         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
58397         __executable_start symbol instead of _start.
58398
58399 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58400
58401         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
58402         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
58403         Move macros to...
58404         * sysdeps/gnu/ldsodefs.h: ... this new file.
58405
58406         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
58407         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
58408         instead of ELFOSABI_LINUX.
58409
58410         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
58411         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
58412         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
58413         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
58414         Likewise.
58415         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
58416         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
58417         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
58418         Likewise.
58419         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
58420         (ibm_extended_long_double): Add ieee_nan member.
58421         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
58422         (do_test): New function.
58423
58424         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
58425         TEST_TRUNC.
58426         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
58427         functions, renamed from truncdfsf_test, trunctfsf_test,
58428         trunctfdf_test.
58429         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
58430         functions.
58431         (do_test): Run all these.
58432
58433 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
58434
58435         * argp/argp-help.c: Fix typos.
58436         * argp/argp-parse.c: Likewise.
58437         * debug/backtracesyms.c: Likewise.
58438         * elf/elf.h: Likewise.
58439         * malloc/malloc.c: Likewise.
58440         * nis/nis_print.c: Likewise.
58441         * resolv/res_comp.c: Likewise.
58442         * stdlib/stdlib.h: Likewise.
58443         * sunrpc/clnt_tcp.c: Likewise.
58444         * sunrpc/clnt_udp.c: Likewise.
58445         * sunrpc/clnt_unix.c: Likewise.
58446         * sysdeps/unix/bsd/ptsname.c: Likewise.
58447         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
58448         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
58449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
58450         Likewise.
58451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
58452         Likewise.
58453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
58454         Likewise.
58455         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
58456
58457 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58458
58459         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
58460         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
58461
58462 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
58463
58464         [BZ #15897]
58465         * dlfcn/Makefile (tests): Add bug-dl-leaf.
58466         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
58467         ($(objpfx)bug-dl-leaf): New rule.
58468         ($(objpfx)bug-dl-leaf.so): Likewise.
58469         ($(objpfx)bug-dl-leaf.out): Likewise.
58470         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
58471         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
58472         * dlfcn/bug-dl-leaf.c: New test.
58473         * dlfcn/bug-dl-leaf-lib.c: Likewise.
58474         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
58475         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
58476         (dlclose): Likewise.
58477         (dlmopen): Likewise.
58478
58479 2013-08-27  Roland McGrath  <roland@hack.frob.com>
58480
58481         * include/netdb.h [!_ISOMAC]:
58482         Don't include <tls.h>.
58483         (h_errno, __libc_h_errno): Move declaration and macros out of
58484         [_LIBC_REENTRANT].
58485
58486         * include/resolv.h [_RESOLV_H_]:
58487         Don't include <tls.h>.
58488         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
58489         * resolv/res_libc.c: Don't include <tls.h>.
58490         (_res): Use __attribute__ ((nocommon)) in place of
58491         __attribute__ ((section (".bss"))).
58492
58493         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
58494         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
58495
58496         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
58497
58498         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
58499         only under [SIOCGIFCONF && SIOCGIFNETMASK].
58500
58501         * resolv/res_mkquery.c: Include <sys/time.h>.
58502
58503         * inet/ifreq.c: Moved to ...
58504         * sysdeps/unix/ifreq.c: ... here.
58505         * inet/ifreq.c: New file, true stub version.
58506
58507         * socket/sa_len.c: New file.
58508         * socket/Makefile (aux): Add it.
58509         * sysdeps/unix/sysv/linux/Makefile
58510         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
58511         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
58512         and #include <socket/sa_len.c>.
58513         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
58514         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
58515
58516         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
58517         * bits/socket.h: ... here.
58518
58519         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
58520         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
58521         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
58522
58523 2013-08-27  Andreas Schwab  <schwab@suse.de>
58524
58525         [BZ #15736]
58526         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
58527         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
58528         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
58529         * string/test-strcasecmp.c (test_main): Run tests in several
58530         locales.
58531         * string/test-strncasecmp.c (test_main): Likewise.
58532
58533         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
58534         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
58535         to __strcasecmp_nonascii and __strncasecmp_nonascii.
58536         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
58537         (__strncasecmp_ssse3) [PIC]: Likewise.
58538
58539 2013-08-26  Roland McGrath  <roland@hack.frob.com>
58540
58541         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
58542
58543         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
58544         instead of explicitly declaring xdecrypt.
58545         * nis/nss_nis/nis-publickey.c: Likewise.
58546
58547 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58548
58549         [BZ #15890]
58550         * nscd/aicache.c: Include res_hconf.h.
58551         (addhstaiX): Initialize res_hconf.
58552
58553 2013-08-26  Andreas Schwab  <schwab@suse.de>
58554
58555         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
58556         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
58557
58558 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58559
58560         * nscd/aicache.c (addhstaiX): Fix indentation.
58561
58562 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
58563
58564         * configure.ac: Quote $build_pt_chown test.
58565         * configure: Regenerated.
58566
58567 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
58568
58569         [BZ #15532]
58570         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
58571         * math/s_cexpf.c (__cexpf): Likewise.
58572         * math/s_cexpl.c (__cexpl): Likewise.
58573         * math/libm-test.inc (cexp_test_data): Correct expected return
58574         value for NaN + i0.  Add another test.
58575
58576 2013-08-22  David S. Miller  <davem@davemloft.net>
58577
58578         * po/ca.po: Update Catalan translation from translation project.
58579         * po/uk.po: Add Ukrainian translations from translation project.
58580
58581 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
58582
58583         [BZ #15797]
58584         * math/s_fdim.c (__fdim): Check for infinite arguments if result
58585         is infinite, not alongside NaN test.
58586         * math/s_fdimf.c (__fdimf): Likewise.
58587         * math/s_fdiml.c (__fdiml): Likewise.
58588         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
58589         errno is unchanged.
58590
58591 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
58592
58593         * argp/argp-help.c: Fix typos.
58594         * crypt/speeds.c: Likewise.
58595         * csu/check_fds.c: Likewise.
58596         * elf/dl-load.c: Likewise.
58597         * elf/dl-open.c: Likewise.
58598         * elf/reldep3.c: Likewise.
58599         * elf/reldep.c: Likewise.
58600         * elf/sprof.c: Likewise.
58601         * iconv/iconv_charmap.c: Likewise.
58602         * iconv/skeleton.c: Likewise.
58603         * iconv/strtab.c: Likewise.
58604         * io/lockf64.c: Likewise.
58605         * libio/libioP.h: Likewise.
58606         * resolv/gai_notify.c: Likewise.
58607         * resolv/ns_name.c: Likewise.
58608         * resolv/ns_samedomain.c: Likewise.
58609         * resolv/res_send.c: Likewise.
58610         * stdlib/random.c: Likewise.
58611         * sunrpc/rpc/xdr.h: Likewise.
58612         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
58613         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
58614         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
58615         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
58616         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
58617         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
58618         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
58619         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
58620         * sysdeps/mach/hurd/check_fds.c: Likewise.
58621         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
58622         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
58623         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
58624         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
58625         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
58626         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
58627         * sysdeps/pthread/aio_notify.c: Likewise.
58628         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
58629         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
58630         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
58631         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
58632         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
58633
58634 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58635
58636         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
58637         version if bit_Slow_SSE4_2 is set.
58638         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
58639         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
58640
58641 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58642
58643         [BZ #15867]
58644         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
58645         trampoline stack frame information.
58646         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
58647         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
58648         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
58649         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
58650         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
58651         * sysdeps/unix/sysv/linux/powerpc/init-first.c
58652         (_libc_vdso_platform_setup): Initialize the signal trampolines.
58653         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
58654         sa_flags value.
58655         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
58656         interrupting a syscall and set with option SA_SIGINFO.
58657
58658 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58659
58660         [BZ #15531]
58661         * math/s_cproj.c (__cproj): Only return an infinity if one part of
58662         argument is infinite.
58663         * math/s_cprojf.c (__cprojf): Likewise.
58664         * math/s_cprojl.c (__cprojl): Likewise.
58665         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
58666         * math/libm-test.inc (cproj_test_data): Add more tests.
58667
58668         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
58669
58670         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
58671         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
58672         size.  Use __ffs to determine corresponding shift.
58673
58674 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58675             Roland McGrath  <roland@hack.frob.com>
58676
58677         * Makefile (INSTALL): Remove trailing blank lines from output of
58678         makeinfo.
58679
58680 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58681
58682         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
58683         Align 32 bit compat elf_greg to 8 bytes.
58684
58685 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
58686
58687         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
58688
58689 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58690
58691         * string/strcoll_l.c (coll_seq): New structure.
58692         (get_next_seq_cached): New function.
58693         (get_next_seq): New function.
58694         (do_compare): New function.
58695         (STRCOLL): Use GNU style definition.  Simplify implementation
58696         by using get_next_seq, get_next_seq_cached and do_compare.
58697
58698 2013-08-16  Florian Weimer  <fweimer@redhat.com>
58699
58700         [BZ #14699]
58701         CVE-2013-4237
58702         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
58703         member.
58704         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
58705         member.
58706         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
58707         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
58708         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
58709         conditional.
58710         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
58711         GETDENTS_64BIT_ALIGNED.
58712         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58713         * manual/filesys.texi (Reading/Closing Directory): Document
58714         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
58715         strongly.
58716         * manual/conf.texi (Limits for Files): Add portability note to
58717         NAME_MAX, PATH_MAX.
58718         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
58719
58720 2013-08-13  Andreas Schwab  <schwab@suse.de>
58721
58722         [BZ #15749]
58723         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
58724         of fabs.
58725         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
58726         LDBL_MAX_EXP >= 16384]: Add tests for it.
58727
58728 2013-08-12  David S. Miller  <davem@davemloft.net>
58729
58730         * version.h (RELEASE): Set to "development".
58731         (VERSION): Set to "2.18.90".
58732         * NEWS: Add 2.19 section.
58733
58734 2013-08-03  David S. Miller  <davem@davemloft.net>
58735
58736         * po/ko.po: Update Korean translation from translation project.
58737
58738 2013-08-01  David S. Miller  <davem@davemloft.net>
58739
58740         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
58741         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
58742         Bilka.
58743
58744 2013-07-30  David S. Miller  <davem@davemloft.net>
58745
58746         * po/fr.po: Update French translation from translation project.
58747
58748 2013-07-28  David S. Miller  <davem@davemloft.net>
58749
58750         * po/cs.po: Update Czech translation from translation project.
58751
58752         * po/sv.po: Update Swedish translation from translation project.
58753
58754 2013-07-27  David S. Miller  <davem@davemloft.net>
58755
58756         * po/eo.po: Update Esperanto translation from translation project.
58757
58758         * po/vi.po: Update Vietnamese translation from translation project.
58759
58760         * po/de.po: Update German translation from translation project.
58761
58762 2013-07-26  David S. Miller  <davem@davemloft.net>
58763
58764         * po/bg.po: Update Bulgarian translation from translation project.
58765
58766         * po/nl.po: Update Dutch translation from translation project.
58767         * po/pl.po: Update Polish translation from translation project.
58768         * po/ru.po: Update Russian translation from translation project.
58769
58770 2013-07-24  David S. Miller  <davem@davemloft.net>
58771
58772         * po/libc.pot: Update.
58773
58774 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58775
58776         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
58777         variable page size.
58778         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
58779         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
58780         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
58781
58782 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58783
58784         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
58785
58786 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58787             Andreas Schwab  <schwab@suse.de>
58788             Roland McGrath  <roland@hack.frob.com>
58789             Joseph Myers  <joseph@codesourcery.com>
58790             Carlos O'Donell  <carlos@redhat.com>
58791
58792         [BZ #15755]
58793         * config.h.in: Define HAVE_PT_CHOWN.
58794         * config.make.in (build-pt-chown): New variable.
58795         * configure.in (--enable-pt_chown): New configure option.
58796         * configure: Regenerate.
58797         * login/Makefile: Include Makeconfig.  Build pt_chown only if
58798         build-pt-chown is enabled.
58799         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
58800         pt_chown to fix pty ownership.
58801         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
58802         CLOSE_ALL_FDS.
58803         * manual/install.texi (Configuring and compiling): Mention
58804         --enable-pt_chown. Add @findex for grantpt.
58805         * INSTALL: Regenerate.
58806
58807 2013-07-20  David S. Miller  <davem@davemloft.net>
58808
58809         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
58810         difference between 32-bit and 64-bit.
58811
58812 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
58813
58814         [BZ #15711]
58815         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
58816         Avoid system header dependency with -ffreestanding.
58817         ($(objpfx)bits/syscall%d): Likewise.
58818
58819 2013-07-13  David S. Miller  <davem@davemloft.net>
58820
58821         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
58822         underflows from atanl/atan2l due to bug 15319.
58823         (casinh_test_data): Likewise.
58824
58825 2013-07-07  David S. Miller  <davem@davemloft.net>
58826
58827         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
58828
58829 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
58830
58831         * sysdeps/i386/fpu/libm-test-ulps: Update.
58832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58833
58834 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
58835
58836         * configure.in (--enable-lock-elision): Fix message text.
58837         * INSTALL: Regenerate.
58838         * configure: Regenerate.
58839
58840 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58841
58842         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58843
58844 2013-07-03  Andreas Jaeger  <aj@suse.de>
58845
58846         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
58847         define.
58848         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
58849         (ptrace_peeksiginfo_args): Add.
58850         (__ptrace_peeksiginfo_flags): Add.
58851         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
58852         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
58853         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
58854
58855 2013-07-03  Allan McRae  <allan@archlinux.org>
58856
58857         * sysdeps/i386/fpu/libm-test-ulps: Update.
58858
58859 2013-07-02  David S. Miller  <davem@davemloft.net>
58860
58861         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58862
58863 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
58864
58865         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58866
58867 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58868
58869         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
58870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58871
58872 2013-07-02  Andi Kleen <ak@linux.intel.com>
58873
58874         * config.h.in (ENABLE_LOCK_ELISION): Add.
58875         * configure.in (--enable-lock-elision): Add option.
58876         * manual/install.texi: Document --enable lock elision.
58877         * configure: Regenerate
58878         * INSTALL: Regenerate.
58879
58880 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
58881
58882         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
58883         SSE4.2 strcasecmp for libc.a.
58884         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
58885
58886 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58887
58888         [BZ #13304]
58889         * soft-fp/op-common.h (_FP_FMA): New macro.
58890         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
58891         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
58892         (_FP_MUL_MEAT_1_imm): ... here.
58893         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
58894         (_FP_MUL_MEAT_1_wide): ... here.
58895         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
58896         (_FP_MUL_MEAT_1_hard): ... here.
58897         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
58898         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
58899         (_FP_MUL_MEAT_2_wide): ... here.
58900         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
58901         (_FP_MUL_MEAT_2_wide_3mul): ... here.
58902         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
58903         (_FP_MUL_MEAT_2_gmp): ... here.
58904         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
58905         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
58906         (_FP_MUL_MEAT_4_wide): ... here.
58907         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
58908         (_FP_MUL_MEAT_4_gmp): ... here.
58909         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
58910         (_FP_WFRACBITS_DW_S): Likewise.
58911         (_FP_WFRACXBITS_DW_S): Likewise.
58912         (_FP_HIGHBIT_DW_S): Likewise.
58913         (FP_FMA_S): Likewise.
58914         (_FP_FRAC_HIGH_DW_S): Likewise.
58915         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
58916         (_FP_WFRACBITS_DW_D): Likewise.
58917         (_FP_WFRACXBITS_DW_D): Likewise.
58918         (_FP_HIGHBIT_DW_D): Likewise.
58919         (FP_FMA_D): Likewise.
58920         (_FP_FRAC_HIGH_DW_D): Likewise.
58921         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
58922         (_FP_WFRACBITS_DW_E): Likewise.
58923         (_FP_WFRACXBITS_DW_E): Likewise.
58924         (_FP_HIGHBIT_DW_E): Likewise.
58925         (FP_FMA_E): Likewise.
58926         (_FP_FRAC_HIGH_DW_E): Likewise.
58927         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
58928         (_FP_WFRACBITS_DW_Q): Likewise.
58929         (_FP_WFRACXBITS_DW_Q): Likewise.
58930         (_FP_HIGHBIT_DW_Q): Likewise.
58931         (FP_FMA_Q): Likewise.
58932         (_FP_FRAC_HIGH_DW_Q): Likewise.
58933         * soft-fp/fmasf4.c: New file.
58934         * soft-fp/fmadf4.c: Likewise.
58935         * soft-fp/fmatf4.c: Likewise.
58936
58937 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58938
58939         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
58940         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
58941         Silvermont.
58942         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
58943         macro.
58944         (index_Slow_SSE4_2): Likewise.
58945         (index_Prefer_PMINUB_for_stringop): Likewise.
58946         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
58947         bit_Slow_SSE4_2 is set.
58948         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
58949         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58950
58951 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58952
58953         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
58954         rtld_global._dl_hwcap2.
58955         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
58956         POWER8.
58957         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
58958         POWER8 feature descriptions defined in _dl_hwcap2.
58959         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
58960         string handling for POWER8 feature bits.
58961         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
58962         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
58963         _dl_powerpc_cap_flags.
58964         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
58965         * sysdeps/powerpc/rtld-global-offsets.sym
58966         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
58967         _dl_hwcap2 in the rtld_global_ro structure.
58968
58969 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58970
58971         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
58972         hardware capabilities in support of AT_HWCAP2.
58973         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
58974         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
58975         GLRO(dl_hwcap2).
58976         (_dl_show_auxv): Add support for calling _dl_procinfo to display
58977         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
58978         explicitly the unknown a_type display mechanism is used.
58979         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
58980         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
58981         struct member.
58982         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
58983         to macro prototype for AT_HWCAP2 support.
58984         * sysdeps/i386/dl-procinfo.h: Likewise.
58985         * sysdeps/s390/dl-procinfo.h: Likewise.
58986         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
58987         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
58988         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
58989         return -1 for unknown a_type display fallback.
58990         * sysdeps/sparc/dl-procinfo.h: Likewise.
58991         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
58992         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
58993
58994 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
58995
58996         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
58997         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
58998
58999 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
59000
59001         [BZ #12492]
59002         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
59003         mprotect making __stack_prot writable.
59004
59005 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
59006             Joseph Myers  <joseph@codesourcery.com>
59007
59008         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
59009         as being properly aligned.
59010
59011 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
59012
59013         * dlfcn/modstatic5.c: New file.
59014         * dlfcn/tststatic5.c: New file.
59015         * dlfcn/Makefile (tests): Add tststatic5.
59016         (tests-static): Likewise.
59017         (modules-names): Add modstatic5.
59018         (tststatic5-ENV): New variable.
59019         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
59020
59021         [BZ #15022]
59022         * elf/dl-support.c (_dl_main_map): New variable.
59023         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
59024         (_dl_nns, _dl_load_adds): Set to 1.
59025         (_dl_initial_searchlist): Refer to _dl_main_map.
59026         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
59027         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
59028         call to _dl_get_origin.
59029         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
59030         around call_map.
59031         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
59032         * dlfcn/modstatic3.c: New file.
59033         * dlfcn/tststatic3.c: New file.
59034         * dlfcn/tststatic4.c: New file.
59035         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
59036         (tests-static): Likewise.
59037         (modules-names): Add modstatic3.
59038         (tststatic3-ENV, tststatic4-ENV): New variables.
59039         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
59040         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
59041
59042 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
59043
59044         * configure.in (CC): Require GCC version 4.4 or later.
59045         * configure: Regenerated.
59046         * manual/install.texi (Tools for Compilation): Update GCC version
59047         requirement.
59048         * INSTALL: Regenerated.
59049
59050 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59051
59052         [BZ #15674]
59053         * string/test-memcmp.c (check2): New.
59054         (main): Call check2.
59055
59056         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
59057
59058 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
59059
59060         [BZ #15022]
59061         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
59062         over to...
59063         (dl_open_worker) [!SHARED]: ... here.
59064
59065 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59066
59067         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
59068
59069 2013-06-25  Richard Henderson  <rth@redhat.com>
59070
59071         * locale/programs/locarchive.c: Include <libc-internal.h>
59072
59073 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
59074
59075         * manual/texinfo.tex: Update to version 2013-06-21.17, with
59076         trailing whitespace removed.
59077
59078 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59079
59080         [BZ #10283]
59081         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
59082         * locale/programs/locarchive.c: Include libc-mmap.h.
59083         (prepare_address_space): Take two new outputs (the mmap base and len).
59084         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
59085         values.
59086         (create_archive): Declare new mmap base and len values for
59087         prepare_address_space, and store the result in ah.
59088         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
59089         (enlarge_archive): If ah->mmap_base is not NULL, use that and
59090         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59091         Declare new mmap base and len values for
59092         prepare_address_space, and store the result in new_ah.
59093         (open_archive): Declare new mmap base and len values for
59094         prepare_address_space, and store the result in ah.
59095         (close_archive): If ah->mmap_base is not NULL, use that and
59096         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59097         * sysdeps/generic/libc-mmap.h: New file.
59098
59099 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59100
59101         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
59102         (ALIGN_UP): Likewise.
59103         (PTR_ALIGN_DOWN): Likewise.
59104         (PTR_ALIGN_UP): Likewise.
59105
59106 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59107
59108         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
59109         entry mapped to PPC_PLATFORM_POWER8.
59110         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
59111         POWER8.
59112         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
59113         (_dl_string_platform): Add case for exporting platform position for
59114         POWER8.
59115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
59116         search path to sysdeps/powerpc/powerpc32/power8 directory.
59117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
59118         search path to sysdeps/powerpc/powerpc64/power8 directory.
59119         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
59120         power7 directories.
59121         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
59122         power7 directories.
59123
59124 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
59125
59126         * INSTALL: Regenerate.
59127
59128         * nscd/connections.c (nscd_init): Fix comment.
59129
59130 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
59131
59132         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
59133
59134         [BZ #15667]
59135         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
59136         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
59137
59138 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59139
59140         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
59141         DL_DST_REQ_STATIC.
59142         (DL_DST_REQ_STATIC): Remove macro.
59143
59144 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
59145
59146         [BZ #7006]
59147         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
59148         with a shift of 0 bits.
59149
59150 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59151
59152         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
59153         $(tststatic-ENV).
59154
59155 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59156
59157         [BZ #15655]
59158         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
59159
59160 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59161
59162         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
59163         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
59164         accepts -fno-tree-loop-distribute-patterns.
59165         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
59166         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
59167         recursive call.
59168         * string/memset.c (memset): Likewise.
59169         * string/test-memmove.c (simple_memmove): Disable loop transformation
59170         to library calls.
59171         * string/test-memset.c (simple_memset): Likewise.
59172         * benchtests/bench-memmove.c (simple_memmove): Likewise.
59173         * benchtests/bench-memset.c (simple_memset): Likewise.
59174         * configure: Regenerated.
59175
59176 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
59177
59178         * math/test-misc.c (main): Ignore fesetround failure when failures
59179         of subsequent rounding tests would be ignored.
59180
59181         [BZ #15654]
59182         * math/fedisblxcpt.c (fedisableexcept): Return 0.
59183         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
59184         * math/fegetenv.c (__fegetenv): Return 0.
59185         * math/fegetexcept.c (fegetexcept): Return 0.
59186         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
59187         FE_TONEAREST.
59188         * math/feholdexcpt.c (feholdexcept): Return 0.
59189         * math/fesetenv.c (__fesetenv): Return 0.
59190         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
59191         argument FE_TONEAREST.
59192         * math/feupdateenv.c (__feupdateenv): Return 0.
59193         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
59194
59195 2013-06-18  Roland McGrath  <roland@hack.frob.com>
59196
59197         * elf/rtld-Rules (rtld-compile-command.S): New variable.
59198         (rtld-compile-command.s, rtld-compile-command.c): New variables.
59199         ($(objpfx)rtld-%.os rules): Use them.
59200
59201 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59202
59203         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
59204         fields.
59205
59206 2013-06-17  Roland McGrath  <roland@hack.frob.com>
59207
59208         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
59209         length of target pattern, then descending length of dependency pattern.
59210         * configure.in (AWK): Require gawk 3.1.2 or newer.
59211         * manual/install.texi (Tools for Compilation): Say that we do.
59212         * configure: Regenerated.
59213
59214         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
59215         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
59216         * scripts/sysd-rules.awk: ... this new script.
59217         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
59218         than a glob-style pattern.
59219
59220 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
59221
59222         * math/test-misc.c (main): Do not treat incorrectly rounded
59223         conversions as failure unless ROUNDING_TESTS passes.
59224
59225 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
59226
59227         [BZ #15631]
59228         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
59229         restore exception state around main square root computation, then
59230         check for inexactness explicitly.
59231
59232         * math/libm-test.inc (fma_test_data): Add another test.
59233
59234 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
59235
59236         * manual/threads.texi (Non-POSIX Extensions): New document
59237         node.  Document pthread_getattr_default_np and
59238         pthread_setattr_default_np.
59239
59240         * Versions.def (libpthread): Add GLIBC_2.18.
59241         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
59242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
59243         Likewise.
59244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
59245         Likewise.
59246         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
59247         Likewise.
59248         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
59249         Likewise.
59250         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
59251         Likewise.
59252         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
59253         Likewise.
59254         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
59255         Likewise.
59256         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
59257         Likewise.
59258         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
59259         Likewise.
59260
59261 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59262
59263         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59264         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
59265
59266 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59267             H.J. Lu  <hjl.tools@gmail.com>
59268
59269         [BZ #15627]
59270         * sysdeps/x86_64/rtld-memset.c: Remove file.
59271         * sysdeps/x86_64/rtld-memset.S: New file.
59272
59273 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
59274
59275         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
59276         (test_in_one_mode): Take arguments for whether the rounding mode
59277         is supported for each floating-point type.
59278         (do_test): Pass new arguments to test_in_one_mode using
59279         ROUNDING_TESTS.
59280
59281 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59282
59283         * posix/tst-waitid.c (do_test): Distinguish different instances of
59284         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
59285         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
59286         before entering the kernel for waitpid.
59287
59288 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59289
59290         * NEWS: Fix note on clock function precision.  Text by Roland
59291         McGrath.
59292
59293 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59294
59295         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
59296         it into place only when and if the sanity check passes.
59297
59298 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
59299
59300         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
59301         output for whether conversion result is exact.  Take argument
59302         indicating whether type is IBM long double.
59303         (round_for_all): Change need_exact field to ibm_ld.
59304         * stdlib/tst-strtod-round.c (struct exactness): New type.
59305         (struct test): Change bool ld_ok field to struct exactness exact.
59306         (TEST): Update all definitions for change to field.
59307         (tests): Regenerate array contents.
59308         (test_in_one_mode): Take pointer to new field instead of old ld_ok
59309         field value.  Check for IBM long double here.
59310         (do_test): Update calls to test_in_one_mode.
59311
59312 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59313
59314         [BZ #12515]
59315         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
59316         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
59317
59318 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59319
59320         [BZ #15605]
59321         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
59322         generated by the compiler on loop optimizations.
59323         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
59324         general definitions.
59325
59326 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
59327
59328         * math/bug-nextafter.c: Include <math-tests.h>.
59329         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59330         the relevant type.
59331         * math/bug-nexttoward.c: Include <math-tests.h>.
59332         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59333         the relevant type.
59334         * math/test-misc.c: Include <math-tests.h>.
59335         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59336         the relevant type.
59337
59338 2013-06-12  Andreas Jaeger  <aj@suse.de>
59339
59340         * po/ia.po: Update Interlingua translation from translation
59341         project.
59342
59343 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
59344
59345         * include/fenv.h: Include stdbool.h.
59346         (struct rm_ctx): New structure.
59347         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
59348         Define macro.
59349         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
59350         (SET_RESTORE_ROUNDF): Likewise.
59351         (SET_RESTORE_ROUNDL): Likewise.
59352         (SET_RESTORE_ROUND_NOEX): Likewise.
59353         (SET_RESTORE_ROUND_NOEXF): Likewise.
59354         (SET_RESTORE_ROUND_NOEXL): Likewise.
59355         (SET_RESTORE_ROUND_53BIT): Likewise.
59356         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
59357         (libc_feresetround_noexf_ctx): Likewise.
59358         (libc_feresetround_noexl_ctx): Likewise.
59359         (libc_feholdsetround_53bit_ctx): Likewise.
59360         (libc_feresetround_53bit_ctx): Likewise.
59361         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
59362         (libc_feholdexcept_setround_sse_ctx): New function.
59363         (libc_fesetenv_sse_ctx): Likewise.
59364         (libc_feupdateenv_sse_ctx): Likewise.
59365         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
59366         (libc_feholdexcept_setround_387_ctx): Likewise.
59367         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
59368         (libc_feholdsetround_387_prec_ctx): Likewise.
59369         (libc_feholdsetround_387_ctx): Likewise.
59370         (libc_feholdsetround_387_53bit_ctx): Likewise.
59371         (libc_feholdsetround_sse_ctx): Likewise.
59372         (libc_feresetround_sse_ctx): Likewise.
59373         (libc_feresetround_387_ctx): Likewise.
59374         (libc_feupdateenv_387_ctx): Likewise.
59375         (libc_feholdexcept_setroundf_ctx): Define macro.
59376         (libc_fesetenvf_ctx): Likewise.
59377         (libc_feupdateenvf_ctx): Likewise.
59378         (libc_feholdsetroundf_ctx): Likewise.
59379         (libc_feresetroundf_ctx): Likewise.
59380         (libc_feholdexcept_setround_ctx): Likewise.
59381         (libc_fesetenv_ctx): Likewise.
59382         (libc_feupdateenv_ctx): Likewise.
59383         (libc_feholdsetround_ctx): Likewise.
59384         (libc_feresetround_ctx): Likewise.
59385         (libc_feholdexcept_setroundl_ctx): Likewise.
59386         (libc_feupdateenvl_ctx): Likewise.
59387         (libc_feholdsetroundl_ctx): Likewise.
59388         (libc_feresetroundl_ctx): Likewise.
59389         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
59390         (libc_feresetround_53bit_ctx): Likewise.
59391
59392 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59393
59394         * locale/iso-639.def: Convert to UTF-8.
59395
59396 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
59397
59398         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
59399         (EXCEPTION_TESTS_double): Likewise.
59400         (EXCEPTION_TESTS_long_double): Likewise.
59401         (EXCEPTION_TESTS): Likewise.
59402         * math/libm-test.inc (test_exceptions): Only test exceptions if
59403         EXCEPTION_TESTS (FLOAT).
59404
59405 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59406
59407         * benchtests/Makefile (string-bench): Add strcpy_chk and
59408         stpcpy_chk.
59409         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
59410         * benchtests/bench-stpcpy_chk.c: New file.
59411         * benchtests/bench-strcpy_chk-ifunc.c: New file.
59412         * benchtests/bench-strcpy_chk.c: New file.
59413         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
59414         code.
59415         (do_test): Likewise.
59416
59417 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59418
59419         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
59420         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
59421         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
59422         with tabs where appropriate.
59423         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
59424         dl-procinfo.h.
59425         [PPC_PLATFORM_PPC440]: Likewise.
59426         [PPC_PLATFORM_PPC464]: Likewise.
59427         [PPC_PLATFORM_PPC476]: Likewise.
59428         (_dl_string_platform): Add support for detecting ppc405, ppc440,
59429         ppc464, and ppc476 platform strings merging from ports/
59430         dl-procinfo.h.
59431
59432 2013-06-11  Andreas Schwab  <schwab@suse.de>
59433
59434         [BZ #14991]
59435         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
59436         (from_ucs4_idx): Regenerate.
59437         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
59438         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
59439         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
59440         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
59441         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
59442         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
59443         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
59444         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
59445         from FROM_LOOP and TO_LOOP specific macros.
59446         (BODY): Handle combining characters.
59447         * iconvdata/BIG5HKSCS.irreversible: Update.
59448         * iconvdata/BIG5HKSCS.precomposed: New file.
59449         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
59450         characters.
59451         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
59452
59453 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59454
59455         * include/sys/time.h: Fix indentation and add copyright header.
59456
59457         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
59458         (do_test): Likewise.
59459         * string/test-memchr.c (do_one_test): Likewise.
59460         (do_test): Likewise.
59461         * string/test-memcmp.c (do_one_test): Likewise.
59462         (do_test): Likewise.
59463         * string/test-memcpy.c (do_one_test): Likewise.
59464         (do_test): Likewise.
59465         * string/test-memmem.c (do_one_test): Likewise.
59466         (do_test): Likewise.
59467         (do_random_tests): Likewise.
59468         * string/test-memmove.c (do_one_test): Likewise.
59469         (do_test): Likewise.
59470         * string/test-memset.c (do_one_test): Likewise.
59471         (do_test): Likewise.
59472         * string/test-rawmemchr.c (do_one_test): Likewise.
59473         (do_test): Likewise.
59474         * string/test-strcasecmp.c (do_one_test): Likewise.
59475         (do_test): Likewise.
59476         * string/test-strcasestr.c (do_one_test): Likewise.
59477         (do_test): Likewise.
59478         * string/test-strcat.c (do_one_test): Likewise.
59479         (do_test): Likewise.
59480         * string/test-strchr.c (do_one_test): Likewise.
59481         (do_test): Likewise.
59482         * string/test-strcmp.c (do_one_test): Likewise.
59483         (do_test): Likewise.
59484         * string/test-strcpy.c (do_one_test): Likewise.
59485         (do_test): Likewise.
59486         * string/test-string.h: Likewise.
59487         (test_init): Likewise.
59488         * string/test-strlen.c (do_one_test): Likewise.
59489         (do_test): Likewise.
59490         * string/test-strncasecmp.c (do_one_test): Likewise.
59491         (do_test): Likewise.
59492         * string/test-strncat.c (do_one_test): Likewise.
59493         (do_test): Likewise.
59494         * string/test-strncmp.c (do_one_test): Likewise.
59495         (do_test_limit): Likewise.
59496         (do_test): Likewise.
59497         * string/test-strncpy.c (do_one_test): Likewise.
59498         (do_test): Likewise.
59499         * string/test-strnlen.c (do_one_test): Likewise.
59500         (do_test): Likewise.
59501         * string/test-strpbrk.c (do_one_test): Likewise.
59502         (do_test): Likewise.
59503         * string/test-strrchr.c (do_one_test): Likewise.
59504         (do_test): Likewise.
59505         * string/test-strspn.c (do_one_test): Likewise.
59506         (do_test): Likewise.
59507         * string/test-strstr.c (do_one_test): Likewise.
59508         (do_test): Likewise.
59509
59510         * benchtests/Makefile (string-bench): Add string benchmarks.
59511         * benchtests/bench-bcopy-ifunc.c: New file.
59512         * benchtests/bench-bcopy.c: New file.
59513         * benchtests/bench-bzero-ifunc.c: New file.
59514         * benchtests/bench-bzero.c: New file.
59515         * benchtests/bench-memccpy-ifunc.c: New file.
59516         * benchtests/bench-memccpy.c: New file.
59517         * benchtests/bench-memchr-ifunc.c: New file.
59518         * benchtests/bench-memchr.c: New file.
59519         * benchtests/bench-memcmp-ifunc.c: New file.
59520         * benchtests/bench-memcmp.c: New file.
59521         * benchtests/bench-memmem-ifunc.c: New file.
59522         * benchtests/bench-memmem.c: New file.
59523         * benchtests/bench-memmove-ifunc.c: New file.
59524         * benchtests/bench-memmove.c: New file.
59525         * benchtests/bench-mempcpy-ifunc.c: New file.
59526         * benchtests/bench-mempcpy.c: New file.
59527         * benchtests/bench-memset-ifunc.c: New file.
59528         * benchtests/bench-memset.c: New file.
59529         * benchtests/bench-rawmemchr-ifunc.c: New file.
59530         * benchtests/bench-rawmemchr.c: New file.
59531         * benchtests/bench-stpcpy-ifunc.c: New file.
59532         * benchtests/bench-stpcpy.c: New file.
59533         * benchtests/bench-stpncpy-ifunc.c: New file.
59534         * benchtests/bench-stpncpy.c: New file.
59535         * benchtests/bench-strcasecmp-ifunc.c: New file.
59536         * benchtests/bench-strcasecmp.c: New file.
59537         * benchtests/bench-strcasestr-ifunc.c: New file.
59538         * benchtests/bench-strcasestr.c: New file.
59539         * benchtests/bench-strcat-ifunc.c: New file.
59540         * benchtests/bench-strcat.c: New file.
59541         * benchtests/bench-strchr-ifunc.c: New file.
59542         * benchtests/bench-strchr.c: New file.
59543         * benchtests/bench-strchrnul-ifunc.c: New file.
59544         * benchtests/bench-strchrnul.c: New file.
59545         * benchtests/bench-strcmp-ifunc.c: New file.
59546         * benchtests/bench-strcmp.c: New file.
59547         * benchtests/bench-strcpy-ifunc.c: New file.
59548         * benchtests/bench-strcpy.c: New file.
59549         * benchtests/bench-strcspn-ifunc.c: New file.
59550         * benchtests/bench-strcspn.c: New file.
59551         * benchtests/bench-strlen-ifunc.c: New file.
59552         * benchtests/bench-strlen.c: New file.
59553         * benchtests/bench-strncasecmp-ifunc.c: New file.
59554         * benchtests/bench-strncasecmp.c: New file.
59555         * benchtests/bench-strncat-ifunc.c: New file.
59556         * benchtests/bench-strncat.c: New file.
59557         * benchtests/bench-strncmp-ifunc.c: New file.
59558         * benchtests/bench-strncmp.c: New file.
59559         * benchtests/bench-strncpy-ifunc.c: New file.
59560         * benchtests/bench-strncpy.c: New file.
59561         * benchtests/bench-strnlen-ifunc.c: New file.
59562         * benchtests/bench-strnlen.c: New file.
59563         * benchtests/bench-strpbrk-ifunc.c: New file.
59564         * benchtests/bench-strpbrk.c: New file.
59565         * benchtests/bench-strrchr-ifunc.c: New file.
59566         * benchtests/bench-strrchr.c: New file.
59567         * benchtests/bench-strspn-ifunc.c: New file.
59568         * benchtests/bench-strspn.c: New file.
59569         * benchtests/bench-strstr-ifunc.c: New file.
59570         * benchtests/bench-strstr.c: New file.
59571
59572         * benchtests/Makefile: Disable parallel execution of targets.
59573         (string-bench): Add memcpy.
59574         (benchset): New variable to store a list of benchmark sets.
59575         (bench-func): Renamed from bench.
59576         (bench-set): New target.
59577         (bench): Depend on bench-func and bench-set.
59578         * benchtests/README: Add section on benchmark sets.
59579         * benchtests/bench-memcpy-ifunc.c: New file.
59580         * benchtests/bench-memcpy.c: New file.
59581         * benchtests/bench-string.h: New file.
59582
59583 2013-06-11  Andreas Schwab  <schwab@suse.de>
59584
59585         [BZ #15577]
59586         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
59587         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
59588         values in the triple.
59589         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
59590         terminator in the group key.
59591
59592 2013-06-11  Andreas Jaeger  <aj@suse.de>
59593
59594         * po/zh_TW.po: Update Chinese (traditional) translation from
59595         translation project.
59596
59597 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59598
59599         * include/time.h (__clock_gettime): Add libc_hidden_proto.
59600         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
59601         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
59602         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59603         (clock_getcpuclockid): Likewise.
59604         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
59605         Add weak_alias and libc_hidden_def.
59606         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
59607         * rt/clock_gettime.c (clock_gettime): Rename to
59608         __clock_gettime.  Add weak_alias and libc_hidden_def.
59609         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
59610         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
59611         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
59612         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
59613         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
59614         Likewise.
59615         * rt/clock_settime.c (clock_settime): Rename to
59616         __clock_settime.  Add weak_alias and libc_hidden_def.
59617         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
59618
59619 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
59620
59621         * mach/err_boot.sub: Remove trailing whitespace.
59622         * mach/err_ipc.sub: Likewise.
59623         * mach/err_mach.sub: Likewise.
59624
59625         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
59626         (ROUNDING_TESTS_double): Likewise.
59627         (ROUNDING_TESTS_long_double): Likewise.
59628         (ROUNDING_TESTS): Likewise.
59629         * math/libm-test.inc: Include <math-tests.h>.
59630         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
59631         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
59632         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
59633         (IF_ROUND_INIT_FE_UPWARD): Likewise.
59634
59635 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59636
59637         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
59638         of assigning.
59639
59640 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
59641
59642         * sysdeps/gnu/errlist.awk: Do not generate space at end of
59643         otherwise empty TRANS lines.
59644         * sysdeps/gnu/errlist.c: Regenerated.
59645
59646         * catgets/gencat.c (error_print): Use (void) in function
59647         definition.
59648         * crypt/crypt_util.c (__init_des): Likewise.
59649         * crypt/speeds.c (Stop): Likewise.
59650         (main): Likewise.
59651         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
59652         * inet/ruserpass.c (token): Likewise.
59653         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
59654         * intl/localealias.c (extend_alias_table): Likewise.
59655         * intl/plural-exp.c (init_germanic_plural): Likewise.
59656         * libio/fcloseall.c (__fcloseall): Likewise.
59657         * libio/genops.c (_IO_flush_all): Likewise.
59658         (_IO_flush_all_linebuffered): Likewise.
59659         (_IO_cleanup): Likewise.
59660         (_IO_iter_begin): Likewise.
59661         (_IO_iter_end): Likewise.
59662         (_IO_list_lock): Likewise.
59663         (_IO_list_unlock): Likewise.
59664         (_IO_list_resetlock): Likewise.
59665         * libio/getchar.c (getchar): Likewise.
59666         * libio/getchar_u.c (getchar_unlocked): Likewise.
59667         * libio/getwchar.c (getwchar): Likewise.
59668         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
59669         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
59670         * login/getpt.c (__getpt): Likewise.
59671         * login/tst-utmp.c (main): Likewise.
59672         * malloc/hooks.c (__malloc_check_init): Likewise.
59673         * malloc/malloc.c (__malloc_stats): Likewise.
59674         * malloc/mtrace.c (tr_break): Likewise.
59675         (mtrace): Likewise.
59676         (muntrace): Likewise.
59677         * misc/fstab.c (endfsent): Likewise.
59678         * misc/getclktck.c (__getclktck): Likewise.
59679         * misc/getdtsz.c (__getdtablesize): Likewise.
59680         * misc/gethostid.c (gethostid): Likewise.
59681         * misc/getpagesize.c (__getpagesize): Likewise.
59682         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
59683         (__get_nprocs): Likewise.
59684         (__get_phys_pages): Likewise.
59685         (__get_avphys_pages): Likewise.
59686         * misc/getttyent.c (getttyent): Likewise.
59687         (setttyent): Likewise.
59688         (endttyent): Likewise.
59689         * misc/getusershell.c (getusershell): Likewise.
59690         (endusershell): Likewise.
59691         (setusershell): Likewise.
59692         (initshells): Likewise.
59693         * misc/hsearch.c (__hdestroy): Likewise.
59694         * misc/sync.c (sync): Likewise.
59695         * misc/syslog.c (closelog_internal): Likewise.
59696         (closelog): Likewise.
59697         * misc/ttyslot.c (ttyslot): Likewise.
59698         * misc/vhangup.c (vhangup): Likewise.
59699         * posix/fork.c (__fork): Likewise.
59700         * posix/getegid.c (__getegid): Likewise.
59701         * posix/geteuid.c (__geteuid): Likewise.
59702         * posix/getgid.c (__getgid): Likewise.
59703         * posix/getpid.c (__getpid): Likewise.
59704         * posix/getppid.c (__getppid): Likewise.
59705         * posix/getuid.c (__getuid): Likewise.
59706         * posix/pause.c (pause): Likewise.
59707         * posix/setpgrp.c (setpgrp): Likewise.
59708         * posix/setsid.c (__setsid): Likewise.
59709         * posix/test-vfork.c (noop): Likewise.
59710         * resolv/gethnamaddr.c (_endhtent): Likewise.
59711         (_gethtent): Likewise.
59712         (ht_endhostent): Likewise.
59713         (gethostent): Likewise.
59714         (dns_service): Likewise.
59715         * stdlib/drand48.c (drand48): Likewise.
59716         * stdlib/lrand48.c (lrand48): Likewise.
59717         * stdlib/mrand48.c (mrand48): Likewise.
59718         * stdlib/rand.c (rand): Likewise.
59719         * stdlib/random.c (__random): Likewise.
59720         * stdlib/setenv.c (clearenv): Likewise.
59721         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
59722         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
59723         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
59724         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
59725         (__get_nprocs): Likewise.
59726         (__get_phys_pages): Likewise.
59727         (__get_avphys_pages): Likewise.
59728         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
59729         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
59730         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
59731         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
59732         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
59733         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
59734         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
59735         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
59736         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
59737         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
59738         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
59739         * sysdeps/mach/hurd/sync.c (sync): Likewise.
59740         * sysdeps/posix/clock.c (clock): Likewise.
59741         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
59742         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
59743         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
59744         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
59745         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
59746         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
59747         (__get_nprocs_conf): Likewise.
59748         (__get_phys_pages): Likewise.
59749         (__get_avphys_pages): Likewise.
59750         * time/clock.c (clock): Likewise.
59751         * time/tzset.c (__tzname_max): Likewise.
59752
59753 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
59754
59755         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
59756         (__bswap_32): Do not use "register".
59757         * crypt/crypt.c (_ufc_doit_r): Likewise.
59758         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
59759         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
59760         * gmon/gmon.c (__monstartup): Likewise.
59761         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
59762         * hurd/hurdmalloc.c (more_memory): Likewise.
59763         (malloc): Likewise.
59764         (free): Likewise.
59765         (realloc): Likewise.
59766         (malloc_fork_prepare): Likewise.
59767         (malloc_fork_parent): Likewise.
59768         (malloc_fork_child): Likewise.
59769         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
59770         (_svcauth_des): Likewise.
59771         * inet/inet_lnaof.c (inet_lnaof): Likewise.
59772         * inet/inet_net.c (inet_network): Likewise.
59773         * inet/inet_netof.c (inet_netof): Likewise.
59774         * inet/rcmd.c (__validuser2_sa): Likewise.
59775         * io/fts.c (fts_open): Likewise.
59776         (fts_load): Likewise.
59777         (fts_close): Likewise.
59778         (fts_read): Likewise.
59779         (fts_children): Likewise.
59780         (fts_build): Likewise.
59781         (fts_stat): Likewise.
59782         (fts_sort): Likewise.
59783         (fts_alloc): Likewise.
59784         (fts_lfree): Likewise.
59785         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
59786         (_IO_file_xsgetn): Likewise.
59787         (_IO_file_xsgetn_mmap): Likewise.
59788         * libio/iofopncook.c (_IO_cookie_read): Likewise.
59789         (_IO_cookie_write): Likewise.
59790         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
59791         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
59792         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
59793         * malloc/obstack.c (_obstack_begin): Likewise.
59794         (_obstack_begin_1): Likewise.
59795         (_obstack_newchunk): Likewise.
59796         (_obstack_allocated_p): Likewise.
59797         (obstack_free): Likewise.
59798         (_obstack_memory_used): Likewise.
59799         * misc/getttyent.c (getttynam): Likewise.
59800         (getttyent): Likewise.
59801         (skip): Likewise.
59802         (value): Likewise.
59803         * misc/getusershell.c (initshells): Likewise.
59804         * misc/syslog.c (__vsyslog_chk): Likewise.
59805         * misc/ttyslot.c (ttyslot): Likewise.
59806         * nis/nis_hash.c (__nis_hash): Likewise.
59807         * posix/fnmatch_loop.c (FCT): Likewise.
59808         * posix/getconf.c (print_all): Likewise.
59809         (main): Likewise.
59810         * posix/getopt.c (exchange): Likewise.
59811         * posix/glob.c (globfree): Likewise.
59812         (prefix_array): Likewise.
59813         (__glob_pattern_type): Likewise.
59814         * resolv/arpa/nameser.h (NS_GET16): Likewise.
59815         (NS_GET32): Likewise.
59816         (NS_PUT16): Likewise.
59817         (NS_PUT32): Likewise.
59818         * resolv/gethnamaddr.c (getanswer): Likewise.
59819         (gethostbyname2): Likewise.
59820         (gethostbyaddr): Likewise.
59821         (_gethtent): Likewise.
59822         (_gethtbyname2): Likewise.
59823         (_gethtbyaddr): Likewise.
59824         * resolv/ns_print.c (dst_s_get_int16): Likewise.
59825         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
59826         * resolv/res_init.c (__res_vinit): Likewise.
59827         (net_mask): Likewise.
59828         * resolv/res_mkquery.c (outchar): Likewise.
59829         (PRINT): Likewise.
59830         * stdio-common/printf_fp.c (outchar): Likewise.
59831         (PRINT): Likewise.
59832         * stdio-common/printf_fphex.c (outchar): Likewise.
59833         (PRINT): Likewise.
59834         * stdio-common/printf_size.c (outchar): Likewise.
59835         (PRINT): Likewise.
59836         * stdio-common/test_rdwr.c (main): Likewise.
59837         * stdio-common/tfformat.c (matches): Likewise.
59838         * stdio-common/vfprintf.c (outchar): Likewise.
59839         (printf_unknown): Likewise.
59840         (buffered_vfprintf): Likewise.
59841         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
59842         * stdio-common/xbug.c (AppendToBuffer): Likewise.
59843         (ReadFile): Likewise.
59844         * stdlib/qsort.c (SWAP): Likewise.
59845         (_quicksort): Likewise.
59846         * stdlib/setenv.c (__add_to_environ): Likewise.
59847         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
59848         * stdlib/strtol_l.c (__strtol_l): Likewise.
59849         * stdlib/tst-strtod.c (main): Likewise.
59850         * stdlib/tst-strtol.c (main): Likewise.
59851         * stdlib/tst-strtoll.c (main): Likewise.
59852         * string/bits/string2.h (__strcmp_cc): Likewise.
59853         (__strcmp_cg): Likewise.
59854         (__strcspn_c1): Likewise.
59855         (__strcspn_c2): Likewise.
59856         (__strcspn_c3): Likewise.
59857         (__strspn_c1): Likewise.
59858         (__strspn_c2): Likewise.
59859         (__strspn_c3): Likewise.
59860         (__strsep_1c): Likewise.
59861         (__strsep_2c): Likewise.
59862         (__strsep_3c): Likewise.
59863         * string/memccpy.c (__memccpy): Likewise.
59864         * string/stpcpy.c (__stpcpy): Likewise.
59865         * string/strcmp.c (strcmp): Likewise.
59866         * string/strrchr.c (strrchr): Likewise.
59867         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
59868         Likewise.
59869         * sysdeps/mach/hurd/getcwd.c
59870         (_hurd_canonicalize_directory_name_internal): Likewise.
59871         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
59872         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
59873         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
59874         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
59875         Likewise, in both definitions.
59876         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
59877         definitions.
59878         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
59879         64] (__bswap_64): Likewise.
59880         * time/test_time.c (main): Likewise.
59881         * time/tzfile.c (__tzfile_read): Likewise.
59882         (__tzfile_compute): Likewise.
59883         * time/tzset.c (__tzset_parse_tz): Likewise.
59884         (tzset_internal): Likewise.
59885         (compute_change): Likewise.
59886         * wcsmbs/wcscat.c (__wcscat): Likewise.
59887         * wcsmbs/wcschr.c (wcschr): Likewise.
59888         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
59889         * wcsmbs/wcscspn.c (wcscspn): Likewise.
59890         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
59891         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
59892         * wcsmbs/wcsspn.c (wcsspn): Likewise.
59893         * wcsmbs/wcsstr.c (wcsstr): Likewise.
59894         * wcsmbs/wmemchr.c (wmemchr): Likewise.
59895         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
59896         * wcsmbs/wmemset.c (wmemset): Likewise.
59897
59898 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
59899
59900         * scripts/config.guess: Update to version 2013-05-16.
59901         * scripts/config.sub: Update to version 2013-04-24.
59902         * scripts/install-sh: Update to version 2011-11-20.07.
59903         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
59904         * scripts/move-if-change: Update to version 2012-01-06 07:23.
59905
59906 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
59907
59908         * debug/fgetws_u_chk.c: Fix leading whitespaces.
59909         * elf/sln.c: Likewise.
59910         * hurd/hurd/ioctl.h: Likewise.
59911         * hurd/hurdmalloc.c: Likewise.
59912         * hurd/xattr.c: Likewise.
59913         * include/shlib-compat.h: Likewise.
59914         * inet/ruserpass.c: Likewise.
59915         * libio/iofgets_u.c: Likewise.
59916         * libio/iofgetws_u.c: Likewise.
59917         * locale/programs/ld-identification.c: Likewise.
59918         * locale/programs/ld-time.c: Likewise.
59919         * mach/msg-destroy.c: Likewise.
59920         * nss/nss_files/files-netgrp.c: Likewise.
59921         * resolv/res_data.c: Likewise.
59922         * soft-fp/op-1.h: Likewise.
59923         * soft-fp/op-2.h: Likewise.
59924         * soft-fp/op-4.h: Likewise.
59925         * soft-fp/op-common.h: Likewise.
59926         * stdio-common/printf_fphex.c: Likewise.
59927         * stdlib/strtod_l.c: Likewise.
59928         * sunrpc/rpc/clnt.h: Likewise.
59929         * sysdeps/generic/framestate.c: Likewise.
59930         * sysdeps/i386/bsd-_setjmp.S: Likewise.
59931         * sysdeps/i386/bsd-setjmp.S: Likewise.
59932         * sysdeps/i386/__longjmp.S: Likewise.
59933         * sysdeps/i386/setjmp.S: Likewise.
59934         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
59935         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
59936         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59937         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
59938         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
59939         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
59940         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
59941         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
59942         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
59943         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59944         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
59945         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
59946         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
59947         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
59948         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
59949         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
59950         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
59951         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
59952         * sysdeps/ieee754/support.c: Likewise.
59953         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59954         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
59955         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
59956         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
59957         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
59958         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
59959         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
59960         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
59961         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
59962         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
59963         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
59964         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
59965         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
59966         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
59967         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
59968         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
59969         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
59971
59972 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
59973
59974         * posix/transbug.c: Remove executable mode.
59975
59976 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
59977
59978         * crypt/speeds.c: Remove trailing whitespace.
59979         * dlfcn/default.c: Likewise.
59980         * elf/ifuncdep2.c: Likewise.
59981         * elf/ifuncmain1.c: Likewise.
59982         * elf/ifuncmain1vis.c: Likewise.
59983         * elf/testobj.h: Likewise.
59984         * elf/tst-stackguard1.c: Likewise.
59985         * gmon/sys/gmon.h: Likewise.
59986         * hurd/hurdmsg.c: Likewise.
59987         * hurd/new-fd.c: Likewise.
59988         * hurd/ports-get.c: Likewise.
59989         * iconvdata/ibm1008_420.c: Likewise.
59990         * inet/tst-getni1.c: Likewise.
59991         * inet/tst-getni2.c: Likewise.
59992         * libio/ioungetc.c: Likewise.
59993         * libio/wfiledoalloc.c: Likewise.
59994         * manual/libm-err-tab.pl: Likewise.
59995         * math/w_dremf.c: Likewise.
59996         * misc/ftruncate.c: Likewise.
59997         * posix/bug-glob2.c: Likewise.
59998         * posix/tst-pcre.c: Likewise.
59999         * posix/wait4.c: Likewise.
60000         * resolv/README: Likewise.
60001         * resolv/res_debug.h: Likewise.
60002         * resolv/tst-inet_ntop.c: Likewise.
60003         * setjmp/bug269-setjmp.c: Likewise.
60004         * soft-fp/extended.h: Likewise.
60005         * soft-fp/op-1.h: Likewise.
60006         * soft-fp/op-2.h: Likewise.
60007         * soft-fp/op-4.h: Likewise.
60008         * soft-fp/op-8.h: Likewise.
60009         * soft-fp/testit.c: Likewise.
60010         * stdio-common/bug16.c: Likewise.
60011         * stdlib/random.c: Likewise.
60012         * sunrpc/rpcsvc/rquota.x: Likewise.
60013         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
60014         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
60015         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
60016         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
60017         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
60018         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
60019         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
60020         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
60021         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
60022         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
60023         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
60024         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
60025         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
60026         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
60027         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
60028         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
60029         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
60030         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
60031         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
60032         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
60033         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
60034         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
60035         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
60036         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
60037         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
60038         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
60039         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
60040         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
60041         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
60042         * sysdeps/ieee754/s_lib_version.c: Likewise.
60043         * sysdeps/mach/hurd/check_fds.c: Likewise.
60044         * sysdeps/mach/hurd/getsockname.c: Likewise.
60045         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
60046         * sysdeps/mach/hurd/recvfrom.c: Likewise.
60047         * sysdeps/powerpc/bits/link.h: Likewise.
60048         * sysdeps/powerpc/dl-procinfo.c: Likewise.
60049         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
60050         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
60051         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
60052         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
60053         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
60054         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
60055         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
60056         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
60057         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
60058         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
60059         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
60060         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
60061         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
60062         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
60063         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
60064         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
60065         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
60066         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
60067         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
60068         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
60069         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
60070         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
60071         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
60072         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
60073         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
60074         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
60075         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
60076         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
60077         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
60078         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
60079         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
60080         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
60081         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
60082         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
60083         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
60084         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
60085         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
60086         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
60087         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
60088         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
60089         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
60090         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
60091         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
60092         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
60093         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
60094         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
60095         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
60096         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
60097         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
60098         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
60099         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
60100         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
60101         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
60102         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
60103         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
60104         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
60105         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
60106         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
60107         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
60108         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
60109         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
60110         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
60111         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
60112         * sysdeps/powerpc/sysdep.h: Likewise.
60113         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60114         * sysdeps/s390/s390-64/sub_n.S: Likewise.
60115         * sysdeps/sh/dl-trampoline.S: Likewise.
60116         * sysdeps/sh/memset.S: Likewise.
60117         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
60118         * sysdeps/sh/strlen.S: Likewise.
60119         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
60120         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
60121         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
60122         * sysdeps/sparc/sparc32/rem.S: Likewise.
60123         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
60124         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
60125         * sysdeps/sparc/sparc32/strchr.S: Likewise.
60126         * sysdeps/sparc/sparc32/udiv.S: Likewise.
60127         * sysdeps/sparc/sparc32/urem.S: Likewise.
60128         * sysdeps/sparc/sparc64/add_n.S: Likewise.
60129         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
60130         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
60131         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
60132         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
60133         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
60134         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
60135         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
60136         * sysdeps/unix/bsd/times.c: Likewise.
60137         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
60138         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
60139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
60140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
60141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
60142         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
60143         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
60144         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
60145         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
60146         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
60147         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
60148         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
60149         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
60150         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
60151         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
60152         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
60153         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
60154         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
60155         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
60156         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
60157         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
60158         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
60159         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
60160         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
60161         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
60162         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
60163         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
60164         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
60165         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
60166         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
60167         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
60168         * sysdeps/x86_64/strcspn.S: Likewise.
60169
60170 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
60171
60172         * locale/C-translit.h: Revert #include <stdint.h> because this is a
60173         generated file.  Regenerate properly from gen-translit.pl.
60174         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
60175         locale/C-translit.h.
60176
60177 2013-06-05  Andreas Schwab  <schwab@suse.de>
60178
60179         [BZ #15100]
60180         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
60181         week as 6 instead of -1.
60182         * time/tst-strptime.c (day_tests): Add test case.
60183
60184 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
60185
60186         * sysdeps/generic/math_private.h
60187         (libc_feholdexcept_setround_53bit): Replace with
60188         libc_feholdsetround_53bit.
60189         (libc_feupdateenv_53bit): Replace with
60190         libc_feresetround_53bit.
60191         (SET_RESTORE_ROUND_53BIT): Adjust.
60192
60193 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
60194
60195         * string/test-strchrnul.c: Add copyright header.
60196
60197         * posix/tst-getaddrinfo4.c: Increase test timeout.
60198
60199 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
60200
60201         [BZ #15536]
60202         * math/libm-test.inc (MAX_EXP): Remove
60203         (MIN_EXP): Define.
60204         (ulp): Use MIN_EXP - MANT_DIG.
60205         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
60206
60207 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
60208
60209         * po/be.po: Revert last change.
60210         * po/zh_CN.po: Likewise.
60211         * po/header.pot: Likewise.
60212
60213 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
60214
60215         * Makefile ($(common-objpfx)linkobj/libc.so): Define
60216         link-libc-deps to empty as target-specific variable.
60217         * Makerules (link-libc-args): New variable.
60218         (libc-for-link): Likewise.
60219         (link-libc-deps): Likewise.
60220         (lib%.so): Depend on $(link-libc-deps).  Link with
60221         $(link-libc-args).
60222         (build-module): Link with $(link-libc-args).
60223         (build-module-asneeded): Likewise.
60224         (build-module-helper-objlist): Filter out $(link-libc-deps) from
60225         list of objects.
60226         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
60227         target-specific variable.
60228         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
60229         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
60230         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
60231         libc.
60232         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
60233         libc and ld.so.
60234         ($(objpfx)libpcprofile.so): Likewise.
60235         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
60236         libc_nonshared.a.
60237         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
60238         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
60239         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
60240         $(link-libc-deps).
60241         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
60242         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
60243         * login/Makefile ($(objpfx)libutil.so): Likewise.
60244         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
60245         * math/Makefile ($(objpfx)libm.so): Likewise.
60246         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
60247         $(objpfx)libnsl.so): Define libc-for-link as target-specific
60248         variable instead of depending directly on libc.
60249         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
60250         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
60251         $(link-libc-deps).
60252         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
60253         libc.
60254         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
60255         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
60256         ($(objpfx)libanl.so): Likewise.
60257         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
60258         ld.so.
60259         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
60260         $(link-libc-deps).
60261         * sysdeps/i386/fpu/Makefile: Remove file.
60262         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
60263         ($(objpfx)libm.so): Remove dependency on ld.so.
60264
60265 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
60266
60267         [BZ # 15553]
60268         * nis/yp_xdr.c (XDRMAXNAME): Define.
60269         (XDRMAXRECORD): Define.
60270         (xdr_domainname): Use XDRMAXNAME.
60271         (xdr_mapname): Likewise.
60272         (xdr_peername): Likewise.
60273         (xdr_keydat): Use XDRMAXRECORD.
60274         (xdr_valdat): Likewise.
60275
60276 2013-05-30  Jeff Law  <law@redhat.com>
60277
60278         [BZ #14256]
60279         * manual/errno.texi (ESTALE): Update to account for more than
60280         just NFS file systems.
60281         * sysdeps/gnu/errlist.c: Regenerated.
60282
60283 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60284
60285         [BZ #15465]
60286         * elf/Makefile (tests): Add tst-null-argv.
60287         (modules-names):  Add tst-null-argv-lib.
60288         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
60289         (tst-null-argv-ENV): Set environment for tst-null-argv.
60290         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
60291         (RTLD_PROGNAME): New macro.
60292         * elf/tst-null-argv.c: New test case.
60293         * elf/tst-null-argv-lib.c: Library for test case.
60294         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
60295         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
60296         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
60297         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
60298         * elf/dl-init.c (call_init): Likewise.
60299         (_dl_init): Likewise.
60300         * elf/dl-load.c (print_search_path): Likewise.
60301         (_dl_map_object): Likewise.
60302         * elf/dl-lookup.c (do_lookup_x): Likewise.
60303         (add_dependency): Likewise.
60304         (_dl_lookup_symbol_x): Likewise.
60305         (_dl_debug_bindings): Likewise.
60306         * elf/dl-open.c (_dl_show_scope): Likewise.
60307         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
60308         * elf/dl-version.c (match_symbol): Likewise.
60309         (_dl_check_map_versions): Likewise.
60310         * elf/rtld.c (dl_main): Likewise.
60311         (print_unresolved): Use RTLD_PROGNAME.
60312         (print_missing_version): Likewise.
60313         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
60314         (elf_machine_rela): Likewise.
60315         * sysdeps/powerpc/powerpc32/dl-machine.c
60316         (__process_machine_rela): Likewise.
60317         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
60318         Likewise.
60319         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60320         Likewise.
60321         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
60322         Likewise.
60323         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
60324         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
60325         Likewise.
60326         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
60327         Likewise.
60328         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
60329
60330 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
60331
60332         * po/be.po: Add descriptive title.
60333         * po/zh_CN.po: Likewise.
60334         * po/header.pot: Likewise.
60335
60336 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
60337
60338         * locale/programs/locarchive.c (create_archive): Inlucde fname in
60339         error message.
60340         (enlarge_archive): Likewise.
60341
60342 2013-05-28  Ben North  <ben@redfrontdoor.org>
60343
60344         * manual/arith.texi (frexp): It is the magnitude of the return
60345         value which lies in [0.5, 1), not the return value itself.
60346
60347 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60348
60349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60350
60351 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
60352
60353         * stdio-common/bug26.c (main): Correct fscanf template.
60354
60355         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
60356         declare _dl_skip_args.
60357
60358         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
60359         Don't declare.
60360
60361         * manual/platform.texi: Add missing @end deftypefun.
60362
60363 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60364
60365         [BZ #15529]
60366         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
60367         bit of mantissa of 2^16382.
60368         * math/libm-test.inc (hypot_test_data): Add more tests.
60369
60370         * math/libm-test.inc: Add drem and pow10 to list of tested
60371         functions.
60372         (pow10_test): New function.
60373         (drem_test): Likewise.
60374         (drem_test_tonearest): Likewise.
60375         (drem_test_towardzero): Likewise.
60376         (drem_test_downward): Likewise.
60377         (drem_test_upward): Likewise.
60378         (main): Call the new functions.
60379
60380         * math/libm-test.inc (finite_test_data): Remove.
60381         (finite_test): Run tests from isfinite_test_data.
60382         (gamma_test_data): Remove.
60383         (gamma_test): Run tests from lgamma_test_data.
60384         * sysdeps/i386/fpu/libm-test-ulps: Update.
60385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60386
60387 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60388
60389         * manual/platform.texi: Add PowerPC PPR function set documentation.
60390         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
60391         implementation.
60392
60393 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
60394
60395         * math/libm-test.inc (MAX_EXP): Define.
60396         (ULPDIFF): Define.
60397         (ulp): New function.
60398         (check_float_internal): Use ULPDIFF.
60399         (cpow_test): Disable failing test.
60400         (check_ulp): Test ulp() implementation.
60401         (main): Call check_ulp before starting tests.
60402
60403 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60404
60405         * math/gen-libm-test.pl (generate_testfile): Do not handle
60406         START_DATA and END_DATA.
60407         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
60408         END_DATA.
60409         (acos_tonearest_test_data): Likewise.
60410         (acos_towardzero_test_data): Likewise.
60411         (acos_downward_test_data): Likewise.
60412         (acos_upward_test_data): Likewise.
60413         (acosh_test_data): Likewise.
60414         (asin_test_data): Likewise.
60415         (asin_tonearest_test_data): Likewise.
60416         (asin_towardzero_test_data): Likewise.
60417         (asin_downward_test_data): Likewise.
60418         (asin_upward_test_data): Likewise.
60419         (asinh_test_data): Likewise.
60420         (atan_test_data): Likewise.
60421         (atanh_test_data): Likewise.
60422         (atan2_test_data): Likewise.
60423         (cabs_test_data): Likewise.
60424         (cacos_test_data): Likewise.
60425         (cacosh_test_data): Likewise.
60426         (carg_test_data): Likewise.
60427         (casin_test_data): Likewise.
60428         (casinh_test_data): Likewise.
60429         (catan_test_data): Likewise.
60430         (catanh_test_data): Likewise.
60431         (cbrt_test_data): Likewise.
60432         (ccos_test_data): Likewise.
60433         (ccosh_test_data): Likewise.
60434         (ceil_test_data): Likewise.
60435         (cexp_test_data): Likewise.
60436         (cimag_test_data): Likewise.
60437         (clog_test_data): Likewise.
60438         (clog10_test_data): Likewise.
60439         (conj_test_data): Likewise.
60440         (copysign_test_data): Likewise.
60441         (cos_test_data): Likewise.
60442         (cos_tonearest_test_data): Likewise.
60443         (cos_towardzero_test_data): Likewise.
60444         (cos_downward_test_data): Likewise.
60445         (cos_upward_test_data): Likewise.
60446         (cosh_test_data): Likewise.
60447         (cosh_tonearest_test_data): Likewise.
60448         (cosh_towardzero_test_data): Likewise.
60449         (cosh_downward_test_data): Likewise.
60450         (cosh_upward_test_data): Likewise.
60451         (cpow_test_data): Likewise.
60452         (cproj_test_data): Likewise.
60453         (creal_test_data): Likewise.
60454         (csin_test_data): Likewise.
60455         (csinh_test_data): Likewise.
60456         (csqrt_test_data): Likewise.
60457         (ctan_test_data): Likewise.
60458         (ctan_tonearest_test_data): Likewise.
60459         (ctan_towardzero_test_data): Likewise.
60460         (ctan_downward_test_data): Likewise.
60461         (ctan_upward_test_data): Likewise.
60462         (ctanh_test_data): Likewise.
60463         (ctanh_tonearest_test_data): Likewise.
60464         (ctanh_towardzero_test_data): Likewise.
60465         (ctanh_downward_test_data): Likewise.
60466         (ctanh_upward_test_data): Likewise.
60467         (erf_test_data): Likewise.
60468         (erfc_test_data): Likewise.
60469         (exp_test_data): Likewise.
60470         (exp_tonearest_test_data): Likewise.
60471         (exp_towardzero_test_data): Likewise.
60472         (exp_downward_test_data): Likewise.
60473         (exp_upward_test_data): Likewise.
60474         (exp10_test_data): Likewise.
60475         (exp2_test_data): Likewise.
60476         (expm1_test_data): Likewise.
60477         (fabs_test_data): Likewise.
60478         (fdim_test_data): Likewise.
60479         (finite_test_data): Likewise.
60480         (floor_test_data): Likewise.
60481         (fma_test_data): Likewise.
60482         (fma_towardzero_test_data): Likewise.
60483         (fma_downward_test_data): Likewise.
60484         (fma_upward_test_data): Likewise.
60485         (fmax_test_data): Likewise.
60486         (fmin_test_data): Likewise.
60487         (fmod_test_data): Likewise.
60488         (fpclassify_test_data): Likewise.
60489         (frexp_test_data): Likewise.
60490         (gamma_test_data): Likewise.
60491         (hypot_test_data): Likewise.
60492         (ilogb_test_data): Likewise.
60493         (isfinite_test_data): Likewise.
60494         (isgreater_test_data): Likewise.
60495         (isgreaterequal_test_data): Likewise.
60496         (isinf_test_data): Likewise.
60497         (isless_test_data): Likewise.
60498         (islessequal_test_data): Likewise.
60499         (islessgreater_test_data): Likewise.
60500         (isnan_test_data): Likewise.
60501         (isnormal_test_data): Likewise.
60502         (issignaling_test_data): Likewise.
60503         (isunordered_test_data): Likewise.
60504         (j0_test_data): Likewise.
60505         (j1_test_data): Likewise.
60506         (jn_test_data): Likewise.
60507         (ldexp_test_data): Likewise.
60508         (lgamma_test_data): Likewise.
60509         (lrint_test_data): Likewise.
60510         (lrint_tonearest_test_data): Likewise.
60511         (lrint_towardzero_test_data): Likewise.
60512         (lrint_downward_test_data): Likewise.
60513         (lrint_upward_test_data): Likewise.
60514         (llrint_test_data): Likewise.
60515         (llrint_tonearest_test_data): Likewise.
60516         (llrint_towardzero_test_data): Likewise.
60517         (llrint_downward_test_data): Likewise.
60518         (llrint_upward_test_data): Likewise.
60519         (log_test_data): Likewise.
60520         (log10_test_data): Likewise.
60521         (log1p_test_data): Likewise.
60522         (log2_test_data): Likewise.
60523         (logb_test_data): Likewise.
60524         (logb_downward_test_data): Likewise.
60525         (lround_test_data): Likewise.
60526         (llround_test_data): Likewise.
60527         (modf_test_data): Likewise.
60528         (nearbyint_test_data): Likewise.
60529         (nextafter_test_data): Likewise.
60530         (nexttoward_test_data): Likewise.
60531         (pow_test_data): Likewise.
60532         (pow_tonearest_test_data): Likewise.
60533         (pow_towardzero_test_data): Likewise.
60534         (pow_downward_test_data): Likewise.
60535         (pow_upward_test_data): Likewise.
60536         (remainder_test_data): Likewise.
60537         (remainder_tonearest_test_data): Likewise.
60538         (remainder_towardzero_test_data): Likewise.
60539         (remainder_downward_test_data): Likewise.
60540         (remainder_upward_test_data): Likewise.
60541         (remquo_test_data): Likewise.
60542         (rint_test_data): Likewise.
60543         (rint_tonearest_test_data): Likewise.
60544         (rint_towardzero_test_data): Likewise.
60545         (rint_downward_test_data): Likewise.
60546         (rint_upward_test_data): Likewise.
60547         (round_test_data): Likewise.
60548         (scalb_test_data): Likewise.
60549         (scalbn_test_data): Likewise.
60550         (scalbln_test_data): Likewise.
60551         (signbit_test_data): Likewise.
60552         (sin_test_data): Likewise.
60553         (sin_tonearest_test_data): Likewise.
60554         (sin_towardzero_test_data): Likewise.
60555         (sin_downward_test_data): Likewise.
60556         (sin_upward_test_data): Likewise.
60557         (sincos_test_data): Likewise.
60558         (sinh_test_data): Likewise.
60559         (sinh_tonearest_test_data): Likewise.
60560         (sinh_towardzero_test_data): Likewise.
60561         (sinh_downward_test_data): Likewise.
60562         (sinh_upward_test_data): Likewise.
60563         (sqrt_test_data): Likewise.
60564         (tan_test_data): Likewise.
60565         (tan_tonearest_test_data): Likewise.
60566         (tan_towardzero_test_data): Likewise.
60567         (tan_downward_test_data): Likewise.
60568         (tan_upward_test_data): Likewise.
60569         (tanh_test_data): Likewise.
60570         (tgamma_test_data): Likewise.
60571         (trunc_test_data): Likewise.
60572         (y0_test_data): Likewise.
60573         (y1_test_data): Likewise.
60574         (yn_test_data): Likewise.
60575         (significand_test_data): Likewise.
60576
60577         * math/gen-libm-test.pl (@functions): Remove variable.
60578         (generate_testfile): Don't handle START and END lines.
60579         * math/libm-test.inc (START): New macro.
60580         (END): Likewise.
60581         (END_COMPLEX): Likewise.
60582         (acos_test): Use END macro without arguments.
60583         (acos_test_tonearest): Likewise.
60584         (acos_test_towardzero): Likewise.
60585         (acos_test_downward): Likewise.
60586         (acos_test_upward): Likewise.
60587         (acosh_test): Likewise.
60588         (asin_test): Likewise.
60589         (asin_test_tonearest): Likewise.
60590         (asin_test_towardzero): Likewise.
60591         (asin_test_downward): Likewise.
60592         (asin_test_upward): Likewise.
60593         (asinh_test): Likewise.
60594         (atan_test): Likewise.
60595         (atanh_test): Likewise.
60596         (atan2_test): Likewise.
60597         (cabs_test): Likewise.
60598         (cacos_test): Use END_COMPLEX macro without arguments.
60599         (cacosh_test): Likewise.
60600         (carg_test): Use END macro without arguments.
60601         (casin_test): Use END_COMPLEX macro without arguments.
60602         (casinh_test): Likewise.
60603         (catan_test): Likewise.
60604         (catanh_test): Likewise.
60605         (cbrt_test): Use END macro without arguments.
60606         (ccos_test): Use END_COMPLEX macro without arguments.
60607         (ccosh_test): Likewise.
60608         (ceil_test): Use END macro without arguments.
60609         (cexp_test): Use END_COMPLEX macro without arguments.
60610         (cimag_test): Use END macro without arguments.
60611         (clog_test): Use END_COMPLEX macro without arguments.
60612         (clog10_test): Likewise.
60613         (conj_test): Likewise.
60614         (copysign_test): Use END macro without arguments.
60615         (cos_test): Likewise.
60616         (cos_test_tonearest): Likewise.
60617         (cos_test_towardzero): Likewise.
60618         (cos_test_downward): Likewise.
60619         (cos_test_upward): Likewise.
60620         (cosh_test): Likewise.
60621         (cosh_test_tonearest): Likewise.
60622         (cosh_test_towardzero): Likewise.
60623         (cosh_test_downward): Likewise.
60624         (cosh_test_upward): Likewise.
60625         (cpow_test): Use END_COMPLEX macro without arguments.
60626         (cproj_test): Likewise.
60627         (creal_test): Use END macro without arguments.
60628         (csin_test): Use END_COMPLEX macro without arguments.
60629         (csinh_test): Likewise.
60630         (csqrt_test): Likewise.
60631         (ctan_test): Likewise.
60632         (ctan_test_tonearest): Likewise.
60633         (ctan_test_towardzero): Likewise.
60634         (ctan_test_downward): Likewise.
60635         (ctan_test_upward): Likewise.
60636         (ctanh_test): Likewise.
60637         (ctanh_test_tonearest): Likewise.
60638         (ctanh_test_towardzero): Likewise.
60639         (ctanh_test_downward): Likewise.
60640         (ctanh_test_upward): Likewise.
60641         (erf_test): Use END macro without arguments.
60642         (erfc_test): Likewise.
60643         (exp_test): Likewise.
60644         (exp_test_tonearest): Likewise.
60645         (exp_test_towardzero): Likewise.
60646         (exp_test_downward): Likewise.
60647         (exp_test_upward): Likewise.
60648         (exp10_test): Likewise.
60649         (exp2_test): Likewise.
60650         (expm1_test): Likewise.
60651         (fabs_test): Likewise.
60652         (fdim_test): Likewise.
60653         (finite_test): Likewise.
60654         (floor_test): Likewise.
60655         (fma_test): Likewise.
60656         (fma_test_towardzero): Likewise.
60657         (fma_test_downward): Likewise.
60658         (fma_test_upward): Likewise.
60659         (fmax_test): Likewise.
60660         (fmin_test): Likewise.
60661         (fmod_test): Likewise.
60662         (fpclassify_test): Likewise.
60663         (frexp_test): Likewise.
60664         (gamma_test): Likewise.
60665         (hypot_test): Likewise.
60666         (ilogb_test): Likewise.
60667         (isfinite_test): Likewise.
60668         (isgreater_test): Likewise.
60669         (isgreaterequal_test): Likewise.
60670         (isinf_test): Likewise.
60671         (isless_test): Likewise.
60672         (islessequal_test): Likewise.
60673         (islessgreater_test): Likewise.
60674         (isnan_test): Likewise.
60675         (isnormal_test): Likewise.
60676         (issignaling_test): Likewise.
60677         (isunordered_test): Likewise.
60678         (j0_test): Likewise.
60679         (j1_test): Likewise.
60680         (jn_test): Likewise.
60681         (ldexp_test): Likewise.
60682         (lgamma_test): Likewise.
60683         (lrint_test): Likewise.
60684         (lrint_test_tonearest): Likewise.
60685         (lrint_test_towardzero): Likewise.
60686         (lrint_test_downward): Likewise.
60687         (lrint_test_upward): Likewise.
60688         (llrint_test): Likewise.
60689         (llrint_test_tonearest): Likewise.
60690         (llrint_test_towardzero): Likewise.
60691         (llrint_test_downward): Likewise.
60692         (llrint_test_upward): Likewise.
60693         (log_test): Likewise.
60694         (log10_test): Likewise.
60695         (log1p_test): Likewise.
60696         (log2_test): Likewise.
60697         (logb_test): Likewise.
60698         (logb_test_downward): Likewise.
60699         (lround_test): Likewise.
60700         (llround_test): Likewise.
60701         (modf_test): Likewise.
60702         (nearbyint_test): Likewise.
60703         (nextafter_test): Likewise.
60704         (nexttoward_test): Likewise.
60705         (pow_test): Likewise.
60706         (pow_test_tonearest): Likewise.
60707         (pow_test_towardzero): Likewise.
60708         (pow_test_downward): Likewise.
60709         (pow_test_upward): Likewise.
60710         (remainder_test): Likewise.
60711         (remainder_test_tonearest): Likewise.
60712         (remainder_test_towardzero): Likewise.
60713         (remainder_test_downward): Likewise.
60714         (remainder_test_upward): Likewise.
60715         (remquo_test): Likewise.
60716         (rint_test): Likewise.
60717         (rint_test_tonearest): Likewise.
60718         (rint_test_towardzero): Likewise.
60719         (rint_test_downward): Likewise.
60720         (rint_test_upward): Likewise.
60721         (round_test): Likewise.
60722         (scalb_test): Likewise.
60723         (scalbn_test): Likewise.
60724         (scalbln_test): Likewise.
60725         (signbit_test): Likewise.
60726         (sin_test): Likewise.
60727         (sin_test_tonearest): Likewise.
60728         (sin_test_towardzero): Likewise.
60729         (sin_test_downward): Likewise.
60730         (sin_test_upward): Likewise.
60731         (sincos_test): Likewise.
60732         (sinh_test): Likewise.
60733         (sinh_test_tonearest): Likewise.
60734         (sinh_test_towardzero): Likewise.
60735         (sinh_test_downward): Likewise.
60736         (sinh_test_upward): Likewise.
60737         (sqrt_test): Likewise.
60738         (tan_test): Likewise.
60739         (tan_test_tonearest): Likewise.
60740         (tan_test_towardzero): Likewise.
60741         (tan_test_downward): Likewise.
60742         (tan_test_upward): Likewise.
60743         (tanh_test): Likewise.
60744         (tgamma_test): Likewise.
60745         (trunc_test): Likewise.
60746         (y0_test): Likewise.
60747         (y1_test): Likewise.
60748         (yn_test): Likewise.
60749         (significand_test): Likewise.
60750
60751 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
60752
60753         [BZ #15381]
60754         * libio/genops.c (_IO_no_init): Initialize wide struct info.
60755
60756 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
60757
60758         [BZ #14894]
60759         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
60760         __ppc_mdoio and __ppc_mdoom.
60761         * manual/platform.texi: Document new functions __ppc_yield,
60762         __ppc_mdoio and __ppc_mdoom.
60763
60764 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
60765
60766         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
60767         (main): Mention "tls" pseudo-hwcap is legacy.
60768         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
60769
60770 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60771
60772         * math/gen-libm-test.pl (parse_args): Output only string of
60773         arguments as text for test name, not full call or descriptions of
60774         tests for extra outputs.
60775         (generate_testfile): Do not pass function name to parse_args.
60776         Generate this_func variable from START.
60777         * math/libm-test.inc (struct test_f_f_data): Rename test_name
60778         field to arg_str.
60779         (struct test_ff_f_data): Likewise.
60780         (test_ff_f_data_nexttoward): Likewise.
60781         (struct test_fi_f_data): Likewise.
60782         (struct test_fl_f_data): Likewise.
60783         (struct test_if_f_data): Likewise.
60784         (struct test_fff_f_data): Likewise.
60785         (struct test_c_f_data): Likewise.
60786         (struct test_f_f1_data): Likewise.  Remove field extra_name.
60787         (struct test_fF_f1_data): Likewise.
60788         (struct test_ffI_f1_data): Likewise.
60789         (struct test_c_c_data): Rename test_name field to arg_str.
60790         (struct test_cc_c_data): Likewise.
60791         (struct test_f_i_data): Likewise.
60792         (struct test_ff_i_data): Likewise.
60793         (struct test_f_l_data): Likewise.
60794         (struct test_f_L_data): Likewise.
60795         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
60796         and extra2_name.
60797         (COMMON_TEST_SETUP): New macro.
60798         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
60799         (COMMON_TEST_CLEANUP): Likewise.
60800         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
60801         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
60802         macros.
60803         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
60804         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
60805         macros.
60806         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
60807         (RUN_TEST_fff_f): Take argument string.  Call new setup and
60808         cleanup macros.
60809         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
60810         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
60811         macros.
60812         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
60813         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
60814         macros.
60815         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60816         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
60817         cleanup macros.
60818         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60819         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
60820         cleanup macros.
60821         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60822         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
60823         cleanup macros.
60824         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60825         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
60826         macros.
60827         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
60828         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
60829         macros.
60830         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
60831         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
60832         macros.
60833         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
60834         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
60835         cleanup macros.
60836         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
60837         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
60838         cleanup macros.
60839         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
60840         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
60841         macros.
60842         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
60843         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
60844         cleanup macros.
60845         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
60846         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
60847         macros.
60848         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
60849         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
60850         macros.
60851         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
60852         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
60853         cleanup macros.
60854         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
60855
60856 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
60857
60858         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
60859         to _sifields.sigfault.
60860         (si_addr_lsb): Define new macro.
60861         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
60862         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
60863         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
60864
60865 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
60866
60867         [BZ #15441]
60868         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
60869         returns -1.
60870         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
60871         null return -1.
60872         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
60873         loading the domain.
60874
60875 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60876
60877         * math/gen-libm-test.pl (parse_args): Do not include expected
60878         result in test name.
60879         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
60880         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60881         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60882         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60883         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60885
60886 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
60887
60888         * benchtests/Makefile: Sort function entries.
60889
60890         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
60891         tanh, asinh, acosh, atanh.
60892         * benchtests/acos-inputs: New file.
60893         * benchtests/acosh-inputs: New file.
60894         * benchtests/asin-inputs: New file.
60895         * benchtests/asinh-inputs: New file.
60896         * benchtests/atanh-inputs: New file.
60897         * benchtests/cosh-inputs: New file.
60898         * benchtests/log-inputs: New file.
60899         * benchtests/sinh-inputs: New file.
60900         * benchtests/tanh-inputs: New file.
60901
60902 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
60903
60904         [BZ #15339]
60905         * posix/tst-getaddrinfo4.c: New test.
60906         * posix/Makefile (tests): Add it.
60907
60908 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60909
60910         [BZ #15339]
60911         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
60912         when no services were used.
60913         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
60914         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
60915
60916 2013-05-21  Andreas Schwab  <schwab@suse.de>
60917
60918         [BZ #15014]
60919         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
60920         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
60921         successful.
60922         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
60923         redundant variable declarations and reallocation of buffer when
60924         parsing as IPv6 address.  Always set NSS status when called from
60925         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
60926         buffer too small.  Correct computation of needed size.
60927         * nss/Makefile (tests): Add test-digits-dots.
60928         * nss/test-digits-dots.c: New test.
60929
60930 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60931
60932         * benchtests/Makefile: Remove instructions for adding
60933         benchmark tests.
60934         * benchtests/README: New file to explain how to execute and
60935         enhance the benchmark tests.
60936
60937 2013-05-21  Andreas Schwab  <schwab@suse.de>
60938
60939         [BZ #15493]
60940         * setjmp/Makefile (tests): Add tst-sigsetjmp.
60941         * setjmp/tst-sigsetjmp.c: New test.
60942
60943 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60944
60945         * sysdeps/x86_64/memset.S (memset): New implementation.
60946         (__bzero): Likewise.
60947         (__memset_tail): New function.
60948
60949 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60950
60951         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
60952         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
60953         __memcpy_sse2_unaligned ifunc selection.
60954         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
60955         Add memcpy-sse2-unaligned.S.
60956         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
60957         Add: __memcpy_sse2_unaligned.
60958
60959 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
60960
60961         [BZ #15490]
60962         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
60963         math_force_eval before restoring floating-point envrionment.
60964         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
60965         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
60966         Likewise.
60967         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
60968         <math_private.h>.
60969         (__nearbyintl): Use math_force_eval before restoring
60970         floating-point environment.
60971         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
60972
60973         * math/gen-libm-test.pl (special_functions): Remove.
60974         (parse_args): Don't handle TEST_extra.  Handle functions with no
60975         return value.
60976         * math/libm-test.inc (struct test_sincos_data): Replace with
60977         struct test_fFF_11_data.
60978         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
60979         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
60980         (sincos_test_data): Change element type to struct
60981         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
60982         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
60983         RUN_TEST_LOOP_sincos.
60984         * math/README.libm-test: Don't mention special handling of
60985         individual functions.
60986         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
60987         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60988         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60989         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60990         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60992
60993         * math/gen-libm-test.pl (get_variable): Remove function.
60994         (parse_args): Don't show pointer parameters to call in test
60995         names.  Use "extra output N" in test names for extra outputs
60996         rather than naming variables.
60997
60998 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
60999
61000         [BZ #15488]
61001         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
61002         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
61003         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
61004         double tests.
61005         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
61006         disable.
61007         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
61008         check_long_double.
61009
61010         * math/gen-libm-test.pl (@tests): Remove variable.
61011         ($count): Likewise.
61012         (new_test): Remove function.
61013         (show_exceptions): New function.
61014         (special_functions): Use show_exceptions instead of new_test.
61015         (parse_args): Likewise.
61016         (generate_testfile): Pass only function name in generated call to
61017         print_max_error or print_complex_max_error.
61018         (get_ulps): Do not handle complex tests specially.
61019         (output_test): Rename to ...
61020         (get_all_ulps_for_test): ... this.  Return a string rather than
61021         printing to a file.  Require ulps to be present.
61022         (output_ulps): Generate arrays rather than #defines.
61023         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
61024         (struct ulp_data): New type.
61025         (BUILD_COMPLEX_ULP): Remove macro.
61026         (compare_ulp_data): New function.
61027         (find_ulps): Likewise.
61028         (find_test_ulps): Likewise.
61029         (find_function_ulps): Likewise.
61030         (find_complex_function_ulps): Likewise.
61031         (print_max_error): Determine allowed ulps using
61032         find_function_ulps.
61033         (print_complex_max_error): Determine allowed ulps using
61034         find_complex_function_ulps.
61035         (check_float_internal): Determine max ulps using find_test_ulps.
61036         (check_float): Do not take max_ulp parameter.  Update call to
61037         check_float_internal.
61038         (check_complex): Likewise.
61039         (check_int): Do not take max_ulp parameter.
61040         (check_long): Likewise.
61041         (check_bool): Likewise.
61042         (check_longlong): Likewise.
61043         (struct test_f_f_data): Remove max_ulp field.
61044         (struct test_ff_f_data): Likewise.
61045         (struct test_ff_f_data_nexttoward): Likewise.
61046         (struct test_fi_f_data): Likewise.
61047         (struct test_fl_f_data): Likewise.
61048         (struct test_if_f_data): Likewise.
61049         (struct test_fff_f_data): Likewise.
61050         (struct test_c_f_data): Likewise.
61051         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
61052         (struct test_fF_f1_data): Likewise.
61053         (struct test_ffI_f1_data): Likewise.
61054         (struct test_c_c_data): Remove max_ulp field.
61055         (struct test_cc_c_data): Likewise.
61056         (struct test_f_i_data): Likewise.
61057         (struct test_ff_i_data): Likewise.
61058         (struct test_f_l_data): Likewise.
61059         (struct test_f_L_data): Likewise.
61060         (struct test_sincos_data): Likewise.
61061         (RUN_TEST_f_f): Do not handle ulps.
61062         (RUN_TEST_LOOP_f_f): Likewise.
61063         (RUN_TEST_2_f): Likewise.
61064         (RUN_TEST_LOOP_2_f): Likewise.
61065         (RUN_TEST_fff_f): Likewise.
61066         (RUN_TEST_LOOP_fff_f): Likewise.
61067         (RUN_TEST_c_f): Likewise.
61068         (RUN_TEST_LOOP_c_f): Likewise.
61069         (RUN_TEST_f_f1): Likewise.
61070         (RUN_TEST_LOOP_f_f1): Likewise.
61071         (RUN_TEST_fF_f1): Likewise.
61072         (RUN_TEST_LOOP_fF_f1): Likewise.
61073         (RUN_TEST_fI_f1): Likewise.
61074         (RUN_TEST_LOOP_fI_f1): Likewise.
61075         (RUN_TEST_ffI_f1): Likewise.
61076         (RUN_TEST_LOOP_ffI_f1): Likewise.
61077         (RUN_TEST_c_c): Likewise.
61078         (RUN_TEST_LOOP_c_c): Likewise.
61079         (RUN_TEST_cc_c): Likewise.
61080         (RUN_TEST_LOOP_cc_c): Likewise.
61081         (RUN_TEST_f_i): Likewise.
61082         (RUN_TEST_LOOP_f_i): Likewise.
61083         (RUN_TEST_f_i_tg): Likewise.
61084         (RUN_TEST_LOOP_f_i_tg): Likewise.
61085         (RUN_TEST_ff_i_tg): Likewise.
61086         (RUN_TEST_LOOP_ff_i_tg): Likewise.
61087         (RUN_TEST_f_b): Likewise.
61088         (RUN_TEST_LOOP_f_b): Likewise.
61089         (RUN_TEST_f_b_tg): Likewise.
61090         (RUN_TEST_LOOP_f_b_tg): Likewise.
61091         (RUN_TEST_f_l): Likewise.
61092         (RUN_TEST_LOOP_f_l): Likewise.
61093         (RUN_TEST_f_L): Likewise.
61094         (RUN_TEST_LOOP_f_L): Likewise.
61095         (RUN_TEST_sincos): Likewise.
61096         (RUN_TEST_LOOP_sincos): Likewise.
61097
61098 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
61099
61100         [BZ #15480]
61101         [BZ #15485]
61102         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
61103         main case of finite arguments, set rounding mode to FE_TONEAREST
61104         and discard exceptions.
61105         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
61106         exceptions.
61107         (remainder_tonearest_test_data): New variable.
61108         (remainder_test_tonearest): New function.
61109         (remainder_towardzero_test_data): New variable.
61110         (remainder_test_towardzero): New function.
61111         (remainder_downward_test_data): New variable.
61112         (remainder_test_downward): New function.
61113         (remainder_upward_test_data): New variable.
61114         (remainder_test_upward): New function.
61115         (main): Call the new test functions.
61116
61117         * math/libm-test.inc (struct test_f_f1_data): Remove field
61118         extra_init.
61119         (struct test_fF_f1_data): Likewise.
61120         (struct test_ffI_f1_data): Likewise.
61121         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
61122         based on value of EXTRA_EXPECTED.
61123         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
61124         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
61125         EXTRA_VAR based on value of EXTRA_EXPECTED.
61126         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
61127         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
61128         EXTRA_VAR based on value of EXTRA_EXPECTED.
61129         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
61130         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
61131         EXTRA_VAR based on value of EXTRA_EXPECTED.
61132         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
61133         * math/gen-libm-test.pl (parse_args): Don't output initializers
61134         for extra output values.
61135
61136         * math/libm-test.inc (check_int): Expect result to be exactly
61137         equal to expected value and do not handle ulps.
61138         (check_long): Likewise.
61139         (check_longlong): Likewise.
61140
61141         * math/libm-test.inc (ceil_test_data): Test for "inexact"
61142         exceptions.
61143         (cimag_test_data): Likewise.
61144         (conj_test_data): Likewise.
61145         (copysign_test_data): Likewise.
61146         (cproj_test_data): Likewise.
61147         (creal_test_data): Likewise.
61148         (fabs_test_data): Likewise.
61149         (fdim_test_data): Likewise.
61150         (finite_test_data): Likewise.
61151         (floor_test_data): Likewise.
61152         (fmax_test_data): Likewise.
61153         (fmin_test_data): Likewise.
61154         (fmod_test_data): Likewise.
61155         (fpclassify_test_data): Likewise.
61156         (frexp_test_data): Likewise.
61157         (ilogb_test_data): Likewise.
61158         (isfinite_test_data): Likewise.
61159         (isgreater_test_data): Likewise.
61160         (isgreaterequal_test_data): Likewise.
61161         (isinf_test_data): Likewise.
61162         (isless_test_data): Likewise.
61163         (islessequal_test_data): Likewise.
61164         (islessgreater_test_data): Likewise.
61165         (isnan_test_data): Likewise.
61166         (isnormal_test_data): Likewise.
61167         (issignaling_test_data): Likewise.
61168         (isunordered_test_data): Likewise.
61169         (ldexp_test_data): Likewise.
61170         (lrint_test_data): Likewise.
61171         (lrint_test_data) [TEST_FLOAT]: Disable one test.
61172         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
61173         (lrint_tonearest_test_data): Test for "inexact" exceptions.
61174         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61175         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
61176         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61177         test input.
61178         (lrint_towardzero_test_data): Test for "inexact" exceptions.
61179         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61180         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
61181         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
61182         that test input.
61183         (lrint_downward_test_data): Test for "inexact" exceptions.
61184         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61185         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
61186         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61187         test input.
61188         (lrint_upward_test_data): Test for "inexact" exceptions.
61189         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
61190         test input.
61191         (llrint_test_data): Test for "inexact" exceptions.
61192         (llrint_test_data) [TEST_FLOAT]: Disable one test.
61193         (llrint_tonearest_test_data): Test for "inexact" exceptions.
61194         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61195         (llrint_towardzero_test_data): Test for "inexact" exceptions.
61196         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61197         (llrint_downward_test_data): Test for "inexact" exceptions.
61198         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61199         (llrint_upward_test_data): Test for "inexact" exceptions.
61200         (logb_test_data): Likewise.
61201         (logb_downward_test_data): Likewise.
61202         (nextafter_test_data): Likewise.
61203         (nexttoward_test_data): Likewise.
61204         (remainder_test_data): Likewise.
61205         (remquo_test_data): Likewise.
61206         (scalbn_test_data): Likewise.
61207         (scalbln_test_data): Likewise.
61208         (signbit_test_data): Likewise.
61209         (sqrt_test_data): Likewise.
61210         (significand_test_data): Likewise.
61211
61212 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
61213
61214         [BZ #15424]
61215         * benchtests/bench-modf.c (struct args): Mark arg0 as
61216         volatile.
61217         * scripts/bench.pl: Mark members of struct args as volatile.
61218
61219 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61220
61221         [BZ # 15497]
61222         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
61223         negative infinity on POWER6 or lower.
61224         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
61225
61226 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
61227
61228         [BZ #15442]
61229         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
61230         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
61231         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
61232         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
61233         (_FP_SETQNAN): New macro.
61234         (_FP_SETQNAN_SEMIRAW): Likewise.
61235         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
61236         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
61237         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
61238         (FP_EXTEND): Use _FP_FRAC_SNANP.
61239         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
61240         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
61241         into account.
61242         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61243         New macro.
61244         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61245         Likewise.
61246
61247 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61248
61249         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
61250         with DIVIDE_BY_ZERO_EXCEPTION.
61251         (gamma_test_data): Likewise.
61252         (lgamma_test_data): Likewise.
61253         (log_test_data): Likewise.
61254         (log10_test_data): Likewise.
61255         (log2_test_data): Likewise.
61256         (tgamma_test_data): Likewise.
61257
61258         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
61259         (acos_test_tonearest): Likewise.
61260         (acos_test_towardzero): Likewise.
61261         (acos_test_downward): Likewise.
61262         (acos_test_upward): Likewise.
61263         (acosh_test): Likewise.
61264         (asin_test): Likewise.
61265         (asin_test_tonearest): Likewise.
61266         (asin_test_towardzero): Likewise.
61267         (asin_test_downward): Likewise.
61268         (asin_test_upward): Likewise.
61269         (asinh_test): Likewise.
61270         (atan_test): Likewise.
61271         (atanh_test): Likewise.
61272         (atan2_test): Likewise.
61273         (cabs_test): Likewise.
61274         (cacos_test): Likewise.
61275         (cacosh_test): Likewise.
61276         (casin_test): Likewise.
61277         (casinh_test): Likewise.
61278         (catan_test): Likewise.
61279         (catanh_test): Likewise.
61280         (cbrt_test): Likewise.
61281         (ccos_test): Likewise.
61282         (ccosh_test): Likewise.
61283         (cexp_test): Likewise.
61284         (clog_test): Likewise.
61285         (clog10_test): Likewise.
61286         (cos_test): Likewise.
61287         (cos_test_tonearest): Likewise.
61288         (cos_test_towardzero): Likewise.
61289         (cos_test_downward): Likewise.
61290         (cos_test_upward): Likewise.
61291         (cosh_test): Likewise.
61292         (cosh_test_tonearest): Likewise.
61293         (cosh_test_towardzero): Likewise.
61294         (cosh_test_downward): Likewise.
61295         (cosh_test_upward): Likewise.
61296         (cpow_test): Likewise.
61297         (csin_test): Likewise.
61298         (csinh_test): Likewise.
61299         (csqrt_test): Likewise.
61300         (ctan_test): Likewise.
61301         (ctan_test_tonearest): Likewise.
61302         (ctan_test_towardzero): Likewise.
61303         (ctan_test_downward): Likewise.
61304         (ctan_test_upward): Likewise.
61305         (ctanh_test): Likewise.
61306         (ctanh_test_tonearest): Likewise.
61307         (ctanh_test_towardzero): Likewise.
61308         (ctanh_test_downward): Likewise.
61309         (ctanh_test_upward): Likewise.
61310         (erf_test): Likewise.
61311         (erfc_test): Likewise.
61312         (exp_test): Likewise.
61313         (exp_test_tonearest): Likewise.
61314         (exp_test_towardzero): Likewise.
61315         (exp_test_downward): Likewise.
61316         (exp_test_upward): Likewise.
61317         (exp10_test): Likewise.
61318         (exp2_test): Likewise.
61319         (expm1_test): Likewise.
61320         (fmod_test): Likewise.
61321         (gamma_test): Likewise.
61322         (hypot_test): Likewise.
61323         (j0_test): Likewise.
61324         (j1_test): Likewise.
61325         (jn_test): Likewise.
61326         (lgamma_test): Likewise.
61327         (log_test): Likewise.
61328         (log10_test): Likewise.
61329         (log1p_test): Likewise.
61330         (log2_test): Likewise.
61331         (logb_test_downward): Likewise.
61332         (pow_test): Likewise.
61333         (pow_test_tonearest): Likewise.
61334         (pow_test_towardzero): Likewise.
61335         (pow_test_downward): Likewise.
61336         (pow_test_upward): Likewise.
61337         (remainder_test): Likewise.
61338         (remquo_test): Likewise.
61339         (sin_test): Likewise.
61340         (sin_test_tonearest): Likewise.
61341         (sin_test_towardzero): Likewise.
61342         (sin_test_downward): Likewise.
61343         (sin_test_upward): Likewise.
61344         (sincos_test): Likewise.
61345         (sinh_test): Likewise.
61346         (sinh_test_tonearest): Likewise.
61347         (sinh_test_towardzero): Likewise.
61348         (sinh_test_downward): Likewise.
61349         (sinh_test_upward): Likewise.
61350         (sqrt_test): Likewise.
61351         (tan_test): Likewise.
61352         (tan_test_tonearest): Likewise.
61353         (tan_test_towardzero): Likewise.
61354         (tan_test_downward): Likewise.
61355         (tan_test_upward): Likewise.
61356         (tanh_test): Likewise.
61357         (tgamma_test): Likewise.
61358         (y0_test): Likewise.
61359         (y1_test): Likewise.
61360         (yn_test): Likewise.
61361
61362         * math/gen-libm-test.pl (adjust_arg): Remove function.
61363         (special_function): Remove argument $in_func.  Only handle
61364         generating output for tables of tests, not inside functions.
61365         (parse_args): Likewise.
61366         (generate_testfile): Remove variable $in_func.  Update call to
61367         parse_args.
61368         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
61369         (MINUS_ZERO_INIT): Rename macro to minus_zero.
61370         (PLUS_INFTY_INIT): Rename macro to plus_infty.
61371         (MINUS_INFTY_INIT): Rename macro to minus_infty.
61372         (QNAN_VALUE_INIT): Rename macro to qnan_value.
61373         (MAX_VALUE_INIT): Rename macro to max_value.
61374         (MIN_VALUE_INIT): Rename macro to min_value.
61375         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
61376         (plus_zero): Remove variable.
61377         (minus_zero): Likewise.
61378         (plus_infty): Likewise.
61379         (minus_infty): Likewise.
61380         (qnan_value): Likewise.
61381         (max_value): Likewise.
61382         (min_value): Likewise.
61383         (min_subnorm_value): Likewise.
61384
61385 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
61386
61387         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
61388         uint64_t or uint32_t usage.
61389         * crypt/sha256-block.c: Likewise.
61390         * crypt/sha256-crypt.c: Likewise.
61391         * crypt/sha256.c: Likewise.
61392         * crypt/sha512-block.c: Likewise.
61393         * crypt/sha512-crypt.c: Likewise.
61394         * crypt/sha512.c: Likewise.
61395         * debug/backtrace-tst.c: Likewise.
61396         * debug/pcprofiledump.c: Likewise.
61397         * elf/cache.c: Likewise.
61398         * elf/dl-cache.c: Likewise.
61399         * elf/dl-misc.c: Likewise.
61400         * elf/dl-profile.c: Likewise.
61401         * elf/dl-support.c: Likewise.
61402         * elf/ldconfig.c: Likewise.
61403         * elf/sprof.c: Likewise.
61404         * iconv/dummy-repertoire.c: Likewise.
61405         * iconv/iconv_charmap.c: Likewise.
61406         * iconv/skeleton.c: Likewise.
61407         * iconvdata/8bit-generic.c: Likewise.
61408         * iconvdata/cp737.h: Likewise.
61409         * iconvdata/cp775.h: Likewise.
61410         * iconvdata/ibm1008.h: Likewise.
61411         * iconvdata/ibm1025.h: Likewise.
61412         * iconvdata/ibm1046.h: Likewise.
61413         * iconvdata/ibm1097.h: Likewise.
61414         * iconvdata/ibm1112.h: Likewise.
61415         * iconvdata/ibm1122.h: Likewise.
61416         * iconvdata/ibm1123.h: Likewise.
61417         * iconvdata/ibm1124.h: Likewise.
61418         * iconvdata/ibm1129.h: Likewise.
61419         * iconvdata/ibm1130.h: Likewise.
61420         * iconvdata/ibm1132.h: Likewise.
61421         * iconvdata/ibm1133.h: Likewise.
61422         * iconvdata/ibm1137.h: Likewise.
61423         * iconvdata/ibm1140.h: Likewise.
61424         * iconvdata/ibm1141.h: Likewise.
61425         * iconvdata/ibm1142.h: Likewise.
61426         * iconvdata/ibm1143.h: Likewise.
61427         * iconvdata/ibm1144.h: Likewise.
61428         * iconvdata/ibm1145.h: Likewise.
61429         * iconvdata/ibm1146.h: Likewise.
61430         * iconvdata/ibm1147.h: Likewise.
61431         * iconvdata/ibm1148.h: Likewise.
61432         * iconvdata/ibm1149.h: Likewise.
61433         * iconvdata/ibm1153.h: Likewise.
61434         * iconvdata/ibm1154.h: Likewise.
61435         * iconvdata/ibm1155.h: Likewise.
61436         * iconvdata/ibm1156.h: Likewise.
61437         * iconvdata/ibm1157.h: Likewise.
61438         * iconvdata/ibm1158.h: Likewise.
61439         * iconvdata/ibm1160.h: Likewise.
61440         * iconvdata/ibm1161.h: Likewise.
61441         * iconvdata/ibm1162.h: Likewise.
61442         * iconvdata/ibm1163.h: Likewise.
61443         * iconvdata/ibm1164.h: Likewise.
61444         * iconvdata/ibm1166.h: Likewise.
61445         * iconvdata/ibm1167.h: Likewise.
61446         * iconvdata/ibm12712.h: Likewise.
61447         * iconvdata/ibm1390.h: Likewise.
61448         * iconvdata/ibm1399.h: Likewise.
61449         * iconvdata/ibm16804.h: Likewise.
61450         * iconvdata/ibm4517.h: Likewise.
61451         * iconvdata/ibm4899.h: Likewise.
61452         * iconvdata/ibm4909.h: Likewise.
61453         * iconvdata/ibm4971.h: Likewise.
61454         * iconvdata/ibm5347.h: Likewise.
61455         * iconvdata/ibm803.h: Likewise.
61456         * iconvdata/ibm856.h: Likewise.
61457         * iconvdata/ibm901.h: Likewise.
61458         * iconvdata/ibm902.h: Likewise.
61459         * iconvdata/ibm9030.h: Likewise.
61460         * iconvdata/ibm9066.h: Likewise.
61461         * iconvdata/ibm921.h: Likewise.
61462         * iconvdata/ibm922.h: Likewise.
61463         * iconvdata/ibm9448.h: Likewise.
61464         * iconvdata/isiri-3342.h: Likewise.
61465         * iconvdata/jis0201.h: Likewise.
61466         * include/link.h: Likewise.
61467         * include/netdb.h: Likewise.
61468         * inet/check_native.c: Likewise.
61469         * inet/check_pf.c: Likewise.
61470         * inet/getipv4sourcefilter.c: Likewise.
61471         * inet/getnameinfo.c: Likewise.
61472         * inet/getsourcefilter.c: Likewise.
61473         * inet/htonl.c: Likewise.
61474         * inet/setipv4sourcefilter.c: Likewise.
61475         * inet/setsourcefilter.c: Likewise.
61476         * inet/test-inet6_opt.c: Likewise.
61477         * inet/tst-network.c: Likewise.
61478         * locale/C-collate.c: Likewise.
61479         * locale/C-ctype.c: Likewise.
61480         * locale/C-time.c: Likewise.
61481         * locale/C-translit.h: Likewise.
61482         * locale/loadarchive.c: Likewise.
61483         * locale/programs/3level.h: Likewise.
61484         * locale/programs/charmap.c: Likewise.
61485         * locale/programs/charmap.h: Likewise.
61486         * locale/programs/ld-address.c: Likewise.
61487         * locale/programs/ld-collate.c: Likewise.
61488         * locale/programs/ld-ctype.c: Likewise.
61489         * locale/programs/ld-identification.c: Likewise.
61490         * locale/programs/ld-measurement.c: Likewise.
61491         * locale/programs/ld-messages.c: Likewise.
61492         * locale/programs/ld-monetary.c: Likewise.
61493         * locale/programs/ld-name.c: Likewise.
61494         * locale/programs/ld-numeric.c: Likewise.
61495         * locale/programs/ld-paper.c: Likewise.
61496         * locale/programs/ld-telephone.c: Likewise.
61497         * locale/programs/ld-time.c: Likewise.
61498         * locale/programs/linereader.c: Likewise.
61499         * locale/programs/locale.c: Likewise.
61500         * locale/programs/locarchive.c: Likewise.
61501         * locale/programs/locfile.h: Likewise.
61502         * locale/programs/repertoire.c: Likewise.
61503         * locale/programs/simple-hash.c: Likewise.
61504         * locale/programs/simple-hash.h: Likewise.
61505         * malloc/memusage.c: Likewise.
61506         * malloc/memusagestat.c: Likewise.
61507         * nis/nis_defaults.c: Likewise.
61508         * nis/nis_hash.c: Likewise.
61509         * nis/nis_print.c: Likewise.
61510         * nis/nis_xdr.c: Likewise.
61511         * nscd/connections.c: Likewise.
61512         * nscd/hstcache.c: Likewise.
61513         * nscd/nscd_gethst_r.c: Likewise.
61514         * nscd/nscd_getserv_r.c: Likewise.
61515         * nscd/nscd_helper.c: Likewise.
61516         * nscd/servicescache.c: Likewise.
61517         * nss/makedb.c: Likewise.
61518         * nss/nss_db/db-XXX.c: Likewise.
61519         * nss/nss_db/db-initgroups.c: Likewise.
61520         * nss/nss_db/db-netgrp.c: Likewise.
61521         * nss/nss_files/files-network.c: Likewise.
61522         * nss/nss_files/files-parse.c: Likewise.
61523         * posix/bug-regex5.c: Likewise.
61524         * posix/fnmatch_loop.c: Likewise.
61525         * posix/regcomp.c: Likewise.
61526         * posix/regexec.c: Likewise.
61527         * posix/tst-rfc3484-2.c: Likewise.
61528         * posix/tst-rfc3484-3.c: Likewise.
61529         * posix/tst-rfc3484.c: Likewise.
61530         * resolv/nss_dns/dns-canon.c: Likewise.
61531         * resolv/nss_dns/dns-network.c: Likewise.
61532         * resolv/res_init.c: Likewise.
61533         * resolv/res_mkquery.c: Likewise.
61534         * resolv/tst-aton.c: Likewise.
61535         * stdlib/cxa_atexit.c: Likewise.
61536         * stdlib/cxa_finalize.c: Likewise.
61537         * stdlib/gen-fpioconst.c: Likewise.
61538         * stdlib/strtol_l.c: Likewise.
61539         * string/tst-endian.c: Likewise.
61540         * sunrpc/auth_des.c: Likewise.
61541         * sunrpc/clnt_udp.c: Likewise.
61542         * sunrpc/rtime.c: Likewise.
61543         * sunrpc/svcauth_des.c: Likewise.
61544         * sunrpc/xdr.c: Likewise.
61545         * sunrpc/xdr_intXX_t.c: Likewise.
61546         * sunrpc/xdr_rec.c: Likewise.
61547         * sysdeps/generic/ldconfig.h: Likewise.
61548         * sysdeps/generic/ldsodefs.h: Likewise.
61549         * sysdeps/generic/memusage.h: Likewise.
61550         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
61551         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
61552         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
61553         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
61554         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
61555         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
61556         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
61557         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
61558         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
61559         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
61560         * sysdeps/posix/getaddrinfo.c: Likewise.
61561         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
61562         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61563         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
61564         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
61565         * sysdeps/powerpc/test-gettimebase.c: Likewise.
61566         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
61567         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
61568         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
61569         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
61570         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
61571         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
61572         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
61573         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
61574         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
61575         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
61576         * sysdeps/x86_64/dl-tls.h: Likewise.
61577         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
61578         * time/alt_digit.c: Likewise.
61579         * time/era.c: Likewise.
61580         * wcsmbs/tst-c16c32-1.c: Likewise.
61581
61582 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61583
61584         * math/libm-test.inc (struct test_sincos_data): New type.
61585         (RUN_TEST_LOOP_sincos): New macro.
61586         (sincos_test_data): New variable.
61587         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
61588
61589 2013-05-16  Richard Henderson  <rth@redhat.com>
61590
61591         * math/atest-exp2.c (LIMB64): New macro.
61592         (CONSTSZ): New macro.
61593         (mp_exp1, mp_exp_m1, mp_log2): New variables.
61594         (hexdig): Move ...
61595         (print_mpn_fp): ... to function scope.
61596         (read_mpn_hex): Remove.
61597         (get_log2): Remove.
61598         (exp2_mpn): Use mp_log2.
61599         (main): Use mp_exp1.
61600
61601 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61602
61603         * math/libm-test.inc: Remove comment about not testing "inexact"
61604         exceptions.
61605         (INEXACT_EXCEPTION): New macro.
61606         (NO_INEXACT_EXCEPTION): Likewise.
61607         (INVALID_EXCEPTION_OK): Update value.
61608         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61609         (OVERFLOW_EXCEPTION_OK): Likewise.
61610         (UNDERFLOW_EXCEPTION_OK): Likewise.
61611         (IGNORE_ZERO_INF_SIGN): Likewise.
61612         (ERRNO_UNCHANGED): Likewise.
61613         (ERRNO_EDOM): Likewise.
61614         (ERRNO_ERANGE): Likewise.
61615         (test_exceptions): Handle testing "inexact" exceptions.
61616         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
61617         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
61618         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
61619         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
61620         INEXACT_EXCEPTION.
61621         (rint_towardzero_test_data): Likewise.
61622         (rint_downward_test_data): Likewise.
61623         (rint_upward_test_data): Likewise.
61624
61625         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
61626         with OVERFLOW_EXCEPTION.
61627         (exp10_test_data): Likewise.
61628         (exp2_test_data): Likewise.
61629         (expm1_test_data): Likewise.
61630         (lgamma_test_data): Likewise.
61631         (pow_test_data): Likewise.
61632         (tgamma_test_data): Likewise.
61633         (yn_test_data): Remove duplicate test of overflow.
61634
61635         * math/libm-test.inc (struct test_cc_c_data): New type.
61636         (RUN_TEST_LOOP_cc_c): New macro.
61637         (cpow_test_data): New variable.
61638         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
61639
61640         * math/libm-test.inc (struct test_f_L_data): New type.
61641         (RUN_TEST_LOOP_f_L): New macro.
61642         (llrint_test_data): New variable.
61643         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
61644         (llrint_tonearest_test_data): New variable.
61645         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
61646         (llrint_towardzero_test_data): New variable.
61647         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
61648         (llrint_downward_test_data): New variable.
61649         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
61650         (llrint_upward_test_data): New variable.
61651         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
61652         (llround_test_data): New variable.
61653         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
61654
61655 2013-05-13  Peter Collingbourne  <pcc@google.com>
61656
61657         * math/atest-exp2.c (get_log2): Remove const attribute.
61658
61659 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61660
61661         * math/libm-test.inc (struct test_f_l_data): New type.
61662         (RUN_TEST_LOOP_f_l): New macro.
61663         (lrint_test_data): New variable.
61664         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
61665         (lrint_tonearest_test_data): New variable.
61666         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
61667         (lrint_towardzero_test_data): New variable.
61668         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
61669         (lrint_downward_test_data): New variable.
61670         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
61671         (lrint_upward_test_data): New variable.
61672         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
61673         (lround_test_data): New variable.
61674         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
61675
61676 2013-05-15  Peter Collingbourne  <pcc@google.com>
61677
61678         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
61679         (EXTRACT_WORDS64) Use where appropriate.
61680         (INSERT_WORDS64) Likewise.
61681
61682         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
61683         constraints with x constraints.
61684         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
61685
61686         * malloc/obstack.c (_obstack_compat): Add initializer.
61687
61688 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
61689
61690         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
61691         si_trapno and add si_addr_lsb to _sifields.sigfault.
61692         (si_trapno): Remove macro.
61693         (si_addr_lsb): Define new macro.
61694         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61695
61696 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61697
61698         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
61699         instead of TEST_f_l.
61700         (llrint_test_tonearest): Likewise.
61701         (llrint_test_towardzero): Likewise.
61702         (llrint_test_downward): Likewise.
61703         (llrint_test_upward): Likewise.
61704         (llround_test): Likewise.
61705
61706         * math/libm-test.inc (struct test_f_i_data): Add comment.
61707         (RUN_TEST_LOOP_f_b): New macro.
61708         (RUN_TEST_LOOP_f_b_tg): Likewise.
61709         (finite_test_data): New variable.
61710         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
61711         (isfinite_test_data): New variable.
61712         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61713         (isinf_test_data): New variable.
61714         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61715         (isnan_test_data): New variable.
61716         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61717         (isnormal_test_data): New variable.
61718         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61719         (issignaling_test_data): New variable.
61720         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61721         (signbit_test_data): New variable.
61722         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61723
61724         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
61725         with INVALID_EXCEPTION.
61726         (acosh_test_data): Likewise.
61727         (asin_test_data): Likewise.
61728         (atanh_test_data): Likewise.
61729         (fmod_test_data): Likewise.
61730         (log_test_data): Likewise.
61731         (log10_test_data): Likewise.
61732         (log2_test_data): Likewise.
61733         (pow_test_data): Likewise.
61734         (sqrt_test_data): Likewise.
61735         (y0_test_data): Likewise.
61736         (y1_test_data): Likewise.
61737         (yn_test_data): Likewise.
61738
61739         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
61740         function contents.
61741
61742         * math/libm-test.inc (struct test_ff_i_data): New type.
61743         (RUN_TEST_LOOP_ff_i_tg): New macro.
61744         (isgreater_test_data): New variable.
61745         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61746         (isgreaterequal_test_data): New variable.
61747         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61748         (isless_test_data): New variable.
61749         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61750         (islessequal_test_data): New variable.
61751         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61752         (islessgreater_test_data): New variable.
61753         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61754         (isunordered_test_data): New variable.
61755         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61756
61757 2013-05-14  David S. Miller  <davem@davemloft.net>
61758
61759         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61760
61761 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
61762
61763         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
61764
61765         * math/libm-test.inc (struct test_fF_f1_data): Change type of
61766         extra_test to int.
61767         (struct test_f_i_data): Change type of max_ulp to int.
61768
61769         * math/libm-test.inc (test_ffI_f1_data): New type.
61770         (RUN_TEST_LOOP_ffI_f1): New macro.
61771         (remquo_test_data): New variable.
61772         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
61773
61774         * setjmp/tst-setjmp-fp.c: New file.
61775         * setjmp/Makefile (tests): Add tst-setjmp-fp.
61776         (link-libm): New variable.
61777         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
61778
61779         * math/libm-test.inc (struct test_f_i_data): New type.
61780         (RUN_TEST_LOOP_f_i): New macro.
61781         (RUN_TEST_LOOP_f_i_tg): Likewise.
61782         (fpclassify_test_data): New variable.
61783         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
61784         (ilogb_test_data): New variable.
61785         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
61786
61787         * math/libm-test.inc (scalbln_test): Correct function name in END
61788         call.
61789
61790         * math/libm-test.inc (struct test_f_f1_data): Add comment.
61791         (RUN_TEST_LOOP_fI_f1): New macro.
61792         (frexp_test_data): New variable.
61793         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
61794
61795         * math/libm-test.inc (struct test_fF_f1_data): New type.
61796         (RUN_TEST_LOOP_fF_f1): New macro.
61797         (modf_test_data): New variable.
61798         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
61799
61800         * math/libm-test.inc (struct test_f_f1_data): New type.
61801         (RUN_TEST_LOOP_f_f1): New macro.
61802         (gamma_test_data): New variable.
61803         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61804         (lgamma_test_data): New variable.
61805         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61806
61807 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
61808
61809         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
61810         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
61811         (main): Comment "tls" pseudo-hwcap.
61812
61813 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
61814
61815         * math/libm-test.inc (struct test_fl_f_data): New type.
61816         (RUN_TEST_LOOP_fl_f): New variable.
61817         (scalbln_test_data): New variable.
61818         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
61819
61820         * math/libm-test.inc (struct test_fi_f_data): New type.
61821         (RUN_TEST_LOOP_fi_f): New macro.
61822         (ldexp_test_data): New variable.
61823         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
61824         (scalbn_test_data): New variable.
61825         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
61826
61827         * math/libm-test.inc (struct test_c_f_data): New type.
61828         (RUN_TEST_LOOP_c_f): New macro.
61829         (cabs_test_data): New variable.
61830         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
61831         (carg_test_data): New variable.
61832         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
61833         (cimag_test_data): New variable.
61834         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
61835         (creal_test_data): New variable.
61836         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
61837
61838         * math/libm-test.inc (struct test_if_f_data): New type.
61839         (RUN_TEST_LOOP_if_f): New macro.
61840         (jn_test_data): New variable.
61841         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
61842         (yn_test_data): New variable.
61843         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
61844
61845         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
61846
61847 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61848
61849         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
61850         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
61851
61852 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
61853
61854         * benchtests/Makefile (CPPFLAGS-nonlib): Add
61855         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
61856         (bench-deps): Add bench-timing.h.
61857         * benchtests-bench-skeleton.c: Include bench-timing.h.
61858         (main): Use TIMING_* macros instead of clock_gettime.
61859         * benchtests/bench-timing.h: New file.
61860
61861         [BZ #14582]
61862         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
61863         Renamed from _LIB_VERSION.
61864         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
61865
61866 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
61867
61868         * math/libm-test.inc (struct test_fff_f_data): New type.
61869         (RUN_TEST_LOOP_fff_f): New macro.
61870         (fma_test_data): New variable.
61871         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
61872         (fma_towardzero_test_data): New variable.
61873         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
61874         (fma_downward_test_data): New variable.
61875         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
61876         (fma_upward_test_data): New variable.
61877         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
61878
61879         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
61880         (struct test_c_c_data): New type.
61881         (RUN_TEST_LOOP_c_c): New macro.
61882         (cacos_test_data): New variable.
61883         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
61884         (cacosh_test_data): New variable.
61885         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
61886         (casin_test_data): New variable.
61887         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
61888         (casinh_test_data): New variable.
61889         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
61890         (catan_test_data): New variable.
61891         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
61892         (catanh_test_data): New variable.
61893         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
61894         (ccos_test_data): New variable.
61895         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
61896         (ccosh_test_data): New variable.
61897         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
61898         (cexp_test_data): New variable.
61899         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
61900         (clog_test_data): New variable.
61901         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
61902         (clog10_test_data): New variable.
61903         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
61904         (conj_test_data): New variable.
61905         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
61906         (cproj_test_data): New variable.
61907         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
61908         (csin_test_data): New variable.
61909         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
61910         (csinh_test_data): New variable.
61911         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
61912         (csqrt_test_data): New variable.
61913         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
61914         (ctan_test_data): New variable.
61915         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
61916         (ctan_tonearest_test_data): New variable.
61917         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61918         (ctan_towardzero_test_data): New variable.
61919         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61920         (ctan_downward_test_data): New variable.
61921         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61922         (ctan_upward_test_data): New variable.
61923         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61924         (ctanh_test_data): New variable.
61925         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
61926         (ctanh_tonearest_test_data): New variable.
61927         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61928         (ctanh_towardzero_test_data): New variable.
61929         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61930         (ctanh_downward_test_data): New variable.
61931         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61932         (ctanh_upward_test_data): New variable.
61933         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61934         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
61935         of BUILD_COMPLEX.
61936
61937         * math/libm-test.inc (struct test_ff_f_data): New type.
61938         (struct test_ff_f_data_nexttoward): Likewise.
61939         (RUN_TEST_LOOP_2_f): New macro.
61940         (RUN_TEST_LOOP_ff_f): Likewise.
61941         (atan2_test_data): New variable.
61942         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
61943         (copysign_test_data): New variable.
61944         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
61945         (fdim_test_data): New variable.
61946         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
61947         (fmax_test_data): New variable.
61948         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
61949         (fmin_test_data): New variable.
61950         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
61951         (fmod_test_data): New variable.
61952         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
61953         (hypot_test_data): New variable.
61954         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
61955         (nextafter_test_data): New variable.
61956         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
61957         (nexttoward_test_data): New variable.
61958         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
61959         (pow_test_data): New variable.
61960         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
61961         (pow_tonearest_test_data): New variable.
61962         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
61963         (pow_towardzero_test_data): New variable.
61964         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
61965         (pow_downward_test_data): New variable.
61966         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
61967         (pow_upward_test_data): New variable.
61968         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
61969         (remainder_test_data): New variable.
61970         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
61971         (scalb_test_data): New variable.
61972         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
61973         * sysdeps/i386/fpu/libm-test-ulps: Update.
61974
61975 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
61976
61977         * math/libm-test.inc (fma_test): Use max_value instead of local
61978         variable fltmax.
61979         (nextafter_test): Likewise.
61980
61981         * math/libm-test.inc (acos_towardzero_test_data): New variable.
61982         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61983         (acos_downward_test_data): New variable.
61984         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61985         (acos_upward_test_data): New variable.
61986         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61987         (acosh_test_data): New variable.
61988         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
61989         (asin_test_data): New variable.
61990         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
61991         (asin_tonearest_test_data): New variable.
61992         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61993         (asin_towardzero_test_data): New variable.
61994         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61995         (asin_downward_test_data): New variable.
61996         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61997         (asin_upward_test_data): New variable.
61998         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61999         (asinh_test_data): New variable.
62000         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
62001         (atan_test_data): New variable.
62002         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
62003         (atanh_test_data): New variable.
62004         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
62005         (cbrt_test_data): New variable.
62006         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
62007         (ceil_test_data): New variable.
62008         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
62009         (cos_test_data): New variable.
62010         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
62011         (cos_tonearest_test_data): New variable.
62012         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62013         (cos_towardzero_test_data): New variable.
62014         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62015         (cos_downward_test_data): New variable.
62016         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62017         (cos_upward_test_data): New variable.
62018         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62019         (cosh_test_data): New variable.
62020         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
62021         (cosh_tonearest_test_data): New variable.
62022         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62023         (cosh_towardzero_test_data): New variable.
62024         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62025         (cosh_downward_test_data): New variable.
62026         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62027         (cosh_upward_test_data): New variable.
62028         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62029         (erf_test_data): New variable.
62030         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
62031         (erfc_test_data): New variable.
62032         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
62033         (exp_test_data): New variable.
62034         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
62035         (exp_tonearest_test_data): New variable.
62036         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62037         (exp_towardzero_test_data): New variable.
62038         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62039         (exp_downward_test_data): New variable.
62040         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62041         (exp_upward_test_data): New variable.
62042         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62043         (exp10_test_data): New variable.
62044         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
62045         (exp2_test_data): New variable.
62046         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
62047         (expm1_test_data): New variable.
62048         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
62049         (fabs_test_data): New variable.
62050         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
62051         (floor_test_data): New variable.
62052         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
62053         (j0_test_data): New variable.
62054         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
62055         (j1_test_data): New variable.
62056         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
62057         (log_test_data): New variable.
62058         (log_test): Run tests with RUN_TEST_LOOP_f_f.
62059         (log10_test_data): New variable.
62060         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
62061         (log1p_test_data): New variable.
62062         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
62063         (log2_test_data): New variable.
62064         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
62065         (logb_test_data): New variable.
62066         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
62067         (logb_downward_test_data): New variable.
62068         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62069         (nearbyint_test_data): New variable.
62070         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
62071         (rint_test_data): New variable.
62072         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
62073         (rint_tonearest_test_data): New variable.
62074         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62075         (rint_towardzero_test_data): New variable.
62076         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62077         (rint_downward_test_data): New variable.
62078         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62079         (rint_upward_test_data): New variable.
62080         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62081         (round_test_data): New variable.
62082         (round_test): Run tests with RUN_TEST_LOOP_f_f.
62083         (sin_test_data): New variable.
62084         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
62085         (sin_tonearest_test_data): New variable.
62086         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62087         (sin_towardzero_test_data): New variable.
62088         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62089         (sin_downward_test_data): New variable.
62090         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62091         (sin_upward_test_data): New variable.
62092         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62093         (sinh_test_data): New variable.
62094         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
62095         (sinh_tonearest_test_data): New variable.
62096         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62097         (sinh_towardzero_test_data): New variable.
62098         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62099         (sinh_downward_test_data): New variable.
62100         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62101         (sinh_upward_test_data): New variable.
62102         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62103         (sqrt_test_data): New variable.
62104         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
62105         (tan_test_data): New variable.
62106         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
62107         (tan_tonearest_test_data): New variable.
62108         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62109         (tan_towardzero_test_data): New variable.
62110         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62111         (tan_downward_test_data): New variable.
62112         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62113         (tan_upward_test_data): New variable.
62114         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62115         (tanh_test_data): New variable.
62116         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
62117         (tgamma_test_data): New variable.
62118         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
62119         (trunc_test_data): New variable.
62120         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
62121         (y0_test_data): New variable.
62122         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
62123         (y1_test_data): New variable.
62124         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
62125         (significand_test_data): New variable.
62126         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
62127
62128 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
62129
62130         [BZ #12387]
62131         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
62132
62133 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62134
62135         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
62136
62137 2013-05-10  Andreas Jaeger  <aj@suse.de>
62138
62139         [BZ #15448]
62140         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
62141         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
62142
62143 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62144
62145         * math/gen-libm-test.pl (adjust_arg): New function.
62146         (special_functions): Handle generating output in both functions
62147         and arrays.
62148         (parse_args): Likewise.
62149         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
62150         $in_func argument to parse_args.
62151         * math/libm-test.inc (struct test_f_f_data): New type.
62152         (IF_ROUND_INIT_): New macro.
62153         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
62154         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
62155         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
62156         (IF_ROUND_INIT_FE_UPWARD): Likewise.
62157         (ROUND_RESTORE_): Likewise.
62158         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
62159         (ROUND_RESTORE_FE_TONEAREST): Likewise.
62160         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
62161         (ROUND_RESTORE_FE_UPWARD): Likewise.
62162         (RUN_TEST_LOOP_f_f): New macro.
62163         (acos_test_data): New variable.
62164         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
62165         (acos_tonearest_test_data): New variable.
62166         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62167
62168 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62169
62170         * benchtests/bench-skeleton.c (startup): Fix coding style.
62171
62172 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62173
62174         [BZ #6809]
62175         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
62176         negative infinity argument.
62177         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
62178         negative infinity argument.
62179         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
62180         negative infinity argument.
62181         * math/libm-test.inc (tgamma_test): Expect errno to be set for
62182         domain errors.
62183
62184 2013-05-10  Florian Weimer  <fweimer@redhat.com>
62185
62186         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
62187         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
62188         * iconv/iconv_prog.c (main): Likewise.
62189         * locale/programs/charmap-dir.c (charmap_readdir)
62190         (fopen_uncompressed): Likewise.
62191         * locale/programs/locfile.c (siblings_uncached)
62192         (write_locale_data): Use lstat64 instead of lstat.
62193         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
62194         stat.
62195
62196 2013-05-10  Andreas Jaeger  <aj@suse.de>
62197
62198         [BZ #15395]
62199         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
62200         localization.
62201         Include <locale.h>.
62202
62203 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
62204
62205         * elf/dl-close.c (_dl_close_worker): Add comments.
62206
62207 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
62208
62209         [BZ #15359]
62210         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
62211         high part of pi/2.
62212         (__ieee754_rem_pio2l): Update comments.
62213
62214         [BZ #15429]
62215         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
62216         high part of pi/2.
62217         (__ieee754_rem_pio2l): Update comments.
62218
62219         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
62220         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
62221
62222         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
62223         M_PI_4l.
62224
62225         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
62226         (M_PI_34_LOG10El): Likewise.
62227         (M_PI2_LOG10El): Likewise.
62228         (M_PI4_LOG10El): Likewise.
62229         (M_PI_LOG10El): Likewise.
62230
62231 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62232
62233         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62234
62235 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
62236
62237         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
62238         (MINUS_ZERO_INIT): Likewise.
62239         (PLUS_INFTY_INIT): Likewise.
62240         (MINUS_INFTY_INIT): Likewise.
62241         (QNAN_VALUE_INIT): Likewise.
62242         (MAX_VALUE_INIT): Likewise.
62243         (MIN_VALUE_INIT): Likewise.
62244         (MIN_SUBNORM_VALUE_INIT): Likewise.
62245         (plus_zero): Initialize with PLUS_ZERO_INIT.
62246         (minus_zero): Initialize with MINUS_ZERO_INIT.
62247         (plus_infty): Initialize with PLUS_INFTY_INIT.
62248         (minus_infty): Initialize with MINUS_INFTY_INIT.
62249         (qnan_value): Initialize with QNAN_VALUE_INIT.
62250         (max_value): Initialize with MAX_VALUE_INIT.
62251         (min_value): Initialize with MIN_VALUE_INIT.
62252         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
62253
62254         * math/libm-test.inc (RUN_TEST_if_f): New macro.
62255         (jn_test): Use TEST_if_f instead of TEST_ff_f.
62256         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
62257         (yn_test): Use TEST_if_f instead of TEST_ff_f.
62258
62259         * math/libm-test.inc (RUN_TEST_f_f): New macro.
62260         (RUN_TEST_2_f): Likewise.
62261         (RUN_TEST_ff_f): Likewise.
62262         (RUN_TEST_fi_f): Likewise.
62263         (RUN_TEST_fl_f): Likewise.
62264         (RUN_TEST_fff_f): Likewise.
62265         (RUN_TEST_c_f): Likewise.
62266         (RUN_TEST_f_f1): Likewise.
62267         (RUN_TEST_fF_f1): Likewise.
62268         (RUN_TEST_fI_f1): Likewise.
62269         (RUN_TEST_ffI_f1): Likewise.
62270         (RUN_TEST_c_c): Likewise.
62271         (RUN_TEST_cc_c): Likewise.
62272         (RUN_TEST_f_i): Likewise.
62273         (RUN_TEST_f_i_tg): Likewise.
62274         (RUN_TEST_ff_i_tg): Likewise.
62275         (RUN_TEST_f_b): Likewise.
62276         (RUN_TEST_f_b_tg): Likewise.
62277         (RUN_TEST_f_l): Likewise.
62278         (RUN_TEST_f_L): Likewise.
62279         (RUN_TEST_sincos): Likewise.
62280         * math/gen-libm-test.pl (new_test): Take new argument to indicate
62281         whether to show exceptions.  Do not include ");\n" in return
62282         value.
62283         (special_functions): Output call to RUN_TEST_sincos instead of
62284         check_float calls.  Update calls to new_test.
62285         (parse_args): Output call to single RUN_TEST_* macro instead of
62286         check_* calls and other assignments.  Update calls to new_test.
62287
62288         [BZ #2546]
62289         [BZ #2560]
62290         [BZ #5159]
62291         [BZ #15426]
62292         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
62293         input to result for tgamma overflow.
62294         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
62295         (gamma_coeff): New variable.
62296         (NCOEFF): New macro.
62297         (gamma_positive): New function.
62298         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
62299         underflow here.  Use gamma_positive instead of exp (lgamma) for
62300         other arguments.
62301         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
62302         (gamma_coeff): New variable.
62303         (NCOEFF): New macro.
62304         (gammaf_positive): New function.
62305         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
62306         underflow here.  Use gamma_positive instead of exp (lgamma) for
62307         other arguments.
62308         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
62309         (gamma_coeff): New variable.
62310         (NCOEFF): New macro.
62311         (gammal_positive): New function.
62312         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
62313         underflow here.  Use gamma_positive instead of exp (lgamma) for
62314         other arguments.
62315         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
62316         (gamma_coeff): New variable.
62317         (NCOEFF): New macro.
62318         (gammal_positive): New function.
62319         (__ieee754_gammal_r): Handle positive infinity, overflow and
62320         underflow here.  Handle NaN the same as positive infinity.  Remove
62321         check x < 0xffffffff for negative integers.  Use gamma_positive
62322         instead of exp (lgamma) for other arguments.
62323         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
62324         (gamma_coeff): New variable.
62325         (NCOEFF): New macro.
62326         (gammal_positive): New function.
62327         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
62328         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
62329         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
62330         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
62331         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
62332         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
62333         * sysdeps/generic/math_private.h (__gamma_productf): New
62334         prototype.
62335         (__gamma_product): Likewise.
62336         (__gamma_productl): Likewise.
62337         * math/Makefile (libm-calls): Add gamma_product.
62338         * math/libm-test.inc (tgamma_test): Add more tests.
62339         * sysdeps/i386/fpu/libm-test-ulps: Update.
62340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62341
62342 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
62343
62344         * benchtests/bench-skeleton.c (main): Preheat CPU.
62345
62346 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
62347
62348         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
62349
62350 2013-05-07  Roland McGrath  <roland@hack.frob.com>
62351
62352         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
62353         and _dl_skip_args_internal.
62354
62355 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
62356
62357         * manual/message.texi (Message Translation): Talk about users.
62358         Message to key mapping impacts design.
62359
62360 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62361
62362         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
62363
62364         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
62365
62366         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
62367         * sysdeps/wordsize-64/glob64.c: ... here.
62368
62369         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
62370         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
62371         New macros.
62372
62373         * debug/getlogin_r_chk.c: Moved to ...
62374         * login/getlogin_r_chk.c: ... here.
62375         * debug/Makefile (routines): Move getlogin_r_chk to ...
62376         * login/Makefile (routines): ... here.
62377         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
62378         * login/Versions (libc: GLIBC_2.4): ... here.
62379
62380         * io/poll.c (__poll): Renamed from poll.
62381         Add libc_hidden_def.
62382         (poll): Define as weak alias.
62383
62384         * debug/ptsname_r_chk.c: Moved to ...
62385         * login/ptsname_r_chk.c: ... here.
62386         * debug/Makefile (routines): Move ptsname_r_chk to ...
62387         * login/Makefile (routines): ... here.
62388         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
62389         * login/Versions (libc: GLIBC_2.4): ... here.
62390
62391         * posix/getlogin.c: Moved to ...
62392         * login/getlogin.c: ... here.
62393         * posix/getlogin_r.c: Moved to ...
62394         * login/getlogin_r.c: ... here.
62395         * posix/getlogin_r.c: Moved to ...
62396         * login/getlogin_r.c: ... here.
62397         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
62398         * login/Makefile (routines): ... here.
62399         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
62400         * login/Versions (libc: GLIBC_2.0): ... here.
62401
62402         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
62403         (setrlimit): Define as weak alias.
62404
62405         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
62406         Call __ names for open, ftruncate, and close.
62407         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
62408         (truncate): Define as weak alias.
62409
62410 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
62411
62412         * math/gen-libm-test.pl (parse_args): Initialize x before each
62413         test of frexp, modf and remquo.
62414
62415         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
62416         test signgam value.
62417
62418 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62419
62420         [BZ #15418]
62421         [BZ #15419]
62422         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
62423         internal tests.
62424         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
62425
62426 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62427
62428         * elf/dl-writev.h: New file.
62429         * elf/dl-misc.c: Include it.
62430         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
62431         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
62432
62433 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
62434
62435         * math/libm-test.inc (noXFails): Remove variable.
62436         (noXPasses): Likewise.
62437         (BUILD_COMPLEX_INT): Remove macro.
62438         (print_screen): Remove xfail argument.
62439         (print_screen_max_error): Likewise.
62440         (update_stats): Likewise.
62441         (print_max_error): Likewise.  Update calls to other affected
62442         functions.
62443         (print_complex_max_error): Likewise.
62444         (test_single_exception): Update calls to print_screen.
62445         (test_single_errno): Likewise.
62446         (check_float_internal): Remove xfail argument.  Update calls to
62447         other affected functions.
62448         (check_float): Likewise.
62449         (check_complex): Likewise.
62450         (check_int): Likewise.
62451         (check_long): Likewise.
62452         (check_bool): Likewise.
62453         (check_longlong): Likewise.
62454         (main): Don't print noXFails and noXPasses.
62455         * math/gen-libm-test.pl (top level): Don't mention expected
62456         failure handling in comment.
62457         (new_test): Don't handle expected failures.
62458         (parse_args): Don't mention expected failure handling in comment.
62459         (generate_testfile): Don't handle expected failures.
62460         (parse_ulps): Likewise.
62461         (print_ulps_file): Likewise.
62462         (get_failure): Remove function.
62463         (output_test): Don't handle expected failures.
62464         * make/README.libm-test: Don't mention expected failure handling.
62465
62466         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
62467         (minus_zero): Likewise.
62468         (plus_infty): Likewise.
62469         (minus_infty): Likewise.
62470         (qnan_value): Likewise.
62471         (max_value): Likewise.
62472         (min_value): Likewise.
62473         (min_subnorm_value): Likewise.
62474         (initialize): Do not initialize those variables dynamically.
62475
62476 2013-05-03  Roland McGrath  <roland@hack.frob.com>
62477
62478         * io/open.c (__open_2): Moved to ...
62479         * io/open_2.c: ... this new file.
62480         * io/open64.c (__open64_2): Moved to ...
62481         * io/open64_2.c: ... this new file.
62482         * io/openat.c (__openat_2): Moved to ...
62483         * io/openat_2.c: ... this new file.
62484         * io/openat64.c (__openat64_2): Moved to ...
62485         * io/openat64_2.c: ... this new file.
62486         * io/Makefile (routines): Add them.
62487         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
62488         * sysdeps/unix/sysv/linux/open_2.c: File removed.
62489         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
62490         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
62491         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
62492         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
62493         (__openat64): Add hidden_ver.
62494         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
62495         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
62496
62497         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
62498         Separately conditionalize setting of GLRO(dl_sysinfo) so
62499         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
62500         as well, but the actual setting is only under [NEED_DL_SYSINFO].
62501
62502 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62503
62504         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
62505         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
62506         definition.
62507         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
62508         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62509         (_libc_vdso_platform_setup): Add __vdso_time initialization.
62510         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
62511         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
62512
62513 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
62514
62515         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
62516         test signgam value.
62517
62518         * math/libm-test.inc (hypot_test): Do not use
62519         IGNORE_ZERO_INF_SIGN.
62520
62521 2013-05-03  Andreas Jaeger  <aj@suse.de>
62522
62523         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
62524         Linux 3.9.
62525         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
62526         (PF_MAX): Adjust for VSOCK change.
62527
62528 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62529
62530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62531
62532 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
62533
62534         [BZ #15264]
62535         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
62536         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
62537         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
62538
62539 2013-05-02  David S. Miller  <davem@davemloft.net>
62540
62541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62542
62543 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
62544
62545         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
62546
62547 2013-05-01  Roland McGrath  <roland@hack.frob.com>
62548
62549         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
62550
62551 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
62552
62553         [BZ #14952]
62554         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
62555         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62556         Use __attribute__ ((__gnu_inline__)).
62557         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62558         Don't use __attribute__ ((__gnu_inline__)).
62559
62560 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
62561
62562         [BZ #15423]
62563         * math/s_catan.c (__catan): Handle small real or imaginary part of
62564         input specially to avoid spurious underflow.
62565         * math/s_catanf.c (__catanf): Likewise.
62566         * math/s_catanh.c (__catanh): Likewise.
62567         * math/s_catanhf.c (__catanhf): Likewise.
62568         * math/s_catanhl.c (__catanhl): Likewise.
62569         * math/s_catanl.c (__catanl): Likewise.
62570         * math/libm-test.inc (catan_test): Add more tests.
62571         (catanh_test): Likewise.
62572         * sysdeps/i386/fpu/libm-test-ulps: Update.
62573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62574
62575 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62576
62577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62578
62579 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
62580
62581         [BZ #15416]
62582         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
62583         accurately for denominator in atan2.
62584         * math/s_catanf.c (__catanf): Likewise.
62585         * math/s_catanh.c (__catanh): Likewise.
62586         * math/s_catanhf.c (__catanhf): Likewise.
62587         * math/s_catanhl.c (__catanhl): Likewise.
62588         * math/s_catanl.c (__catanl): Likewise.
62589         * math/libm-test.inc (catan_test): Add more tests.
62590         (catanh_test): Likewise.
62591         * sysdeps/i386/fpu/libm-test-ulps: Update.
62592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62593
62594 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
62595
62596         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
62597
62598         * benchtests/Makefile (bench): Remove slow benchmarks.
62599         * benchtests/atan-inputs: Add slow benchmark inputs.
62600         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
62601         (BENCH_FUNC): Accept variant offset.
62602         (VARIANT): Define.
62603         * benchtests/bench-skeleton.c (main): Run benchmark for each
62604         variant.
62605         * benchtests/cos-inputs: Add slow benchmark inputs.
62606         * benchtests/exp-inputs: Likewise.
62607         * benchtests/pow-inputs: Likewise.
62608         * benchtests/sin-inputs: Likewise.
62609         * benchtests/slowatan-inputs: Remove.
62610         * benchtests/slowatan.c: Remove.
62611         * benchtests/slowcos-inputs: Remove.
62612         * benchtests/slowcos.c: Remove.
62613         * benchtests/slowexp-inputs: Remove.
62614         * benchtests/slowexp.c: Remove.
62615         * benchtests/slowpow-inputs: Remove.
62616         * benchtests/slowpow.c: Remove.
62617         * benchtests/slowsin-inputs: Remove.
62618         * benchtests/slowsin.c: Remove.
62619         * benchtests/slowtan-inputs: Remove.
62620         * benchtests/slowtan.c: Remove.
62621         * benchtests/tan-inputs: Add slow benchmark inputs.
62622         * scripts/bench.pl: Parse comments and directives.
62623
62624         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
62625         in CPPFLAGS.
62626         ($(objpfx)bench-%.c): Remove *-ITER.
62627         * benchtests/bench-modf.c: Remove definition of ITER.
62628         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
62629         (main): Loop for DURATION seconds instead of fixed number of
62630         iterations.
62631         * scripts/bench.pl: Don't expect iterations in parameters.
62632
62633 2013-04-29  Roland McGrath  <roland@hack.frob.com>
62634
62635         * io/fchdir.c (__fchdir): Renamed from fchdir.
62636         (fchdir): Define as weak alias.
62637
62638 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62639
62640         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
62641         (ERRNO_EDOM): Likewise.
62642         (ERRNO_ERANGE): Likewise.
62643         (noErrnoTests): New variable.
62644         (init_max_error): Set errno to 0.
62645         (test_single_errno): New function.
62646         (test_errno): Likewise.
62647         (check_float_internal): Call test_errno.  Set errno to 0.
62648         (check_complex): Refer to errno tests in comment.
62649         (check_int): Call test_errno.  Set errno to 0.
62650         (check_long): Likewise.
62651         (check_bool): Likewise.
62652         (check_longlong): Likewise.
62653         (cos_test): Use ERRNO_* flags for errno tests instead of
62654         check_int.
62655         (expm1_test): Likewise.
62656         (fmod_test): Likewise.
62657         (ilogb_test): Likewise.
62658         (lgamma_test): Likewise.
62659         (pow_test): Likewise.
62660         (remainder_test): Likewise.
62661         (sin_test): Likewise.
62662         (tan_test): Likewise.
62663         (yn_test): Likewise.
62664         (initialize): Set errno to 0.
62665         (main): Print number of errno tests.
62666         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
62667
62668 2013-04-29  Andreas Jaeger  <aj@suse.de>
62669
62670         [BZ #15084]
62671         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
62672         and RES_USEVC.
62673
62674         [BZ #15085]
62675         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
62676         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
62677         unimplemented.
62678
62679         [BZ #15380]
62680         * stdlib/random.c (__initstate): Return NULL if
62681         __initstate fails.
62682
62683         [BZ #15086]
62684         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
62685         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
62686         RES_SNGLKUPREOP.
62687
62688 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62689
62690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62691
62692 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62693
62694         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
62695         of individual tests.
62696         (casin_test): Likewise.
62697         (casinh_test): Likewise.
62698
62699 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
62700
62701         [BZ #15409]
62702         * math/s_catan.c (__catan): Handle arguments with large real or
62703         imaginary part separately without squaring.
62704         * math/s_catanf.c (__catanf): Likewise.
62705         * math/s_catanh.c (__catanh): Likewise.
62706         * math/s_catanhf.c (__catanhf): Likewise.
62707         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62708         and redefine.
62709         (__catanhl): Handle arguments with large real or imaginary part
62710         separately without squaring.
62711         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62712         and redefine.
62713         (__catanl): Handle arguments with large real or imaginary part
62714         separately without squaring.
62715         * math/libm-test.inc (catan_test): Add more tests.
62716         (catanh_test): Likewise.
62717         * sysdeps/i386/fpu/libm-test-ulps: Update.
62718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62719
62720 2013-04-27  Andreas Jaeger  <aj@suse.de>
62721
62722         [BZ #15007]
62723         * stdlib/stdlib.h: Update guards for qecvt.
62724         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
62725         <stdlib.h>.
62726
62727 2013-04-27  Allan McRae  <allan@archlinux.org>
62728
62729         * sysdeps/i386/fpu/libm-test-ulps: Update.
62730
62731 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
62732
62733         [BZ #15406]
62734         * math/s_catan.c: Include <float.h>.
62735         (__catan): Ensure underflow exception occurs for underflowed
62736         result.
62737         * math/s_catanf.c: Include <float.h>.
62738         (__catanf): Ensure underflow exception occurs for underflowed
62739         result.
62740         * math/s_catanh.c: Include <float.h>.
62741         (__catanh): Ensure underflow exception occurs for underflowed
62742         result.
62743         * math/s_catanhf.c: Include <float.h>.
62744         (__catanhf): Ensure underflow exception occurs for underflowed
62745         result.
62746         * math/s_catanhl.c: Include <float.h>.
62747         (__catanhl): Ensure underflow exception occurs for underflowed
62748         result.
62749         * math/s_catanl.c: Include <float.h>.
62750         (__catanl): Ensure underflow exception occurs for underflowed
62751         result.
62752         * math/libm-test.inc (catan_test): Add more tests.
62753         (catanh_test): Likewise.
62754
62755         [BZ #15405]
62756         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
62757         underflowed result.
62758         * math/s_ccoshf.c (__ccoshf): Likewise.
62759         * math/s_ccoshl.c (__ccoshl): Likewise.
62760         * math/s_csin.c (__csin): Likewise.
62761         * math/s_csinf.c (__csinf): Likewise.
62762         * math/s_csinh.c (__csinh): Likewise.
62763         * math/s_csinhf.c (__csinhf): Likewise.
62764         * math/s_csinhl.c (__csinhl): Likewise.
62765         * math/s_csinl.c (__csinl): Likewise.
62766         * math/libm-test.inc (ccos_test): Add more tests.
62767         (ccosh_test): Likewise.
62768         (csin_test): Likewise.
62769         (csinh_test): Likewise.
62770
62771 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62772
62773         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
62774         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
62775         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
62776         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
62777         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
62778         powerpc/power5+/fpu folders.
62779         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
62780
62781
62782 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
62783
62784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62785
62786 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
62787
62788         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
62789         additions to variable.
62790         [$(config-machine) = x86_64] (modules-names): Likewise.
62791         ($(objpfx)tst-audit3): Remove dependency.
62792         ($(objpfx)tst-audit3.out): Likewise.
62793         ($(objpfx)tst-audit4): Likewise.
62794         ($(objpfx)tst-audit4.out): Likewise.
62795         ($(objpfx)tst-audit5): Likewise.
62796         ($(objpfx)tst-audit5.out): Likewise.
62797         ($(objpfx)tst-audit6): Likewise.
62798         ($(objpfx)tst-audit6.out): Likewise.
62799         ($(objpfx)tst-audit7): Likewise.
62800         ($(objpfx)tst-audit7.out): Likewise.
62801         (tst-audit3-ENV): Remove variable.
62802         (tst-audit4-ENV): Likewise.
62803         (tst-audit5-ENV): Likewise.
62804         (tst-audit6-ENV): Likewise.
62805         (tst-audit7-ENV): Likewise.
62806         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
62807         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
62808         addition to variable.
62809         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
62810         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
62811         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
62812         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
62813         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
62814         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
62815         tst-audit3, tst-audit4 and tst-audit5.
62816         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
62817         tst-audit6 and tst-audit7.
62818         [$(subdir) = elf] (modules-names): Add audit modules for those
62819         tests.
62820         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
62821         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
62822         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
62823         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
62824         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
62825         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
62826         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
62827         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
62828         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
62829         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
62830         [$(subdir) = elf] (tst-audit3-ENV): New variable.
62831         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
62832         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
62833         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
62834         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
62835         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
62836         Likewise.
62837         [$(subdir) = elf && $(config-cflags-avx) = yes]
62838         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
62839         [$(subdir) = elf && $(config-cflags-avx) = yes]
62840         (CFLAGS-tst-auditmod4a.c): Likewise.
62841         [$(subdir) = elf && $(config-cflags-avx) = yes]
62842         (CFLAGS-tst-auditmod4b.c): Likewise.
62843         [$(subdir) = elf && $(config-cflags-avx) = yes]
62844         (CFLAGS-tst-auditmod6b.c): Likewise.
62845         [$(subdir) = elf && $(config-cflags-avx) = yes]
62846         (CFLAGS-tst-auditmod6c.c): Likewise.
62847         [$(subdir) = elf && $(config-cflags-avx) = yes]
62848         (CFLAGS-tst-auditmod7b.c): Likewise.
62849         * elf/tst-audit3.c: Move to ...
62850         * sysdeps/x86_64/tst-audit3.c: ... here.
62851         * elf/tst-audit4.c: Move to ...
62852         * sysdeps/x86_64/tst-audit4.c: ... here.
62853         * elf/tst-audit5.c: Move to ...
62854         * sysdeps/x86_64/tst-audit5.c: ... here.
62855         * elf/tst-audit6.c: Move to ...
62856         * sysdeps/x86_64/tst-audit6.c: ... here.
62857         * elf/tst-audit7.c: Move to ...
62858         * sysdeps/x86_64/tst-audit7.c: ... here.
62859         * elf/tst-auditmod3a.c: Move to ...
62860         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
62861         * elf/tst-auditmod3b.c: Move to ...
62862         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
62863         * elf/tst-auditmod4a.c: Move to ...
62864         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
62865         * elf/tst-auditmod4b.c: Move to ...
62866         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
62867         * elf/tst-auditmod5a.c: Move to ...
62868         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
62869         * elf/tst-auditmod5b.c: Move to ...
62870         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
62871         * elf/tst-auditmod6a.c: Move to ...
62872         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
62873         * elf/tst-auditmod6b.c: Move to ...
62874         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
62875         * elf/tst-auditmod6c.c: Move to ...
62876         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
62877         * elf/tst-auditmod7a.c: Move to ...
62878         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
62879         * elf/tst-auditmod7b.c: Move to ...
62880         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
62881
62882 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
62883
62884         [BZ #15366]
62885         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
62886         define unconditionally.
62887         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
62888         define unconditionally.
62889         (INT8_C, INT16_C, etc.): Likewise.
62890
62891 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
62892
62893         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
62894         __ehdr_start with hidden visibility.
62895
62896         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
62897
62898 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
62899
62900         * math/libm-test.inc (cos_test): Use accurate hex constants.
62901         (sincost_test): Likewise.
62902
62903 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
62904
62905         * math/libm-test.inc (catan_test): Add more tests.
62906         (catanh_test): Likewise.
62907
62908         * math/s_catanf.c (__catanf): Use suffixed floating-point
62909         constants.
62910         * math/s_catanhf.c (__catanhf): Likewise.
62911         * math/s_catanhl.c (__catanhl): Likewise.
62912         * math/s_catanl.c (__catanl): Likewise.
62913
62914         [BZ #15394]
62915         * math/s_catan.c (__catan): Calculate imaginary part of result
62916         with log1p not log unless computing log of number close to 0.
62917         * math/s_catanf.c (__catanf): Likewise.
62918         * math/s_catanl.c (__catanl): Likewise.
62919         * math/s_catanh.c (__catanh): Calculate real part of result with
62920         log1p not log unless computing log of number close to 0.
62921         * math/s_catanhf.c (__catanhf): Likewise.
62922         * math/s_catanhl.c (__catanhl): Likewise.
62923         * math/libm-test.inc (catan_test): Add more tests.
62924         (catanh_test): Likewise.
62925         * sysdeps/i386/fpu/libm-test-ulps: Update.
62926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62927
62928 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
62929
62930         * benchtests/Makefile: Mention files in which fast and slow
62931         paths of math functions are implemented.
62932
62933 2013-04-23  Roland McGrath  <roland@hack.frob.com>
62934
62935         * sysdeps/posix/timespec_get.c: New file.
62936
62937 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62938
62939         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
62940         POWER.
62941         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
62942         for POWER.
62943         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
62944         powerpc/power5/fpu folders.
62945         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
62946         * benchtests/Makefile: Add modf testcase.
62947         * benchtests/bench-modf.c: New file: Benchmark test for mo
62948
62949 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
62950
62951         [BZ #14888]
62952         * time/Makefile (tests): Add tst-strptime-whitespace.
62953         * time/strptime_l.c (get_number): Use ISSPACE.
62954         (__strptime_internal): Likewise.
62955         * time/tst-strptime-whitespace.c: New test case.
62956
62957 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
62958
62959         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
62960         member.
62961         (_nss_files_init): Set it here.
62962
62963 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
62964
62965         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
62966         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
62967         unsigned.
62968
62969 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
62970
62971         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
62972
62973 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
62974
62975         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
62976         size just once.
62977
62978 2013-04-21  David S. Miller  <davem@davemloft.net>
62979
62980         * po/ru.po: Update Russion translation from translation project.
62981
62982 2013-04-17  Adam Conrad  <adconrad@0c3.net>
62983
62984         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
62985         and setfsgid.
62986
62987 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
62988
62989         * configure.in: Remove i386 configure warning. Remove i386 case.
62990         * configure: Regenerate.
62991         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
62992         Add example to error message.
62993         * sysdeps/i386/configure: Regenerate.
62994
62995 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
62996
62997         * benchtests/Makefile (bench): Add cos, tan, slowcos and
62998         slowtan.
62999         * benchtests/cos-inputs: New file.
63000         * benchtests/slowcos-inputs: New file.
63001         * benchtests/slowcos.c: New file.
63002         * benchtests/slowtan-inputs: New file.
63003         * benchtests/slowtan.c: New file.
63004         * benchtests/tan-inputs: New file.
63005
63006 2013-04-16  Roland McGrath  <roland@hack.frob.com>
63007
63008         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
63009         considered kosher.
63010
63011 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
63012
63013         * benchtests/Makefile: Include cppflags-iterator.mk to add
63014         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
63015
63016         * Makefile.in (bench-clean): New target.
63017         * benchtests/Makefile (bench-clean): Likewise.
63018
63019 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
63020
63021         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
63022
63023 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
63024
63025         * stdio-common/tstdiomisc.c: Fix coding-style violation.
63026
63027 2013-04-15  Andreas Schwab  <schwab@suse.de>
63028
63029         * nscd/grpcache.c (cache_addgr): Properly check for short write.
63030         * nscd/initgrcache.c (addinitgroupsX): Likewise.
63031         * nscd/pwdcache.c (cache_addpw): Likewise.
63032         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
63033         more than recsize.
63034
63035 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63036
63037         * benchtests/Makefile (bench): Write all output to
63038         bench-out.tmp together.
63039
63040 2013-04-15  Andreas Schwab  <schwab@suse.de>
63041
63042         * nscd/nscd.c (main): Don't fork again after closing files.
63043
63044 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63045
63046         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
63047
63048         * benchtests/Rules (bench-deps): Collect dependencies into a
63049         single variable.  Add Makefile to dependencies.
63050         ($(objpfx)bench-%.c): Depend on bench-deps.
63051
63052 2013-04-12  Roland McGrath  <roland@hack.frob.com>
63053             Xavier Roche  <roche+kml2@exalead.com>
63054
63055         [BZ #15361]
63056         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
63057         just that it's a file descriptor.
63058         * manual/llio.texi (Synchronizing AIO Operations): Update description
63059         for EBADF error from aio_fsync.
63060
63061 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
63062
63063         * Rules (bench): Move target definition...
63064         * benchtests/Makefile: ... here.
63065
63066 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
63067
63068         * math/libm-test.inc (cos_test): Fix PI/2 test.
63069         (sincos_test): Likewise.
63070         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
63071         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
63072
63073 2013-04-11  Andreas Schwab  <schwab@suse.de>
63074
63075         [BZ #13988]
63076         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
63077         accept exponent character only when digits were seen.
63078         * stdio-common/Makefile (tests): Add bug26.
63079         * stdio-common/bug26.c: New file.
63080
63081         [BZ #14293]
63082         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
63083         non-freeable.
63084
63085 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
63086
63087         * Makeconfig (rtld-prefix): Define built linker prefix.
63088         * Rules (run-bench): Use it.
63089         * math/Makefile (run-regen-ulps): Likewise.
63090
63091         * Rules (bench): Remove eval.
63092
63093 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
63094             Roland McGrath  <roland@hack.frob.com>
63095             Ondrej Bilka  <neleai@seznam.cz>
63096
63097         [BZ #15346]
63098         * time/getdate.c: Include ctype.h and alloca.h.
63099         (__getdate_r): Trim leading and trailing spaces of input.
63100         * time/tst-getdate.c (tests): Add tests with leading and
63101         trailing spaces.
63102
63103 2013-04-08  Roland McGrath  <roland@hack.frob.com>
63104
63105         [BZ #14280]
63106         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
63107         when computing value.
63108
63109 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63110
63111         * math/README.libm-test (How can I generate "libm-test-ulps"?):
63112         Use testrun.sh to run libm tests.
63113
63114         [BZ #15309]
63115         * elf/dl-open.c (dl_open_worker): memset all of seen array.
63116
63117 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
63118
63119         [BZ #15264]
63120         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
63121
63122 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63123
63124         * Makefile.in (regen-ulps): New target.
63125         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
63126         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
63127         [ifneq (no,$(PERL)] (regen-ulps): New target.
63128         [ifeq (no,$(PERL)] (regen-ulps): New target.
63129         * math/libm-test.inc (ulps_file_name): Define.
63130         (output_dir): New variable.
63131         (options): Add "output-dir" option.
63132         (parse_opt): Handle 'o' case.
63133         (main): If output_dir is non-NULL use it as a prefix
63134         otherwise use "".
63135         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
63136
63137 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63138
63139         [BZ #10060, #10062]
63140         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
63141         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
63142         fail configure if __sync_val_compare_and_swap is not inlined.
63143         * sysdeps/i386/configure: Regenerate.
63144         * configure.in: Build for i686 when configured for i386.
63145         * configure: Regenerate.
63146         * README: Remove i386 reference.
63147
63148 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63149
63150         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
63151         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63152
63153 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
63154
63155         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
63156         (lmsnanval): New variables.
63157         (F): Add conversion tests.
63158         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
63159         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
63160
63161         * stdio-common/tstdiomisc.c (F): Properly collect individual
63162         tests' results.
63163
63164         [BZ #14686, #15336]
63165         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
63166         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
63167         Instead, use input NaN values or generate a qNaN by arithmetic
63168         operation.  Also fix bugs to comply with the standard.
63169         * math/libm-test.inc (remainder_test): Add more tests.
63170
63171         [BZ #15335, #15342]
63172         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
63173         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
63174         input NaN values or generate a qNaN by arithmetic operation.
63175
63176         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
63177         unreachable code.
63178
63179         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
63180         definitions.
63181
63182 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
63183
63184         [BZ #14478]
63185         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
63186         underflowed result.
63187         * math/s_cexpf.c (__cexpf): Likewise.
63188         * math/s_cexpl.c (__cexpl): Likewise.
63189         * math/libm-test.inc (cexp_test): Add more tests.
63190
63191 2013-04-03  Andreas Schwab  <schwab@suse.de>
63192
63193         [BZ #15330]
63194         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
63195         order arrays from heap if bigger than alloca cutoff.
63196
63197 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
63198
63199         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
63200         (SNAN_TESTS_double): Refer to GCC PR56831.
63201         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
63202         GCC PR56828.
63203
63204 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
63205
63206         * Rules (bench): Move bench.out after the run is complete.
63207
63208         * Rules (bench): Echo currently running benchmark.
63209
63210         * benchtests/Makefile (bench): Add atan and slowatan.
63211         * benchtests/atan-inputs: New file.
63212         * benchtests/slowatan-inputs: New file.
63213         * benchtests/slowatan.c: New file.
63214
63215         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
63216         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
63217         its value.
63218
63219         [BZ #15305]
63220         * sysdeps/unix/sysv/linux/kernel-features.h
63221         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
63222         __ASSUME_XFS_RESTRICTED_CHOWN.
63223         * sysdeps/unix/sysv/linux/pathconf.c
63224         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
63225         Save and restore errno.
63226
63227 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
63228
63229         [BZ #15327]
63230         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
63231         arguments using __kernel_casinh.
63232         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
63233         arguments using __kernel_casinhf.
63234         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
63235         arguments using __kernel_casinhl.
63236         * math/libm-test.inc (cacosh_test): Add more tests.
63237         * sysdeps/i386/fpu/libm-test-ulps: Update.
63238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63239
63240 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
63241
63242         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
63243         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
63244
63245         * bench/Makefile (bench): Add sin and slowsin.
63246         * benchtests/sin-inputs: New file.
63247         * benchtests/slowsin-inputs: New file.
63248         * benchtests/slowsin.c: New file.
63249
63250         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
63251         (bench): Add slowexp and slowpow.
63252         (exp-ITER): Increase iterations.
63253         (pow-ITER): Likewise.
63254         * benchtests/exp-inputs: Change input.
63255         * benchtests/pow-inputs: Likewise.
63256         * benchtests/slowexp-inputs: New file.
63257         * benchtests/slowexp.c: New file.
63258         * benchtests/slowpow-inputs: New file.
63259         * benchtests/slowpow.c: New file.
63260
63261 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63262
63263         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
63264         instructions.
63265         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
63266         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
63267         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
63268         * benchtests/Makefile: Add rint benchtest.
63269         * benchtests/rint-inputs: Input for rint benchtest.
63270
63271 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
63272
63273         * Versions.def (libm): Add GLIBC_2.18.
63274         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
63275         hidden libm prototypes.
63276         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
63277         * math/Makefile (libm-calls): Add s_issignaling.
63278         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
63279         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
63280         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
63281         declaration.
63282         * math/math.h [__USE_GNU] (issignaling): New macro.
63283         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
63284         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
63285         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
63286         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
63287         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
63288         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
63289         * manual/arith.texi (issignaling): New section.
63290         * manual/libm-err-tab.pl (@all_functions): Update comment.
63291         * math/gen-libm-test.pl (parse_args): Apply special handling for
63292         issignaling.
63293         * math/libm-test.inc (print_float, issignaling_test): New
63294         functions.
63295         (check_float_internal): Add issignaling checks.
63296         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
63297         default definition.
63298         * sysdeps/powerpc/math-tests.h: New file.
63299         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
63300         tests.
63301         * math/test-snan.c (TEST_FUNC): Likewise.
63302
63303 2013-03-30  David S. Miller  <davem@davemloft.net>
63304
63305         * po/de.po: Update from translation team.
63306
63307 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
63308
63309         [BZ #10357]
63310         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63311         imaginary part less than 1.0 and real part less than 0.5
63312         specially.
63313         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63314         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63315         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
63316         (cacos_test): Add more tests.
63317         (casin_test): Likewise.
63318         (casinh_test): Likewise.
63319         * sysdeps/i386/fpu/libm-test-ulps: Update.
63320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63321
63322 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63323
63324         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
63325         ONE with its value.
63326
63327         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
63328         (__pow_mp): Replace ONE and MONE with their values.
63329         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63330         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
63331         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63332         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
63333         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63334         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63335
63336         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
63337
63338         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
63339         (__pow_mp): Replace ZERO and MZERO with their values.
63340         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63341         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63342         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63343         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
63344         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63345         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
63346         (__sqr): Likewise.
63347
63348         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
63349
63350         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
63351
63352 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63353
63354         * include/stdlib.h [!SHARED] (__call_tls_dtors):
63355         Declare with __attribute__ ((weak)).
63356         * stdlib/exit.c (__libc_atexit) [!SHARED]:
63357         Call __call_tls_dtors only if it's not NULL.
63358
63359 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63360
63361         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
63362         didn't do it already, then set _dl_phdr and _dl_phnum based on the
63363         magic __ehdr_start linker symbol if it's defined.
63364         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
63365         them up here if it was already done.
63366
63367         * elf/dl-support.c (_dl_phdr): Make pointer to const.
63368         (_dl_aux_init): Use const in cast when setting it.
63369         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
63370         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
63371         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
63372
63373         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
63374         Declare them here.
63375         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
63376         * csu/libc-tls.c: Nor here.
63377         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
63378
63379         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
63380         (__libc_message): Never call vsyslog.
63381
63382 2013-03-28  Alan Modra  <amodra@gmail.com>
63383
63384         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
63385         Define as empty.
63386         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
63387         Likewise.
63388
63389 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63390
63391         [BZ #15214]
63392         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
63393         underflow.
63394         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63395
63396 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63397
63398         [BZ #15304]
63399         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
63400         Don't add gid passed as argument.
63401
63402         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
63403
63404 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
63405
63406         [BZ #15307]
63407         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63408         imaginary part between 1.0 and 1.5 and real part less than 0.5
63409         specially.
63410         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63411         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63412         * math/libm-test.inc (cacos_test): Add more tests.
63413         (casin_test): Likewise.
63414         (casinh_test): Likewise.
63415         * sysdeps/i386/fpu/libm-test-ulps: Update.
63416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63417
63418 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63419
63420         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
63421         constants.
63422         (norm): Likewise.
63423         (denorm): Likewise.
63424         (__dbl_mp): Likewise.
63425         (add_magnitudes): Likewise.
63426         (sub_magnitudes): Likewise.
63427         (__add): Likewise.
63428         (__sub): Likewise.
63429         (__mul): Likewise.
63430         (__sqr): Likewise.
63431         (__inv): Likewise.
63432         (__dvd): Likewise.
63433
63434         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
63435         commented code.
63436         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
63437         (__dubcos): Likewise.
63438         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
63439         (__ieee754_acos): Likewise.
63440         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63441         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
63442         (__exp1): Likewise.
63443         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63444         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
63445         (log1): Likewise.
63446         (my_log2): Likewise.
63447         (checkint): Likewise.
63448         * sysdeps/ieee754/dbl-64/e_remainder.c
63449         (__ieee754_remainder): Likewise.
63450         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63451         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
63452         (bsloww): Likewise.
63453         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63454
63455         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63456         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
63457         MANTISSA_STORE_T to store computations on mantissa.  Use
63458         macros for rounding and division.
63459         (denorm): Likewise.
63460         (__dbl_mp): Likewise.
63461         (add_magnitudes): Likewise.
63462         (sub_magnitudes): Likewise.
63463         (__mul): Likewise.
63464         (__sqr): Likewise.
63465         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63466         powers of two in terms of TWOPOW macro.
63467         (mp_no): Make type of mantissa as MANTISSA_T.
63468         [!RADIXI]: Define RADIXI.
63469         [!TWO52]: Define TWO52.
63470         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63471
63472 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63473
63474         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
63475         llroundl symbol when building for PPC32.
63476
63477 2013-03-24  Mark H Weaver  <mhw@netris.org>
63478
63479         * manual/arith.texi (Normalization Functions): Fix prototypes for
63480         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
63481
63482 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63483
63484         [BZ #13889]
63485         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
63486         high value to check if expl overflow.
63487         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
63488         to check for underflow and overflow.
63489         * math/libm-test.inc: Add exp test.
63490
63491 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
63492
63493         [BZ #11120]
63494         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
63495         with NOT_IN_libc.
63496
63497 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63498
63499         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
63500         symbol.
63501
63502 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
63503
63504         * math/gen-libm-test.pl (parse_args, special_functions): Properly
63505         wrap blocks consisting of several statements.
63506
63507         * sysdeps/generic/math-tests.h: New file.
63508         * sysdeps/i386/fpu/math-tests.h: Likewise.
63509         * math/test-snan.c: Include it.
63510         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
63511
63512 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63513
63514         [BZ #15285]
63515         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
63516         (__ieee754_j0l): Do not improve calculations using cos of twice
63517         input for inputs above LDBL_MAX / 2.0L.
63518         (__ieee754_y0l): Likewise.
63519         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
63520         (__ieee754_j1l): Do not improve calculations using cos of twice
63521         input for inputs above LDBL_MAX / 2.0L.
63522         (__ieee754_y1l): Likewise.
63523         * math/libm-test.inc (j0_test): Add another test.
63524         (j1_test): Likewise.
63525         (y0_test): Likewise.
63526         (y1_test): Likewise.
63527         * sysdeps/i386/fpu/libm-test-ulps: Update.
63528
63529 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63530
63531         * Rules ($(objpfx)bench-%.c): Include code from a C source
63532         file.
63533
63534 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63535
63536         [BZ #15287]
63537         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63538         imaginary part 1.0 and real part less than 0.5 specially.
63539         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63540         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63541         * math/libm-test.inc (cacos_test): Add more tests.
63542         (casin_test): Likewise.
63543         (casinh_test): Likewise.
63544         * sysdeps/i386/fpu/libm-test-ulps: Update.
63545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63546
63547 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63548
63549         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
63550         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
63551
63552 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
63553
63554         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
63555         * config.make.in (config-cflags-sse4): Remove variable.
63556         (config-cflags-avx): Likewise.
63557         (config-cflags-sse2avx): Likewise.
63558         (config-cflags-novzeroupper): Likewise.
63559         (config-asflags-i686): Likewise.
63560         (have-mfma4): Likewise.
63561         (have-as-vis3): Likewise.
63562         (MIG): Likewise.
63563         * configure.in (MIG): Do not AC_SUBST.
63564         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
63565         (libc_cv_cc_sse4): Do not AC_SUBST.
63566         (libc_cv_cc_avx): Likewise.
63567         (libc_cv_cc_sse2avx): Likewise.
63568         (libc_cv_cc_novzeroupper): Likewise.
63569         (libc_cv_cc_fma4): Likewise.
63570         (libc_cv_as_i686): Likewise.
63571         (libc_cv_sparc_as_vis3): Likewise.
63572         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
63573         LIBC_CONFIG_VAR.
63574         (config-asflags-i686): Likewise.
63575         (config-cflags-avx): Likewise.
63576         (config-cflags-sse2avx): Likewise.
63577         (have-mfma4): Likewise.
63578         (config-cflags-novzeroupper): Likewise.
63579         * sysdeps/mach/configure.in (MIG): Likewise.
63580         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
63581         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
63582         LIBC_CONFIG_VAR.
63583         (config-cflags-avx): Likewise.
63584         (config-cflags-sse2avx): Likewise.
63585         (have-mfma4): Likewise.
63586         (config-cflags-novzeroupper): Likewise.
63587         * configure: Regenerated.
63588         * sysdeps/i386/configure: Likewise.
63589         * sysdeps/mach/configure: Likewise.
63590         * sysdeps/sparc/configure: Likewise.
63591         * sysdeps/x86_64/configure: Likewise.
63592
63593 2013-03-20  Roland McGrath  <roland@hack.frob.com>
63594
63595         [BZ #14812]
63596         * locale/programs/localedef.c (options): Put N_ translation marker
63597         on argument names, not just descriptions.
63598
63599 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
63600
63601         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
63602
63603 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
63604
63605         [BZ #14176]
63606         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
63607
63608 2013-03-19  Roland McGrath  <roland@hack.frob.com>
63609
63610         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
63611         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
63612         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
63613         [!BEFORE_ABORT] (before_abort): New function.
63614         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
63615         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
63616         (writev_for_fatal): New function.
63617         (WRITEV_FOR_FATAL): New macro; call that.
63618         (backtrace_and_maps): New function.
63619         (BEFORE_ABORT): New macro; call that.
63620         (struct str_list): Type removed.
63621         (__libc_message, __libc_fatal): Functions removed.
63622         Include <sysdeps/posix/libc_fatal.c> instead.
63623
63624 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
63625
63626         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
63627         constants.
63628         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
63629         double constants.
63630
63631 2013-03-19  Andreas Schwab  <schwab@suse.de>
63632
63633         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
63634         * sysdeps/gnu/configure: Regenerate.
63635
63636         * configure.in: Substitute libc_cv_rtlddir.
63637         * configure: Regenerate.
63638         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
63639         * Makeconfig (rtlddir, inst_rtlddir): New variables.
63640         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
63641         * elf/Makefile (install-others, CFLAGS-interp.c)
63642         (ldso_install, common-ldd-rewrite): Likewise.
63643         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
63644         $(inst_slibdir)/$(rtld-installed-name).
63645         * scripts/rellns-sh: Add -p option.
63646         * Makerules (make-shlib-link): Use rellns-sh to get relative name
63647         for source.
63648
63649 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
63650
63651         * manual/nptl.texi: Renamed to ...
63652         * manual/threads.texi: ... this.
63653         * manual/Makefile (chapters): Update.
63654
63655 2013-03-18  Roland McGrath  <roland@hack.frob.com>
63656
63657         [BZ #14812]
63658         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
63659         on argument names, not just descriptions.
63660         * malloc/memusagestat.c (options): Likewise.
63661         * nss/getent.c (options): Likewise.
63662
63663 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
63664
63665         [BZ #14812]
63666         * iconv/iconv_prog.c (options): Put N_ translation marker
63667         on argument names, not just descriptions.
63668         * iconv/iconvconfig.c (options): Likewise.
63669
63670 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
63671
63672         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
63673         implementation which is faster on all x86_64 architectures.
63674         Tested on AMD, Intel Nehalem, SNB, IVB.
63675         * sysdeps/x86_64/strnlen.S: Likewise.
63676
63677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
63678         Remove all multiarch strlen and strnlen versions.
63679         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
63680         Remove strlen and strnlen related parts.
63681
63682         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
63683         Inline strlen part.
63684         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
63685
63686         * sysdeps/x86_64/multiarch/strlen.S: Remove.
63687         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
63688         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
63689         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
63690         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63691         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
63692
63693 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
63694
63695         * manual/memory.texi (Malloc Tunable Parameters):
63696         Sort parameters alphabetically. Add comments for missing entries.
63697
63698 2013-03-17  David S. Miller  <davem@davemloft.net>
63699
63700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63701
63702 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
63703
63704         [BZ #15283]
63705         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
63706         for arguments at most half maximum finite value.
63707         * math/libm-test.inc (j0_test): Add more tests.
63708         (j1_test): Likewise.
63709         (y0_test): Likewise.
63710         (y1_test): Likewise.
63711         * sysdeps/i386/fpu/libm-test-ulps: Update.
63712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63713
63714         [BZ #14155]
63715         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
63716         1 / x and functions P and Q for arguments above 0x1p256L.
63717         (__ieee754_y0l): Likewise.
63718         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
63719         (__ieee754_y1l): Likewise.
63720         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
63721         (j1_test): Likewise.
63722         (y0_test): Likewise.
63723         (y1_test): Likewise.
63724
63725 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
63726
63727         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
63728         variable.
63729
63730 2013-03-15  Roland McGrath  <roland@hack.frob.com>
63731
63732         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
63733         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
63734         zero since it's initialized to EXEC_PAGESIZE.
63735
63736         * sysdeps/unix/sysv/linux/ldsodefs.h
63737         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
63738         * sysdeps/generic/ldsodefs.h: ... here.
63739
63740 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
63741
63742         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
63743
63744         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
63745         math/test-snan.c.
63746         * math/test-snan.c: Renamed from
63747         sysdeps/powerpc/fpu/test-powerpc-snan.c.
63748         * math/Makefile (tests): Add test-snan.
63749         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
63750         test-powerpc-snan.
63751
63752         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
63753         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
63754         functions.
63755         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
63756         __builtin_nan family of functions.
63757         * math/libm-test.inc (initialize): Initialize qnan_value with
63758         __builtin_nan family of functions.
63759         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
63760         Remove variables.
63761         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
63762         Remove functions.
63763         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
63764         storage class.  Initialize qNaN_var and sNaN_var with
63765         __builtin_nan and __builtin_nans families of functions,
63766         respectively.
63767
63768         * math/libm-test.inc (acosh_test): Also test with qNaN input.
63769         (sqrt_test): Remove duplicate test with qNaN input.
63770         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
63771         (round_test, signbit_test, significand_test): Note missing +/-Inf
63772         as well as qNaN tests.
63773
63774         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
63775         qNaN_var.  Fix a few strings, too.
63776         * math/libm-test.inc (nan_value): Rename to qnan_value.
63777         * math/gen-libm-test.pl (%beautify): Adjust to that.
63778         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
63779         * math/test-misc.c (main): Likewise.
63780         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
63781         to __qnan_bytes, and __qnan_union, respectively.
63782         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
63783         Likewise.
63784         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
63785         and lqnanval, respectively.
63786         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
63787         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
63788         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
63789         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
63790
63791         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
63792         * math/test-misc.c (main) [__x86_64__]: Enable test for long
63793         doubles.
63794
63795         * math/test-misc.c (main): Fix copy'n'pastos.
63796         * misc/tst-efgcvt.c (special): Likewise.
63797
63798         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
63799         Remove declarations.
63800
63801 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63802
63803         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
63804         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
63805         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
63806         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
63807
63808 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63809
63810         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
63811         macro to return vdso values correctly in IFUNC implementations.
63812         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
63813         Optimization by using IFUNC.
63814
63815 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63816             Richard Henderson  <rth@redhat.com>
63817             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63818
63819         * Makefile.in (bench): New target.
63820         * NEWS: Mention the benchmark framework.
63821         * Rules (bench): Likewise.
63822         (binaries-bench): Generate binaries for functions to
63823         benchmark.
63824         * benchtests/Makefile: New makefile for benchmark tests.
63825         * benchtests/bench-skeleton.c: New skeleton file for benchmark
63826         programs.
63827         * benchtests/exp-inputs: New input file for EXP function.
63828         * benchtests/pow-inputs: New input file for POW function.
63829         * scripts/bench.pl: New script to generate source files for
63830         benchmark programs.
63831
63832 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63833
63834         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63835         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
63836         computations on mantissa.  Use macros for rounding and
63837         division.
63838         (denorm): Likewise.
63839         (__dbl_mp): Likewise.
63840         (add_magnitudes): Likewise.
63841         (sub_magnitudes): Likewise.
63842         (__mul): Likewise.
63843         (__sqr): Likewise.
63844         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63845         powers of two in terms of TWOPOW macro.
63846         (mp_no): Make type of mantissa as MANTISSA_T.
63847         [!RADIXI]: Define RADIXI.
63848         [!TWO52]: Define TWO52.
63849         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63850
63851         * manual/nptl.texi (cindex): Modify threads to pthreads.
63852
63853 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
63854
63855         * sysdeps/x86_64/preconfigure: Regenerated.
63856
63857 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
63858
63859         [BZ #14155]
63860         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
63861         0x1p28 and above.
63862         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
63863         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
63864         0x1p28 and above.
63865         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
63866         * math/libm-test.inc (j0_test): Do not allow one spurious
63867         underflow exception.
63868         (y1_test): Likewise.
63869
63870 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
63871
63872         * manual/Makefile (chapters): Add nptl.
63873         * manual/debug.texi (Debugging Support): Add link to Threads
63874         chapter.
63875         * manual/nptl.texi: New file.
63876
63877         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
63878
63879 2013-03-14  Petr Baudis  <pasky@ucw.cz>
63880
63881         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
63882         for non-NULL pointer before the memory validity test. Pointed
63883         out by Holger Brunck <holger.brunck@keymile.com>.
63884
63885 2013-03-13  Andreas Schwab  <schwab@suse.de>
63886
63887         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
63888         instead of .os.
63889
63890 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
63891
63892         * timezone/zic.c: Update from tzcode 2013b.
63893
63894 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
63895
63896         * manual/install.texi (Configuring and compiling):
63897         Mention i686 and i586.
63898         * INSTALL: Regenerate.
63899
63900 2013-03-12  Roland McGrath  <roland@hack.frob.com>
63901
63902         * sysdeps/init_array/elf-init.c: New file.
63903         * csu/elf-init.c
63904         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
63905         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
63906
63907         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
63908         __gmon_start__ as global, but as static with a .preinit_array pointer.
63909         * sysdeps/init_array/gmon-start.c: New file.  Use that.
63910         * sysdeps/init_array/crti.S: New file, empty except for comments.
63911         * sysdeps/init_array/crtn.S: Likewise.
63912
63913 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
63914
63915         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
63916         definining bcopy.
63917         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63918         Remove Prefer_SSE_for_memop.
63919         * sysdeps/x86_64/multiarch/init-arch.h: Remove
63920         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
63921         HAS_PREFER_SSE_FOR_MEMOP.
63922         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
63923         memset-x86-64.
63924         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
63925         Remove bzero, memset ifunc support.
63926         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
63927         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
63928         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63929         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63930
63931 2013-03-11  Andreas Schwab  <schwab@suse.de>
63932
63933         [BZ #15234]
63934         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
63935         by SHLIB_COMPAT.
63936         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
63937         (GLIBC_2.16): Remove pthread_atfork.
63938
63939 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
63940
63941         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
63942         (ptestcases.h): Likewise.
63943
63944 2013-03-08  Roland McGrath  <roland@hack.frob.com>
63945
63946         * Makeconfig ($(common-objpfx)config.status): Depend on
63947         sysdeps/*/preconfigure{,.in} too.
63948
63949 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
63950
63951         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
63952         (__free_hook): Use void * instead of __malloc_ptr_t.
63953         (__malloc_hook): Likewise.
63954         (__realloc_hook): Likewise.
63955         (__memalign_hook): Likewise.
63956         (__after_morecore_hook): Likewise.
63957         * malloc/arena.c (save_malloc_hook): Likewise.
63958         (save_free_hook): Likewise.
63959         * malloc/hooks.c (malloc_hook_ini): Likewise.
63960         (realloc_hook_ini): Likewise.
63961         (memalign_hook_ini): Likewise.
63962         * malloc/malloc.c (malloc_hook_ini): Likewise.
63963         (realloc_hook_ini): Likewise.
63964         (memalign_hook_ini): Likewise.
63965         (__free_hook): Likewise.
63966         (__malloc_hook): Likewise.
63967         (__realloc_hook): Likewise.
63968         (__memalign_hook): Likewise.
63969         (__libc_malloc): Likewise.
63970         (__libc_free): Likewise.
63971         (__libc_realloc): Likewise.
63972         (__libc_memalign): Likewise.
63973         (__libc_valloc): Likewise.
63974         (__libc_pvalloc): Likewise.
63975         (__libc_calloc): Likewise.
63976         (__posix_memalign): Likewise.
63977         * malloc/morecore.c (__sbrk): Likewise.
63978         (__default_morecore): Likewise.
63979
63980         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
63981
63982         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
63983         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
63984         __malloc_ptrdiff_t.
63985
63986         * malloc/malloc.h (__malloc_size_t): Remove macro.
63987         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
63988         __malloc_size_t.
63989         (old_memalign_hook): Likewise.
63990         (old_realloc_hook): Likewise.
63991         (struct hdr): Likewise.
63992         (flood): Likewise.
63993         (mallochook): Likewise.
63994         (memalignhook): Likewise.
63995         (reallochook): Likewise.
63996         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
63997         (tr_old_realloc_hook): Likewise.
63998         (tr_old_memalign_hook): Likewise.
63999         (tr_mallochook): Likewise.
64000         (tr_reallochook): Likewise.
64001         (tr_memalignhook): Likewise.
64002
64003 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64004
64005         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
64006         default_ldbl_pack and using as default implementation.
64007         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
64008         implementation.
64009         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
64010         redundant definition.
64011         (ldbl_insert_mantissa): Likewise.
64012         (ldbl_canonicalize): Likewise.
64013         (ldbl_nearbyint): Likewise.
64014         (ldbl_pack): Rename to ldbl_pack_ppc.
64015         (ldbl_unpack): Rename to ldbl_unpack_ppc.
64016         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
64017         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
64018
64019 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
64020
64021         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
64022         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
64023         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
64024         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
64025         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
64026         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
64027         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
64028         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
64029
64030 2013-03-07  Andreas Jaeger  <aj@suse.de>
64031
64032         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
64033         bits/mman-linux.h.
64034
64035 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64036
64037         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
64038         Include mpa.h and declare __MPEXP.
64039         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
64040         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
64041         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
64042         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
64043         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
64044         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
64045         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
64046
64047         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
64048         (__slowpow): Use long double EXPL and LOGL functions to
64049         compute POW.
64050         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
64051         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
64052         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
64053         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
64054         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
64055         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
64056
64057         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
64058         intermediate variable to calculate exponent.
64059         (__sqr): Likewise.
64060         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64061         Likewise.
64062         (__sqr): Likewise.
64063
64064         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
64065         [!NO__SQR]: Define __sqr.
64066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
64067         and NO__SQR.  Remove all code except __mul and __sqr.  Include
64068         sysdeps/ieee754/dbl-64/mpa.c.
64069         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
64070
64071         [BZ #12723]
64072         * posix/Makefile (tests): Add tst-pathconf.
64073         * posix/tst-pathconf.c: New test case.
64074         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
64075         _PC_PIPE_BUF.
64076         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
64077
64078 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
64079
64080         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
64081
64082 2013-03-06  Andreas Jaeger  <aj@suse.de>
64083
64084         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
64085         definition via __MAP_ANONYMOUS.
64086
64087         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
64088         it's not part of Linux headers.
64089
64090         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
64091         (MAP_HUGE_MASK): Define.
64092
64093         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64094         Define.
64095         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64096         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64097         Define.
64098         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64099         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64100         Define.
64101         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64102         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
64103         Define.
64104         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64105
64106         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
64107         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
64108         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
64109         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
64110         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
64111         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
64112
64113         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
64114         Handle f2fs.
64115
64116         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
64117         Handle f2fs and efivarfs.
64118
64119         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
64120         f2fs.
64121
64122         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
64123         (EFIVARFS_MAGIC): Add.
64124         (F2FS_LINK_MAX): Add.
64125
64126 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
64127
64128         * stdio-common/vfprintf.c: Replace __builtin_expect with
64129         __glibc_unlikely.
64130
64131 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
64132
64133         [BZ #13550]
64134         * sysdeps/generic/bp-sym.h: Remove file.
64135         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
64136         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
64137         <bp-sym.h> and <bp-asm.h>.
64138         (__longjmp): Don't use BP_SYM.
64139         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
64140         and <bp-asm.h>.
64141         (memcpy): Don't use BP_SYM.
64142         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
64143         <bp-sym.h> and <bp-asm.h>.
64144         (memcpy): Don't use BP_SYM.
64145         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
64146         <bp-asm.h>.
64147         (memcpy): Don't use BP_SYM.
64148         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
64149         <bp-asm.h>.
64150         (memset): Don't use BP_SYM.
64151         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64152         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64153         (__bzero): Don't use BP_SYM.
64154         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64155         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64156         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
64157         <bp-sym.h> and <bp-asm.h>.
64158         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64159         pointers.
64160         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
64161         <bp-sym.h> and <bp-asm.h>.
64162         (memcpy): Don't use BP_SYM.
64163         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
64164         <bp-sym.h> and <bp-asm.h>.
64165         (memset): Don't use BP_SYM.
64166         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64167         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64168         (__bzero): Don't use BP_SYM.
64169         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64170         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64171         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
64172         <bp-sym.h> and <bp-asm.h>.
64173         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64174         pointers.
64175         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
64176         <bp-sym.h> and <bp-asm.h>.
64177         (memcpy): Don't use BP_SYM.
64178         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
64179         <bp-sym.h> and <bp-asm.h>.
64180         (memset): Don't use BP_SYM.
64181         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64182         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64183         (__bzero): Don't use BP_SYM.
64184         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64185         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64186         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
64187         <bp-sym.h> and <bp-asm.h>.
64188         (__memchr): Don't use BP_SYM.
64189         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
64190         <bp-sym.h> and <bp-asm.h>.
64191         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64192         pointers.
64193         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
64194         <bp-sym.h> and <bp-asm.h>.
64195         (memcpy): Don't use BP_SYM.
64196         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
64197         <bp-sym.h> and <bp-asm.h>.
64198         (__mempcpy): Don't use BP_SYM.
64199         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
64200         <bp-sym.h> and <bp-asm.h>.
64201         (__memrchr): Don't use BP_SYM.
64202         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
64203         <bp-sym.h> and <bp-asm.h>.
64204         (memset): Don't use BP_SYM.
64205         (__bzero): Likewise.
64206         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
64207         <bp-sym.h> and <bp-asm.h>.
64208         (__rawmemchr): Don't use BP_SYM.
64209         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
64210         <bp-sym.h> and <bp-asm.h>.
64211         (__STRCMP): Don't use BP_SYM.
64212         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
64213         <bp-sym.h> and <bp-asm.h>.
64214         (strchr): Don't use BP_SYM.
64215         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
64216         <bp-sym.h> and <bp-asm.h>.
64217         (__strchrnul): Don't use BP_SYM.
64218         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
64219         <bp-sym.h> and <bp-asm.h>.
64220         (strlen): Don't use BP_SYM.
64221         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
64222         <bp-sym.h> and <bp-asm.h>.
64223         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64224         pointers.
64225         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
64226         <bp-sym.h> and <bp-asm.h>.
64227         (__strnlen): Don't use BP_SYM.
64228         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
64229         <bp-sym.h> and <bp-asm.h>.
64230         (__GI__setjmp): Don't use BP_SYM.
64231         (_setjmp): Likewise.
64232         (__sigsetjmp): Likewise.
64233         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
64234         (L(start_addresses)): Don't use BP_SYM.
64235         (_start): Likewise.
64236         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
64237         <bp-asm.h>.
64238         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
64239         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
64240         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64241         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64242         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
64243         <bp-asm.h>.
64244         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
64245         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
64246         about bounded pointers.
64247         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64248         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64249         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
64250         <bp-asm.h>.
64251         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64252         about bounded pointers.  Remove GKM FIXME comments.
64253         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64254         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
64255         <bp-asm.h>.
64256         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
64257         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
64258         Remove GKM FIXME comments.
64259         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64260         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64261         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
64262         <bp-asm.h>.
64263         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64264         about bounded pointers.  Remove GKM FIXME comment.
64265         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
64266         and <bp-asm.h>.
64267         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64268         pointers.
64269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
64270         <bp-sym.h> and <bp-asm.h>.
64271         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
64273         <bp-sym.h> and <bp-asm.h>.
64274         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64275         comment.
64276
64277 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
64278
64279         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
64280         call free(NULL).
64281
64282 2013-03-05  David S. Miller  <davem@davemloft.net>
64283
64284         * po/es.po: Update from translation team.
64285
64286 2013-03-05  Andreas Jaeger  <aj@suse.de>
64287
64288         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
64289         <bits/mman-linux.h>.
64290         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64291         is fine.
64292         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
64293         <bits/mman-linux.h> to end of file.
64294         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64295         is fine.
64296         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
64297         <bits/mman-linux.h> to end of file.
64298         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64299         is fine.
64300         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
64301         <bits/mman-linux.h> to end of file.
64302
64303         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
64304         (MCL_CURRENT, MCL_FUTURE): Define here.
64305
64306 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64307
64308         [BZ #15232]
64309         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
64310         attribute_hidden.
64311         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64312
64313 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64314
64315         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
64316         fourth parameter needed for rt_sigprocmask syscall.
64317         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
64318         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
64319         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
64320         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
64321         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
64322         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
64323
64324 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
64325
64326         [BZ #13550]
64327         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
64328         comment about bounded pointers.
64329         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
64330         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
64331
64332 2013-03-04  Andreas Jaeger  <aj@suse.de>
64333
64334         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
64335         common definitions.
64336
64337         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
64338         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
64339         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
64340         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
64341         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
64342         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
64343
64344 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64345
64346         [BZ #15055]
64347         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
64348         __ieee754_sqrl instead of __sqrl.
64349
64350 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
64351
64352         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
64353         * sysdeps/powerpc/fpu_control.h: ... here.
64354         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
64355         * sysdeps/powerpc/bits/fenvinline.h: ... here.
64356         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
64357         * sysdeps/powerpc/bits/mathinline.h: ... here.
64358
64359 2013-03-01  Roland McGrath  <roland@hack.frob.com>
64360
64361         * elf/dl-hwcaps.c (_dl_important_hwcaps):
64362         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
64363         to just [NEED_DL_SYSINFO_DSO].
64364         * elf/dl-support.c: Likewise.
64365         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
64366         * elf/rtld.c (dl_main): Likewise.
64367         * elf/setup-vdso.h (setup_vdso): Likewise.
64368         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
64369         * sysdeps/unix/sysv/linux/dl-sysdep.c
64370         (_dl_discover_osversion): Likewise.
64371
64372 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
64373
64374         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
64375         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64376
64377 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
64378
64379         * NEWS: Mention libm performance improvements and non-x86 PI
64380         futex support.
64381
64382         * csu/libc-start.c (__pthread_initialize_minimal): Change
64383         function arguments.
64384         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64385
64386 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
64387
64388         [BZ #13550]
64389         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
64390         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
64391         <bp-sym.h> and <bp-asm.h>.
64392         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64393         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
64394         and <bp-asm.h>.
64395         (memcpy): Don't use BP_SYM.
64396         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
64397         <bp-asm.h>.
64398         (__mpn_add_n): Don't use BP_SYM.
64399         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
64400         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
64401         and <bp-asm.h>.
64402         (__mpn_addmul_1): Don't use BP_SYM.
64403         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64404         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
64405         <bp-sym.h>.
64406         (_setjmp): Don't use BP_SYM.
64407         (__novmx_setjmp): Likewise.
64408         (__GI__setjmp): Likewise.
64409         (__vmx_setjmp): Likewise.
64410         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
64411         <bp-sym.h>.
64412         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
64413         (__bzero): Don't use BP_SYM.
64414         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64415         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64416         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
64417         <bp-sym.h> and <bp-asm.h>.
64418         (memcpy): Don't use BP_SYM.
64419         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
64420         <bp-sym.h> and <bp-asm.h>.
64421         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64422         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
64423         <bp-sym.h> and <bp-asm.h>.
64424         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64425         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
64426         <bp-asm.h>.
64427         (__mpn_lshift): Don't use BP_SYM.
64428         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64429         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
64430         <bp-asm.h>.
64431         (memset): Don't use BP_SYM.
64432         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64433         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64434         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
64435         <bp-asm.h>.
64436         (__mpn_mul_1): Don't use BP_SYM.
64437         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64438         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
64439         <bp-sym.h> and <bp-asm.h>.
64440         (memcmp): Don't use BP_SYM.
64441         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
64442         <bp-sym.h> and <bp-asm.h>.
64443         (memcpy): Don't use BP_SYM.
64444         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
64445         <bp-sym.h> and <bp-asm.h>.
64446         (memset): Don't use BP_SYM.
64447         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
64448         <bp-sym.h> and <bp-asm.h>.
64449         (strncmp): Don't use BP_SYM.
64450         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
64451         <bp-sym.h> and <bp-asm.h>.
64452         (memcpy): Don't use BP_SYM.
64453         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
64454         <bp-sym.h> and <bp-asm.h>.
64455         (memset): Don't use BP_SYM.
64456         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
64457         <bp-sym.h> and <bp-asm.h>.
64458         (__memchr): Don't use BP_SYM.
64459         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
64460         <bp-sym.h> and <bp-asm.h>.
64461         (memcmp): Don't use BP_SYM.
64462         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
64463         <bp-sym.h> and <bp-asm.h>.
64464         (memcpy): Don't use BP_SYM.
64465         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
64466         <bp-sym.h> and <bp-asm.h>.
64467         (__mempcpy): Don't use BP_SYM.
64468         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
64469         <bp-sym.h> and <bp-asm.h>.
64470         (__memrchr): Don't use BP_SYM.
64471         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
64472         <bp-sym.h> and <bp-asm.h>.
64473         (memset): Don't use BP_SYM.
64474         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
64475         <bp-sym.h> and <bp-asm.h>.
64476         (__rawmemchr): Don't use BP_SYM.
64477         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
64478         <bp-sym.h> and <bp-asm.h>.
64479         (__STRCMP): Don't use BP_SYM.
64480         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
64481         <bp-sym.h> and <bp-asm.h>.
64482         (strchr): Don't use BP_SYM.
64483         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
64484         <bp-sym.h> and <bp-asm.h>.
64485         (__strchrnul): Don't use BP_SYM.
64486         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
64487         <bp-sym.h> and <bp-asm.h>.
64488         (strlen): Don't use BP_SYM.
64489         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
64490         <bp-sym.h> and <bp-asm.h>.
64491         (strncmp): Don't use BP_SYM.
64492         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
64493         <bp-sym.h> and <bp-asm.h>.
64494         (__strnlen): Don't use BP_SYM.
64495         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
64496         <bp-asm.h>.
64497         (__mpn_rshift): Don't use BP_SYM.
64498         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64499         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
64500         <bp-sym.h> and <bp-asm.h>.
64501         (__sigsetjmp): Don't use BP_SYM.
64502         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
64503         (L(start_addresses)): Don't use BP_SYM.
64504         (_start): Likewise.
64505         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
64506         <bp-asm.h>.
64507         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
64508         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64509         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64510         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
64511         <bp-asm.h>.
64512         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
64513         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64514         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64515         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
64516         <bp-asm.h>.
64517         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64518         comments.
64519         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64520         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
64521         <bp-asm.h>.
64522         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
64523         FIXME comments.
64524         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64525         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64526         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
64527         <bp-asm.h>.
64528         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64529         comment.
64530         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
64531         and <bp-asm.h>.
64532         (strncmp): Don't use BP_SYM,
64533         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
64534         <bp-asm.h>.
64535         (__mpn_sub_n): Don't use BP_SYM.
64536         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64537         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
64538         and <bp-asm.h>.
64539         (__mpn_submul_1): Don't use BP_SYM.
64540         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
64542         <bp-sym.h> and <bp-asm.h>.
64543         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
64545         <bp-sym.h> and <bp-asm.h>.
64546         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64547         comment.
64548
64549 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64550
64551         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
64552         Use ZK to minimize writes to Z.
64553         (sub_magnitudes): Simplify code a bit.
64554         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
64555         Use ZK to minimize writes to Z.
64556         (sub_magnitudes): Simplify code a bit.
64557
64558 2013-02-27  Roland McGrath  <roland@hack.frob.com>
64559
64560         * csu/gmon-start.c: Add special exception to license text.
64561
64562 2013-02-27  Richard Henderson  <rth@redhat.com>
64563
64564         * scripts/config.guess: Update from config.git.
64565         * scripts/config.sub: Likewise.
64566
64567 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
64568
64569         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
64570
64571         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
64572
64573         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
64574
64575         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
64576
64577         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
64578
64579 2013-02-26  Roland McGrath  <roland@hack.frob.com>
64580
64581         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
64582         [$(build-shared = yes].
64583
64584 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64585
64586         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
64587         (__mul): Reduce iterations for calculating mantissa.
64588
64589         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
64590         MPTWO.
64591         (__mpranred): Likewise.
64592
64593         [BZ #15160]
64594         * malloc/memusagestat.c (main): Draw graphs for heap and stack
64595         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
64596
64597 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64598
64599         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
64600         Define __attribute__.
64601
64602 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64603
64604         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
64605         unused.
64606         * posix/regex_internal.h (__attribute): Remove.
64607         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
64608         (re_string_context_at): Likewise.
64609         (bitset_not): Use __attribute__ and mark function as possibly
64610         unused.
64611         (bitset_merge): Likewise.
64612         (bitset_mask): Likewise.
64613         (re_string_char_size_at): Likewise.
64614         (re_string_wchar_at): Likewise.
64615         (re_string_elem_size_at): Likewise.
64616
64617 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64618
64619         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
64620         code.
64621         (cc32): Likewise.
64622
64623         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
64624         (__acr): Likewise.
64625         (__cpy): Likewise.
64626         (norm): Likewise.
64627         (denorm): Likewise.
64628         (__dbl_mp): Likewise.
64629         (add_magnitudes): Likewise.
64630         (sub_magnitudes): Likewise.
64631         (__mul): Likewise.
64632         (__inv): Likewise.
64633
64634         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
64635         style.
64636
64637         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
64638         style.
64639
64640         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
64641         code.
64642
64643         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
64644         up changes with default code.
64645         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
64646         Likewise.
64647
64648 2013-02-24  Allan McRae  <allan@archlinux.org>
64649
64650         * manual/socket.texi (The Internet Namespace): Order menu items
64651         to match that in the file.
64652
64653         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
64654         node listing of the info page menu.
64655
64656 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
64657
64658         [BZ #13550]
64659         * sysdeps/i386/bp-asm.h: Remove file.
64660         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64661         (PARMS): Do not use macros from bp-asm.h.
64662         (S1): Likewise.
64663         (S2): Likewise.
64664         (SIZE): Likewise.
64665         (__mpn_add_n): Do not use BP_SYM
64666         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
64667         "bp-asm.h".
64668         (PARMS): Do not use macros from bp-asm.h.
64669         (S1): Likewise.
64670         (SIZE): Likewise.
64671         (__mpn_addmul_1): Do not use BP_SYM
64672         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
64673         "bp-asm.h".
64674         (PARMS): Do not use macros from bp-asm.h.
64675         (SIGMSK): Likewise.
64676         (_setjmp): Likewise.  Do not use BP_SYM.
64677         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
64678         "bp-asm.h".
64679         (PARMS): Do not use macros from bp-asm.h.
64680         (SIGMSK): Likewise.
64681         (setjmp): Likewise.  Do not use BP_SYM.
64682         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
64683         "bp-asm.h".
64684         (PARMS): Do not use macros from bp-asm.h.
64685         (__frexp): Do not use BP_SYM.
64686         (frexp): Likewise.
64687         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
64688         "bp-asm.h".
64689         (PARMS): Do not use macros from bp-asm.h.
64690         (__frexpf): Do not use BP_SYM.
64691         (frexpf): Likewise.
64692         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
64693         "bp-asm.h".
64694         (PARMS): Do not use macros from bp-asm.h.
64695         (__frexpl): Do not use BP_SYM.
64696         (frexpl): Likewise.
64697         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
64698         "bp-asm.h".
64699         (PARMS): Do not use macros from bp-asm.h.
64700         (__remquo): Do not use BP_SYM.
64701         (remquo): Likewise.
64702         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
64703         "bp-asm.h".
64704         (PARMS): Do not use macros from bp-asm.h.
64705         (__remquof): Do not use BP_SYM.
64706         (remquof): Likewise.
64707         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
64708         "bp-asm.h".
64709         (PARMS): Do not use macros from bp-asm.h.
64710         (__remquol): Do not use BP_SYM.
64711         (remquol): Likewise.
64712         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
64713         "bp-asm.h".
64714         (PARMS): Do not use macros from bp-asm.h.
64715         (DEST): Likewise.
64716         (SRC): Likewise.
64717         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
64718         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
64719         "bp-asm.h".
64720         (PARMS): Do not use macros from bp-asm.h.
64721         (strlen): Do not use BP_SYM.
64722         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
64723         "bp-asm.h".
64724         (PARMS): Do not use macros from bp-asm.h.
64725         (S1): Likewise.
64726         (S2): Likewise.
64727         (SIZE): Likewise.
64728         (__mpn_add_n): Do not use BP_SYM.
64729         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
64730         "bp-asm.h".
64731         (PARMS): Do not use macros from bp-asm.h.
64732         (S1): Likewise.
64733         (SIZE): Likewise.
64734         (__mpn_addmul_1): Do not use BP_SYM.
64735         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
64736         weak_alias.
64737         (bzero): Likewise.
64738         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
64739         "bp-asm.h".
64740         (PARMS): Do not use macros from bp-asm.h.
64741         (S): Likewise.
64742         (SIZE): Likewise.
64743         (__mpn_lshift): Do not use BP_SYM.
64744         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
64745         "bp-asm.h".
64746         (PARMS): Do not use macros from bp-asm.h.
64747         (DEST): Likewise.
64748         (SRC): Likewise.
64749         (LEN): Likewise.
64750         (memcpy): Likewise.  Do not use BP_SYM.
64751         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
64752         libc_hidden_def and weak_alias.
64753         (mempcpy): Do not use BP_SYM in weak_alias.
64754         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
64755         "bp-asm.h".
64756         (PARMS): Do not use macros from bp-asm.h.
64757         (DEST): Likewise.
64758         (LEN): Likewise.
64759         [!BZERO_P] (CHR): Likewise.
64760         (memset): Likewise.  Do not use BP_SYM.
64761         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
64762         "bp-asm.h".
64763         (PARMS): Do not use macros from bp-asm.h.
64764         (S1): Likewise.
64765         (SIZE): Likewise.
64766         (__mpn_mul_1): Do not use BP_SYM.
64767         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
64768         "bp-asm.h".
64769         (PARMS): Do not use macros from bp-asm.h.
64770         (S): Likewise.
64771         (SIZE): Likewise.
64772         (__mpn_rshift): Do not use BP_SYM.
64773         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
64774         "bp-asm.h".
64775         (PARMS): Do not use macros from bp-asm.h.
64776         (STR): Likewise.
64777         (CHR): Likewise.
64778         (strchr): Likewise.  Do not use BP_SYM.
64779         (index): Do not use BP_SYM in weak_alias.
64780         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
64781         "bp-asm.h".
64782         (PARMS): Do not use macros from bp-asm.h.
64783         (DEST): Likewise.
64784         (SRC): Likewise.
64785         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
64786         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
64787         "bp-asm.h".
64788         (PARMS): Do not use macros from bp-asm.h.
64789         (strlen): Do not use BP_SYM.
64790         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
64791         "bp-asm.h".
64792         (PARMS): Do not use macros from bp-asm.h.
64793         (S1): Likewise.
64794         (S2): Likewise.
64795         (SIZE): Likewise.
64796         (__mpn_sub_n): Do not use BP_SYM.
64797         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
64798         "bp-asm.h".
64799         (PARMS): Do not use macros from bp-asm.h.
64800         (S1): Likewise.
64801         (SIZE): Likewise.
64802         (__mpn_submul_1): Do not use BP_SYM.
64803         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
64804         "bp-asm.h".
64805         (PARMS): Do not use macros from bp-asm.h.
64806         (S1): Likewise.
64807         (S2): Likewise.
64808         (SIZE): Likewise.
64809         (__mpn_add_n): Do not use BP_SYM.
64810         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
64811         weak_alias.
64812         (bzero): Likewise.
64813         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
64814         "bp-asm.h".
64815         (PARMS): Do not use macros from bp-asm.h.
64816         (BLK2): Likewise.
64817         (LEN): Likewise.
64818         (memcmp): Do not use BP_SYM.
64819         (bcmp): Do not use BP_SYM in weak_alias.
64820         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
64821         "bp-asm.h".
64822         (PARMS): Do not use macros from bp-asm.h.
64823         (DEST): Likewise.
64824         (SRC): Likewise.
64825         (LEN): Likewise.
64826         (memcpy): Likewise.  Do not use BP_SYM.
64827         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
64828         "bp-asm.h".
64829         (PARMS): Do not use macros from bp-asm.h.
64830         (DEST): Likewise.
64831         (SRC): Likewise.
64832         (LEN): Likewise.
64833         (memmove): Likewise.  Do not use BP_SYM.
64834         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
64835         "bp-asm.h".
64836         (PARMS): Do not use macros from bp-asm.h.
64837         (DEST): Likewise.
64838         (SRC): Likewise.
64839         (LEN): Likewise.
64840         (__mempcpy): Likewise.  Do not use BP_SYM.
64841         (mempcpy): Do not use BP_SYM in weak_alias.
64842         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
64843         "bp-asm.h".
64844         (PARMS): Do not use macros from bp-asm.h.
64845         (DEST): Likewise.
64846         (LEN): Likewise.
64847         [!BZERO_P] (CHR): Likewise.
64848         (memset): Likewise.  Do not use BP_SYM.
64849         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
64850         "bp-asm.h".
64851         (PARMS): Do not use macros from bp-asm.h.
64852         (STR2): Likewise.
64853         (strcmp): Do not use BP_SYM.
64854         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
64855         "bp-asm.h".
64856         (PARMS): Do not use macros from bp-asm.h.
64857         (STR): Likewise.
64858         (DELIM): Likewise.
64859         [USE_AS_STRTOK_R] (SAVE): Likewise.
64860         (FUNCTION): Likewise.  Do not use BP_SYM.
64861         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
64862         aliases.
64863         (strtok_r): Likewise.
64864         (__GI___strtok_r): Likewise.
64865         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64866         (PARMS): Do not use macros from bp-asm.h.
64867         (S): Likewise.
64868         (SIZE): Likewise.
64869         (__mpn_lshift): Do not use BP_SYM.
64870         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64871         (PARMS): Do not use macros from bp-asm.h.
64872         (STR): Likewise.
64873         (CHR): Likewise.
64874         (__memchr): Do not use BP_SYM.
64875         (memchr): Do not use BP_SYM in weak_alias.
64876         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64877         (PARMS): Do not use macros from bp-asm.h.
64878         (BLK2): Likewise.
64879         (LEN): Likewise.
64880         (memcmp): Do not use BP_SYM.
64881         (bcmp): Do not use BP_SYM in weak_alias.
64882         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
64883         (PARMS): Do not use macros from bp-asm.h.
64884         (S1): Likewise.
64885         (SIZE): Likewise.
64886         (__mpn_mul_1): Do not use BP_SYM.
64887         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
64888         "bp-asm.h".
64889         (PARMS): Do not use macros from bp-asm.h.
64890         (STR): Likewise.
64891         (CHR): Likewise.
64892         (__rawmemchr): Do not use BP_SYM.
64893         (rawmemchr): Do not use BP_SYM in weak_alias.
64894         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64895         (PARMS): Do not use macros from bp-asm.h.
64896         (S): Likewise.
64897         (SIZE): Likewise.
64898         (__mpn_rshift): Do not use BP_SYM.
64899         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64900         (PARMS): Do not use macros from bp-asm.h.
64901         (SIGMSK): Likewise.
64902         (__sigsetjmp): Likewise.  Do not use BP_SYM.
64903         * sysdeps/i386/start.S: Do not include "bp-sym.h".
64904         (_start): Do not use BP_SYM.
64905         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
64906         (PARMS): Do not use macros from bp-asm.h.
64907         (DEST): Likewise.
64908         (SRC): Likewise.
64909         (__stpcpy): Likewise.  Do not use BP_SYM.
64910         (stpcpy): Do not use BP_SYM in weak_alias.
64911         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
64912         "bp-asm.h".
64913         (PARMS): Do not use macros from bp-asm.h.
64914         (DEST): Likewise.
64915         (SRC): Likewise.
64916         (LEN): Likewise.
64917         (__stpncpy): Likewise.  Do not use BP_SYM.
64918         (stpncpy): Do not use BP_SYM in weak_alias.
64919         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64920         (PARMS): Do not use macros from bp-asm.h.
64921         (STR): Likewise.
64922         (CHR): Likewise.
64923         (strchr): Likewise.  Do not use BP_SYM.
64924         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
64925         "bp-asm.h".
64926         (PARMS): Do not use macros from bp-asm.h.
64927         (STR): Likewise.
64928         (CHR): Likewise.
64929         (__strchrnul): Likewise.  Do not use BP_SYM.
64930         (strchrnul): Do not use BP_SYM in weak_alias.
64931         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
64932         "bp-asm.h".
64933         (PARMS): Do not use macros from bp-asm.h.
64934         (STOP): Likewise.
64935         (strcspn): Do not use BP_SYM.
64936         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
64937         "bp-asm.h".
64938         (PARMS): Do not use macros from bp-asm.h.
64939         (STR): Likewise.
64940         (STOP): Likewise.
64941         (strpbrk): Likewise.  Do not use BP_SYM.
64942         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
64943         "bp-asm.h".
64944         (PARMS): Do not use macros from bp-asm.h.
64945         (STR): Likewise.
64946         (CHR): Likewise.
64947         (strrchr): Likewise.  Do not use BP_SYM.
64948         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
64949         (PARMS): Do not use macros from bp-asm.h.
64950         (SKIP): Likewise.
64951         (strspn): Do not use BP_SYM.
64952         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
64953         (PARMS): Do not use macros from bp-asm.h.
64954         (STR): Likewise.
64955         (DELIM): Likewise.
64956         (SAVE): Likewise.
64957         (FUNCTION): Likewise.  Do not use BP_SYM.
64958         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
64959         aliases.
64960         (strtok_r): Likewise.
64961         (__GI___strtok_r): Likewise.
64962         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64963         (PARMS): Do not use macros from bp-asm.h.
64964         (S1): Likewise.
64965         (S2): Likewise.
64966         (SIZE): Likewise.
64967         (__mpn_sub_n): Do not use BP_SYM.
64968         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
64969         "bp-asm.h".
64970         (PARMS): Do not use macros from bp-asm.h.
64971         (S1): Likewise.
64972         (SIZE): Likewise.
64973         (__mpn_submul_1): Do not use BP_SYM.
64974         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
64975         <bp-sym.h>.
64976         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
64977         and <bp-asm.h>.
64978         (PARMS): Do not use macros from bp-asm.h.
64979         (FLAGS): Likewise.
64980         (PTID): Likewise.
64981         (TLS): Likewise.
64982         (CTID): Likewise.
64983         (__clone): Do not use BP_SYM.
64984         (clone): Do not use BP_SYM in weak_alias.
64985         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
64986         and <bp-asm.h>.
64987         (PARMS): Do not use macros from bp-asm.h.
64988         (LEN): Likewise.
64989         (__mmap64): Do not use BP_SYM.
64990         (mmap64): Do not use BP_SYM in weak_alias.
64991         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64992         <bp-sym.h> and <bp-asm.h>.
64993         (PARMS): Do not use macros from bp-asm.h.
64994         (__posix_fadvise64_l64): Do not use BP_SYM.
64995         * sysdeps/unix/sysv/linux/i386/semtimedop.S
64996         (PARMS): Do not use macros from bp-asm.h.
64997         (NSOPS): Likewise.
64998         (semtimedop): Do not use BP_SYM.
64999         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
65000         and <bp-asm.h>.
65001
65002 2013-02-21  Allan McRae  <allan@archlinux.org>
65003
65004         * manual/message.texi (Charset conversion in gettext):
65005         Move @end statement to beginning of line.
65006
65007 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
65008
65009         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
65010         static.
65011         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
65012         Likewise.
65013
65014         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
65015         (denorm): Likewise.
65016         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
65017         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
65018
65019 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65020
65021         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
65022         tail-call to the resolved function if pltexit isn't needed.
65023
65024 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
65025
65026         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
65027         or Y being zero as being unlikely.
65028         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
65029         Likewise.
65030
65031 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
65032
65033         * manual/nss.texi (System Databases and Name Service Switch):
65034         Remove frobnicate @pxref.
65035
65036 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65037
65038         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65039         __attribute__ ((unused)) to __attribute__ ((__unused__)).
65040
65041 2013-02-20  Petr Machata  <pmachata@redhat.com>
65042
65043         * elf/elf.h (R_ARM_TARGET1): New macro.
65044         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
65045         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
65046         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
65047         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
65048         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
65049         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
65050         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
65051         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
65052         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
65053         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
65054         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
65055         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
65056         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
65057         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
65058         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
65059         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
65060         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
65061         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
65062         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
65063         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
65064         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
65065         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
65066         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
65067         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
65068         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
65069         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
65070         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
65071         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
65072         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
65073         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
65074         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
65075         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
65076         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
65077         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
65078         (R_ARM_THM_GOT_BREL12): Likewise.
65079         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
65080         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
65081         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
65082         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
65083         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
65084         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
65085         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
65086         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
65087         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
65088
65089 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65090
65091         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65092         __attribute_used__ to __attribute__ ((unused)).
65093
65094 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
65095
65096         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
65097         powerpc mpa.c.
65098         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
65099         comment formatting.
65100         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
65101
65102 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
65103
65104         [BZ #13550]
65105         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
65106         Remove macro.
65107         (ENTER): Remove both macro definitions.
65108         (LEAVE): Likewise.
65109         (CHECK_BOUNDS_LOW): Likewise.
65110         (CHECK_BOUNDS_HIGH): Likewise.
65111         (CHECK_BOUNDS_BOTH): Likewise.
65112         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
65113         (RETURN_BOUNDED_POINTER): Likewise.
65114         (RETURN_NULL_BOUNDED_POINTER): Likewise.
65115         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
65116         (POP_ERRNO_LOCATION_RETURN): Likewise.
65117         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
65118         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65119         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
65120         macros.
65121         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65122         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
65123         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
65124         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
65125         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
65126         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
65127         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
65128         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
65129         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
65130         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
65131         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
65132         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
65133         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65134         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
65135         removed macros.
65136         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65137         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
65138         macros.
65139         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65140         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
65141         * sysdeps/i386/i586/memset.S (memset): Likewise.
65142         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
65143         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65144         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
65145         macros.
65146         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65147         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
65148         Change uses of L(2) to L(out).
65149         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
65150         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
65151         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
65152         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65153         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
65154         removed macros.
65155         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65156         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
65157         macros.
65158         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65159         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
65160         (RETURN): Do not use macro LEAVE.
65161         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
65162         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
65163         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
65164         * sysdeps/i386/i686/memset.S (memset): Likewise.
65165         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
65166         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
65167         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
65168         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
65169         Likewise.
65170         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65171         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
65172         L(1_2) and L(1_3) into L(1).
65173         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65174         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
65175         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65176         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
65177         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
65178         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
65179         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
65180         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65181         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
65182         macros.
65183         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
65184         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65185         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
65186         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
65187         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
65188         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
65189         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
65190         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
65191         * sysdeps/i386/strcspn.S (strcspn): Likewise.
65192         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
65193         * sysdeps/i386/strrchr.S (strrchr): Likewise.
65194         * sysdeps/i386/strspn.S (strspn): Likewise.
65195         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
65196         conditional code.
65197         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65198         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
65199         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65200         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
65201         L(1_3) into L(1_1).
65202         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
65203         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65204         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
65205         macros.
65206         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65207
65208 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
65209
65210         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
65211         macro.
65212
65213 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
65214
65215         * math/atest-exp.c (exp_mpn): Remove ROUND.
65216         * math/atest-exp2.c (exp_mpn): Likewise.
65217         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
65218
65219         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
65220         * stdlib/tst-tls-atexit-lib.c: Likewise.
65221         * stdlib/tst-tls-atexit.c: Likewise.
65222
65223 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65224
65225         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
65226         and __attribute_alloc_size__.
65227
65228 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65229
65230         * include/programs/xmalloc.h: Change __attribute_alloc_size to
65231         __attribute_alloc_size__.
65232         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
65233         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
65234
65235 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65236
65237         * include/programs/xmalloc.h: New file.
65238         * catgets/gencat.c: Include it.
65239         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
65240         * elf/pldd.c: Likewise.
65241         * iconv/iconv_charmap.c: Likewise.
65242         * iconv/iconvconfig.c: Likewise.
65243         * iconv/strtab.c: Likewise.
65244         * locale/programs/locale.c: Likewise.
65245         * locale/programs/localedef.h: Likewise.
65246         * locale/programs/simple-hash.c: Likewise.
65247         * nscd/nscd.h: Likewise.
65248         * nss/makedb.c: Likewise.
65249         * sysdeps/generic/ldconfig.h: Likewise.
65250
65251 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
65252
65253         * Versions.def: Add GLIBC_2.18.
65254         * include/link.h (struct link_map): New member l_tls_dtor_count.
65255         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
65256         (__call_tls_dtors): Likewise.
65257         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
65258         __cxa_thread_atexit_impl.
65259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65260         Likewise.
65261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65262         Likewise.
65263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
65264         Likewise.
65265         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
65266         Likewise.
65267         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65268         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
65269         Likewise.
65270         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
65271         Likewise.
65272         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65273         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65274         Likewise.
65275         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
65276         (tests): Add test case tst-tls-atexit.
65277         (modules-names): Add shared library for tst-tls-atexit.
65278         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
65279         (GLIBC_PRIVATE): Add __call_tls_dtors.
65280         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
65281         for libstdc++.
65282         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
65283         * stdlib/tst-tls-atexit.c: New test case.
65284         * stdlib/tst-tls-atexit-lib.c: New test case.
65285
65286         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
65287
65288         * elf/Versions (ld): Add _dl_find_dso_for_object.
65289         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
65290         * elf/dl-open.c (_dl_find_dso_for_object): New function.
65291         (dl_open_worker): Use _dl_find_dso_for_object.
65292         * elf/dl-sym.c (do_sym): Likewise.
65293         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
65294
65295 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65296
65297         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
65298         Syntactic changes only.
65299         (_dl_runtime_profile): Do a tail-call to the resolved function.
65300
65301 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
65302
65303         [BZ #13550]
65304         * sysdeps/x86_64/bp-asm.h: Remove file.
65305         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
65306         <bp-sym.h> and <bp-asm.h>.
65307         (__clone): Do not use BP_SYM.
65308         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
65309         <bp-sym.h> and <bp-asm.h>.
65310         * sysdeps/unix/x86_64/sysdep.S: Likewise.
65311         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
65312         "bp-asm.h".
65313         (_setjmp): Do not use BP_SYM.
65314         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
65315         "bp-asm.h".
65316         (setjmp): Do not use BP_SYM.
65317         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
65318         libc_hidden_def.
65319         (mempcpy): Do not use BP_SYM in weak_alias.
65320         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
65321         "bp-asm.h".
65322         (strchr): Do not use BP_SYM.
65323         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
65324         "bp-asm.h".
65325         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
65326         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
65327         (_start): Do not use BP_SYM.
65328         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
65329         "bp-asm.h".
65330         (strcat): Do not use BP_SYM.
65331         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
65332         "bp-asm.h".
65333         (STRCMP): Do not use BP_SYM.
65334         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
65335         "bp-asm.h".
65336         (STRCPY): Do not use BP_SYM.
65337         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
65338         "bp-asm.h".
65339         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
65340         "bp-asm.h".
65341         (FUNCTION): Do not use BP_SYM.
65342         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
65343         weak_alias.
65344         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
65345
65346 2013-02-17  Andreas Jaeger  <aj@suse.de>
65347
65348         * time/Versions: Sort entries.
65349         * string/Versions: Likewise.
65350         * resolv/Versions: Likewise.
65351         * posix/Versions: Likewise.
65352         * iconv/Versions: Likewise.
65353         * elf/Versions: Likewise.
65354         * wcsmbs/Versions: Likewise.
65355
65356 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
65357
65358         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
65359         loop termination condition.
65360
65361         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
65362         variable to calculate EZ.
65363         (__sqr): Likewise.
65364
65365         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
65366         the lower precision input.
65367
65368 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
65369
65370         [BZ #13550]
65371         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
65372         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
65373         (run-via-rtld-prefix): Do not handle %-bp tests.
65374         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
65375         (all-object-suffixes): Remove .ob.
65376         (bppfx): Remove variable.
65377         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
65378         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
65379         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
65380         [$(build-bounded) = yes] (libtype.ob): Likewise.
65381         * Makerules (elide-routines.ob): Remove variable.
65382         (do-tests-clean): Do not handle *-bp.out.
65383         (common-mostlyclean): Do not handle *-bp and *-bp.out.
65384         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
65385         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
65386         (tests): Do not include $(tests-bp.out).
65387         (xtests): Do not include $(xtests-bp.out).
65388         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
65389         [$(build-bounded) = yes] ($(addprefix
65390         $(objpfx),$(binaries-bounded))): Remove rule.
65391         ($(objpfx)%-bp.out): Remove rule.
65392         * config.make.in (build-bounded): Remove variable.
65393         * crypt/Makefile [$(build-bounded) = yes]
65394         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
65395         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
65396         append to variable.
65397         [$(build-bounded) = yes] (install-lib): Likewise.
65398         [$(build-bounded) = yes] (generated): Likewise.
65399         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
65400         Remove rule.
65401         * intl/Makefile [$(build-bounded) = yes]
65402         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
65403         * math/Makefile [$(build-bounded) = yes]
65404         ($(tests:%=$(objpfx)%-bp): Likewise.
65405         * misc/Makefile [$(build-bounded) = yes]
65406         ($(objpfx)tst-tsearch-bp): Likewise.
65407         * nptl/Makeconfig (bounded-thread-library): Remove variable.
65408         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
65409         Remove dependency.
65410         * string/Makefile (o-objects.ob): Remove variable.
65411         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
65412         (CFLAGS-.ob): Remove variable.
65413         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
65414         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
65415         both definitions of variable.
65416         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
65417         (ASFLAGS-.ob): Remove variable.
65418
65419 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
65420
65421         [BZ #13550]
65422         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
65423         Remove __BOUNDED_POINTERS__ from condition.
65424         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
65425         * string/bits/string2.h [!__NO_STRING_INLINES &&
65426         !__BOUNDED_POINTERS__]: Likewise.
65427         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
65428         Likewise.
65429         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
65430         Remove conditional code.
65431         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
65432         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
65433         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
65434         condition.
65435
65436         [BZ #13550]
65437         * csu/libc-start.c: Do not include <bp-sym.h>.
65438         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
65439         * elf/dl-open.c: Do not include <bp-sym.h>.
65440         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
65441         * math/fegetenv.c: Do not include <bp-sym.h>.
65442         (fegetenv): Do not use BP_SYM in versioned symbols.
65443         * nptl/sysdeps/pthread/bits/libc-lockP.h
65444         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
65445         <bp-sym.h>.
65446         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65447         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
65448         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65449         (__pthread_mutex_destroy): Likewise.
65450         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65451         (__pthread_mutex_lock): Likewise.
65452         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65453         (__pthread_mutex_trylock): Likewise.
65454         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65455         (__pthread_mutex_unlock): Likewise.
65456         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65457         (__pthread_mutexattr_init): Likewise.
65458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65459         (__pthread_mutexattr_destroy): Likewise.
65460         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65461         (__pthread_mutexattr_settype): Likewise.
65462         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65463         (__pthread_rwlock_init): Likewise.
65464         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65465         (__pthread_rwlock_destroy): Likewise.
65466         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65467         (__pthread_rwlock_rdlock): Likewise.
65468         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65469         (__pthread_rwlock_tryrdlock): Likewise.
65470         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65471         (__pthread_rwlock_wrlock): Likewise.
65472         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65473         (__pthread_rwlock_trywrlock): Likewise.
65474         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65475         (__pthread_rwlock_unlock): Likewise.
65476         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65477         (__pthread_key_create): Likewise.
65478         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65479         (__pthread_setspecific): Likewise.
65480         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65481         (__pthread_getspecific): Likewise.
65482         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
65483         Likewise.
65484         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65485         (_pthread_cleanup_push_defer): Likewise.
65486         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65487         (_pthread_cleanup_pop_restore): Likewise.
65488         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65489         (pthread_setcancelstate): Likewise.
65490         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
65491         <bp-sym.h>.
65492         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
65493         (memchr): Do not use BP_SYM in weak_alias.
65494         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
65495         (fegetenv): Do not use BP_SYM in versioned symbols.
65496         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
65497         (fesetenv): Do not use BP_SYM in versioned symbols.
65498         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65499         (feupdateenv): Do not use BP_SYM in versioned symbols.
65500         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65501         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65502         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
65503         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
65504         (open64): Do not use BP_SYM in weak_alias.
65505         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
65506         (fegetenv): Do not use BP_SYM in versioned symbols.
65507         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
65508         (fesetenv): Do not use BP_SYM in versioned symbols.
65509         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65510         (feupdateenv): Do not use BP_SYM in versioned symbols.
65511         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
65512         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
65513         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
65514         (feraiseexcept): Do not use BP_SYM in versioned symbols.
65515         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65516         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65517         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
65518         <bp-sym.h>.
65519         (__libc_start_main): Do not use BP_SYM.
65520
65521 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65522
65523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
65524         redundant return line.
65525         (norm): Likewise.
65526         (denorm): Likewise.
65527         (dbl_mp): Likewise.
65528         (sub_magnitudes): Likewise.
65529         (__add): Likewise.
65530         (__sub): Likewise.
65531         (__mul): Likewise.
65532         (__inv): Likewise.
65533         (__dvd): Likewise.
65534         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
65535         (norm): Likewise.
65536         (denorm): Likewise.
65537         (dbl_mp): Likewise.
65538         (sub_magnitudes): Likewise.
65539         (__add): Likewise.
65540         (__sub): Likewise.
65541         (__mul): Likewise.
65542         (__inv): Likewise.
65543         (__dvd): Likewise.
65544
65545         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
65546         instead of __mul.
65547         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
65548         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
65549         (cc32): Likewise.
65550
65551         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
65552         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
65553         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
65554         of __mul for squares.
65555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
65556         function
65557         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
65558         Likewise.
65559         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
65560         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
65561
65562 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
65563
65564         [BZ #13550]
65565         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
65566         code.
65567         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
65568         prototype or function definition.  Rename ubp_* variables and
65569         parameters.  Remove argv definitions conditional on
65570         [__BOUNDED_POINTERS__].
65571         * debug/backtrace.c (__backtrace): Do not use __unbounded.
65572         * elf/dl-runtime.c (_dl_fixup): Likewise.
65573         * include/set-hooks.h (RUN_HOOK): Likewise.
65574         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
65575         definition.
65576         * string/strcpy.c (strcpy): Do not use __unbounded.
65577         * sysdeps/generic/frame.h (struct layout): Likewise.
65578         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
65579         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
65580         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
65581         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
65582         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
65583         (__backtrace): Likewise.
65584         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
65585         use __ptrvalue.
65586         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
65587         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
65588         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
65589         Likewise.
65590         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
65591         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
65592         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
65593         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65594         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
65595         Do not use __unbounded.
65596         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
65597         Rename __unboundedrlimits parameter to rlimits in prototype.
65598         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
65599         Do not use __unbounded.
65600         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
65601         not use __ptrvalue.
65602         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65603         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
65604         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65605         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
65606         __ptrvalue or __unbounded.
65607         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
65608         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
65609         use __unbounded.
65610         (__new_msgctl): Do not use __ptrvalue.
65611         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
65612         __unbounded.
65613         (__libc_msgrcv): Do not use __ptrvalue.
65614         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
65615         startup_info): Do not use __unbounded.
65616         (__libc_start_main): Likewise.  Rename ubp_* variables and
65617         parameters.  Remove argv definitions conditional on
65618         [__BOUNDED_POINTERS__].
65619         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
65620         __ptrvalue.
65621         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
65622         use __unbounded.
65623         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
65624         or __ptrvalue.
65625         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
65626         use __unbounded.
65627         (__new_shmctl): Do not use __ptrvalue.
65628         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
65629         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
65630         Likewise.
65631         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
65632         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
65633         (__libc_sigaction): Likewise.
65634         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
65635         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
65636         Likewise.
65637         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65638
65639 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
65640
65641         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
65642
65643         * string/mempcpy.c: Implement by calling memcpy.
65644
65645 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
65646
65647         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
65648
65649         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
65650         evaluation.
65651
65652         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
65653         values in the mantissa.
65654
65655         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
65656         minimize writes to Z.
65657         (sub_magnitudes): Simplify code a bit.
65658
65659 2013-02-12  Roland McGrath  <roland@hack.frob.com>
65660
65661         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
65662         from the message.  The linker prefixes all warnings with that already.
65663
65664 2013-02-12  Andreas Schwab  <schwab@suse.de>
65665
65666         [BZ #15078]
65667         * posix/regexec.c (extend_buffers): Add parameter min_len.
65668         (check_matching): Pass minimum needed length.
65669         (clean_state_log_if_needed): Likewise.
65670         (get_subexp): Likewise.
65671         * posix/Makefile (tests): Add bug-regex34.
65672         (bug-regex34-ENV): Define.
65673         * posix/bug-regex34.c: New file.
65674
65675         [BZ #11561]
65676         * posix/regcomp.c (parse_bracket_exp): When looking up collating
65677         elements compare against the byte sequence of it, not its name.
65678         * posix/Makefile (tests): Add bug-regex35.
65679         (bug-regex35-ENV): Define.
65680         * posix/bug-regex35.c: New file.
65681
65682 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65683
65684         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
65685         comment.
65686         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
65687         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
65688         (CHECK_EOL): Add undef.
65689
65690 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
65691
65692         * bits/stdlib-bsearch.h: New file.
65693         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
65694         * stdlib/stdlib.h: Likewise.
65695
65696 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65697
65698         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
65699         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
65700         declaration.
65701         * manual/search.texi (Array Search Function): Add missing const in
65702         lfind prototype.
65703         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
65704         declaration to use rlim_t.
65705         (Basic Scheduling Functions): Remove erroneous const from
65706         sched_getparam prototype.  Remove erroneous * from
65707         sched_get_priority_max and sched_get_priority_min prototypes.
65708         (Resource Usage): Fix summary @comment on vtimes to refer to
65709         sys/vtimes.h rather than vtimes.h.
65710         Add missing *s in vtimes prototype.
65711         (Limits on Resources): Fix ulimit prototype to return long int.
65712         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
65713         prototypes to use long int rather than double.
65714         (BSD Random): Fix initstate and setstate to use char *, not void *.
65715         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
65716         prototype to make second argument 'struct aiocb64 *const[]'.
65717         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
65718         (Status of AIO Operations): Remove erroneous const in aio_return and
65719         aio_return64 prototypes.
65720         (Synchronizing I/O): Fix sync prototype to return void.
65721         * manual/startup.texi (Suboptions): Remove an erroneous const in
65722         getsubopt prototype.
65723         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
65724         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
65725         use size_t rather than int.
65726         (Scanning All Users): Likewise for getpwent_r.
65727         (Setting Groups): Add missing const to setgroups prototype.
65728         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
65729         * manual/socket.texi (Host Names): Fix gethostbyaddr and
65730         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
65731         'const void *' rather than 'const char *'.
65732         (Host Address Functions): Likewise for inet_ntop.
65733         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
65734         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
65735         ssize_t for return value.
65736         (Sending Data): Likewise for send, sendto, sendmsg.
65737         (Socket Option Functions): Add a missing const in setsockopt prototype.
65738         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
65739         use wchar_t for the argument.
65740         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
65741         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
65742         take no arguments.
65743         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
65744         double/float/long double for second argument.
65745         Fix return types of significand, significandf, significandl.
65746         * manual/filesys.texi (Setting Permissions): Use mode_t for second
65747         argument in fchmod prototype.
65748         (File Owner): Use uid_t and gid_t in fchown prototype.
65749         (File Times): Add const to utimes, futimes, and lutimes prototypes.
65750         (Making Special Files): Use mode_t and dev_t in mknod prototype.
65751         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
65752         use 'const struct dirent **' as argument types to CMP function pointer
65753         argument.
65754         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
65755         (File Times): Fix summary magic @comment for struct utimbuf and utime
65756         to refer to utime.h, not time.h.
65757         * manual/string.texi (Argz Functions): Add missing const in
65758         argz_extract and argz_next prototypes.
65759         (Finding Tokens in a String): Likewise for basename.
65760         (String/Array Comparison): Fix typo in wcscasecmp prototype.
65761         (Copying and Concatenation): Fix typo in wmemmove prototype.
65762         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
65763         (Signal Stack): Remove erroneous const in sigstack prototype.
65764         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
65765         prototype.
65766         (Simple Calendar Time): Likewise for stime.
65767         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
65768         prototype.
65769         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
65770         say sys/sysctl.h instead.
65771         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
65772         and vsyslog prototypes.
65773
65774 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65775
65776         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
65777         Remove.
65778
65779 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65780
65781         * misc/sys/mman.h: Fix typo in mremap comment.
65782
65783 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65784
65785         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
65786         the '\0' terminator.
65787
65788 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65789
65790         [BZ #13550]
65791         * debug/segfault.c: Don't include <bp-checks.h>.
65792         * sysdeps/generic/bp-checks.h: Remove file.
65793         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
65794         (__GETDENTS): Don't use CHECK_N.
65795         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
65796         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
65797         (__getgroups): Don't use CHECK_N.
65798         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
65799         (setgroups): Don't use CHECK_N.
65800         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
65801         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
65802         (__libc_msgrcv): Don't use CHECK_N.
65803         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
65804         (__libc_msgsnd): Don't use CHECK_N.
65805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
65806         <bp-checks.h>.
65807         (__libc_pread): Don't use CHECK_N.
65808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
65809         include <bp-checks.h>.
65810         (__libc_pread64): Don't use CHECK_N.
65811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
65812         include <bp-checks.h>.
65813         (__libc_pwrite): Don't use CHECK_N.
65814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
65815         include <bp-checks.h>.
65816         (__libc_pwrite64): Don't use CHECK_N.
65817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
65818         <bp-checks.h>.
65819         (__libc_pread): Don't use CHECK_N.
65820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
65821         include <bp-checks.h>.
65822         (__libc_pread64): Don't use CHECK_N.
65823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
65824         include <bp-checks.h>.
65825         (__libc_pwrite): Don't use CHECK_N.
65826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
65827         include <bp-checks.h>.
65828         (__libc_pwrite64): Don't use CHECK_N.
65829         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
65830         (do_pread): Don't use CHECK_N.
65831         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
65832         (do_pread64): Don't use CHECK_N.
65833         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
65834         (do_pwrite): Don't use CHECK_N.
65835         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
65836         (do_pwrite64): Don't use CHECK_N.
65837         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
65838         (__libc_readv): Don't use CHECK_N.
65839         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
65840         (semop): Don't use CHECK_N.
65841         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
65842         <bp-checks.h>.
65843         (semtimedop): Don't use CHECK_N.
65844         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
65845         (__libc_pread): Don't use CHECK_N.
65846         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
65847         <bp-checks.h>.
65848         (__libc_pread64): Don't use CHECK_N.
65849         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
65850         <bp-checks.h>.
65851         (__libc_pwrite): Don't use CHECK_N.
65852         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
65853         <bp-checks.h>.
65854         (__libc_pwrite64): Don't use CHECK_N.
65855         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
65856         <bp-checks.h>.
65857         (__libc_msgrcv): Don't use CHECK_N.
65858         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
65859         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
65860         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
65861         (__libc_writev): Don't use CHECK_N.
65862
65863 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65864
65865         * string/strcpy.c: Removed unused variable.
65866
65867         * Makeconfig (+sysdep-includes): Define with := rather than =.
65868         Use an existing include/ subdir of each sysdeps dir before it.
65869
65870 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65871
65872         * nscd/connection.c (register_traced_file): Comment function.
65873         [HAVE_INOTIFY] (union __inev): Define.
65874         [HAVE_INOTIFY] (inotify_check_files): New function.
65875         [HAVE_INOTIFY] (clear_db_cache): Likewise.
65876         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
65877         clear_db_cache.
65878         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
65879
65880 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65881
65882         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
65883         loaded if not already and that a failure is permanent.
65884
65885 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65886
65887         [BZ #15006]
65888         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
65889         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
65890
65891 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65892
65893         [BZ #13550]
65894         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
65895         (CHECK_1_NULL_OK): Likewise.
65896         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
65897         (__fxstat): Do not use CHECK_1.
65898         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
65899         <bp-checks.h>.
65900         (___fxstat64): Do not use CHECK_1.
65901         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
65902         <bp-checks.h>.
65903         (__fxstatat): Do not use CHECK_1.
65904         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
65905         <bp-checks.h>.
65906         (__fxstatat64): Do not use CHECK_1.
65907         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
65908         <bp-checks.h>.
65909         (__fxstat): Do not use CHECK_1.
65910         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
65911         <bp-checks.h>.
65912         (__fxstatat): Do not use CHECK_1.
65913         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
65914         <bp-checks.h>.
65915         (__getresgid): Do not use CHECK_1.
65916         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
65917         <bp-checks.h>.
65918         (__getresuid): Do not use CHECK_1.
65919         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
65920         <bp-checks.h>.
65921         (__lxstat): Do not use CHECK_1.
65922         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
65923         <bp-checks.h>.
65924         (__old_msgctl): Do not use CHECK_1.
65925         (__new_msgctl): Likewise.
65926         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
65927         <bp-checks.h>.
65928         (__new_setrlimit): Do not use CHECK_1.
65929         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
65930         <bp-checks.h>.
65931         (__old_shmctl): Do not use CHECK_1.
65932         (__new_shmctl): Likewise.
65933         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
65934         <bp-checks.h>.
65935         (__xstat): Do not use CHECK_1.
65936         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
65937         (__lxstat): Do not use CHECK_1.
65938         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
65939         <bp-checks.h>.
65940         (___lxstat64): Do not use CHECK_1.
65941         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
65942         (__old_msgctl): Do not use CHECK_1.
65943         (__new_msgctl): Likewise.
65944         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
65945         <bp-checks.h>.
65946         (__gettimeofday): Do not use CHECK_1.
65947         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
65948         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
65949         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
65950         <bp-checks.h>.
65951         (__gettimeofday): Do not use CHECK_1.
65952         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
65953         (__old_shmctl): Do not use CHECK_1_NULL_OK.
65954         (__new_shmctl): Do not use CHECK_1.
65955         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
65956         <bp-checks.h>.
65957         (do_sigtimedwait): Do not use CHECK_1.
65958         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
65959         <bp-checks.h>.
65960         (do_sigwaitinfo): Do not use CHECK_1.
65961         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
65962         <bp-checks.h>.
65963         (msgctl): Do not use CHECK_1.
65964         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
65965         <bp-checks.h>.
65966         (shmctl): Do not use CHECK_1.
65967         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
65968         (ustat): Do not use CHECK_1.
65969         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
65970         <bp-checks.h>.
65971         (__fxstat): Do not use CHECK_1.
65972         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
65973         <bp-checks.h>.
65974         (__fxstatat): Do not use CHECK_1.
65975         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
65976         <bp-checks.h>.
65977         (__lxstat): Do not use CHECK_1.
65978         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
65979         <bp-checks.h>.
65980         (__xstat): Do not use CHECK_1.
65981         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
65982         (__xstat): Do not use CHECK_1.
65983         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
65984         (___xstat64): Do not use CHECK_1.
65985
65986         [BZ #13550]
65987         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
65988         definitions.
65989         (CHECK_BOUNDS_HIGH): Likewise.
65990         * string/strcpy.c: Do not include <bp-checks.h>.
65991         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
65992
65993 2013-02-07  Roland McGrath  <roland@hack.frob.com>
65994
65995         * nscd/nscd-client.h (__nscd_drop_map_ref):
65996         Add __attribute__ ((unused)).
65997         * nis/nss-nisplus.h (niserr2nss): Likewise.
65998
65999         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
66000         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
66001
66002         * csu/libc-tls.c (init_static_tls, init_slotinfo):
66003         Remove inline keyword.
66004         * include/rounding-mode.h (round_away): Likewise.
66005         * libio/wfileops.c (adjust_wide_data): Likewise.
66006         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
66007         (__m128i_strloadu_tolower): Likewise.
66008         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
66009         (__m128i_strloadu_tolower): Likewise.
66010         * time/mktime.c (ydhms_diff): Likewise.
66011         * locale/elem-hash.h (elem_hash): Likewise.
66012         * locale/setlocale.c (setdata): Likewise.
66013         * posix/regex_internal.h (re_string_char_size_at): Likewise.
66014         (re_string_wchar_at): Likewise.
66015         (bitset_not, bitset_merge, bitset_mask): Likewise.
66016         [!(__GNUC__ > 3)] (inline): Remove macro.
66017         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
66018         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
66019         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
66020         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
66021         * string/memcmp.c (memcmp_bytes): Likewise.
66022         * locale/programs/locarchive.c (compute_hashval): Likewise.
66023         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
66024         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
66025         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
66026         * nss/getent.c (print_rpc, print_protocols): Likewise.
66027         (print_passwd, print_group, print_aliases): Likewise.
66028         * nis/nss-nisplus.h (niserr2nss): Likewise.
66029         * nscd/connections.c (restart_p): Likewise.
66030         Change return type to bool.
66031
66032 2013-02-05  Roland McGrath  <roland@hack.frob.com>
66033
66034         * Makeconfig (all-Depend-files): Add existing
66035         $(sorted-subdirs:=/Depend) files.
66036         (all-subdirs): Remove nss.
66037         * sysdeps/unix/inet/Subdirs: Add it here instead.
66038         * hesiod/Depend: New file.
66039
66040         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
66041         instead of calling alloca.
66042
66043         * io/lseek.c (__lseek): Rename to __libc_lseek.
66044         Define __lseek as an alias.
66045
66046         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
66047
66048 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
66049
66050         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
66051         else clause and remove check for non-standard endianness.
66052
66053 2013-02-04  David S. Miller  <davem@davemloft.net>
66054
66055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66056
66057 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
66058
66059         [BZ #13550]
66060         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
66061         (__ubp_memchr): Remove prototype.
66062         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
66063         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
66064         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
66065         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
66066         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
66067         Remove alias.
66068         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
66069         (__ubp_memchr): Likewise.
66070         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
66071         (__ubp_memchr): Likewise.
66072         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
66073         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
66074         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
66075         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
66076         CHECK_STRING.
66077         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
66078         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
66079         (__getcwd): Do not use CHECK_STRING.
66080         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
66081         <bp-checks.h>.
66082         (__real_chown): Do not use CHECK_STRING.
66083         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
66084         <bp-checks.h>.
66085         (fchownat): Do not use CHECK_STRING.
66086         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
66087         CHECK_STRING.
66088         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
66089         <bp-checks.h>.
66090         (__lchown): Do not use CHECK_STRING.
66091         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
66092         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
66093         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
66094         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
66095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
66096         include <bp-checks.h>.
66097         (truncate64): Do not use CHECK_STRING.
66098         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
66099         <bp-checks.h>.
66100         (__real_chown): Do not use CHECK_STRING.
66101         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
66102         <bp-checks.h>.
66103         (__lchown): Do not use CHECK_STRING.
66104         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
66105         <bp-checks.h>.
66106         (__chown): Do not use CHECK_STRING.
66107         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
66108         <bp-checks.h>.
66109         (truncate64): Do not use CHECK_STRING.
66110         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
66111         Likewise.
66112         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
66113         (__xmknod): Do not use CHECK_STRING.
66114         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
66115         <bp-checks.h>.
66116         (__xmknodat): Do not use CHECK_STRING.
66117         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
66118         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
66119
66120 2013-02-04  Andreas Schwab  <schwab@suse.de>
66121
66122         [BZ #14142]
66123         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
66124         * include/netdb.h: Likewise for h_errno.
66125         * elf/tst-stackguard1.c: Include <tls.h>.
66126
66127 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
66128
66129         * elf/link.h (struct link_map): Extend the l_addr comment.
66130         * include/link.h (struct link_map): Likewise.
66131
66132 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
66133
66134         [BZ #13550]
66135         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
66136         (BOUNDED_1): Remove macro.
66137         * debug/backtrace.c: Don't include <bp-checks.h>.
66138         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
66139         (__backtrace): Likewise.
66140         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
66141         <bp-checks.h>.
66142         (__backtrace): Don't use BOUNDED_1.
66143         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
66144         <bp-checks.h>.
66145         (__backtrace): Don't use BOUNDED_1.
66146         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
66147         (__backtrace): Don't use BOUNDED_1.
66148         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
66149         (shmat): Don't use BOUNDED_N.
66150
66151 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
66152
66153         [BZ #13550]
66154         * sysdeps/generic/bp-start.h: Remove file.
66155         * csu/libc-start.c: Don't include <bp-start.h>.
66156         (LIBC_START_MAIN): Set up __environ directly instead of using
66157         INIT_ARGV_and_ENVIRON.
66158         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
66159         <bp-start.h>.
66160
66161         [BZ #13550]
66162         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
66163         definitions.
66164         (CHECK_FCNTL): Likewise.
66165         (CHECK_N_PAGES): Likewise.
66166
66167         [BZ #13550]
66168         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
66169         definitions.
66170         (CHECK_SIGSET_NULL_OK): Likewise.
66171         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
66172         <bp-checks.h>.
66173         (sigpending): Don't use CHECK_SIGSET.
66174         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
66175         <bp-checks.h>.
66176         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66177         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
66178         <bp-checks.h>.
66179         (do_sigsuspend): Don't use CHECK_SIGSET.
66180         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
66181         use CHECK_SIGSET.
66182         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
66183         (do_sigwait): Don't use CHECK_SIGSET.
66184         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
66185         use CHECK_SIGSET.
66186         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
66187         include <bp-checks.h>.
66188         (sigpending): Don't use CHECK_SIGSET.
66189         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
66190         include <bp-checks.h>.
66191         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66192         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
66193         <bp-checks.h>.
66194         (sigpending): Don't use CHECK_SIGSET.
66195         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
66196         <bp-checks.h>.
66197         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66198
66199         [BZ #13550]
66200         * sysdeps/generic/bp-semctl.h: Remove file.
66201         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
66202         <bp-checks.h> and <bp-semctl.h>.
66203         (__old_semctl): Don't use CHECK_SEMCTL.
66204         (__new_semctl): Likewise.
66205         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
66206         and <bp-semctl.h>.
66207         (__old_semctl): Don't use CHECK_SEMCTL.
66208         (__new_semctl): Likewise.
66209         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
66210         <bp-checks.h> and <bp-semctl.h>.
66211         (__old_semctl): Don't use CHECK_SEMCTL.
66212         (__new_semctl): Likewise.
66213         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
66214         <bp-checks.h> and <bp-semctl.h>.
66215         (semctl): Don't use CHECK_SEMCTL.
66216
66217         [BZ #13550]
66218         * Makerules (elide-bp-thunks): Remove variable.
66219         (elide-routines.oS): Don't use $(elide-bp-thunks).
66220         (elide-routines.os): Likewise.
66221         (elide-routines.o): Likewise.
66222         (elide-routines.op): Likewise.
66223         (elide-routines.og): Likewise.
66224         (objects): Don't use $(bp-thunks).
66225         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
66226         include.
66227         (common-generated): Do not add s-proto-bp.d.
66228         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
66229         (int): Likewise.
66230         (typ): Likewise.
66231         Do not generate makefile rules for bounded-pointer thunks.
66232         * sysdeps/generic/bp-thunks.h: Remove file.
66233         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
66234         * sysdeps/unix/s-proto-bp.S: Likewise.
66235
66236         [BZ #15062]
66237         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
66238         parts of result separately when argument is not close to line from
66239         -i to i and one part of argument is small.
66240         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66241         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66242         * math/libm-test.inc (cacos_test): Add more tests.
66243         (casin_test): Likewise.
66244         (casinh_test): Likewise.
66245         * sysdeps/i386/fpu/libm-test-ulps: Update.
66246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66247
66248 2013-01-31  David S. Miller  <davem@davemloft.net>
66249
66250         * po/de.po: Update from translation team.
66251
66252 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
66253
66254         * time/tzfile.c: Include stdint.h for SIZE_MAX.
66255
66256 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
66257
66258         * configure.in (_AC_PROG_CC_C89): New definition.
66259         * configure: Regenerate.
66260
66261         * configure.in (AC_PROG_CPP): New definition.
66262         * configure: Regenerate.
66263
66264 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66265
66266         * debug/tst-backtrace.h: New file.
66267         * debug/tst-backtrace2.c: Include tst-backtrace.h.
66268         (ret): Remove variable.
66269         (x): Likewise.
66270         (FAIL): Remove macro.
66271         (NO_INLINE): Likewise.
66272         (fn1): Use match function instead of strstr.
66273         * debug/tst-backtrace3.c: Include tst-backtrace.h.
66274         (ret): Remove variable.
66275         (x): Likewise.
66276         (FAIL): Remove macro.
66277         (NO_INLINE): Likewise.
66278         (fn): Use match function instead of strstr.
66279         * debug/tst-backtrace4.c: Include tst-backtrace.h.
66280         (ret): Remove variable.
66281         (x): Likewise.
66282         (FAIL): Remove macro.
66283         (NO_INLINE): Likewise.
66284         (handle_signal): Use match function instead of strstr.
66285         * debug/tst-backtrace5.c: Include tst-backtrace.h.
66286         (ret): Remove variable.
66287         (x): Likewise.
66288         (FAIL): Remove macro.
66289         (NO_INLINE): Likewise.
66290         (handle_signal): Use match function instead of strstr.
66291
66292 2013-01-23  Roland McGrath  <roland@hack.frob.com>
66293
66294         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
66295
66296 2013-01-23  David S. Miller  <davem@davemloft.net>
66297
66298         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
66299         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
66300         argument of CAS if possible.
66301         * sysdeps/sparc/sparc64/bits/atomic.h
66302         (__arch_compare_and_exchange_val_32_acq): Likewise.
66303         (__arch_compare_and_exchange_val_64_acq): Likewise.
66304
66305 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
66306
66307         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
66308         * sysdeps/posix/ulimit.c: ... this.
66309         Include <limits.h>.
66310         * sysdeps/unix/bsd/ulimit.c: Remove file.
66311
66312 2013-01-23  Adam Conrad  <adconrad@0c3.net>
66313
66314         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
66315         (LDFLAGS-tst-array5): Likewise.
66316
66317 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66318
66319         [BZ #15036]
66320         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66321         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
66322         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
66323         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
66324
66325 2013-01-21  David S. Miller  <davem@davemloft.net>
66326
66327         * sysdeps/sparc/backtrace.c: New file.
66328         * sysdeps/sparc/sparc32/backtrace.h: New file.
66329         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
66330         * sysdeps/sparc/sparc64/backtrace.h: New file.
66331         * sysdeps/sparc/sparc64/backtrace.c: Delete.
66332         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
66333         -funwind-tables.
66334
66335 2013-01-21  Andreas Schwab  <schwab@suse.de>
66336
66337         [BZ #15020]
66338         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
66339         closed its stdout.
66340
66341 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
66342
66343         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
66344         "mpa2.h".
66345         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66346
66347 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
66348             Mark Mitchell  <mark@codesourcery.com>
66349             Tom de Vries  <tom@codesourcery.com>
66350             Paul Pluzhnikov  <ppluzhnikov@google.com>
66351
66352         * debug/tst-backtrace2.c: New file.
66353         * debug/tst-backtrace3.c: Likewise.
66354         * debug/tst-backtrace4.c: Likewise.
66355         * debug/tst-backtrace5.c: Likewise.
66356         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
66357         (CFLAGS-tst-backtrace3.c): Likewise.
66358         (CFLAGS-tst-backtrace4.c): Likewise.
66359         (CFLAGS-tst-backtrace5.c): Likewise.
66360         (LDFLAGS-tst-backtrace2): Likewise.
66361         (LDFLAGS-tst-backtrace3): Likewise.
66362         (LDFLAGS-tst-backtrace4): Likewise.
66363         (LDFLAGS-tst-backtrace5): Likewise.
66364         (tests): Add new tests tst-backtrace2, tst-backtrace3,
66365         tst-backtrace4 and tst-backtrace5.
66366
66367 2013-01-18  Anton Blanchard  <anton@samba.org>
66368             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
66369
66370         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
66371         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
66372         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
66373         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
66374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66375         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
66376         "+r" and remove output regs list as redundant.  Add explicit inline
66377         asm to specify register of return val to work around compiler codegen
66378         bug.  Remove (int) cast on return value.  Add return type parameter to
66379         use in macro so that this macro does not truncate return value for
66380         64-bit values.
66381         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
66382         pass to INTERNAL_VSYSCALL_NCS.
66383         (INLINE_VSYSCALL): Add 'long int' as return type to
66384         INTERNAL_VSYSCALL_NCS macro invocation.
66385         (INTERNAL_VSYSCALL): Add 'long int' as return type to
66386         INTERNAL_VSYSCALL_NCS macro invocation.
66387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66388
66389 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
66390
66391         [BZ #14496]
66392         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
66393         Fix application of SIMD FP exception mask.
66394
66395         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
66396         mp_no from a power of two.
66397         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
66398         __mpexp_twomm1.  Use __pow_mp.
66399
66400         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
66401         multiplication.
66402
66403 2013-01-17  David S. Miller  <davem@davemloft.net>
66404
66405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66406
66407 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66408
66409         [BZ #15023]
66410         * include/complex.h: Condition contents on [!_COMPLEX_H].
66411         (__kernel_casinhf): New prototype.
66412         (__kernel_casinh): Likewise.
66413         (__kernel_casinhl): Likewise.
66414         * math/Makefile (libm_calls): Add k_casinh.
66415         * math/k_casinh.c: New file.
66416         * math/k_casinhf.c: Likewise.
66417         * math/k_casinhl.c: Likewise.
66418         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
66419         finite nonzero arguments.
66420         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
66421         finite nonzero arguments.
66422         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
66423         finite nonzero arguments.
66424         * math/s_casinh.c: Do not include <float.h>.
66425         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
66426         * math/s_casinhf.c: Do not include <float.h>.
66427         (__casinhf): Move code for finite nonzero arguments to
66428         k_casinhf.c.
66429         * math/s_casinhl.c: Do not include <float.h>.
66430         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
66431         redefine.
66432         (__casinhl): Move code for finite nonzero arguments to
66433         k_casinhl.c.
66434         * math/libm-test.inc (cacos_test): Add more tests.
66435         * sysdeps/i386/fpu/libm-test-ulps: Update.
66436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66437
66438 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
66439
66440         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
66441         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
66442         [!HAVE_MREMAP]: Remove [defined linux] case.
66443         * malloc/arena.c: Do not include <malloc-sysdep.h>.
66444
66445 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66446
66447         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
66448
66449 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
66450
66451         * elf/elf.h (R_386_SIZE32): New relocation.
66452         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
66453         R_386_SIZE32.
66454         (elf_machine_rela): Likewise.
66455         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66456         R_X86_64_SIZE64 and R_X86_64_SIZE32.
66457
66458 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66459
66460         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
66461         (FP_FAST_FMA): Do not define.
66462         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
66463         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
66464         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
66465         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
66466         !_SOFT_FLOAT]: Likewise.
66467         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
66468         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
66469         value.
66470         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
66471         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
66472         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
66473         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
66474         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
66475         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
66476         file.
66477
66478 2013-01-16  Andreas Schwab  <schwab@suse.de>
66479
66480         [BZ #14327]
66481         * include/stdlib.h (__mktemp): Add declaration.
66482         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
66483         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
66484
66485 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66486
66487         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
66488         definitions.
66489         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66490         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
66491         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
66492         definitions here.
66493         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
66494         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
66495         definitions.
66496         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
66497         and ONE.
66498         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
66499         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
66500         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
66501         definitions.
66502         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
66503         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
66504         definitions.
66505         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66506
66507         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
66508
66509 2013-01-15  David S. Miller  <davem@davemloft.net>
66510
66511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66512         trunc{,f} to libm-sysdep_routes.
66513         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
66515         file.
66516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
66517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
66518         file.
66519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
66520         file.
66521         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
66522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
66523         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
66524         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
66525         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
66526         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
66527         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
66528         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
66529
66530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66531         nearbyint{,f} to libm-sysdep_routes.
66532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
66534         New file.
66535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
66536         file.
66537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
66538         New file.
66539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
66540         file.
66541         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
66542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
66543         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
66544         file.
66545         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
66546         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
66547         file.
66548         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
66549         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
66550         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
66551
66552         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
66553         libc_feholdexcept and libc_fesetenv.
66554
66555 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
66556
66557         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
66558
66559 2013-01-14  David S. Miller  <davem@davemloft.net>
66560
66561         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
66562         (SPARC_ASM_VIS2_IFUNC): Likewise.
66563         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
66564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
66565         use of 'siam' instruction.
66566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
66567         Likewise.
66568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
66569         Likewise.
66570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
66571         Likewise.
66572         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
66573         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
66574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
66575         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
66576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
66577         file.
66578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
66579         file.
66580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
66581         file.
66582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
66583         file.
66584         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
66585         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
66586         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
66587         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
66588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
66589         new VIS2 routines.
66590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66593         Likewise.
66594         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66595         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66596         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66597         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
66599         routines to libm-sysdep_routines.
66600         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66601
66602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66603         fdim/fdimf to libm-sysdep_routines.
66604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
66605         file.
66606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
66607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
66608         file.
66609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
66610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
66611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
66612         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
66613         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
66614         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
66615         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
66616
66617 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
66618
66619         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
66620         to optimize copies.
66621
66622         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
66623         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66624         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66625
66626         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
66627         local variable MPTWO.
66628         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
66629         Likewise.
66630
66631 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66632
66633         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
66634         GLOB_NOESCAPE.
66635
66636 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66637
66638         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
66639
66640 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66641
66642         * manual/pattern.texi (glob_t): Document gl_flags.
66643         (glob64_t): Likewise.
66644
66645 2013-01-11  David S. Miller  <davem@davemloft.net>
66646
66647         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
66648         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
66649         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
66650         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
66651         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
66652         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
66653         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
66654         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
66655         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
66656         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
66657         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
66658         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
66659         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
66660
66661         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66662         sparc V9 rather than using V8 code.
66663         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66664         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66665
66666         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66667         Move to...
66668         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
66669         Here.
66670
66671 2013-01-11  Roland McGrath  <roland@hack.frob.com>
66672
66673         [BZ #14941]
66674         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
66675         not in the main loop.
66676         * configure: Regenerated.
66677
66678 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
66679
66680         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
66681         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
66682         to just #else.
66683         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
66684         [!__GLIBC_HAVE_LONG_LONG] case.
66685         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
66686         condition to just #else.
66687         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
66688         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
66689         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
66690         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
66691         unconditional.
66692         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
66693         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66694         #elif condition to just #else.
66695         * sysdeps/unix/sysv/linux/sys/sysmacros.h
66696         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
66697         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66698         #elif condition to just #else.
66699
66700 2013-01-11  Steve Ellcey  <sellcey@mips.com>
66701
66702         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
66703         (EF_MIPS_ARCH_64): Fix value.
66704         (EF_MIPS_ARCH_32R2): New.
66705         (EF_MIPS_ARCH_64R2): New.
66706
66707 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
66708
66709         * Makeconfig (+link-pie-before-libc): New.
66710         (+link-pie-after-libc): Likewise.
66711         (+link-pie-tests): Likewise.
66712         (+link-pie): Rewritten.
66713         (link-before-libc): Remove $(config-LDFLAGS).
66714         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
66715         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
66716         (config-LDFLAGS): Renamed to ...
66717         (rtld-LDFLAGS): This.
66718         (rtld-tests-LDFLAGS): New macro.
66719         (link-libc-rpath-link): Likewise.
66720         (link-libc-tests-rpath-link): Likewise.
66721         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
66722         (link-libc): Prepand $(link-libc-rpath-link).
66723         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
66724         (test-program-prefix): New macro.
66725         (test-via-rtld-prefix): Likewise.
66726         (test-program-cmd): Likewise.
66727         (host-test-program-cmd): Likewise.
66728         * Makefile ($(common-objpfx)testrun.sh): Replace
66729         $(run-program-prefix) with $(test-program-prefix).
66730         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
66731         $(rtld-LDFLAGS).
66732         ($(common-objpfx)shlib.lds): Likewise.
66733         (build-module-helper): Likewise.
66734         ($(common-objpfx)format.lds): Likewise.
66735         * Rules (binaries-pie-tests): New.
66736         (binaries-pie-notests): Likewise.
66737         (binaries-pie): Rewritten.
66738         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
66739         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
66740         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
66741         (make-test-out): Replace $(host-built-program-cmd) with
66742         $(host-test-program-cmd).
66743         * config.make.in (build-hardcoded-path-in-tests): New variable.
66744         * configure.in (--enable-hardcoded-path-in-tests): New configure
66745         option.
66746         (hardcoded_path_in_tests): New AC_SUBST.
66747         * configure: Regenerated.
66748         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
66749         $(built-program-cmd) with $(test-program-cmd).
66750         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
66751         (test_program_cmd): This.
66752         * elf/Makefile ($(objpfx)order.out): Run test with
66753         $(test-program-prefix).
66754         ($(objpfx)order2.out): Likewise.
66755         ($(objpfx)tst-initorder.out): Likewise.
66756         ($(objpfx)tst-initorder2.out): Likewise.
66757         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
66758         $(test-program-cmd).
66759         ($(objpfx)tst-array1-static.out): Likewise.
66760         ($(objpfx)tst-array2.out): Likewise.
66761         ($(objpfx)tst-array3.out): Likewise.
66762         ($(objpfx)tst-array4.out): Likewise.
66763         ($(objpfx)tst-array5.out): Likewise.
66764         ($(objpfx)tst-array5-static.out): Likewise.
66765         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
66766         $(test-program-cmd).
66767         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
66768         $(run-program-prefix) with $(test-program-prefix).
66769         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
66770         (test_program_prefix): This.
66771         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
66772         $(run-program-prefix) with $(test-program-prefix).
66773         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
66774         (test_program_prefix): This.
66775         * iconvdata/tst-tables.sh: Likewise.
66776         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
66777         $(run-program-prefix) with $(test-program-prefix).
66778         ($(objpfx)tst-translit.out): Likewise.
66779         ($(objpfx)tst-gettext2.out): Likewise.
66780         ($(objpfx)tst-gettext4.out): Likewise.
66781         ($(objpfx)tst-gettext6.out): Likewise.
66782         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
66783         (test_program_prefix): This.
66784         * intl/tst-gettext2.sh: Likewise.
66785         * intl/tst-gettext4.sh  Likewise.
66786         * intl/tst-gettext6.sh: Likewise.
66787         * intl/tst-translit.sh: Likewise.
66788         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
66789         with $(test-program-cmd).
66790         * libio/Makefile ($(objpfx)test-freopen.out): Replace
66791         $(run-program-prefix) with $(test-program-prefix).
66792         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
66793         (test_program_prefix): This.
66794         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
66795         $(run-program-prefix) with $(test-program-prefix).
66796         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
66797         (test_program_prefix): This.
66798         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
66799         * posix/Makefile ($(objpfx)globtest.out): Replace
66800         $(run-via-rtld-prefix) and $(test-wrapper) with
66801         $(test-program-prefix) and $(test-via-rtld-prefix).
66802         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
66803         $(test-program-prefix).
66804         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
66805         $(host-test-program-cmd).
66806         (tst-spawn-ARGS): Likewise.
66807         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
66808         $(test-program-prefix).
66809         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
66810         (test_via_rtld_prefix): This.
66811         (test_wrapper): Renamed to ...
66812         (test_program_prefix): This.
66813         (run_program_prefix): Replaced by test_program_prefix.
66814         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
66815         (test_program_prefix): This.
66816         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
66817         with $(host-test-program-cmd).
66818         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
66819         $(run-program-prefix) with $(test-program-prefix).
66820         ($(objpfx)tst-printf.out): Likewise.
66821         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
66822         $(test-program-cmd).
66823         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
66824         (test_program_prefix): This.
66825         * stdio-common/tst-unbputc.sh: Likewise.
66826         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
66827         $(run-program-prefix) with $(test-program-prefix).
66828         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
66829         (test_program_prefix): This.
66830         * string/Makefile ($(objpfx)tst-svc.out):  Replace
66831         $(built-program-cmd) with $(test-program-cmd).
66832
66833 2013-01-11  Andreas Jaeger  <aj@suse.de>
66834
66835         [BZ #15003]
66836         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
66837         value. Sync with Linux 3.7.
66838
66839 2013-01-10  David S. Miller  <davem@davemloft.net>
66840
66841         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
66842         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66843         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66844
66845 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66846
66847         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
66848         never set.
66849         * configure: Regenerated.
66850
66851 2013-01-10  David S. Miller  <davem@davemloft.net>
66852
66853         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66854         sparc V9 rather than using V8 code.
66855         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66856         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66857
66858 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66859
66860         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
66861         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
66862         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
66863         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
66864         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
66865         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
66866         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
66867         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
66868         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
66869         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
66870         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
66871         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
66872         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
66873         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
66874         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
66875         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
66876         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
66877         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
66878         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
66879         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
66880         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
66881         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
66882         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
66883         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
66884         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
66885         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
66886         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
66887
66888 2013-01-10  David S. Miller  <davem@davemloft.net>
66889
66890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66891
66892 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66893
66894         * posix/Makefile (tests-static): New variable.
66895         (tests): Add $(tests-static).
66896         (tst-exec-static-ARGS): New variable.
66897         (tst-spawn-static-ARGS): Likewise.
66898         * posix/tst-exec-static.c: New file.
66899         * posix/tst-spawn-static.c: Likewise.
66900         * posix/tst-exec.c: Support run directly.
66901         * posix/tst-spawn.c: Likewise.
66902
66903 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
66904
66905         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
66906         long.
66907         * math/bits/mathcalls.h (llrint): Likewise.
66908         (llround): Likewise.
66909         * stdlib/stdlib.h (struct drand48_data): Likewise.
66910         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
66911         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
66912         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
66913         Likewise.
66914         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
66915         Likewise.
66916         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
66917         (elf_greg_t): Likewise.
66918         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
66919         (__jmp_buf): Likewise.
66920         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
66921         definitions.
66922         (llrint): Likewise, for all definitions.
66923         (llrintl): Likewise.
66924
66925         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
66926         Remove [__GNUC__] condition.
66927         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
66928         condition to just [__USE_ISOC99].
66929         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
66930
66931 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66932
66933         [BZ #14200]
66934         * sysdeps/unix/sysv/linux/x86/bits/environments.h
66935         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
66936         defined.
66937         (_POSIX_V6_ILP32_OFF32): Likewise.
66938         (_XBS5_ILP32_OFF32): Likewise.
66939         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
66940         (__ILP32_OFFBIG_LDFLAGS): Likewise.
66941
66942 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66943
66944         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
66945
66946         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
66947         doubles __mpexp_twomm1.  Adjust usage.
66948         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
66949         Remove.
66950
66951 2013-01-10  Andreas Schwab  <schwab@suse.de>
66952
66953         [BZ #14964]
66954         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
66955         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
66956
66957 2013-01-09  David S. Miller  <davem@davemloft.net>
66958
66959         [BZ #15003]
66960         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
66961         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
66962         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
66963         (TCP_FASTOPEN): Define.
66964         (tcp_repair_opt): New structure.
66965         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
66966         enum values.
66967         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
66968         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
66969         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
66970         (tcp_cookie_transactions): New structure.
66971
66972 2013-01-09  Anton Blanchard  <anton@samba.org>
66973
66974         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
66975         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
66976         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
66977         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
66978
66979 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
66980
66981         * include/features.h (__USE_ANSI): Remove.
66982
66983 2013-01-09  Roland McGrath  <roland@hack.frob.com>
66984
66985         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
66986
66987         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
66988
66989 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
66990
66991         * sysdeps/s390/fpu/libm-test-ulps: Update.
66992
66993         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66994
66995         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
66996         (__acr): Likewise.
66997         (__cpy): Likewise.
66998         (norm): Likewise.
66999         (denorm): Likewise.
67000         (__mp_dbl): Likewise.
67001         (__dbl_mp): Likewise.
67002         (add_magnitudes): Likewise.
67003         (sub_magnitudes): Likewise.
67004         (__add): Likewise.
67005         (__sub): Likewise.
67006         (__mul): Likewise.
67007         (__inv): Likewise.
67008         (__dvd): Likewise.
67009         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
67010         (__acr): Likewise.
67011         (__cpy): Likewise.
67012         (norm): Likewise.
67013         (denorm): Likewise.
67014         (__mp_dbl): Likewise.
67015         (__dbl_mp): Likewise.
67016         (add_magnitudes): Likewise.
67017         (sub_magnitudes): Likewise.
67018         (__add): Likewise.
67019         (__sub): Likewise.
67020         (__mul): Likewise.
67021         (__inv): Likewise.
67022         (__dvd): Likewise.
67023         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
67024         (__acr): Likewise.
67025         (__cpy): Likewise.
67026         (norm): Likewise.
67027         (denorm): Likewise.
67028         (__mp_dbl): Likewise.
67029         (__dbl_mp): Likewise.
67030         (add_magnitudes): Likewise.
67031         (sub_magnitudes): Likewise.
67032         (__add): Likewise.
67033         (__sub): Likewise.
67034         (__mul): Likewise.
67035         (__inv): Likewise.
67036         (__dvd): Likewise.
67037
67038 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
67039
67040         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
67041         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
67042         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
67043         2 && __USE_EXTERN_INLINES]: Likewise.
67044
67045 2013-01-08  Andreas Jaeger  <aj@suse.de>
67046
67047         [BZ #14985]
67048         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
67049         Remove.
67050         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
67051         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
67052
67053 2013-01-07  Anton Blanchard  <anton@samba.org>
67054
67055         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
67056         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
67057         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
67058         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
67059         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
67060         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
67061         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
67062         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67063         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67064         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67065         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
67066         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
67067         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
67068         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
67069         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
67070         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
67071         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
67072         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
67073         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
67074         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
67075         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
67076         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
67077         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
67078         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
67079         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
67080         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
67081         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
67082         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
67083         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
67084         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
67085         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
67086         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67087         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67088         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
67089         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
67090         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
67091         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
67092         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
67093         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
67094         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
67095         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
67096         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
67097         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
67098
67099 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
67100
67101         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
67102         (__MALLOC_PMT): Likewise.
67103         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
67104         [__GNUC__], only on [_LIBC].
67105         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67106         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
67107         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67108         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
67109         forward declaration.
67110         (realloc_hook_ini): Likewise.
67111         (memalign_hook_ini): Likewise.
67112         (__libc_memalign): Do not use __MALLOC_PMT in variable
67113         declaration.
67114         (__libc_valloc): Likewise.
67115         (__libc_pvalloc): Likewise.
67116         (__libc_calloc): Likewise.
67117         (__posix_memalign): Likewise.
67118
67119         [BZ #14996]
67120         * math/s_casinh.c: Include <float.h>.
67121         (__casinh): Do not do computation with squaring and square root
67122         for large arguments.
67123         * math/s_casinhf.c: Include <float.h>.
67124         (__casinhf): Do not do computation with squaring and square root
67125         for large arguments.
67126         * math/s_casinhl.c: Include <float.h>.
67127         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
67128         (__casinhl): Do not do computation with squaring and square root
67129         for large arguments.
67130         * math/libm-test.inc (casin_test): Add more tests.
67131         (casinh_test): Likewise.
67132         * sysdeps/i386/fpu/libm-test-ulps: Update.
67133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67134
67135 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
67136
67137         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
67138         (__x86_64_raw_data_cache_size): Likewise.
67139         (__x86_64_data_cache_size_half): Likewise.
67140         (__x86_64_raw_data_cache_size_half): Likewise.
67141         (__x86_64_shared_cache_size): Likewise.
67142         (__x86_64_raw_shared_cache_size): Likewise.
67143         (__x86_64_shared_cache_size_half): Likewise.
67144         (__x86_64_raw_shared_cache_size_half): Likewise.
67145         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
67146         to ...
67147         (__x86_data_cache_size): This.
67148         (__x86_64_raw_data_cache_size): Renamed to ...
67149         (__x86_raw_data_cache_size): This.
67150         (__x86_64_data_cache_size_half): Renamed to ...
67151         (__x86_data_cache_size_half): This.
67152         (__x86_64_raw_data_cache_size_half): Renamed to ...
67153         (__x86_raw_data_cache_size_half): This.
67154         (__x86_64_shared_cache_size): Renamed to ...
67155         (__x86_shared_cache_size): This.
67156         (__x86_64_raw_shared_cache_size): Renamed to ...
67157         (__x86_raw_shared_cache_size): This.
67158         (__x86_64_shared_cache_size_half): Renamed to ...
67159         (__x86_shared_cache_size_half): This.
67160         (__x86_64_raw_shared_cache_size_half): Renamed to ...
67161         (__x86_raw_shared_cache_size_half): This.
67162         * sysdeps/x86_64/memcpy.S: Updated.
67163         * sysdeps/x86_64/memset.S: Likewise.
67164         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
67165         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
67166         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
67167
67168 2013-01-04  David S. Miller  <davem@davemloft.net>
67169
67170         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67171
67172 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
67173
67174         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
67175         1 to avoid redefinition warning.
67176         (__USE_GNU): Don't define.
67177         (init_signaling_nan): Protoize.
67178
67179         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67180
67181 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67182
67183         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
67184         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
67185         (__cpymn): Likewise.
67186         (norm): Remove commented code.
67187         (denorm): Likewise.
67188         (__mp_dbl): Likewise.
67189         (__inv): Likewise.
67190         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
67191         (__cpymn): Likewise.
67192         (norm): Remove commented code.
67193         (denorm): Likewise.
67194         (__mp_dbl): Likewise.
67195         (__inv): Likewise.
67196
67197         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
67198         mp_no value for 1.0 and 2.0.
67199         (norm): Use RADIXI instead of radixi.d.
67200         (denorm): Likewise.
67201         (__mul): Use 0.0 instead of zero.d.
67202         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
67203         mp_no value for 1.0 and 2.0.
67204         (norm): Use RADIXI instead of radixi.d.
67205         (denorm): Likewise.
67206         (__mul): Use 0.0 instead of zero.d.
67207
67208 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
67209
67210         [BZ #14994]
67211         * math/s_casinh.c (__casinh): Reduce finite argument to first
67212         quadrant then set signs of results at the end.
67213         * math/s_casinhf.c (__casinhf): Likewise.
67214         * math/s_casinhl.c (__casinhl): Likewise.
67215         * math/libm-test.inc (casin_test): Add more tests.
67216         (casinh_test): Likewise.
67217         * sysdeps/i386/fpu/libm-test-ulps: Update.
67218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67219
67220 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67221
67222         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
67223
67224         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
67225
67226         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
67227         declarations.
67228         (denorm): Likewise.
67229         (__mp_dbl): Likewise.
67230         (__inv): Likewise.
67231
67232         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
67233         and adjust the header comment.
67234
67235         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
67236         variable name from declaration.
67237
67238 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
67239
67240         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67241         Initialize COMMON_CPUID_INDEX_7 element.
67242         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
67243         (CPUID_RTM): Likewise.
67244         (HAS_RTM): Likewise.
67245         (COMMON_CPUID_INDEX_7): New enum.
67246
67247 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
67248
67249         [BZ #14981]
67250         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
67251         size is zero, record memory as freed.
67252
67253 2013-01-03  Andreas Jaeger  <aj@suse.de>
67254
67255         * po/ia.po: Add new Interlingua translation.
67256
67257 2012-01-03  Allan McRae  <allan@archlinux.org>
67258
67259         * locale/programs/localedef.c: Fix description of '--posix' flag.
67260
67261 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
67262
67263         * NEWS: Update dates in second copyright notice.
67264         * README: Update copyright dates in example.
67265         * manual/libc.texinfo: Update copyright dates.
67266         * scripts/test-installation.pl: Update copyright date in --version
67267         output.
67268
67269         * hurd/ctty-input.c: Fix copyright notice formatting.
67270         * hurd/ctty-output.c: Likewise.
67271         * hurd/dtable.c: Likewise.
67272         * hurd/hurd-raise.c: Likewise.
67273         * hurd/hurdprio.c: Likewise.
67274         * hurd/msgportdemux.c: Likewise.
67275         * misc/sys/file.h: Likewise.
67276         * misc/sys/ioctl.h: Likewise.
67277         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
67278         * sysdeps/mach/hurd/chdir.c: Likewise.
67279         * sysdeps/mach/hurd/fchdir.c: Likewise.
67280         * sysdeps/mach/hurd/rename.c: Likewise.
67281         * sysdeps/mach/hurd/rmdir.c: Likewise.
67282         * sysdeps/mach/hurd/seekdir.c: Likewise.
67283         * sysdeps/mach/hurd/setsid.c: Likewise.
67284         * sysdeps/posix/wait3.c: Likewise.
67285
67286         * All files with FSF copyright notices: Update copyright dates
67287         using scripts/update-copyrights.
67288         * intl/plural.c: Regenerated.
67289         * locale/programs/charmap-kw.h: Likewise.
67290         * locale/programs/locfile-kw.h: Likewise.
67291
67292 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
67293
67294         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
67295         four values.
67296
67297         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
67298         calculation loop and add branch prediction.
67299
67300         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
67301         check access beyond bounds of m1np.
67302
67303         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67304         MPTWO.
67305         (__inv): Remove local variable MPTWO to use the global
67306         constant.
67307         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
67308         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67309         variable MPTWO.
67310         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
67311         MP3HALFS static const.
67312
67313 2013-01-01  David S. Miller  <davem@davemloft.net>
67314
67315         * po/ca.po: Update from translation team.
67316
67317 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
67318
67319         * scripts/update-copyrights: New file.
67320         * Makeconfig: Reformat copyright notice.
67321         * ctype/ctype.h: Likewise.
67322         * debug/swprintf_chk.c: Likewise.
67323         * elf/dl-cache.c: Likewise.
67324         * elf/dl-debug.c: Likewise.
67325         * elf/dl-object.c: Likewise.
67326         * grp/initgroups.c: Likewise.
67327         * hurd/Makefile: Likewise.
67328         * hurd/hurd/signal.h: Likewise.
67329         * hurd/hurdfault.c: Likewise.
67330         * hurd/hurdioctl.c: Likewise.
67331         * hurd/hurdlookup.c: Likewise.
67332         * hurd/intr-msg.c: Likewise.
67333         * iconv/gconv_open.c: Likewise.
67334         * libio/swprintf.c: Likewise.
67335         * locale/lc-ctype.c: Likewise.
67336         * locale/nl_langinfo.c: Likewise.
67337         * mach/Machrules: Likewise.
67338         * mach/Makefile: Likewise.
67339         * malloc/obstack.h: Likewise.
67340         * manual/Makefile: Likewise.
67341         * manual/tsort.awk: Likewise.
67342         * misc/bits/stab.def: Likewise.
67343         * nis/nis_print_group_entry.c: Likewise.
67344         * nis/nis_table.c: Likewise.
67345         * nis/nss_compat/compat-pwd.c: Likewise.
67346         * nis/nss_compat/compat-spwd.c: Likewise.
67347         * po/Makefile: Likewise.
67348         * posix/fnmatch.c: Likewise.
67349         * posix/regex.h: Likewise.
67350         * resolv/Makefile: Likewise.
67351         * resolv/nss_dns/dns-network.c: Likewise.
67352         * resolv/res_hconf.c: Likewise.
67353         * scripts/gen-sorted.awk: Likewise.
67354         * soft-fp/soft-fp.h: Likewise.
67355         * stdio-common/printf.h: Likewise.
67356         * stdlib/monetary.h: Likewise.
67357         * stdlib/random.c: Likewise.
67358         * stdlib/random_r.c: Likewise.
67359         * sysdeps/generic/Makefile: Likewise.
67360         * sysdeps/gnu/Makefile: Likewise.
67361         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67362         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67363         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67364         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67365         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67366         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67367         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67368         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67369         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67370         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67371         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
67372         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
67373         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
67374         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
67375         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
67376         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
67377         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
67378         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67379         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67380         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67381         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67382         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67383         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67384         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
67385         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
67386         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
67387         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
67388         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
67389         * sysdeps/mach/hurd/errnos.awk: Likewise.
67390         * sysdeps/mach/hurd/fork.c: Likewise.
67391         * sysdeps/mach/hurd/getcwd.c: Likewise.
67392         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
67393         * sysdeps/mach/hurd/mmap.c: Likewise.
67394         * sysdeps/mach/hurd/utimes.c: Likewise.
67395         * sysdeps/mach/hurd/xmknod.c: Likewise.
67396         * sysdeps/posix/profil.c: Likewise.
67397         * sysdeps/posix/readdir_r.c: Likewise.
67398         * sysdeps/powerpc/bits/mathdef.h: Likewise.
67399         * sysdeps/powerpc/bits/setjmp.h: Likewise.
67400         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
67401         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67402         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67403         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67404         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67405         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67406         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67407         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67408         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67409         * sysdeps/pthread/lio_listio.c: Likewise.
67410         * sysdeps/sparc/dl-procinfo.h: Likewise.
67411         * sysdeps/unix/i386/sysdep.S: Likewise.
67412         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
67413         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
67414         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
67415         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
67416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
67417         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
67418         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
67419         * sysdeps/unix/sysv/linux/speed.c: Likewise.
67420         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
67421         * sysdeps/wordsize-32/divdi3.c: Likewise.
67422         * time/sys/time.h: Likewise.
67423         * wcsmbs/Makefile: Likewise.
67424
67425 2013-01-01  David S. Miller  <davem@davemloft.net>
67426
67427         * po/fr.po: Update from translation team.
67428
67429         * catgets/gencat.c: Update copyright year.
67430         * csu/version.c: Likewise.
67431         * debug/catchsegv.sh: Likewise.
67432         * debug/pcprofiledump.c: Likewise.
67433         * debug/xtrace.sh: Likewise.
67434         * elf/ldconfig.c: Likewise.
67435         * elf/ldd.bash.in: Likewise.
67436         * elf/pldd.c: Likewise.
67437         * elf/sotruss.ksh: Likewise.
67438         * elf/sprof.c: Likewise.
67439         * iconv/iconv_prog.c: Likewise.
67440         * iconv/iconvconfig.c: Likewise.
67441         * locale/programs/locale.c: Likewise.
67442         * locale/programs/localedef.c: Likewise.
67443         * login/programs/pt_chown.c: Likewise.
67444         * malloc/memusage.sh: Likewise.
67445         * malloc/memusagestat.c: Likewise.
67446         * malloc/mtrace.pl: Likewise.
67447         * nscd/nscd.c: Likewise.
67448         * nss/getent.c: Likewise.
67449         * nss/makedb.c: Likewise.
67450         * posix/getconf.c: Likewise.
67451
67452 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
67453
67454         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
67455         numbers.
67456
67457 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
67458
67459         * math/bits/mathcalls.h (modf): Use __nonnull.
67460
67461 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
67462
67463         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
67464         (split): Use macro CN instead of the bare value.
67465         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
67466         could be used.
67467         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
67468         instead of the bare value.
67469         (power1): Likewise.
67470
67471 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67472
67473         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
67474         __ATAN_TWOM.
67475         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67476
67477         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
67478         their values.
67479         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
67480         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
67481         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
67482         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
67483
67484 2012-12-28  Andreas Jaeger  <aj@suse.de>
67485
67486         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
67487         values are from Linux 3.7.
67488
67489         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
67490         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
67491
67492 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67493
67494         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
67495         TRUE case.
67496
67497         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
67498         (norm): Likewise.
67499         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
67500         variables with preprocessor constants.
67501         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67502         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
67503         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
67504
67505 2012-12-27  Bruno Haible  <bruno@clisp.org>
67506
67507         [BZ #14317]
67508         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
67509         only if needed.
67510
67511 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67512
67513         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
67514         and use variable directly.
67515         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
67516
67517         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67518         MPONE.
67519         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
67520         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67521         variable MPONE.
67522         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
67523         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
67524         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
67525         include directive.  Remove local variable MPONE.
67526         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
67527         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
67528         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
67529
67530 2012-12-25  David S. Miller  <davem@davemloft.net>
67531
67532         * version.h (RELEASE): Set to "development".
67533         (VERSION): Set to "2.17.90".
67534         * NEWS: Add 2.18 section.
67535
67536 2012-12-21  David S. Miller  <davem@davemloft.net>
67537
67538         * po/hr.po: Update from translation team.
67539
67540 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67541
67542         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
67543
67544 2012-12-19  Steve Ellcey  <sellcey@mips.com>
67545
67546         * NEWS:  Mention new memcpy for MIPS.
67547
67548 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67549
67550         * manual/contrib.texi (Contributors): Spelling correction.
67551
67552 2012-12-15  David S. Miller  <davem@davemloft.net>
67553
67554         * po/ru.po: Update from translation team.
67555
67556 2012-12-13  David S. Miller  <davem@davemloft.net>
67557
67558         * NEWS: Mention IFUNC testsuite enhancements.
67559
67560         * po/pl.po: Update from translation team.
67561         * po/bg.po: Likewise.
67562
67563         * manual/contrib.texi (Contributors): Update entries for Hongjiu
67564         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
67565
67566 2012-12-11  David S. Miller  <davem@davemloft.net>
67567
67568         * po/sv.po: Update from translation team.
67569
67570         * po/vi.po: Update from translation team.
67571
67572         * po/cs.po: Update from translation team.
67573
67574         * po/de.po: Update from translation team.
67575         * po/eo.po: Likewise.
67576         * po/nl.po: Likewise.
67577
67578 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
67579
67580         [BZ #14246]
67581         * manual/argp.texi (Argp Helper Functions): Move node to follow
67582         Argp Parsing State.
67583
67584         [BZ #14872]
67585         * manual/conf.texi (Limits on File System Capacity): Mention if
67586         terminating null is included in the max size.
67587
67588 2012-12-10  Andreas Jaeger  <aj@suse.de>
67589
67590         * po/cs.po: Update from translation team.
67591
67592 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
67593
67594         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
67595         void pointer and cast to uintptr_t.
67596         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
67597         path.
67598         * sysdeps/s390/s390-64/memcpy.S: Likewise.
67599         * sysdeps/s390/s390-64/memset.S: Likewise.
67600
67601 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
67602
67603         [BZ #14833]
67604         * menual/message.texi (Message Translation): Fix typos.
67605         (Helper programs for gettext): Likewise.
67606
67607 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
67608
67609         [BZ #14898]
67610         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
67611         Change to -1.
67612
67613 2012-12-07  David S. Miller  <davem@davemloft.net>
67614
67615         * po/libc.pot: Update.
67616
67617 2012-12-07  Richard Henderson  <rth@redhat.com>
67618
67619         [BZ #10114]
67620         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
67621         normal/normal case to before the switch.
67622         (_FP_DIV): Likewise.
67623
67624 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
67625             Mike Frysinger  <vapier@gentoo.org>
67626
67627         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
67628         check for __NR_fadvise64_64.
67629
67630 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
67631
67632         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
67633         0, not just to plain "0" as a statement.
67634         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
67635         with cw.
67636
67637 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
67638
67639         * NEWS: Use sourceware.org in Bugzilla URL.
67640
67641 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67642
67643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
67644         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67645
67646         * stdio-common/tst-put-error.c (do_test): Add newline to the
67647         padded test to ensure flush.
67648
67649 2012-12-05  Jeff Law  <law@redhat.com>
67650
67651         * sunrpc/etc.rpc (fedfs_admin): Add entry.
67652
67653 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
67654
67655         * README: Don't refer to ports add-on as distributed separately.
67656         Mention AArch64 in list of systems supported in the ports add-on.
67657
67658         * LICENSES: Add more non-FSF copyright and license notices.
67659
67660         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
67661         ((unused)).
67662
67663         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
67664
67665         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
67666         10000 as width of padded output.
67667
67668 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67669
67670         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
67671
67672         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
67673         variable LX with __attribute__ ((unused)).
67674         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
67675         Likewise.
67676         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
67677         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67678         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
67679         with __attribute__ ((unused)).
67680
67681 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
67682
67683         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
67684
67685 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67686
67687         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
67688         (CFLAGS-nldbl-acos.c): New variable.
67689         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
67690         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
67691         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
67692         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
67693         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
67694         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
67695         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
67696         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
67697         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
67698         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
67699         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
67700         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
67701         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
67702         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
67703         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
67704         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
67705         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
67706         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
67707         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
67708         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
67709         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
67710         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
67711         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
67712         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
67713         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
67714         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
67715         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
67716         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
67717         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
67718         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
67719         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
67720         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
67721         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
67722         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
67723         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
67724         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
67725         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
67726         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
67727         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
67728         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
67729         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
67730         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
67731         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
67732         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
67733         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
67734         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
67735         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
67736         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
67737         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
67738         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
67739         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
67740         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
67741         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
67742         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
67743         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
67744         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
67745         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
67746         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
67747         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
67748         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
67749         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
67750         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
67751         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
67752         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
67753         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
67754         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
67755         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
67756         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
67757         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
67758         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
67759         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
67760         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
67761         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
67762         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
67763         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
67764         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
67765         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
67766         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
67767         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
67768         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
67769         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
67770         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
67771         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
67772         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
67773         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
67774         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
67775         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
67776         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
67777         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
67778         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
67779         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
67780         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
67781         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
67782         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
67783         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
67784         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
67785         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
67786
67787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
67788         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67789
67790         [BZ #14914]
67791         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
67792         whole low double instead of just low 47 bits when splitting values
67793         into two parts.
67794
67795 2012-12-03  Allan McRae  <allan@archlinux.org>
67796
67797         * manual/stdio.texi (Predefined Printf Handlers): Remove
67798         @hsep and @vsep usage.
67799
67800 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
67801
67802         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
67803         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
67804
67805 2012-12-03  Jeff Law  <law@redhat.com>
67806
67807         * time/sys/time.h (settimeofday): Do not mark TV argument
67808         as __nonnull.
67809
67810 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
67811
67812         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
67813         when currently writing and seek to current position when not.
67814         * libio/Makefile (tests): Remove bug-fclose1.
67815         * libio/bug-fclose1.c: Delete.
67816
67817 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
67818
67819         * manual/arith.texi (feenableexcept): Fix typo.
67820         (fedisableexcept): Likewise.
67821
67822 2012-11-30  Roland McGrath  <roland@hack.frob.com>
67823
67824         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
67825         second, differently-typed declaration, rather than a cast.
67826
67827 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
67828
67829         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
67830         * include/rpc/svc.h: ... here.
67831
67832 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
67833
67834         [BZ #13013]
67835         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
67836         depending n and resplen2 to catch cases where answer
67837         equals answerp2.
67838
67839 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
67840
67841         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
67842         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
67843
67844 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
67845
67846         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
67847
67848 2012-11-29  Roland McGrath  <roland@hack.frob.com>
67849
67850         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
67851
67852 2012-11-28  Jeff Law  <law@redhat.com>
67853
67854         [BZ #13761]
67855         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
67856         dataset_temporary.  Track alloca usage into alloca_used.
67857         If dataset is large allocate and release it via malloc/free.
67858
67859 2012-06-04  Florian Weimer  <fweimer@redhat.com>
67860
67861         [BZ #14197]
67862         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
67863
67864 2012-11-28  David S. Miller  <davem@davemloft.net>
67865
67866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67867
67868 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67869
67870         [BZ #14803]
67871         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
67872         of pi/2 rounded to nearest to 64 bits.
67873         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
67874         nearest to 64 bits.
67875         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
67876         bits.
67877
67878 2012-11-28  Jeff Law <law@redhat.com>
67879             Martin Osvald <mosvald@redhat.com>
67880
67881         [BZ #14889]
67882         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
67883         * sunrpc/svc.c: Include time.h.
67884         (__svc_accept_failed): New function.
67885         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
67886         any reason other than EINTR, call __svc_accept_failed.
67887         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
67888         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
67889
67890 2012-11-28  Andreas Schwab  <schwab@suse.de>
67891
67892         * scripts/abilist.awk: Also handle indirect functions in .opd
67893         section.
67894
67895 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67896
67897         [BZ #13881]
67898         * sysdeps/x86/fpu/powl_helper.c: New file.
67899         * sysdeps/x86/fpu/Makefile: Likewise.
67900         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
67901         (p3): New object.
67902         (__ieee754_powl): Use __powl_helper for finite arguments except
67903         integer exponents below 8.
67904         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
67905         (p3): New object.
67906         (__ieee754_powl): Use __powl_helper for finite arguments except
67907         integer exponents below 8.
67908         * math/libm-test.inc (pow_test): Add more tests and enable some
67909         previously disabled tests.
67910         * sysdeps/i386/fpu/libm-test-ulps: Update.
67911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67912
67913 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67914             Carlos O'Donell  <carlos_odonell@mentor.com>
67915
67916         * nss/makedb.c (is_prime): Assert that input is odd and greater
67917         than 4.  Note that fact in a comment too.
67918         (next_prime): Add 4 to input.
67919
67920 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67921
67922         [BZ #11741]
67923         * libio/Makefile (tests): Add test case tst-fwrite-error.
67924         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
67925         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
67926         * libio/tst-fwrite-error.c: New test case.
67927
67928 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
67929
67930         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
67931         before casting to void *.
67932         * include/libc-internal.h (__pointer_type): New macro.
67933         (__integer_if_pointer_type_sub): Likewise.
67934         (__integer_if_pointer_type): Likewise.
67935         (cast_to_integer): Likewise.
67936         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
67937         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
67938         before casting to atomic64_t.
67939         (atomic_exchange_acq): Likewise.
67940         (__arch_exchange_and_add_body): Likewise.
67941         (__arch_add_body): Likewise.
67942         (atomic_add_negative): Likewise.
67943         (atomic_add_zero): Likewise.
67944
67945 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
67946
67947         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
67948         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
67949         (add_fdes): Likewise.
67950         (linear_search_fdes): Likewise.
67951         (binary_search_unencoded_fdes): Likewise.
67952
67953 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
67954
67955         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
67956
67957 2012-11-24  Adam Conrad  <adconrad@0c3.net>
67958
67959         * configure.in: Autodetect C++ header directories.
67960         * configure: Regenerated.
67961
67962 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
67963
67964         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
67965
67966 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
67967
67968         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67969
67970 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
67971
67972         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
67973         LDBL_MANT_DIG == 106]: Disable some tests.
67974         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67975         Likewise.
67976         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67977         Likewise.
67978
67979         [BZ #14871]
67980         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
67981         input for small inputs.  Return +/- pi/2 for large inputs.
67982         * math/libm-test.inc (atan_test): Add more tests.
67983
67984         * sysdeps/generic/unwind-dw2-fde-glibc.c
67985         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
67986         __attribute__ ((unused)).
67987
67988         [BZ #14645]
67989         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
67990         x * y if x and y are nonzero and z is zero.
67991
67992         [BZ #14811]
67993         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
67994         nonzero exponents with absolute value below 0x1p-117 to +/-
67995         0x1p-117.
67996
67997         [BZ #14869]
67998         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
67999         up arguments below 2**-450, not just those below 2**-500.
68000         * math/libm-test.inc (hypot_test): Add another test.
68001
68002         [BZ #14868]
68003         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
68004         Return a+b for ratio over 2**120, not 2**60.
68005         * math/libm-test.inc (hypot_test): Add another test.
68006
68007         * math/libm-test.inc (clog_test): Use
68008         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
68009         (clog10_test): Likewise.
68010
68011         [BZ #6778]
68012         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
68013
68014 2012-11-22  Andreas Schwab  <schwab@suse.de>
68015
68016         * sysdeps/i386/fpu/libm-test-ulps: Update.
68017
68018 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
68019
68020         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
68021         printf output with newline.
68022
68023 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
68024
68025         [BZ #14865]
68026         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
68027         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
68028         -z nodlopen, -z initfirst and -z execstack support.
68029         * configure: Regenerated.
68030
68031         * elf/elf.h (DF_1_NODIRECT): New macro.
68032         (DF_1_IGNMULDEF): Likewise.
68033         (DF_1_NOKSYMS): Likewise.
68034         (DF_1_NOHDR): Likewise.
68035         (DF_1_EDITED): Likewise.
68036         (DF_1_NORELOC): Likewise.
68037         (DF_1_SYMINTPOSE): Likewise.
68038         (DF_1_GLOBAUDIT): Likewise.
68039         (DF_1_SINGLETON): Likewise.
68040         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
68041         DT_1_SUPPORTED_MASK bits.
68042         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
68043
68044 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
68045
68046         * sysdeps/unix/make-syscalls.sh: Document prefixes.
68047
68048 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
68049
68050         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
68051         macro.
68052
68053         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
68054         (sendmmsg): Move declarations...
68055         * socket/sys/socket.h: ... here.
68056         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
68057         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
68058         include it from...
68059         * socket/recvmmsg.c: ... this new file.
68060         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
68061         (sendmmsg): Rename to __sendmmsg, create weak alias and make
68062         definition of __sendmmsg hidden.
68063         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
68064         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
68065         Move ENOSYS stub into and include it from...
68066         * socket/sendmmsg.c: ... this new file.
68067         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
68068         (sysdep_routines): Move recvmmsg and sendmmsg...
68069         * socket/Makefile (routines): ... here.
68070         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
68071         (GLIBC_PRIVATE): Add __sendmmsg.
68072         * include/sys/socket.h (__sendmmsg): Add declarations.
68073         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
68074         sendmmsg.
68075
68076 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
68077
68078         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
68079         variable I1 with __attribute__ ((unused)).
68080         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68081
68082 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68083
68084         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
68085         DUMMY variables with __attribute__ ((unused)).
68086
68087         * bits/byteswap.h: Include <bits/types.h>.
68088         (__bswap_64): Use __uint64_t instead of unsigned long long int.
68089
68090 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68091
68092         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
68093         string_t.  Do not manually set errno.
68094         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
68095         length with __strnlen.  Make sure to both set errno and return it on
68096         failure.
68097
68098 2012-11-19  David S. Miller  <davem@davemloft.net>
68099
68100         With help from Joseph Myers.
68101         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
68102         very large arguments properly.
68103         * math/libm-test.inc (atan_test): New tests.
68104         (atan2_test): New tests.
68105         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68107
68108 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68109
68110         [BZ #14856]
68111         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
68112         Define to 3.
68113
68114         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
68115         [POSIX] (EADDRNOTAVAIL): Likewise.
68116         [POSIX] (EAFNOSUPPORT): Likewise.
68117         [POSIX] (EALREADY): Likewise.
68118         [POSIX] (ECONNABORTED): Likewise.
68119         [POSIX] (ECONNREFUSED): Likewise.
68120         [POSIX] (ECONNRESET): Likewise.
68121         [POSIX] (EDESTADDRREQ): Likewise.
68122         [POSIX] (EDQUOT): Likewise.
68123         [POSIX] (EHOSTUNREACH): Likewise.
68124         [POSIX] (EIDRM): Likewise.
68125         [POSIX] (EISCONN): Likewise.
68126         [POSIX] (ELOOP): Likewise.
68127         [POSIX] (EMULTIHOP): Likewise.
68128         [POSIX] (ENETDOWN): Likewise.
68129         [POSIX] (ENETUNREACH): Likewise.
68130         [POSIX] (ENOBUFS): Likewise.
68131         [POSIX] (ENODATA): Likewise.
68132         [POSIX] (ENOLINK): Likewise.
68133         [POSIX] (ENOMSG): Likewise.
68134         [POSIX] (ENOPROTOOPT): Likewise.
68135         [POSIX] (ENOSR): Likewise.
68136         [POSIX] (ENOSTR): Likewise.
68137         [POSIX] (ENOTCONN): Likewise.
68138         [POSIX] (ENOTSOCK): Likewise.
68139         [POSIX] (EOPNOTSUPP): Likewise.
68140         [POSIX] (EOVERFLOW): Likewise.
68141         [POSIX] (EPROTO): Likewise.
68142         [POSIX] (EPROTONOSUPPORT): Likewise.
68143         [POSIX] (EPROTOTYPE): Likewise.
68144         [POSIX] (ESTALE): Likewise.
68145         [POSIX] (ETIME): Likewise.
68146         [POSIX] (ETXTBSY): Likewise.
68147         [POSIX] (EWOULDBLOCK): Likewise.
68148         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
68149         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
68150         [POSIX] (SEEK_CUR): Likewise.
68151         [POSIX] (SEEK_END): Likewise.
68152         [POSIX || UNIX98] (mode_t): Do not require.
68153         [POSIX] (off_t): Likewise.
68154         [POSIX] (pid_t): Likewise.
68155         [POSIX] (sys/stat.h): Do not allow header.
68156         [POSIX] (unistd.h): Likewise.
68157         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
68158         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
68159         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
68160         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
68161         require.
68162         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
68163         sigevent): Specify elements.
68164         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
68165         entry.
68166         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
68167         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
68168
68169         * conform/data/cpio.h-data [POSIX]: Disable whole file.
68170         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
68171         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
68172         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
68173         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
68174         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
68175         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
68176         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
68177         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
68178         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
68179         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
68180         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
68181         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
68182         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
68183         Likewise.
68184         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
68185         Likewise.
68186         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
68187         Likewise.
68188         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
68189         Likewise.
68190         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
68191         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
68192         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
68193         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
68194         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
68195         Specify lower bound on value.
68196         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
68197         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
68198         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
68199         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
68200         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
68201         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
68202         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
68203         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
68204         value.
68205         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
68206         as optional.
68207         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
68208         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
68209         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
68210         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
68211         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
68212         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
68213         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
68214         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
68215         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
68216         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
68217         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
68218         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
68219         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
68220         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
68221         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
68222         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
68223         entry.
68224         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
68225         optional.
68226         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
68227         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
68228         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
68229         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
68230         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
68231         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
68232         Likewise.
68233         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
68234         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
68235         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
68236         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
68237         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
68238         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
68239         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
68240         as optional.
68241         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
68242         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
68243         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
68244         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
68245         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
68246         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
68247         specify as optional.
68248         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
68249         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
68250         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
68251         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
68252         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
68253         [XPG3] (NL_LANGMAX): Likewise.
68254         [POSIX || XPG3] (NL_MSGMAX): Likewise.
68255         [POSIX || XPG3] (NL_NMAX): Likewise.
68256         [POSIX || XPG3] (NL_SETMAX): Likewise.
68257         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
68258         [XPG3] (NZERO): Likewise.
68259         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
68260         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
68261         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
68262         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
68263         (REG_ERANGE): Expect.
68264         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
68265         optional-constant.
68266         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
68267         Use (void) in prototype.
68268         [POSIX] (*_t): Allow.
68269         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
68270         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
68271         (WRDE_BADVAL): Expect.
68272
68273         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
68274         expect.
68275         [XPG3 || XPG4] (O_RSYNC): Likewise.
68276         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
68277         Likewise.
68278         [XPG3 || XPG4] (pthread_sigmask): Likewise.
68279         [XPG3 || XPG4] (sigqueue): Likewise.
68280         [XPG3 || XPG4] (sigtimedwait): Likewise.
68281         [XPG3 || XPG4] (sigwaitinfo): Likewise.
68282         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
68283         [XPG3 || XPG4] (vsnprintf): Likewise.
68284         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
68285         Likewise.
68286         [XPG3 || XPG4] (blksize_t): Likewise.
68287         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
68288         Likewise.
68289         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
68290         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
68291         [XPG3 || XPG4] (struct itimerspec): Likewise.
68292         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
68293         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
68294         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
68295         [XPG3 || XPG4] (clockid_t): Likewise.
68296         [XPG3 || XPG4] (timer_t): Likewise.
68297         [XPG3 || XPG4] (clock_getres): Likewise.
68298         [XPG3 || XPG4] (clock_gettime): Likewise.
68299         [XPG3 || XPG4] (clock_settime): Likewise.
68300         [XPG3 || XPG4] (nanosleep): Likewise.
68301         [XPG3 || XPG4] (timer_create): Likewise.
68302         [XPG3 || XPG4] (timer_delete): Likewise.
68303         [XPG3 || XPG4] (timer_gettime): Likewise.
68304         [XPG3 || XPG4] (timer_getoverrun): Likewise.
68305         [XPG3 || XPG4] (timer_settime): Likewise.
68306         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
68307         [XPG3 || XPG4] (getlogin_r): Likewise.
68308         [XPG3 || XPG4] (pread): Likewise.
68309         [XPG3 || XPG4] (pthread_atfork): Likewise.
68310         [XPG3 || XPG4] (pwrite): Likewise.
68311
68312         [BZ #14835]
68313         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
68314         <bits/siginfo.h>.
68315
68316 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68317
68318         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
68319         finalizing MALLSTREAM.
68320
68321         * sysdeps/mach/hurd/syncfs.c: New file.
68322
68323 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68324
68325         [BZ #14719]
68326         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
68327         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
68328         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
68329         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
68330         (_nss_dns_gethostbyname4_r): Likewise.
68331         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
68332         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
68333
68334 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
68335
68336         [BZ #13763]
68337         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
68338
68339 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
68340
68341         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
68342         * elf/cache.c (print_entry): Print ",AArch64" for
68343         FLAG_AARCH64_LIB64
68344
68345         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
68346         * elf/cache.c (print_entry): Print ",hard-float" for
68347         FLAG_ARM_LIBHF.
68348
68349 2012-11-18  David S. Miller  <davem@davemloft.net>
68350
68351         With help from Joseph Myers.
68352         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
68353         cutoff to 2**-13.
68354         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
68355         cutoff to 2**-25.
68356         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
68357         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
68358         small.
68359         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
68360         * math/libm-test.inc (y0_test): New tests.
68361         (y1_test): New tests.
68362         * sysdeps/i386/fpu/libm-test-ulps: Update.
68363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68364         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68365
68366 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
68367
68368         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
68369         64-bit targets.
68370         * configure: Regenerated.
68371
68372 2012-11-17  David S. Miller  <davem@davemloft.net>
68373
68374         [BZ #14811]
68375         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
68376         nonzero exponents with absolute value below 0x1p-128 to +/-
68377         0x1p-128.
68378
68379 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
68380
68381         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
68382
68383         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
68384
68385         * posix/getconf-speclist.c: New file.
68386         * posix/posix-envs.def: Likewise.
68387         * posix/confstr.c (START_ENV_GROUP): New macro.
68388         (END_ENV_GROUP): Likewise.
68389         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68390         (KNOWN_PRESENT_ENV_STRING): Likewise.
68391         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68392         (UNKNOWN_ENVIRONMENT): Likewise.
68393         (confstr): Include posix-envs.def instead of handling
68394         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
68395         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
68396         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
68397         (END_ENV_GROUP): Likewise.
68398         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68399         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68400         (UNKNOWN_ENVIRONMENT): Likewise.
68401         (__sysconf): Include posix-envs.def instead of handling associated
68402         cases directly here.
68403         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
68404         preprocessing getconf-speclist.c rather than running getconf or
68405         generating empty file.
68406
68407 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
68408
68409         * scripts/check-local-headers.sh: Ignore 'mach' headers.
68410
68411 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
68412
68413         [BZ #14672]
68414         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
68415
68416 2012-11-16  David S. Miller  <davem@davemloft.net>
68417
68418         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
68419         smaller than LDBL_EPSILON/2.0L, just return xm1.
68420
68421 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
68422
68423         * elf/tst-array1.c (init): Set constructor priority to 1000.
68424         (fini): Set destructor priority to 1000.
68425         * elf/tst-array2dep.c: Likewise.
68426
68427 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68428
68429         [BZ #11741]
68430         * libio/fileops.c (_IO_new_file_write): Correctly return error.
68431         (_IO_new_file_xsputn): Also return EOF if none of the input
68432         data was written when overflow failed.
68433         * libio/iopadn.c (_IO_padn): Likewise.
68434         * libio/iowpadn.c (_IO_wpadn): Likewise.
68435         * stdio-common/tst-put-error.c: Add copyright notice.
68436         (do_test): Add case for printing padded string.
68437         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
68438         _IO_padn returned error.
68439         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
68440         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
68441         return EOF.
68442
68443 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68444
68445         * libio/libioP.h: Add comment note that the references to C++
68446         bits are now obsolete.
68447
68448 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68449
68450         * math/libm-test.inc (check_complex): Use asprintf.
68451
68452 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
68453
68454         * debug/pcprofiledump.c (print_version): Update copyright year.
68455         * malloc/memusagestat.c (print_version): Likewise.
68456
68457 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
68458
68459         [BZ #14831]
68460         * elf/Makefile (tests): Add tst-audit8.
68461         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
68462         ($(objpfx)tst-audit8.out): New target.
68463         (tst-audit8-ENV): New variable.
68464         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
68465         audit if l_reloc_result is NULL.
68466         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
68467         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
68468         * elf/tst-audit8.c: New file.
68469
68470 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68471
68472         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
68473         * misc/Makefile (CFLAGS-select.c): Define.
68474         * posix/Makefile (CFLAGS-pause.c): Define.
68475
68476 2012-11-13  David S. Miller  <davem@davemloft.net>
68477
68478         * crypt/Makefile: Move test targets after toplevel Rules
68479         inclusion.  Grab any necessary sysdep routines when linking.
68480         * crypt/md5.c (md5_process_block): Remove define, we will always
68481         name it __md5_process_block.
68482         (md5_finish_ctx): Update md5_process_block call.
68483         (md5_stream): Likewise.
68484         (md5_process_bytes): Likewise.
68485         (md5_process_block): Rename to __md5_process_block and move to ...
68486         * crypt/md5-block.c: ... here.
68487         * crypt/sha256.c (sha256_process_block): Move to ...
68488         * crypt/sha256-block.c: ... here.
68489         * crypt/sha512.c (sha512_process_block): Move to ...
68490         * crypt/sha512-block.c: ... here.
68491         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
68492         path.
68493         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68494         * sysdeps/sparc/sparc64/multiarch/Makefile
68495         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
68496         crypt subdir.
68497         (localedef-aux): Add md5 crypto assembler when in locale subdir.
68498         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
68499         multiarch changes.
68500         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
68501         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
68502         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
68503         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
68504         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
68505         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
68506         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
68507         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
68508         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
68509         file.
68510         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
68511         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
68512         file.
68513         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
68514
68515 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
68516
68517         * timezone/tzselect.ksh: Update from tzcode git revision
68518         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
68519         * timezone/zdump.c: Likewise.
68520         * timezone/zic.c: Likewise.
68521         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
68522         in TZVERSION setting, not $(PKGVERSION).
68523         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68524         REPORT_BUGS_TO settings.
68525
68526         [BZ #14838]
68527         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
68528         macro.
68529
68530 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68531
68532         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
68533         detection to immediately after _FP_ROUND().
68534         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
68535         bits are 0.
68536
68537 2012-11-11  David S. Miller  <davem@davemloft.net>
68538
68539         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
68540         inttypes.h
68541         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
68542         __close rather than their public counterparts.
68543
68544 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
68545
68546         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
68547         file.
68548         [UNIX98] (sem_timedwait): Do not expect.
68549         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
68550         [XPG4 || UNIX98] (sockatmark): Do not expect.
68551         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
68552         (clock_getcpuclockid): Do not expect.
68553         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
68554         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
68555         Do not expect.
68556         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
68557         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
68558         [UNIX98] (vwscanf): Likewise.
68559         [UNIX98] (vswscanf): Likewise.
68560
68561 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
68562
68563         * timezone/version.h: Remove file.
68564         * timezone/README: Do not refer to version.h.
68565         * timezone/Makefile ($(objpfx)zic.o): New dependency on
68566         $(objpfx)version.h.
68567         ($(objpfx)zdump.o): Likewise.
68568         ($(objpfx)version.h): New target.
68569
68570         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
68571         2012i.
68572         * timezone/README: Don't mention modification to tzselect.ksh.
68573         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
68574         work on unmodified tzselect.ksh.  Substitute version numbers in
68575         tzselect.ksh.
68576
68577         * Makefile (format-me): Remove.
68578         (INSTALL): Adjust indentation.  Use commands directly instead of
68579         using $(format-me).
68580
68581         * aclocal.m4 (ACX_PKGVERSION): New macro.
68582         (ACX_BUGURL): Likewise.
68583         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
68584         (PKGVERSION): New AC_DEFINE_UNQUOTED.
68585         (REPORT_BUGS_TO): Likewise.
68586         * configure: Regenerated.
68587         * config.h.in (PKGVERSION): New macro.
68588         (REPORT_BUGS_TO): Likewise.
68589         * config.make.in (PKGVERSION): New variable.
68590         (PKGVERSION_TEXI): Likewise.
68591         (REPORT_BUGS_TO): Likewise.
68592         (REPORT_BUGS_TEXI): Likewise.
68593         * Makefile (format-me): Use -I$(common-objpfx)manual.
68594         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
68595         ($(common-objpfx)manual/%): New target.
68596         (manual/%): Remove target.
68597         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
68598         (print_version): Use PKGVERSION.
68599         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
68600         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
68601         and REPORT_BUGS_TO.
68602         ($(objpfx)xtrace): Likewise.
68603         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
68604         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
68605         (print_version): Use PKGVERSION.
68606         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
68607         (do_version): Use PKGVERSION.
68608         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
68609         REPORT_BUGS_TO.
68610         (common-ldd-rewrite): Likewise.
68611         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
68612         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
68613         (print_version): Use PKGVERSION.
68614         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
68615         * elf/pldd.c (argp_program_bug_address): Remove variable.
68616         (more_help): New function.
68617         (argp): Use more_help.
68618         (print_version): Use PKGVERSION.
68619         * elf/sln.c (main): Use PKGVERSION.
68620         (usage): Use REPORT_BUGS_TO.
68621         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
68622         (top level): Use PKGVERSION.
68623         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
68624         (print_version): Use PKGVERSION.
68625         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
68626         (print_version): Use PKGVERSION.
68627         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
68628         (print_version): Use PKGVERSION.
68629         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
68630         (print_version): Use PKGVERSION.
68631         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
68632         (print_version): Use PKGVERSION.
68633         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
68634         (print_version): Use PKGVERSION.
68635         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
68636         and BUGURL.
68637         ($(objpfx)memusage): Likewise.
68638         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
68639         (do_version): Use PKGVERSION.
68640         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
68641         (print_version): Use PKGVERSION.
68642         * malloc/mtrace.pl ($PACKAGE): Remove variable.
68643         ($PKGVERSION): New variable.
68644         ($REPORT_BUGS_TO): Likewise.
68645         (usage): Use $REPORT_BUGS_TO.
68646         (top level): Use $PKGVERSION.
68647         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
68648         ($(objpfx)pkgvers.texi): New rule.
68649         ($(objpfx)stamp-pkgvers): Likewise.
68650         * manual/install.texi: Include pkgvers.texi.
68651         (--with-pkgversion): Document new configure option.
68652         (--with-bugurl): Likewise.
68653         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
68654         than necessarily for this particular distribution.  Use
68655         REPORT_BUGS_TO for where to report bugs.
68656         * INSTALL: Regenerated.
68657         * manual/libc.texinfo: Include pkgvers.texi.
68658         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
68659         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
68660         (print_version): Use PKGVERSION.
68661         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
68662         (print_version): Use PKGVERSION.
68663         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
68664         (print_version): Use PKGVERSION.
68665         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
68666         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
68667         macro.
68668         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
68669         (print_version): Use PKGVERSION.
68670         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
68671         (print_version): Use PKGVERSION.
68672         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
68673         and PKGVERSION.
68674
68675         * timezone/checktab.awk: Update from tzcode 2012i.
68676         * timezone/ialloc.c: Likewise.
68677         * timezone/private.h: Likewise.
68678         * timezone/scheck.c: Likewise.
68679         * timezone/tzfile.h: Likewise.
68680         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
68681         (TZVERSION): Hardcode tzcode version number.
68682         * timezone/zdump.c: Update from tzcode 2012i.
68683         * timezone/zic.c: Likewise.
68684         * timezone/version.h: New file.
68685         * timezone/README: Describe version.h.  Update upstream location.
68686
68687         [BZ #14824]
68688         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
68689         (mktemp): Enable declaration.
68690         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
68691         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
68692         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
68693         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
68694         Likewise.
68695         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
68696         Likewise.
68697         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
68698         Likewise.
68699         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
68700         Likewise.
68701         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
68702         Likewise.
68703         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
68704         Likewise.
68705
68706         [BZ #14821]
68707         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
68708         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
68709         for copies of such integer values.
68710         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
68711         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
68712
68713 2012-11-09  Andreas Jaeger  <aj@suse.de>
68714
68715         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
68716         definitions and declarations that are provided by
68717         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
68718
68719 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68720
68721         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
68722         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
68723         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
68724         definition.
68725
68726 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68727
68728         * elf/elf.h: Update comment before AArch64 relocations.
68729
68730 2012-11-07  David S. Miller  <davem@davemloft.net>
68731
68732         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
68733         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
68734         (__start_context): Declare.
68735         (__makecontext_ret): Delete.
68736         (__makecontext): Hook up __start_context instead of
68737         __makecontext_ret.
68738         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
68739         (sysdep_routines): Add __start_context when in stdlib.
68740
68741 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68742
68743         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
68744         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
68745         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
68746         hardcoded "nm".
68747         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
68748         (READELF): New variable.  Use it instead of hardcoded "readelf".
68749
68750 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
68751
68752         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
68753         * sysdeps/x86/Makefile: Here.
68754         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
68755         * sysdeps/x86/tst-xmmymm.sh: This.
68756
68757 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68758
68759         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
68760         expectations.
68761         [UNIX98] (pthread_barrier_t): Do not expect.
68762         [UNIX98] (pthread_barrierattr_t): Likewise.
68763         [UNIX98] (pthread_spinlock_t): Likewise.
68764         [UNIX98] (pthread_barrier_destroy): Likewise.
68765         [UNIX98] (pthread_barrier_init): Likewise.
68766         [UNIX98] (pthread_barrier_wait): Likewise.
68767         [UNIX98] (pthread_barrierattr_destroy): Likewise.
68768         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
68769         [UNIX98] (pthread_barrierattr_init): Likewise.
68770         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
68771         [UNIX98] (pthread_getcpuclockid): Likewise.
68772         [UNIX98] (pthread_mutex_timedlock): Likewise.
68773         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
68774         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
68775         [UNIX98] (pthread_sigmask): Likewise.
68776         [UNIX98] (pthread_spin_destroy): Likewise.
68777         [UNIX98] (pthread_spin_init): Likewise.
68778         [UNIX98] (pthread_spin_lock): Likewise.
68779         [UNIX98] (pthread_spin_trylock): Likewise.
68780         [UNIX98] (pthread_spin_unlock): Likewise.
68781         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
68782         Do not expect.
68783         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
68784         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
68785         [XPG3 || XPG4] (pthread_cond_t): Likewise.
68786         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
68787         [XPG3 || XPG4] (pthread_key_t): Likewise.
68788         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
68789         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
68790         [XPG3 || XPG4] (pthread_once_t): Likewise.
68791         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
68792         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
68793         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
68794         [XPG3 || XPG4] (pthread_t): Likewise.
68795
68796         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
68797         not expect.
68798         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
68799
68800         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
68801         Change function return type to int.
68802
68803         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
68804         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
68805         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
68806         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
68807         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
68808         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
68809         [!POSIX] (posix_madvise): Likewise.
68810         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
68811         && !UNIX98].
68812         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
68813         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
68814         (mode_t): Likewise.
68815         (posix_mem_offset): Likewise.
68816         (posix_typed_mem_get_info): Likewise.
68817         (posix_typed_mem_open): Likewise.
68818
68819         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
68820         Change condition to [XOPEN2K8].
68821
68822         * conform/conformtest.pl: Preprocess allow-header data with -x c
68823         instead of from stdin.
68824         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
68825         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
68826         [C99-based standards] (cerfc): Likewise.
68827         [C99-based standards] (cexp2): Likewise.
68828         [C99-based standards] (cexpm1): Likewise.
68829         [C99-based standards] (clog10): Likewise.
68830         [C99-based standards] (clog1p): Likewise.
68831         [C99-based standards] (clog2): Likewise.
68832         [C99-based standards] (clgamma): Likewise.
68833         [C99-based standards] (ctgamma): Likewise.
68834         [C99-based standards] (cerff): Likewise.
68835         [C99-based standards] (cerfcf): Likewise.
68836         [C99-based standards] (cexp2f): Likewise.
68837         [C99-based standards] (cexpm1f): Likewise.
68838         [C99-based standards] (clog10f): Likewise.
68839         [C99-based standards] (clog1pf): Likewise.
68840         [C99-based standards] (clog2f): Likewise.
68841         [C99-based standards] (clgammaf): Likewise.
68842         [C99-based standards] (ctgammaf): Likewise.
68843         [C99-based standards] (cerfl): Likewise.
68844         [C99-based standards] (cerfcl): Likewise.
68845         [C99-based standards] (cexp2l): Likewise.
68846         [C99-based standards] (cexpm1l): Likewise.
68847         [C99-based standards] (clog10l): Likewise.
68848         [C99-based standards] (clog1pl): Likewise.
68849         [C99-based standards] (clog2l): Likewise.
68850         [C99-based standards] (clgammal): Likewise.
68851         [C99-based standards] (ctgammal): Likewise.
68852         * conform/data/inttypes.h-data [C99-based standards]: Include
68853         stdint.h-data.  Remove all expectations for stdint.h contents.
68854         [C99-based standards] (PRI*): Do not allow.
68855         [C99-based standards] (SCN*): Likewise.
68856         [C99-based standards] (*_t): Likewise.
68857         [C99-based-standards] (PRId8): Expect macro.
68858         [C99-based-standards] (PRIi8): Likewise.
68859         [C99-based-standards] (PRIo8): Likewise.
68860         [C99-based-standards] (PRIu8): Likewise.
68861         [C99-based-standards] (PRIx8): Likewise.
68862         [C99-based-standards] (PRIX8): Likewise.
68863         [C99-based-standards] (SCNd8): Likewise.
68864         [C99-based-standards] (SCNi8): Likewise.
68865         [C99-based-standards] (SCNo8): Likewise.
68866         [C99-based-standards] (SCNu8): Likewise.
68867         [C99-based-standards] (SCNx8): Likewise.
68868         [C99-based-standards] (PRIdLEAST8): Likewise.
68869         [C99-based-standards] (PRIiLEAST8): Likewise.
68870         [C99-based-standards] (PRIoLEAST8): Likewise.
68871         [C99-based-standards] (PRIuLEAST8): Likewise.
68872         [C99-based-standards] (PRIxLEAST8): Likewise.
68873         [C99-based-standards] (PRIXLEAST8): Likewise.
68874         [C99-based-standards] (SCNdLEAST8): Likewise.
68875         [C99-based-standards] (SCNiLEAST8): Likewise.
68876         [C99-based-standards] (SCNoLEAST8): Likewise.
68877         [C99-based-standards] (SCNuLEAST8): Likewise.
68878         [C99-based-standards] (SCNxLEAST8): Likewise.
68879         [C99-based-standards] (PRIdFAST8): Likewise.
68880         [C99-based-standards] (PRIiFAST8): Likewise.
68881         [C99-based-standards] (PRIoFAST8): Likewise.
68882         [C99-based-standards] (PRIuFAST8): Likewise.
68883         [C99-based-standards] (PRIxFAST8): Likewise.
68884         [C99-based-standards] (PRIXFAST8): Likewise.
68885         [C99-based-standards] (SCNdFAST8): Likewise.
68886         [C99-based-standards] (SCNiFAST8): Likewise.
68887         [C99-based-standards] (SCNoFAST8): Likewise.
68888         [C99-based-standards] (SCNuFAST8): Likewise.
68889         [C99-based-standards] (SCNxFAST8): Likewise.
68890         [C99-based-standards] (PRId16): Likewise.
68891         [C99-based-standards] (PRIi16): Likewise.
68892         [C99-based-standards] (PRIo16): Likewise.
68893         [C99-based-standards] (PRIu16): Likewise.
68894         [C99-based-standards] (PRIx16): Likewise.
68895         [C99-based-standards] (PRIX16): Likewise.
68896         [C99-based-standards] (SCNd16): Likewise.
68897         [C99-based-standards] (SCNi16): Likewise.
68898         [C99-based-standards] (SCNo16): Likewise.
68899         [C99-based-standards] (SCNu16): Likewise.
68900         [C99-based-standards] (SCNx16): Likewise.
68901         [C99-based-standards] (PRIdLEAST16): Likewise.
68902         [C99-based-standards] (PRIiLEAST16): Likewise.
68903         [C99-based-standards] (PRIoLEAST16): Likewise.
68904         [C99-based-standards] (PRIuLEAST16): Likewise.
68905         [C99-based-standards] (PRIxLEAST16): Likewise.
68906         [C99-based-standards] (PRIXLEAST16): Likewise.
68907         [C99-based-standards] (SCNdLEAST16): Likewise.
68908         [C99-based-standards] (SCNiLEAST16): Likewise.
68909         [C99-based-standards] (SCNoLEAST16): Likewise.
68910         [C99-based-standards] (SCNuLEAST16): Likewise.
68911         [C99-based-standards] (SCNxLEAST16): Likewise.
68912         [C99-based-standards] (PRIdFAST16): Likewise.
68913         [C99-based-standards] (PRIiFAST16): Likewise.
68914         [C99-based-standards] (PRIoFAST16): Likewise.
68915         [C99-based-standards] (PRIuFAST16): Likewise.
68916         [C99-based-standards] (PRIxFAST16): Likewise.
68917         [C99-based-standards] (PRIXFAST16): Likewise.
68918         [C99-based-standards] (SCNdFAST16): Likewise.
68919         [C99-based-standards] (SCNiFAST16): Likewise.
68920         [C99-based-standards] (SCNoFAST16): Likewise.
68921         [C99-based-standards] (SCNuFAST16): Likewise.
68922         [C99-based-standards] (SCNxFAST16): Likewise.
68923         [C99-based-standards] (PRId32): Likewise.
68924         [C99-based-standards] (PRIi32): Likewise.
68925         [C99-based-standards] (PRIo32): Likewise.
68926         [C99-based-standards] (PRIu32): Likewise.
68927         [C99-based-standards] (PRIx32): Likewise.
68928         [C99-based-standards] (PRIX32): Likewise.
68929         [C99-based-standards] (SCNd32): Likewise.
68930         [C99-based-standards] (SCNi32): Likewise.
68931         [C99-based-standards] (SCNo32): Likewise.
68932         [C99-based-standards] (SCNu32): Likewise.
68933         [C99-based-standards] (SCNx32): Likewise.
68934         [C99-based-standards] (PRIdLEAST32): Likewise.
68935         [C99-based-standards] (PRIiLEAST32): Likewise.
68936         [C99-based-standards] (PRIoLEAST32): Likewise.
68937         [C99-based-standards] (PRIuLEAST32): Likewise.
68938         [C99-based-standards] (PRIxLEAST32): Likewise.
68939         [C99-based-standards] (PRIXLEAST32): Likewise.
68940         [C99-based-standards] (SCNdLEAST32): Likewise.
68941         [C99-based-standards] (SCNiLEAST32): Likewise.
68942         [C99-based-standards] (SCNoLEAST32): Likewise.
68943         [C99-based-standards] (SCNuLEAST32): Likewise.
68944         [C99-based-standards] (SCNxLEAST32): Likewise.
68945         [C99-based-standards] (PRIdFAST32): Likewise.
68946         [C99-based-standards] (PRIiFAST32): Likewise.
68947         [C99-based-standards] (PRIoFAST32): Likewise.
68948         [C99-based-standards] (PRIuFAST32): Likewise.
68949         [C99-based-standards] (PRIxFAST32): Likewise.
68950         [C99-based-standards] (PRIXFAST32): Likewise.
68951         [C99-based-standards] (SCNdFAST32): Likewise.
68952         [C99-based-standards] (SCNiFAST32): Likewise.
68953         [C99-based-standards] (SCNoFAST32): Likewise.
68954         [C99-based-standards] (SCNuFAST32): Likewise.
68955         [C99-based-standards] (SCNxFAST32): Likewise.
68956         [C99-based-standards] (PRId64): Likewise.
68957         [C99-based-standards] (PRIi64): Likewise.
68958         [C99-based-standards] (PRIo64): Likewise.
68959         [C99-based-standards] (PRIu64): Likewise.
68960         [C99-based-standards] (PRIx64): Likewise.
68961         [C99-based-standards] (PRIX64): Likewise.
68962         [C99-based-standards] (SCNd64): Likewise.
68963         [C99-based-standards] (SCNi64): Likewise.
68964         [C99-based-standards] (SCNo64): Likewise.
68965         [C99-based-standards] (SCNu64): Likewise.
68966         [C99-based-standards] (SCNx64): Likewise.
68967         [C99-based-standards] (PRIdLEAST64): Likewise.
68968         [C99-based-standards] (PRIiLEAST64): Likewise.
68969         [C99-based-standards] (PRIoLEAST64): Likewise.
68970         [C99-based-standards] (PRIuLEAST64): Likewise.
68971         [C99-based-standards] (PRIxLEAST64): Likewise.
68972         [C99-based-standards] (PRIXLEAST64): Likewise.
68973         [C99-based-standards] (SCNdLEAST64): Likewise.
68974         [C99-based-standards] (SCNiLEAST64): Likewise.
68975         [C99-based-standards] (SCNoLEAST64): Likewise.
68976         [C99-based-standards] (SCNuLEAST64): Likewise.
68977         [C99-based-standards] (SCNxLEAST64): Likewise.
68978         [C99-based-standards] (PRIdFAST64): Likewise.
68979         [C99-based-standards] (PRIiFAST64): Likewise.
68980         [C99-based-standards] (PRIoFAST64): Likewise.
68981         [C99-based-standards] (PRIuFAST64): Likewise.
68982         [C99-based-standards] (PRIxFAST64): Likewise.
68983         [C99-based-standards] (PRIXFAST64): Likewise.
68984         [C99-based-standards] (SCNdFAST64): Likewise.
68985         [C99-based-standards] (SCNiFAST64): Likewise.
68986         [C99-based-standards] (SCNoFAST64): Likewise.
68987         [C99-based-standards] (SCNuFAST64): Likewise.
68988         [C99-based-standards] (SCNxFAST64): Likewise.
68989         [C99-based-standards] (PRIdMAX): Likewise.
68990         [C99-based-standards] (PRIiMAX): Likewise.
68991         [C99-based-standards] (PRIoMAX): Likewise.
68992         [C99-based-standards] (PRIuMAX): Likewise.
68993         [C99-based-standards] (PRIxMAX): Likewise.
68994         [C99-based-standards] (PRIXMAX): Likewise.
68995         [C99-based-standards] (SCNdMAX): Likewise.
68996         [C99-based-standards] (SCNiMAX): Likewise.
68997         [C99-based-standards] (SCNoMAX): Likewise.
68998         [C99-based-standards] (SCNuMAX): Likewise.
68999         [C99-based-standards] (SCNxMAX): Likewise.
69000         [C99-based-standards] (PRIdPTR): Likewise.
69001         [C99-based-standards] (PRIiPTR): Likewise.
69002         [C99-based-standards] (PRIoPTR): Likewise.
69003         [C99-based-standards] (PRIuPTR): Likewise.
69004         [C99-based-standards] (PRIxPTR): Likewise.
69005         [C99-based-standards] (PRIXPTR): Likewise.
69006         [C99-based-standards] (SCNdPTR): Likewise.
69007         [C99-based-standards] (SCNiPTR): Likewise.
69008         [C99-based-standards] (SCNoPTR): Likewise.
69009         [C99-based-standards] (SCNuPTR): Likewise.
69010         [C99-based-standards] (SCNxPTR): Likewise.
69011         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
69012         allow.
69013         * conform/data/stdint.h-data: Update comments to clarify
69014         requirements.
69015         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
69016         type.
69017         [C99-based standards] (INT8_MAX): Likewise.
69018         [C99-based standards] (INT16_MIN): Likewise.
69019         [C99-based standards] (INT16_MAX): Likewise.
69020         [C99-based standards] (INT32_MIN): Likewise.
69021         [C99-based standards] (INT32_MAX): Likewise.
69022         [C99-based standards] (INT64_MIN): Likewise.
69023         [C99-based standards] (INT64_MAX): Likewise.
69024         [C99-based standards] (UINT8_MAX): Likewise.
69025         [C99-based standards] (UINT16_MAX): Likewise.
69026         [C99-based standards] (UINT32_MAX): Likewise.
69027         [C99-based standards] (UINT64_MAX): Likewise.
69028         [C99-based standards] (INT_LEAST8_MIN): Likewise.
69029         [C99-based standards] (INT_LEAST8_MAX): Likewise.
69030         [C99-based standards] (INT_LEAST16_MIN): Likewise.
69031         [C99-based standards] (INT_LEAST16_MAX): Likewise.
69032         [C99-based standards] (INT_LEAST32_MIN): Likewise.
69033         [C99-based standards] (INT_LEAST32_MAX): Likewise.
69034         [C99-based standards] (INT_LEAST64_MIN): Likewise.
69035         [C99-based standards] (INT_LEAST64_MAX): Likewise.
69036         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
69037         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
69038         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
69039         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
69040         [C99-based standards] (INT_FAST8_MIN): Likewise.
69041         [C99-based standards] (INT_FAST8_MAX): Likewise.
69042         [C99-based standards] (INT_FAST16_MIN): Likewise.
69043         [C99-based standards] (INT_FAST16_MAX): Likewise.
69044         [C99-based standards] (INT_FAST32_MIN): Likewise.
69045         [C99-based standards] (INT_FAST32_MAX): Likewise.
69046         [C99-based standards] (INT_FAST64_MIN): Likewise.
69047         [C99-based standards] (INT_FAST64_MAX): Likewise.
69048         [C99-based standards] (UINT_FAST8_MAX): Likewise.
69049         [C99-based standards] (UINT_FAST16_MAX): Likewise.
69050         [C99-based standards] (UINT_FAST32_MAX): Likewise.
69051         [C99-based standards] (UINT_FAST64_MAX): Likewise.
69052         [C99-based standards] (INTPTR_MIN): Likewise.
69053         [C99-based standards] (INTPTR_MAX): Likewise.
69054         [C99-based standards] (UINTPTR_MAX): Likewise.
69055         [C99-based standards] (INTMAX_MIN): Likewise.
69056         [C99-based standards] (INTMAX_MAX): Likewise.
69057         [C99-based standards] (UINTMAX_MAX): Likewise.
69058         [C99-based standards] (PTRDIFF_MIN): Likewise.
69059         [C99-based standards] (PTRDIFF_MAX): Likewise.
69060         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
69061         [C99-based standards] (SIZE_MAX): Likewise.
69062         [C99-based standards] (WCHAR_MAX): Likewise.
69063         [C99-based standards] (WINT_MAX): Likewise.
69064         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
69065         constraint on value.
69066         [C99-based standards] (WCHAR_MIN): Likewise.
69067         [C99-based standards] (WINT_MIN): Likewise.
69068         [C99-based standards] (*_t): Allow.
69069         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
69070         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
69071         Include math.h-data and complex.h-data.  Remove all expectations
69072         of math.h and complex.h contents.
69073         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
69074         at end of line.
69075         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
69076         (struct tm): Expect tag.
69077         [C99-based-standards] (wcstof): Expect function.
69078         [C99-based-standards] (wcstold): Likewise.
69079         [C99-based-standards] (wcstoll): Likewise.
69080         [C99-based-standards] (wcstoull): Likewise.
69081         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
69082         macro-int-constant.  Specify type.
69083         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
69084         constraint on value.
69085         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69086         Specify type.
69087         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
69088         Specify value.
69089         [ISO C standards]: Do not allow headers.
69090         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
69091         wcs[abcdefghijklmnopqrstuvwxyz]*.
69092         [ISO C standards] (*_t): Do not allow.
69093         * conform/data/wctype.h-data [C99-based standards] (iswblank):
69094         Expect function.
69095         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
69096         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69097         Specify type.
69098         [ISO C standards]: Do not allow headers.
69099         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
69100         is[abcdefghijklmnopqrstuvwxyz]*.
69101         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
69102         to[abcdefghijklmnopqrstuvwxyz]*.
69103         [ISO C standards] (*_t): Do not allow.
69104         * conform/data/stdalign.h-data: New file.
69105         * conform/data/stdbool.h-data: Likewise.
69106         * conform/data/stdnoreturn.h-data: Likewise.
69107
69108 2012-11-07  Roland McGrath  <roland@hack.frob.com>
69109
69110         [BZ #14815]
69111         * manual/filesys.texi (Directory Entries): Typo fix.
69112         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
69113
69114 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
69115
69116         * elf/elf.h (EM_AARCH64): New macro.
69117         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
69118         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
69119         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
69120         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
69121         (R_AARCH64_TLSDESC): Likewise.
69122         (NT_ARM_TLS): Likewise.
69123         (NT_ARM_HW_BREAK): Likewise.
69124         (NT_ARM_HW_WATCH): Likewise.
69125
69126 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69127
69128         [BZ #14811]
69129         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
69130         (__ieee754_powl): Saturate nonzero exponents with absolute value
69131         below 0x1p-79 to +/- 0x1p-79.
69132         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
69133         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
69134         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
69135         nonzero exponents with absolute value below 0x1p-32 to +/-
69136         0x1p-32.
69137         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
69138         (__ieee754_powl): Saturate nonzero exponents with absolute value
69139         below 0x1p-79 to +/- 0x1p-79.
69140         * math/libm-test.inc (pow_test): Add more tests.
69141
69142 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
69143
69144         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
69145         _dl_s390_cap_flags with kernel. Increase string length.
69146         (_dl_s390_platforms): Add z196 and zEC12.
69147
69148 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69149
69150         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
69151         Change XOPEN21K to XOPEN2K.
69152
69153 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
69154
69155         * string/memmove.c: Use memcpy when possible.
69156
69157 2012-11-06  Andreas Jaeger  <aj@suse.de>
69158
69159         * po/eo.po: Update from translation team.
69160
69161 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
69162
69163         [BZ #14793]
69164         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
69165         exponent and small x and y exponents, scale x or y up.  Increase
69166         by 2 the exponent used in scaling up.
69167         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69168         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69169         * math/libm-test.inc (fma_test): Add more tests.
69170         (fma_test_towardzero): Likewise.
69171         (fma_test_downward): Likewise.
69172         (fma_test_upward): Likewise.
69173
69174 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
69175
69176         [BZ #14805]
69177         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
69178         fenv_t *.
69179
69180         [BZ #14801]
69181         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
69182         namespace for names of struct fields.
69183         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
69184         fenv_t fields.
69185         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
69186         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
69187
69188 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69189
69190         [BZ #3665]
69191         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
69192
69193 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69194
69195         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
69196         PTR_DEMANGLE.
69197
69198         [BZ #5246]
69199         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
69200         PTR_DEMANGLE.
69201
69202 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
69203
69204         [BZ #14797]
69205         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
69206         definitely overflow as x * y not x * y + z.
69207         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69208         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69209         * math/libm-test.inc (fma_test): Add more tests.
69210         (fma_test_towardzero): Likewise.
69211         (fma_test_downward): Likewise.
69212         (fma_test_upward): Likewise.
69213
69214 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69215
69216         [BZ #157]
69217
69218         * include/stub-tag.h: Remove file.
69219         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
69220         '#include' of it.
69221         * manual/maint.texi (Porting): Don't reference it.
69222         * Makerules ($(objpfx)stubs): Likewise.
69223         * dirent/closedir.c: Don't include <stub-tag.h>.
69224         * dirent/dirfd.c: Likewise.
69225         * dirent/fdopendir.c: Likewise.
69226         * dirent/getdents.c: Likewise.
69227         * dirent/getdents64.c: Likewise.
69228         * dirent/opendir.c: Likewise.
69229         * dirent/readdir.c: Likewise.
69230         * dirent/readdir64.c: Likewise.
69231         * dirent/readdir64_r.c: Likewise.
69232         * dirent/readdir_r.c: Likewise.
69233         * dirent/rewinddir.c: Likewise.
69234         * dirent/seekdir.c: Likewise.
69235         * dirent/telldir.c: Likewise.
69236         * gmon/profil.c: Likewise.
69237         * grp/setgroups.c: Likewise.
69238         * inet/if_index.c: Likewise.
69239         * io/access.c: Likewise.
69240         * io/chdir.c: Likewise.
69241         * io/chmod.c: Likewise.
69242         * io/chown.c: Likewise.
69243         * io/close.c: Likewise.
69244         * io/dup.c: Likewise.
69245         * io/dup2.c: Likewise.
69246         * io/dup3.c: Likewise.
69247         * io/euidaccess.c: Likewise.
69248         * io/faccessat.c: Likewise.
69249         * io/fchdir.c: Likewise.
69250         * io/fchmod.c: Likewise.
69251         * io/fchmodat.c: Likewise.
69252         * io/fchown.c: Likewise.
69253         * io/fchownat.c: Likewise.
69254         * io/fcntl.c: Likewise.
69255         * io/flock.c: Likewise.
69256         * io/fstatfs.c: Likewise.
69257         * io/fstatfs64.c: Likewise.
69258         * io/fstatvfs.c: Likewise.
69259         * io/fstatvfs64.c: Likewise.
69260         * io/futimens.c: Likewise.
69261         * io/fxstat.c: Likewise.
69262         * io/fxstat64.c: Likewise.
69263         * io/fxstatat.c: Likewise.
69264         * io/fxstatat64.c: Likewise.
69265         * io/getcwd.c: Likewise.
69266         * io/isatty.c: Likewise.
69267         * io/lchmod.c: Likewise.
69268         * io/lchown.c: Likewise.
69269         * io/link.c: Likewise.
69270         * io/linkat.c: Likewise.
69271         * io/lseek.c: Likewise.
69272         * io/lseek64.c: Likewise.
69273         * io/lxstat64.c: Likewise.
69274         * io/mkdir.c: Likewise.
69275         * io/mkdirat.c: Likewise.
69276         * io/mkfifo.c: Likewise.
69277         * io/mkfifoat.c: Likewise.
69278         * io/open.c: Likewise.
69279         * io/open64.c: Likewise.
69280         * io/openat.c: Likewise.
69281         * io/openat64.c: Likewise.
69282         * io/pipe.c: Likewise.
69283         * io/pipe2.c: Likewise.
69284         * io/poll.c: Likewise.
69285         * io/posix_fadvise.c: Likewise.
69286         * io/posix_fadvise64.c: Likewise.
69287         * io/posix_fallocate.c: Likewise.
69288         * io/posix_fallocate64.c: Likewise.
69289         * io/read.c: Likewise.
69290         * io/readlink.c: Likewise.
69291         * io/readlinkat.c: Likewise.
69292         * io/rmdir.c: Likewise.
69293         * io/sendfile.c: Likewise.
69294         * io/sendfile64.c: Likewise.
69295         * io/statfs.c: Likewise.
69296         * io/statfs64.c: Likewise.
69297         * io/statvfs.c: Likewise.
69298         * io/statvfs64.c: Likewise.
69299         * io/symlink.c: Likewise.
69300         * io/symlinkat.c: Likewise.
69301         * io/ttyname.c: Likewise.
69302         * io/ttyname_r.c: Likewise.
69303         * io/umask.c: Likewise.
69304         * io/unlink.c: Likewise.
69305         * io/unlinkat.c: Likewise.
69306         * io/utime.c: Likewise.
69307         * io/utimensat.c: Likewise.
69308         * io/write.c: Likewise.
69309         * io/xmknod.c: Likewise.
69310         * io/xmknodat.c: Likewise.
69311         * io/xstat.c: Likewise.
69312         * io/xstat64.c: Likewise.
69313         * login/getpt.c: Likewise.
69314         * login/grantpt.c: Likewise.
69315         * login/unlockpt.c: Likewise.
69316         * math/e_acoshl.c: Likewise.
69317         * math/e_acosl.c: Likewise.
69318         * math/e_asinl.c: Likewise.
69319         * math/e_atan2l.c: Likewise.
69320         * math/e_atanhl.c: Likewise.
69321         * math/e_coshl.c: Likewise.
69322         * math/e_expl.c: Likewise.
69323         * math/e_fmodl.c: Likewise.
69324         * math/e_gammal_r.c: Likewise.
69325         * math/e_hypotl.c: Likewise.
69326         * math/e_j0l.c: Likewise.
69327         * math/e_j1l.c: Likewise.
69328         * math/e_jnl.c: Likewise.
69329         * math/e_lgammal_r.c: Likewise.
69330         * math/e_log10l.c: Likewise.
69331         * math/e_log2l.c: Likewise.
69332         * math/e_logl.c: Likewise.
69333         * math/e_powl.c: Likewise.
69334         * math/e_rem_pio2l.c: Likewise.
69335         * math/e_sinhl.c: Likewise.
69336         * math/e_sqrtl.c: Likewise.
69337         * math/fclrexcpt.c: Likewise.
69338         * math/fedisblxcpt.c: Likewise.
69339         * math/feenablxcpt.c: Likewise.
69340         * math/fegetenv.c: Likewise.
69341         * math/fegetexcept.c: Likewise.
69342         * math/fegetround.c: Likewise.
69343         * math/feholdexcpt.c: Likewise.
69344         * math/fesetenv.c: Likewise.
69345         * math/fesetround.c: Likewise.
69346         * math/feupdateenv.c: Likewise.
69347         * math/fgetexcptflg.c: Likewise.
69348         * math/fraiseexcpt.c: Likewise.
69349         * math/fsetexcptflg.c: Likewise.
69350         * math/ftestexcept.c: Likewise.
69351         * math/k_cosl.c: Likewise.
69352         * math/k_rem_pio2l.c: Likewise.
69353         * math/k_sinl.c: Likewise.
69354         * math/k_tanl.c: Likewise.
69355         * math/s_asinhl.c: Likewise.
69356         * math/s_atanl.c: Likewise.
69357         * math/s_cbrtl.c: Likewise.
69358         * math/s_erfl.c: Likewise.
69359         * math/s_expm1l.c: Likewise.
69360         * math/s_log1pl.c: Likewise.
69361         * math/s_tanhl.c: Likewise.
69362         * misc/acct.c: Likewise.
69363         * misc/brk.c: Likewise.
69364         * misc/chflags.c: Likewise.
69365         * misc/chroot.c: Likewise.
69366         * misc/fchflags.c: Likewise.
69367         * misc/fgetxattr.c: Likewise.
69368         * misc/flistxattr.c: Likewise.
69369         * misc/fremovexattr.c: Likewise.
69370         * misc/fsetxattr.c: Likewise.
69371         * misc/fsync.c: Likewise.
69372         * misc/ftruncate.c: Likewise.
69373         * misc/futimes.c: Likewise.
69374         * misc/futimesat.c: Likewise.
69375         * misc/getdomain.c: Likewise.
69376         * misc/getdtsz.c: Likewise.
69377         * misc/gethostid.c: Likewise.
69378         * misc/gethostname.c: Likewise.
69379         * misc/getloadavg.c: Likewise.
69380         * misc/getpagesize.c: Likewise.
69381         * misc/getsysstats.c: Likewise.
69382         * misc/getxattr.c: Likewise.
69383         * misc/gtty.c: Likewise.
69384         * misc/ioctl.c: Likewise.
69385         * misc/lgetxattr.c: Likewise.
69386         * misc/listxattr.c: Likewise.
69387         * misc/llistxattr.c: Likewise.
69388         * misc/lremovexattr.c: Likewise.
69389         * misc/lsetxattr.c: Likewise.
69390         * misc/lutimes.c: Likewise.
69391         * misc/madvise.c: Likewise.
69392         * misc/mincore.c: Likewise.
69393         * misc/mlock.c: Likewise.
69394         * misc/mlockall.c: Likewise.
69395         * misc/mmap.c: Likewise.
69396         * misc/mprotect.c: Likewise.
69397         * misc/msync.c: Likewise.
69398         * misc/munlock.c: Likewise.
69399         * misc/munlockall.c: Likewise.
69400         * misc/munmap.c: Likewise.
69401         * misc/preadv.c: Likewise.
69402         * misc/preadv64.c: Likewise.
69403         * misc/ptrace.c: Likewise.
69404         * misc/pwritev.c: Likewise.
69405         * misc/pwritev64.c: Likewise.
69406         * misc/readv.c: Likewise.
69407         * misc/reboot.c: Likewise.
69408         * misc/remap_file_pages.c: Likewise.
69409         * misc/removexattr.c: Likewise.
69410         * misc/revoke.c: Likewise.
69411         * misc/select.c: Likewise.
69412         * misc/setdomain.c: Likewise.
69413         * misc/setegid.c: Likewise.
69414         * misc/seteuid.c: Likewise.
69415         * misc/sethostid.c: Likewise.
69416         * misc/sethostname.c: Likewise.
69417         * misc/setregid.c: Likewise.
69418         * misc/setreuid.c: Likewise.
69419         * misc/setxattr.c: Likewise.
69420         * misc/sstk.c: Likewise.
69421         * misc/stty.c: Likewise.
69422         * misc/swapoff.c: Likewise.
69423         * misc/swapon.c: Likewise.
69424         * misc/sync.c: Likewise.
69425         * misc/syncfs.c: Likewise.
69426         * misc/syscall.c: Likewise.
69427         * misc/truncate.c: Likewise.
69428         * misc/ualarm.c: Likewise.
69429         * misc/usleep.c: Likewise.
69430         * misc/ustat.c: Likewise.
69431         * misc/utimes.c: Likewise.
69432         * misc/vhangup.c: Likewise.
69433         * misc/writev.c: Likewise.
69434         * posix/_exit.c: Likewise.
69435         * posix/alarm.c: Likewise.
69436         * posix/execve.c: Likewise.
69437         * posix/fexecve.c: Likewise.
69438         * posix/fork.c: Likewise.
69439         * posix/fpathconf.c: Likewise.
69440         * posix/getaddrinfo.c: Likewise.
69441         * posix/getegid.c: Likewise.
69442         * posix/geteuid.c: Likewise.
69443         * posix/getgid.c: Likewise.
69444         * posix/getgroups.c: Likewise.
69445         * posix/getlogin.c: Likewise.
69446         * posix/getlogin_r.c: Likewise.
69447         * posix/getpgid.c: Likewise.
69448         * posix/getpid.c: Likewise.
69449         * posix/getppid.c: Likewise.
69450         * posix/getresgid.c: Likewise.
69451         * posix/getresuid.c: Likewise.
69452         * posix/getsid.c: Likewise.
69453         * posix/getuid.c: Likewise.
69454         * posix/glob64.c: Likewise.
69455         * posix/nanosleep.c: Likewise.
69456         * posix/pathconf.c: Likewise.
69457         * posix/pause.c: Likewise.
69458         * posix/posix_madvise.c: Likewise.
69459         * posix/pread.c: Likewise.
69460         * posix/pread64.c: Likewise.
69461         * posix/pwrite.c: Likewise.
69462         * posix/pwrite64.c: Likewise.
69463         * posix/sched_getaffinity.c: Likewise.
69464         * posix/sched_getp.c: Likewise.
69465         * posix/sched_gets.c: Likewise.
69466         * posix/sched_primax.c: Likewise.
69467         * posix/sched_primin.c: Likewise.
69468         * posix/sched_rr_gi.c: Likewise.
69469         * posix/sched_setaffinity.c: Likewise.
69470         * posix/sched_setp.c: Likewise.
69471         * posix/sched_sets.c: Likewise.
69472         * posix/sched_yield.c: Likewise.
69473         * posix/setgid.c: Likewise.
69474         * posix/setlogin.c: Likewise.
69475         * posix/setpgid.c: Likewise.
69476         * posix/setresgid.c: Likewise.
69477         * posix/setresuid.c: Likewise.
69478         * posix/setsid.c: Likewise.
69479         * posix/setuid.c: Likewise.
69480         * posix/sleep.c: Likewise.
69481         * posix/spawni.c: Likewise.
69482         * posix/sysconf.c: Likewise.
69483         * posix/times.c: Likewise.
69484         * posix/wait.c: Likewise.
69485         * posix/wait3.c: Likewise.
69486         * posix/wait4.c: Likewise.
69487         * posix/waitpid.c: Likewise.
69488         * resolv/gai_sigqueue.c: Likewise.
69489         * resource/getpriority.c: Likewise.
69490         * resource/getrlimit.c: Likewise.
69491         * resource/getrusage.c: Likewise.
69492         * resource/nice.c: Likewise.
69493         * resource/setpriority.c: Likewise.
69494         * resource/setrlimit.c: Likewise.
69495         * resource/ulimit.c: Likewise.
69496         * rt/aio_cancel.c: Likewise.
69497         * rt/aio_fsync.c: Likewise.
69498         * rt/aio_read.c: Likewise.
69499         * rt/aio_sigqueue.c: Likewise.
69500         * rt/aio_suspend.c: Likewise.
69501         * rt/aio_write.c: Likewise.
69502         * rt/clock_getres.c: Likewise.
69503         * rt/clock_gettime.c: Likewise.
69504         * rt/clock_nanosleep.c: Likewise.
69505         * rt/clock_settime.c: Likewise.
69506         * rt/lio_listio.c: Likewise.
69507         * rt/mq_close.c: Likewise.
69508         * rt/mq_getattr.c: Likewise.
69509         * rt/mq_notify.c: Likewise.
69510         * rt/mq_open.c: Likewise.
69511         * rt/mq_receive.c: Likewise.
69512         * rt/mq_send.c: Likewise.
69513         * rt/mq_setattr.c: Likewise.
69514         * rt/mq_timedreceive.c: Likewise.
69515         * rt/mq_timedsend.c: Likewise.
69516         * rt/mq_unlink.c: Likewise.
69517         * rt/shm_open.c: Likewise.
69518         * rt/shm_unlink.c: Likewise.
69519         * rt/timer_create.c: Likewise.
69520         * rt/timer_delete.c: Likewise.
69521         * rt/timer_getoverr.c: Likewise.
69522         * rt/timer_gettime.c: Likewise.
69523         * rt/timer_settime.c: Likewise.
69524         * setjmp/__longjmp.c: Likewise.
69525         * setjmp/setjmp.c: Likewise.
69526         * signal/kill.c: Likewise.
69527         * signal/killpg.c: Likewise.
69528         * signal/raise.c: Likewise.
69529         * signal/sigaction.c: Likewise.
69530         * signal/sigaltstack.c: Likewise.
69531         * signal/sigblock.c: Likewise.
69532         * signal/sigignore.c: Likewise.
69533         * signal/sigintr.c: Likewise.
69534         * signal/signal.c: Likewise.
69535         * signal/sigpause.c: Likewise.
69536         * signal/sigpending.c: Likewise.
69537         * signal/sigqueue.c: Likewise.
69538         * signal/sigreturn.c: Likewise.
69539         * signal/sigset.c: Likewise.
69540         * signal/sigsetmask.c: Likewise.
69541         * signal/sigstack.c: Likewise.
69542         * signal/sigsuspend.c: Likewise.
69543         * signal/sigtimedwait.c: Likewise.
69544         * signal/sigvec.c: Likewise.
69545         * signal/sigwait.c: Likewise.
69546         * signal/sigwaitinfo.c: Likewise.
69547         * signal/sysv_signal.c: Likewise.
69548         * socket/accept.c: Likewise.
69549         * socket/accept4.c: Likewise.
69550         * socket/bind.c: Likewise.
69551         * socket/connect.c: Likewise.
69552         * socket/getpeername.c: Likewise.
69553         * socket/getsockname.c: Likewise.
69554         * socket/getsockopt.c: Likewise.
69555         * socket/isfdtype.c: Likewise.
69556         * socket/listen.c: Likewise.
69557         * socket/recv.c: Likewise.
69558         * socket/recvfrom.c: Likewise.
69559         * socket/recvmsg.c: Likewise.
69560         * socket/send.c: Likewise.
69561         * socket/sendmsg.c: Likewise.
69562         * socket/sendto.c: Likewise.
69563         * socket/setsockopt.c: Likewise.
69564         * socket/shutdown.c: Likewise.
69565         * socket/sockatmark.c: Likewise.
69566         * socket/socket.c: Likewise.
69567         * socket/socketpair.c: Likewise.
69568         * stdio-common/ctermid.c: Likewise.
69569         * stdio-common/cuserid.c: Likewise.
69570         * stdio-common/remove.c: Likewise.
69571         * stdio-common/rename.c: Likewise.
69572         * stdio-common/renameat.c: Likewise.
69573         * stdio-common/tempname.c: Likewise.
69574         * stdlib/getcontext.c: Likewise.
69575         * stdlib/makecontext.c: Likewise.
69576         * stdlib/setcontext.c: Likewise.
69577         * stdlib/swapcontext.c: Likewise.
69578         * stdlib/system.c: Likewise.
69579         * streams/fattach.c: Likewise.
69580         * streams/fdetach.c: Likewise.
69581         * streams/getmsg.c: Likewise.
69582         * streams/getpmsg.c: Likewise.
69583         * streams/putmsg.c: Likewise.
69584         * streams/putpmsg.c: Likewise.
69585         * sysdeps/unix/bsd/getpt.c: Likewise.
69586         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
69587         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
69588         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
69589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
69590         Likewise.
69591         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
69592         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
69593         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
69594         * sysvipc/msgctl.c: Likewise.
69595         * sysvipc/msgget.c: Likewise.
69596         * sysvipc/msgrcv.c: Likewise.
69597         * sysvipc/msgsnd.c: Likewise.
69598         * sysvipc/semctl.c: Likewise.
69599         * sysvipc/semget.c: Likewise.
69600         * sysvipc/semop.c: Likewise.
69601         * sysvipc/semtimedop.c: Likewise.
69602         * sysvipc/shmat.c: Likewise.
69603         * sysvipc/shmctl.c: Likewise.
69604         * sysvipc/shmdt.c: Likewise.
69605         * sysvipc/shmget.c: Likewise.
69606         * termios/tcdrain.c: Likewise.
69607         * termios/tcflow.c: Likewise.
69608         * termios/tcflush.c: Likewise.
69609         * termios/tcgetattr.c: Likewise.
69610         * termios/tcgetpgrp.c: Likewise.
69611         * termios/tcsendbrk.c: Likewise.
69612         * termios/tcsetattr.c: Likewise.
69613         * termios/tcsetpgrp.c: Likewise.
69614         * time/adjtime.c: Likewise.
69615         * time/clock.c: Likewise.
69616         * time/getitimer.c: Likewise.
69617         * time/gettimeofday.c: Likewise.
69618         * time/setitimer.c: Likewise.
69619         * time/settimeofday.c: Likewise.
69620         * time/stime.c: Likewise.
69621         * time/time.c: Likewise.
69622
69623 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
69624
69625         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
69626         /usr/old/bin.
69627
69628         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
69629         instead of spaces.
69630         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
69631
69632 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
69633
69634         [BZ #14796]
69635         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
69636         FE_TONEAREST before applying Dekker multiplication and Knuth
69637         addition.  Clear inexact exceptions and check for exact zero
69638         results afterwards.
69639         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69640         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
69641         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69642         * math/libm-test.inc (fma_test): Add more tests.
69643         (fma_test_towardzero): Likewise.
69644         (fma_test_downward): Likewise.
69645         (fma_test_upward): Likewise.
69646         * sysdeps/generic/math_private.h (default_libc_fesetround): New
69647         function.
69648         (libc_fesetround): New macro.
69649         (libc_fesetroundf): Likewise.
69650         (libc_fesetroundl): Likewise.
69651         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
69652         function.
69653         (libc_fesetround_387): Likewise.
69654         (libc_fesetroundf): New macro.
69655         (libc_fesetround): Likewise.
69656         (libc_fesetroundl): Likewise.
69657         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
69658         function.
69659         (libc_fesetroundf): New macro.
69660         (libc_fesetround): Likewise.
69661         (libc_fesetroundl): Likewise.
69662         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
69663         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
69664         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
69665         libm_hidden_ver.
69666         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
69667         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
69668         libm_hidden_def.
69669         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
69670         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
69671         libm_hidden_ver.
69672         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
69673         libm_hidden_def.
69674
69675         [BZ #3439]
69676         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
69677         integer constant usable in #if and use that to give value to enum
69678         constant.
69679         (FE_DIVBYZERO): Likewise.
69680         (FE_UNDERFLOW): Likewise.
69681         (FE_OVERFLOW): Likewise.
69682         (FE_INVALID): Likewise.
69683         (FE_INVALID_SNAN): Likewise.
69684         (FE_INVALID_ISI): Likewise.
69685         (FE_INVALID_IDI): Likewise.
69686         (FE_INVALID_ZDZ): Likewise.
69687         (FE_INVALID_IMZ): Likewise.
69688         (FE_INVALID_COMPARE): Likewise.
69689         (FE_INVALID_SOFTWARE): Likewise.
69690         (FE_INVALID_SQRT): Likewise.
69691         (FE_INVALID_INTEGER_CONVERSION): Likewise.
69692         (FE_TONEAREST): Likewise.
69693         (FE_TOWARDZERO): Likewise.
69694         (FE_UPWARD): Likewise.
69695         (FE_DOWNWARD): Likewise.
69696         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
69697         (FE_DIVBYZERO): Likewise.
69698         (FE_OVERFLOW): Likewise.
69699         (FE_UNDERFLOW): Likewise.
69700         (FE_INEXACT): Likewise.
69701         (FE_TONEAREST): Likewise.
69702         (FE_DOWNWARD): Likewise.
69703         (FE_UPWARD): Likewise.
69704         (FE_TOWARDZERO): Likewise.
69705         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
69706         (FE_UNDERFLOW): Likewise.
69707         (FE_OVERFLOW): Likewise.
69708         (FE_DIVBYZERO): Likewise.
69709         (FE_INVALID): Likewise.
69710         (FE_TONEAREST): Likewise.
69711         (FE_TOWARDZERO): Likewise.
69712         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
69713         (FE_OVERFLOW): Likewise.
69714         (FE_UNDERFLOW): Likewise.
69715         (FE_DIVBYZERO): Likewise.
69716         (FE_INEXACT): Likewise.
69717         (FE_TONEAREST): Likewise.
69718         (FE_TOWARDZERO): Likewise.
69719         (FE_UPWARD): Likewise.
69720         (FE_DOWNWARD): Likewise.
69721         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
69722         (FE_DIVBYZERO): Likewise.
69723         (FE_OVERFLOW): Likewise.
69724         (FE_UNDERFLOW): Likewise.
69725         (FE_INEXACT): Likewise.
69726         (FE_TONEAREST): Likewise.
69727         (FE_DOWNWARD): Likewise.
69728         (FE_UPWARD): Likewise.
69729         (FE_TOWARDZERO): Likewise.
69730
69731 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
69732
69733         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
69734
69735 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
69736
69737         * scripts/cross-test-ssh.sh (command): Use newlines to separate
69738         commands.  Quote $PWD.
69739         (blacklist_exports): Don't use remove_newlines.  Replace "declare
69740         -x" by "export".
69741         (remove_newlines): Remove.
69742
69743 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
69744
69745         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
69746         * stdlib/stdlib.h (atof): Moved to ...
69747         * include/bits/stdlib-float.h: Here.  New file.
69748         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
69749         * stdlib/bits/stdlib-float.h: New file.
69750         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
69751         -mno-sse -mno-mmx.
69752         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
69753         <xmmintrin.h>.
69754
69755 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69756
69757         * conform/conformtest.pl (@headers): Add fenv.h.
69758         * conform/data/fenv.h-data: New file.
69759         * include/fenv.h [_ISOMAC]: Disable all contents of file except
69760         include of <math/fenv.h>.
69761
69762         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
69763         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
69764         && !UNIX98].  Enables tests for XOPEN2K8.
69765         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
69766         POSIX2008]: Likewise.
69767
69768         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
69769         (struct rusage): Do not expect type or its members.
69770
69771         [BZ #3439]
69772         * math/math.h (FP_NAN): Define macro to integer constant usable in
69773         #if and use that to give value to enum constant.
69774         (FP_INFINITE): Likewise.
69775         (FP_ZERO): Likewise.
69776         (FP_SUBNORMAL): Likewise.
69777         (FP_NORMAL): Likewise.
69778
69779 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
69780
69781         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
69782         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
69783         arguments.
69784
69785 2012-11-02  Roland McGrath  <roland@hack.frob.com>
69786
69787         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
69788         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
69789         autoconf-time if not.
69790         * configure.in: Remove AC_PREREQ.
69791
69792 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69793
69794         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
69795         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
69796         of the internal implementation.
69797
69798 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69799
69800         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
69801         except include of <misc/sys/syslog.h>.
69802
69803 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69804
69805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
69806         function returns with a NULL context exit with zero.
69807
69808 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69809
69810         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
69811
69812 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
69813
69814         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
69815         (run_program_cmd): This.
69816         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
69817         (tst_langinfo): New variable.  Use it.
69818
69819 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
69820
69821         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
69822         floating point opcodes.
69823
69824 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69825
69826         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
69827         variable.
69828
69829         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
69830
69831         * sysdeps/mach/hurd/powerpc: Remove directory.
69832         * sysdeps/mach/powerpc: Likewise.
69833
69834 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69835
69836         * scripts/check-local-headers.sh: Ignore c++ headers.
69837
69838 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69839
69840         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
69841         __libc_cleanup_region_start argument.
69842
69843 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
69844
69845         [BZ #14784]
69846         [BZ #14785]
69847         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
69848         x * y using scaling, not as x * y + z.
69849         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69850         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69851         * math/libm-test.inc (fma_test): Add more tests.
69852         (fma_test_towardzero): Likewise.
69853         (fma_test_downward): Likewise.
69854         (fma_test_upward): Likewise.
69855
69856 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69857
69858         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
69859
69860 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69861
69862         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
69863         New variable.
69864
69865 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
69866
69867         * rt/tst-shm.c (worker): Correct checking for mmap failure.
69868
69869 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69870
69871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69872         Fix sort order.
69873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69874         Likewise.
69875
69876 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69877
69878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69879         Fix the order of the list for glibc 2.17.
69880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69881         Likewise.
69882
69883 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69884
69885         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69886
69887 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69888
69889         [BZ #14610]
69890         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
69891         for low part of x being zero before using __atanl (y).
69892         * math/libm-test.inc (atan2_test): Add another test.
69893
69894         * manual/install.texi (Configuring and compiling): Document
69895         general use of test-wrapper and test-wrapper-env.
69896         * INSTALL: Regenerated.
69897
69898         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
69899         (__fma): Do not extract and scale down low bits on after-rounding
69900         systems when result rounded to normal precision would have normal
69901         exponent.
69902         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
69903         (__fmal): Do not extract and scale down low bits on after-rounding
69904         systems when result rounded to normal precision would have normal
69905         exponent.
69906         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
69907         (__fmal): Do not extract and scale down low bits on after-rounding
69908         systems when result rounded to normal precision would have normal
69909         exponent.
69910         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
69911         macro.
69912         (fma_test): Add more tests.
69913         (fma_test_towardzero): Likewise.
69914         (fma_test_downward): Likewise.
69915         (fma_test_upward): Likewise.
69916
69917 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
69918
69919         * sysdeps/i386/tininess.h: Renamed to ...
69920         * sysdeps/x86/tininess.h: This.
69921         * sysdeps/x86_64/tininess.h: Removed.
69922
69923 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69924
69925         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
69926         input.  Use $(build-program-cmd).
69927         ($(objpfx)tst-array1-static.out): Likewise.
69928         ($(objpfx)tst-array2.out): Likewise.
69929         ($(objpfx)tst-array3.out): Likewise.
69930         ($(objpfx)tst-array4.out): Likewise.
69931         ($(objpfx)tst-array5.out): Likewise.
69932         ($(objpfx)tst-array5-static.out): Likewise.
69933
69934 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
69935
69936         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
69937         if defined.
69938
69939         * nss/nsswitch.h (nss_interface_function): Provide new
69940         macro for use with NSS functions.
69941         * grp/initgroups.c: Use new macro.
69942         * nss/getXXbyYY.c: Likewise.
69943         * nss/getXXbyYY_r.c: Likewise.
69944         * nss/getXXent.c: Likewise.
69945         * nss/getXXent_r.c: Likewise.
69946         * sysdeps/posix/getaddrinfo.c: Likewise.
69947
69948 2012-10-30  Andreas Jaeger  <aj@suse.de>
69949
69950         * po/ru.po: Update Russion translation from translation project.
69951
69952 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69953
69954         [BZ #14152]
69955         [BZ #14783]
69956         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
69957         result and shift together with sticky bit instead of replicating
69958         round-to-nearest rounding.
69959         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69960         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69961         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
69962         missing underflow exceptions.
69963         (fma_test_towardzero): Add more tests.
69964         (fma_test_downward): Likewise.
69965         (fma_test_upward): Likewise.
69966
69967         [BZ #14047]
69968         * sysdeps/generic/tininess.h: New file.
69969         * sysdeps/i386/tininess.h: Likewise.
69970         * sysdeps/sh/tininess.h: Likewise.
69971         * sysdeps/x86_64/tininess.h: Likewise.
69972         * stdlib/tst-strtod-underflow.c: Likewise.
69973         * stdlib/tst-tininess.c: Likewise.
69974         * stdlib/strtod_l.c: Include <tininess.h>.
69975         (round_and_return): Do not set errno for exact underflow cases.
69976         Force an underflow exception when setting errno for underflow.
69977         Determine underflow based on rounding to normal precision if
69978         TININESS_AFTER_ROUNDING.
69979         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
69980         ERANGE for exact underflow cases.
69981         * stdlib/Makefile (tests): Add tst-tininess and
69982         tst-strtod-underflow.
69983         ($(objpfx)tst-tininess): Use $(link-libm).
69984         ($(objpfx)tst-strtod-underflow): Likewise.
69985
69986 2012-10-30  Andreas Jaeger  <aj@suse.de>
69987
69988         [BZ #14767]
69989         * elf/Makefile (tests): Remove conditional for have-initfini-array
69990         since this is now always required and the variable does not exist
69991         anymore.
69992         (tests-static): Likewise.
69993         (modules-names): Likewise.
69994
69995         * po/eo.po: Add Esperanto translation from translation project.
69996
69997         * elf/tst-array1.c (fini_array): Make writeable so that it can be
69998         merged with constructor/destructor.
69999         (init_array): Likewise.
70000         * elf/tst-array2dep.c (fini_array): Likewise.
70001         (init_array): Likewise.
70002
70003 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
70004
70005         * manual/message.texi: Delete @cartouche tags.
70006
70007 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
70008
70009         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
70010         EOPNOTSUPP.
70011         * sysdeps/mach/hurd/fsync.c: Likewise.
70012
70013         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
70014         [_POSIX_REALTIME_SIGNALS]: Change condition to
70015         [_POSIX_REALTIME_SIGNALS > 0].
70016
70017 2012-10-27  Andreas Jaeger  <aj@suse.de>
70018
70019         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
70020         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
70021         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
70022         [__WORDSIZE != 64]: Likewise.
70023
70024 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
70025
70026         *  iconvdata/tst-table.sh: Remove ${SHELL}.
70027         *  iconvdata/tst-tables.sh: Likewise.
70028
70029 2012-10-25  David S. Miller  <davem@davemloft.net>
70030
70031         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70032         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
70033         of strtoull.
70034
70035         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
70036         ifunc-impl-list.c
70037         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
70038         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
70039         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
70040         file.
70041
70042 2012-10-25  Roland McGrath  <roland@hack.frob.com>
70043
70044         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70045         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
70046         __getdirentries.
70047
70048 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
70049             Jim Blandy  <jimb@codesourcery.com>
70050
70051         * scripts/cross-test-ssh.sh: New file.
70052         * manual/install.texi (Configuring and compiling): Document use of
70053         cross-test-ssh.sh.
70054         * INSTALL: Regenerated.
70055
70056 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
70057
70058         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
70059         EOPNOTSUPP.
70060
70061 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
70062
70063         * Makeconfig (run-program-prefix): Fix comment.
70064
70065 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70066             Jim Blandy  <jimb@codesourcery.com>
70067
70068         * Makeconfig (test-wrapper): New variable,
70069         (test-wrapper-env): Likewise.
70070         [$(cross-compiling) = yes && $(test-wrapper) != ""]
70071         (run-built-tests): Define to yes.
70072         (run-program-prefix): Use $(test-wrapper).
70073         (built-program-cmd): Likewise.
70074         * Rules (make-test-out): Use $(test-wrapper-env) and
70075         $(host-built-program-cmd).
70076         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
70077         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
70078         tst-pathopt.sh.
70079         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
70080         $(test-wrapper-env) to tst-rtld-load-self.sh.
70081         ($(objpfx)order2.out): Use $(test-wrapper).
70082         ($(objpfx)tst-initorder.out): Likewise.
70083         ($(objpfx)tst-initorder2.out): Likewise.
70084         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
70085         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
70086         (test_wrapper_env): New variable.  Use it to run ld.so.
70087         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
70088         Use it to run ld.so.
70089         (test_wrapper_env): Likewise.
70090         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
70091         $(test-wrapper) to run-iconv-test.sh.
70092         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
70093         (ICONV): Use $test_wrapper.
70094         * posix/Makefile ($(objpfx)globtest.out): Pass
70095         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
70096         globtest.sh, not $(run-program-prefix).
70097         * posix/globtest.sh (run_via_rtld_prefix): New variable.
70098         (test_wrapper): Likewise.
70099         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
70100         set together with run_via_rtld_prefix.
70101         (run_program_prefix): Define in terms of test_wrapper and
70102         run_via_rtld_prefix.
70103
70104 2012-10-24  Roland McGrath  <roland@hack.frob.com>
70105
70106         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
70107         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
70108         Targets removed.
70109
70110         [BZ #14743]
70111         * include/time.h: Remove librt_hidden_proto (clock_gettime).
70112         Declare __clock_getres, __clock_gettime, __clock_settime,
70113         __clock_nanosleep, and __clock_getcpuclockid.
70114         * rt/clock_gettime.c: Define __clock_gettime as an alias.
70115         Remove librt_hidden_def (clock_gettime).
70116         * sysdeps/unix/clock_gettime.c: Likewise.
70117         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
70118         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
70119         * rt/clock_getres.c: Define __clock_getres as an alias.
70120         * sysdeps/posix/clock_getres.c: Likewise.
70121         * rt/clock_settime.c: Define __clock_settime as an alias.
70122         * sysdeps/unix/clock_settime.c: Likewise.
70123         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
70124         * sysdeps/unix/clock_nanosleep.c: Likewise.
70125         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
70126         * rt/clock-compat.c: New file.
70127         * rt/Makefile (librt-routines): Add clock-compat and move
70128         $(clock-routines) to ...
70129         (routines): ... here, new variable.
70130         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
70131         Don't add get_clockfreq here.
70132         * rt/Versions (libc: GLIBC_2.17): New version set.
70133         Add clock_* symbols here.
70134         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
70135         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
70136         (GLIBC_2.17): Add clock_* symbols.
70137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
70138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
70139         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
70140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70141         Likewise.
70142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70143         Likewise.
70144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
70145         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
70146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
70147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
70148         * NEWS: Mention the move.
70149
70150         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
70151         Use __open, __read, __close rather than their public counterparts.
70152         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70153         (__get_clockfreq_via_cpuinfo): Likewise.
70154         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
70155         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
70156
70157         * config.h.in (HAVE_IFUNC): New #undef.
70158         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
70159         was successful.
70160         * configure: Regenerated.
70161
70162 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70163
70164         * configure.in: Move READELF check to start of file.
70165         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
70166         libc_cv_asm_gnu_indirect_function in the process.
70167         * configure: Regenerated.
70168
70169 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70170
70171         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
70172         send the output to /dev/null.
70173         (libc_cv_cc_with_libunwind): Likewise.
70174         (libc_cv_as_noexecstack): Likewise.
70175         * configure: Regenerate.
70176
70177 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70178
70179         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
70180
70181         * posix/globtest.sh (TMPDIR): Do not set.
70182         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
70183         (testout): Likewise.
70184
70185 2012-10-24  Andreas Jaeger  <aj@suse.de>
70186
70187         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
70188         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
70189         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
70190         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
70191         posix_fadvise64, posix_fallocate64.
70192
70193         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
70194         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
70195         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
70196         Likewise.
70197         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
70198         Likewise.
70199         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
70200
70201         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
70202         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
70203         <bits/fcntl-linux.h>.
70204         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
70205
70206         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
70207         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
70208         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
70209         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
70210         [__WORDSIZE != 64]: Likewise.
70211
70212 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70213
70214         * Makeconfig (run-built-tests): New variable.
70215         * Rules [$(cross-compiling) = yes]: Change condition to
70216         [$(run-built-tests) = no].
70217         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
70218         to [$(run-built-tests) = yes].
70219         * elf/Makefile [$(cross-compiling) = no]: Likewise.
70220         * grp/Makefile [$(cross-compiling) = no]: Likewise.
70221         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
70222         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
70223         * intl/Makefile [$(cross-compiling) = no]: Likewise.
70224         * io/Makefile [$(cross-compiling) = no]: Likewise.
70225         * libio/Makefile [$(cross-compiling) = no]: Likewise.
70226         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
70227         * misc/Makefile [$(cross-compiling) = no]: Likewise.
70228         * posix/Makefile [$(cross-compiling) = no]: Likewise.
70229         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
70230         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
70231         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
70232         * string/Makefile [$(cross-compiling) = no]: Likewise.
70233
70234         * posix/Makefile ($(objpfx)globtest.out): Pass
70235         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
70236         $(rtld-installed-name).
70237         * posix/globtest.sh (elf_objpfx): Remove variable.
70238         (rtld_installed_name): Likewise.
70239         (library_path): Likewise.
70240         (run_program_prefix): New variable.  Use for running globtest
70241         binary.
70242
70243 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
70244             Joseph Myers  <joseph@codesourcery.com>
70245
70246         * Makeconfig (host-built-program-cmd): New variable.
70247         * elf/Makefile (tst-stackguard1-ARGS): Use
70248         $(host-built-program-cmd).
70249         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
70250         (tst-spawn-ARGS): Likewise.
70251         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
70252
70253 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70254             Jim Blandy  <jimb@codesourcery.com>
70255
70256         * Makeconfig (run-via-rtld-prefix): New variable.
70257         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
70258         (built-program-cmd): Likewise.
70259
70260 2012-10-22  Andreas Jaeger  <aj@suse.de>
70261
70262         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
70263         __O_RSYNC if it exists, otherwise to O_SYNC.
70264
70265 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
70266             Joseph Myers  <joseph@codesourcery.com>
70267
70268         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
70269         /dev/null.
70270         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
70271         from /dev/null
70272         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
70273         /dev/null.
70274
70275 2012-10-22  Andreas Jaeger  <aj@suse.de>
70276
70277         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
70278         Define always.
70279         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
70280
70281         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70282         bits/fcntl-linux.h.
70283
70284         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
70285         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
70286
70287         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
70288         to __O_LARGEFILE.
70289         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
70290         to __O_LARGEFILE.
70291
70292 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
70293             Joseph Myers  <joseph@codesourcery.com>
70294
70295         * config.make.in (NM): New variable.
70296
70297 2012-10-21  Andreas Jaeger  <aj@suse.de>
70298
70299         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
70300         definitions and declarations that are provided by
70301         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
70302
70303 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70304
70305         [BZ #14683]
70306         * elf/Makefile (tests-static): Add tst-leaks1-static.
70307         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
70308         ($(objpfx)tst-leaks1-static): New rule.
70309         ($(objpfx)tst-leaks1-static-mem): Likewise.
70310         (tst-leaks1-static-ENV): New macro.
70311         * elf/dl-open.c (dl_open_worker): Check the main application
70312         only if SHARED is defined.
70313         * elf/tst-leaks1-static.c: New file.
70314
70315 2012-10-20  Andreas Jaeger  <aj@suse.de>
70316
70317         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
70318         generic values for Linux.
70319         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
70320         and declarations that are provided by <bits/fcntl-linux.h> and
70321         include <bits/fcntl-linux.h>.
70322         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
70323         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
70324
70325 2012-10-20  Roland McGrath  <roland@hack.frob.com>
70326
70327         * io/fcntl.h: Move include of <bits/types.h> to the top and
70328         include it unconditionally.
70329
70330 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70331
70332         * wcsmbs/Makefile (tests-ifunc): New variable.
70333         (tests): Add $(tests-ifunc).
70334         * wcsmbs/test-wcschr-ifunc.c: New file.
70335         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
70336         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
70337         * wcsmbs/test-wcslen-ifunc.c: Likewise.
70338         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
70339         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
70340
70341         * string/Makefile (tests-ifunc): New variable.
70342         (tests): Add $(tests-ifunc).
70343         * string/test-memccpy.c (TEST_NAME): New macro.
70344         * string/test-memchr.c (TEST_NAME): Likewise.
70345         * string/test-memcmp.c (TEST_NAME): Likewise.
70346         * string/test-memcpy.c (TEST_NAME): Likewise.
70347         * string/test-memmem.c (TEST_NAME): Likewise.
70348         * string/test-memmove.c (TEST_NAME): Likewise.
70349         * string/test-memset.c (TEST_NAME): Likewise.
70350         * string/test-rawmemchr.c (TEST_NAME): Likewise.
70351         * string/test-stpcpy.c (TEST_NAME): Likewise.
70352         * string/test-stpncpy.c (TEST_NAME): Likewise.
70353         * string/test-strcasecmp.c (TEST_NAME): Likewise.
70354         * string/test-strcasestr.c (TEST_NAME): Likewise.
70355         * string/test-strcat.c (TEST_NAME): Likewise.
70356         * string/test-strchr.c (TEST_NAME): Likewise.
70357         * string/test-strcmp.c(TEST_NAME): Likewise.
70358         * string/test-strcpy.c (TEST_NAME): Likewise.
70359         * string/test-strcspn.c (TEST_NAME): Likewise.
70360         * string/test-strlen.c (TEST_NAME): Likewise.
70361         * string/test-strncasecmp.c (TEST_NAME): Likewise.
70362         * string/test-strncmp.c (TEST_NAME): Likewise.
70363         * string/test-strncpy.c (TEST_NAME): Likewise.
70364         * string/test-strnlen.c (TEST_NAME): Likewise.
70365         * string/test-strpbrk.c (TEST_NAME): Likewise.
70366         * string/test-strrchr.c (TEST_NAME): Likewise.
70367         * string/test-strspn.c (TEST_NAME): Likewise.
70368         * string/test-strstr.c (TEST_NAME): Likewise.
70369         * string/test-bcopy-ifunc.c: New file.
70370         * string/test-bzero-ifunc.c: Likewise.
70371         * string/test-memccpy-ifunc.c: Likewise.
70372         * string/test-memchr-ifunc.c: Likewise.
70373         * string/test-memcmp-ifunc.c: Likewise.
70374         * string/test-memcpy-ifunc.c: Likewise.
70375         * string/test-memmem-ifunc.c: Likewise.
70376         * string/test-memmove-ifunc.c: Likewise.
70377         * string/test-mempcpy-ifunc.c: Likewise.
70378         * string/test-memset-ifunc.c: Likewise.
70379         * string/test-rawmemchr-ifunc.c: Likewise.
70380         * string/test-stpcpy-ifunc.c: Likewise.
70381         * string/test-stpncpy-ifunc.c: Likewise.
70382         * string/test-strcasecmp-ifunc.c: Likewise.
70383         * string/test-strcasestr-ifunc.c: Likewise.
70384         * string/test-strcat-ifunc.c: Likewise.
70385         * string/test-strchr-ifunc.c: Likewise.
70386         * string/test-strchrnul-ifunc.c: Likewise.
70387         * string/test-strcmp-ifunc.c: Likewise.
70388         * string/test-strcpy-ifunc.c: Likewise.
70389         * string/test-strcspn-ifunc.c: Likewise.
70390         * string/test-strlen-ifunc.c: Likewise.
70391         * string/test-strncasecmp-ifunc.c: Likewise.
70392         * string/test-strncat-ifunc.c: Likewise.
70393         * string/test-strncmp-ifunc.c: Likewise.
70394         * string/test-strncpy-ifunc.c: Likewise.
70395         * string/test-strnlen-ifunc.c: Likewise.
70396         * string/test-strpbrk-ifunc.c: Likewise.
70397         * string/test-strrchr-ifunc.c: Likewise.
70398         * string/test-strspn-ifunc.c: Likewise.
70399         * string/test-strstr-ifunc.c: Likewise.
70400
70401         * debug/Makefile (tests-ifunc): New variable.
70402         (tests): Add $(tests-ifunc).
70403         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
70404         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
70405         * debug/test-stpcpy_chk-ifunc.c: New file.
70406         * debug/test-strcpy_chk-ifunc.c: Likewise.
70407
70408 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
70409
70410         [BZ #13601]
70411         * elf/dl-load.c (open_verify): Retry read if the entire ELF
70412         header is not read in.
70413
70414 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
70415
70416         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
70417         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
70418         directly.  Pass built executable to script as
70419         $(built-program-cmd).
70420         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
70421         $testprogram without using LD_LIBRARY_PATH and $ldso.
70422
70423         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
70424         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
70425         $(rtld-installed-name).
70426         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
70427         (rtld_installed_name): Likewise.
70428         (library_path): Likewise.
70429         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
70430         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
70431         $(run-program-prefix) to tst-tables.sh.
70432         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
70433         it to run tst-table-from and tst-table-to.
70434         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
70435         Pass it to tst-table.sh.
70436         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
70437         $(run-program-prefix) to tst-gettext.sh.
70438         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
70439         tst-translit.sh.
70440         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
70441         tst-gettext2.sh.
70442         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
70443         to run tst-gettext.
70444         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
70445         to run tst-gettext2.
70446         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
70447         to run tst-translit.
70448         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
70449         $(run-program-prefix) to tst-mtrace.sh.
70450         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
70451         to run tst-mtrace.
70452         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
70453         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
70454         $(rtld-installed-name).
70455         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
70456         (rtld_installed_name): Likewise.
70457         (run_program_prefix): New variable.  Use it to run wordexp-test.
70458
70459         * Makeconfig (ARCH): Remove all definitions.
70460         (machine): Likewise.
70461         [ARCH]: Remove conditional code.
70462         [!objdir]: Give error.
70463         [!objdir] (objpfx): Remove.
70464         [!objdir] (common-objpfx): Likewise.
70465         [!objdir] (common-objdir): Likewise.
70466         * configure.in (config_makefile): Remove.  Hardcode Makefile in
70467         AC_CONFIG_FILES call.
70468         * configure: Regenerated.
70469
70470         [BZ #13888]
70471         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
70472         or TMPDIR.
70473         (testout): Likewise.
70474
70475         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
70476         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70477         $(rtld-installed-name).
70478         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
70479         (rtld_installed_name): Likewise.
70480         (runit): Remove function.
70481         (run_getconf): New variable,  Use it for running getconf binary.
70482
70483 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
70484
70485         [BZ #14716]
70486         * string/test-memmem.c (check_result): New function.
70487         (do_one_test): Use it.
70488         (check1): New function.
70489         (test_main): Use it.
70490
70491 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
70492
70493         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
70494
70495 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
70496
70497         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
70498         (_G_LSEEK64): Likewise.
70499         (_G_MMAP64): Likewise.
70500         (_G_FSTAT64): Likewise.
70501         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
70502         (_G_LSEEK64): Likewise.
70503         (_G_MMAP64): Likewise.
70504         (_G_FSTAT64): Likewise.
70505         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
70506         unconditional.  Call __mmap64 directly.
70507         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
70508         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
70509         __lseek64 directly.
70510         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
70511         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
70512         __mmap64 directly.
70513         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
70514         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70515         __lseek64 directly.
70516         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
70517         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70518         __lseek64 directly.
70519         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
70520         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
70521         __lseek64 directly.
70522         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
70523         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
70524         __fxstat64 directly.
70525         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
70526         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
70527         unconditional.
70528         (freopen64) [!_G_OPEN64]: Remove conditional code.
70529         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
70530         unconditional.
70531         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
70532         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
70533         unconditional.
70534         (ftello64) [!_G_LSEEK64]: Remove conditional code.
70535         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
70536         unconditional.
70537         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70538         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
70539         unconditional.
70540         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
70541         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
70542         unconditional.
70543         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70544         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
70545         unconditional.
70546         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70547         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
70548         unconditional.
70549         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70550
70551 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
70552
70553         [BZ #12140]
70554         * manual/memory.texi (Malloc Tunable Parameters): Add note
70555         about free list pointers overwriting some perturb bytes.
70556         Wording suggested by Roland McGrath.
70557
70558 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
70559
70560         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
70561         (lgamma_test): Likewise.
70562         (tgamma_test): Likewise.
70563
70564 2012-10-16  Florian Weimer  <fweimer@redhat.com>
70565
70566         [BZ #14700]
70567         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
70568         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
70569
70570 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
70571
70572         * NEWS: Mention BZ #14716.
70573         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
70574         when removing AVAILABLE1_USES_J macro.
70575
70576 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
70577
70578         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
70579         (__bswap_64): __uint64_t for unsigned 64-bit int.
70580
70581 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
70582
70583         * include/string.h (memmem): Declare libc hidden alias.
70584         * string/memmem.c (memmem): Define libc hidden alias.
70585         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
70586         __read, __close instead of open, read, close.
70587
70588 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
70589
70590         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
70591         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
70592         global and hidden.
70593         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
70594         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
70595         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
70596         Likewise.
70597         (__rawmemchr_sse2): Likewise.
70598         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
70599         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
70600         (__strchr_sse2): Likewise.
70601         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
70602         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
70603         (__strcasecmp_sse2): Likewise.
70604         (__strncasecmp_sse2): Likewise.
70605         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
70606         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
70607         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
70608         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
70609         (__strrchr_sse2): Likewise.
70610         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
70611         ifunc-impl-list.c.
70612         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
70613         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
70614         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
70615         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
70616         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
70617         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
70618         * sysdeps/x86_64/multiarch/memset.S: Likewise.
70619         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
70620         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
70621         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
70622         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
70623         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
70624         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
70625         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
70626         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
70627         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
70628         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
70629         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
70630         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
70631         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
70632         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
70633         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
70634         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
70635         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
70636         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
70637         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
70638         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
70639         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
70640         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
70641         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
70642
70643         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
70644         global and hidden.
70645         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
70646         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
70647         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
70648         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
70649         Likewise.
70650         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
70651         Likewise.
70652         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
70653         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
70654         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
70655         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
70656         ifunc-impl-list.c.
70657         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
70658         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
70659         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
70660         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
70661         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
70662         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
70663         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
70664         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
70665         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
70666         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
70667         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
70668         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
70669         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
70670         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
70671         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
70672         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
70673         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
70674         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
70675         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
70676         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
70677         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70678         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
70679         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
70680         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
70681         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70682         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
70683         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
70684         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
70685         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
70686         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
70687         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
70688         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
70689         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
70690         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
70691         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
70692         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
70693         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
70694         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
70695         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
70696         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
70697         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
70698
70699         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
70700         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
70701         * include/ifunc-impl-list.h: New file.
70702         * misc/ifunc-impl-list.c: Likewise.
70703         * misc/Makefile (routines): Add ifunc-impl-list.
70704         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
70705         * string/test-string.h: Include <ifunc-impl-list.h>.
70706         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
70707         TEST_NAME]: New variables.
70708         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
70709         are defined.
70710         (test_init): Call __libc_ifunc_impl_list to initialize
70711         func_list if TEST_IFUNC and TEST_NAME are defined.
70712
70713         * string/Makefile (strop-tests): Add bcopy and bzero.
70714         * string/test-bcopy.c: New file.
70715         * string/test-bzero.c: Likewise.
70716         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
70717         defined.
70718         * string/test-memset.c: Support bzero test if TEST_BZERO is
70719         defined.
70720         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
70721         __libc_memmove.
70722         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
70723         __libc_memset.
70724         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
70725         of memset.
70726
70727 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
70728
70729         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
70730         * configure: Regenerated.
70731
70732         * Makeconfig (+link-static-before-libc): Don't include
70733         $(link-static-libc).
70734
70735         * libio/libio.h (_IO_pos_t): Remove.
70736
70737 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70738
70739         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
70740         McGrath.
70741
70742 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70743
70744         * crypt/crypt-entry.c: Include fips-private.h.
70745         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
70746         * crypt/md5c-test.c (main): Tolerate disabled MD5.
70747         * sysdeps/unix/sysv/linux/fips-private.h: New file.
70748         * sysdeps/generic/fips-private.h: New file, dummy fallback.
70749
70750 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70751
70752         * crypt/crypt-private.h: Include stdbool.h.
70753         (_ufc_setup_salt_r): Return bool.
70754         * crypt/crypt-entry.c: Include errno.h.
70755         (__crypt_r): Return NULL with EINVAL for bad salt.
70756         * crypt/crypt_util.c (bad_for_salt): New.
70757         (_ufc_setup_salt_r): Check that salt is long enough and within
70758         the specified alphabet.
70759         * crypt/badsalttest.c: New file.
70760         * crypt/Makefile (tests): Add it.
70761         ($(objpfx)badsalttest): New.
70762
70763 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
70764
70765         * NEWS: Add entry for BZ #14602.
70766
70767 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70768
70769         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
70770         type-generic.
70771         * math/libm-test.inc: Update comment listing what functions and
70772         macros are tested.
70773         (isgreater_test): New function.
70774         (isgreaterequal_test): Likewise.
70775         (isless_test): Likewise.
70776         (islessequal_test): Likewise.
70777         (islessgreater_test): Likewise.
70778         (isunordered_test): Likewise.
70779         (main): Call the new functions.
70780
70781 2012-10-09  Roland McGrath  <roland@hack.frob.com>
70782
70783         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
70784         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
70785         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
70786         * sysdeps/i386/configure: Regenerated.
70787         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
70788         * sysdeps/mach/configure: Regenerated.
70789         * sysdeps/mach/hurd/configure: Regenerated.
70790         * sysdeps/powerpc/configure: Regenerated.
70791         * sysdeps/powerpc/powerpc32/configure: Regenerated.
70792         * sysdeps/powerpc/powerpc64/configure: Regenerated.
70793         * sysdeps/s390/s390-32/configure: Regenerated.
70794         * sysdeps/s390/s390-64/configure: Regenerated.
70795         * sysdeps/sh/configure: Regenerated.
70796         * sysdeps/sparc/configure: Regenerated.
70797         * sysdeps/unix/sysv/linux/configure: Regenerated.
70798         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
70799         * sysdeps/x86_64/configure: Regenerated.
70800
70801         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
70802         defined.  Don't check if MAP is NULL.
70803
70804 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70805
70806         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
70807         (_G_stat64): Likewise.
70808         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
70809         (_G_stat64): Likewise.
70810         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
70811         instead of struct _G_stat64.
70812         * libio/fileops.c (mmap_remap_check): Likewise.
70813         (decide_maybe_mmap): Likewise.
70814         (_IO_new_file_seekoff): Likewise.
70815         (_IO_file_stat): Likewise.
70816         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
70817         _G_off64_t.
70818         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
70819         instead of struct _G_stat64.
70820         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
70821
70822 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
70823
70824         [BZ #14602]
70825         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70826         Replace with ...
70827         (CHECK_EOL): New macro.
70828         (two_way_short_needle): Check beginning of haystack for EOL.  Use
70829         CHECK_EOL.
70830         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70831         Replace with CHECK_EOL.
70832         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70833         Replace with CHECK_EOL.
70834
70835 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
70836
70837         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
70838         type-generic.
70839         * math/libm-test.inc: Update comment listing what functions and
70840         macros are tested.
70841         (finite_test): New function.
70842         (isinf_test): Likewise.
70843         (isnan_test): Likewise.
70844         (fpclassify_test): Test subnormal input.
70845         (isfinite_test): Likewise.
70846         (isnormal_test): Likewise.
70847         (main): Call the new functions.
70848
70849 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
70850
70851         [BZ #14660]
70852         * Makerules (%.dynsym): Force C locale when running
70853         $(OBJDUMP) --dynamic-syms.
70854
70855 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
70856
70857         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
70858         <stdint.h>.
70859
70860 2012-10-06  David S. Miller  <davem@davemloft.net>
70861
70862         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
70863         upper 32-bits of the length value in %o2 since we use branch-on-register
70864         tests which consider the entire 64-bit register.
70865
70866 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
70867
70868         * string/test-strstr.c (check2): Add a test for page boundary.
70869
70870 2012-10-05  David S. Miller  <davem@davemloft.net>
70871
70872         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
70873         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
70874         file.
70875         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70876         sysdep_routines.
70877         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70878         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
70879         and bzero when HWCAP_SPARC_CRYPTO is present.
70880
70881 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
70882
70883         [BZ #14602]
70884         * string/test-strstr.c (check2): New function.
70885         (test_main): Call check2.
70886
70887         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
70888         and bug-strchr1.
70889         * string/bug-strcasestr1.c (do_test): Moved to ...
70890         * string/test-strcasestr.c (check1): Here.  New function.
70891         (do_one_test): Break out result checking code into ...
70892         (check_result): This.  New function.
70893         (do_one_test): Call check_result.
70894         (test_main): Call check1.
70895         * string/bug-strchr1.c (do_test): Moved to ...
70896         * string/test-strchr.c (check1): Here.  New function.
70897         (do_one_test): Break out result checking code into ...
70898         (check_result): This.  New function.
70899         (do_one_test): Call check_result.
70900         (test_main): Call check1.
70901         * string/bug-strstr1.c (main): Moved to ...
70902         * string/test-strstr.c (check1): Here.  New function.
70903         (do_one_test): Break out result checking code into ...
70904         (check_result): This.  New function.
70905         (do_one_test): Call check_result.
70906         (test_main): Call check1.
70907         * string/bug-strcasestr1.c: Removed.
70908         * string/bug-strchr1.c: Likewise.
70909         * string/bug-strstr1.c: Likewise.
70910
70911         * elf/Makefile (dl-routines): Add hwcaps.
70912         * elf/dl-support.c (_dl_important_hwcaps): Removed.
70913         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
70914         (_dl_important_hwcaps): Moved to ...
70915         * elf/dl-hwcaps.c: Here.  New file.
70916         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
70917
70918         [BZ #14557]
70919         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
70920         if IS_IN_rtld isn't defined.
70921
70922         * elf/dl-support.c (_dl_sysinfo_map): New.
70923         Include "get-dynamic-info.h" and "setup-vdso.h".
70924         (_dl_non_dynamic_init): Call setup_vdso.
70925         * elf/dynamic-link.h: Don't include <assert.h>.
70926         (elf_get_dynamic_info): Moved to ...
70927         * elf/get-dynamic-info.h: Here.  New file.
70928         * elf/dynamic-link.h: Include "get-dynamic-info.h".
70929         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
70930         * elf/setup-vdso.h: Here.  New file.
70931         * elf/rtld.c: Include "setup-vdso.h".
70932         (dl_main): Call setup_vdso.
70933
70934 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
70935
70936         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
70937         creal in comment listing functions tested.  List finite, isinf,
70938         isnan, isless, islessequal, isgreater, isgreaterequal,
70939         islessgreater, isunordered, lgamma_r and pow10 as functions and
70940         macros not tested.  Mention which functions not tested are aliases
70941         for other functions.  Fix typo.  Note that signs of NaNs are not
70942         tested.
70943
70944         * scripts/config.guess: Update from config.git.
70945         * scripts/config.sub: Likewise.
70946
70947 2012-10-04  Roland McGrath  <roland@hack.frob.com>
70948
70949         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
70950         * misc/madvise.c (madvise): Renamed to __madvise.
70951         Make madvise a weak alias.
70952         * include/sys/mman.h: Declare __madvise.
70953         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
70954         * sysdeps/unix/syscalls.list
70955         (madvise): Make __madvise the strong name, and madvise a weak alias.
70956         * sysdeps/unix/sysv/linux/syscalls.list
70957         (madvise, mmap): Remove redundant entries.
70958         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
70959         * malloc/malloc.c (mtrim): Likewise.
70960         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
70961
70962 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70963
70964         * sysdeps/mach/hurd/dl-cache.c: File removed.
70965         * config.h.in (USE_LDCONFIG): New #undef.
70966         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
70967         * configure: Regenerated.
70968         * elf/Makefile (dl-routines): Add dl-cache only under
70969         [$(use-ldconfig) = yes].
70970         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
70971         cache on [USE_LDCONFIG].
70972         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
70973         [USE_LDCONFIG].
70974         * elf/rtld.c (dl_main): Likewise.
70975
70976 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
70977
70978         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
70979         _SC_LEVEL4_CACHE_LINESIZE.
70980
70981 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70982
70983         * sysdeps/unix/bsd/confstr.h: File removed.
70984
70985 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
70986
70987         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
70988         sys/sdt-config.h.
70989
70990 2012-10-02  Roland McGrath  <roland@hack.frob.com>
70991
70992         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
70993         Make 'mapoff' field ElfW(Off) rather than off_t.
70994
70995 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70996
70997         * nscd/Makefile: Remove nscd-cflags and all its users.
70998         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
70999         (CFLAGS-nonlib): Add compiler flags for nscd modules.
71000
71001         [BZ #10631]
71002         * malloc.c (malloc_printerr): Clarify error message.
71003
71004 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
71005
71006         [BZ #14648]
71007         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
71008         Set bit_FMA_Usable if FMA is supported.
71009         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
71010         macro.
71011         (bit_FMA4_Usable): Updated.
71012         (index_FMA_Usable): New macro.
71013         (CPUID_FMA): Likewise.
71014         (HAS_FMA): Defined with bit_FMA_Usable.
71015
71016 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71017
71018         * bits/types.h (__swblk_t): Type removed.
71019         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
71020         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
71021         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71022         (__SWBLK_T_TYPE): Likewise.
71023         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
71024         (__SWBLK_T_TYPE): Likewise.
71025         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71026         (__SWBLK_T_TYPE): Likewise.
71027         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71028         (__SWBLK_T_TYPE): Likewise.
71029
71030 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
71031             Honza Horak <hhorak@redhat.com>
71032
71033         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
71034         (xdr_mapname): Use YPMAXMAP as maxsize.
71035         (xdr_peername): Use YPMAXPEER as maxsize.
71036         (xdr_keydat): Use YPAXRECORD as maxsize.
71037         (xdr_valdat): Use YPMAXRECORD as maxsize.
71038
71039 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71040
71041         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
71042
71043         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
71044         * csu/init-first.c: ... here.
71045         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
71046         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
71047         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
71048         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
71049         * sysdeps/i386/init-first.c: File removed.
71050         * sysdeps/sh/init-first.c: File removed.
71051
71052 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
71053
71054         [BZ #14645]
71055         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
71056         if x * y might underflow to zero and z is zero.
71057         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
71058         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71059         * math/libm-test.inc (min_subnorm_value): New variable.
71060         (fma_test): Add more tests.
71061         (fma_test_towardzero): Likewise.
71062         (fma_test_downward): Likewise.
71063         (fma_test_upward): Likewise.
71064         (initialize): Set min_subnorm_value.
71065
71066 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
71067
71068         [BZ #14638]
71069         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
71070         0 + 0.
71071         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
71072         mode for addition resulting in exact zero.
71073         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
71074         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
71075         exact 0 + 0.
71076         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
71077         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71078         * math/libm-test.inc (fma_test): Add more tests.
71079         (fma_test_towardzero): New function.
71080         (fma_test_downward): Likewise.
71081         (fma_test_upward): Likewise.
71082         (main): Call the new functions.
71083
71084 2012-09-28  David S. Miller  <davem@davemloft.net>
71085
71086         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
71087
71088 2012-09-28  Roland McGrath  <roland@hack.frob.com>
71089
71090         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
71091         instead of SIGALRM.
71092
71093         * sysdeps/gnu/_G_config.h: Moved to ...
71094         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
71095         * sysdeps/mach/hurd/_G_config.h: Moved to ...
71096         * sysdeps/generic/_G_config.h: ... here.
71097
71098         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
71099
71100         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
71101
71102         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
71103         Conditionalize target on [libnss_test1.so-version].
71104
71105         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
71106
71107         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
71108         (elfobjdir): Move out of conditionals.
71109
71110         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
71111         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
71112         (__nss_lookup_function): Conditionalize label remove_from_tree on
71113         [!DO_STATIC_NSS || SHARED], matching its only use.
71114
71115 2012-09-28  David S. Miller  <davem@davemloft.net>
71116
71117         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
71118         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
71119         file.
71120         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
71121         sysdep_routines.
71122         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
71123         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
71124         when HWCAP_SPARC_CRYPTO is present.
71125
71126 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71127
71128         * io/tst-mknodat.c: Create a FIFO instead of a socket.
71129
71130 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
71131
71132         [BZ #6530]
71133         * stdio-common/vfprintf.c (process_string_arg): Revert
71134         2000-07-22 change.
71135
71136 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
71137
71138         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
71139         for testcase.
71140         * stdio-common/tst-sprintf.c: Include <locale.h>
71141         (main): Test sprintf's handling of incomplete multibyte
71142         characters.
71143
71144 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
71145
71146         * elf/dl-runtime.c (VERSYMIDX): Removed.
71147         * elf/dl-version.c (VERSYMIDX): Likewise.
71148         * elf/do-rel.h (VERSYMIDX): Likewise.
71149         (VALIDX): Likewise.
71150         * elf/dynamic-link.h (VERSYMIDX): Likewise.
71151         * elf/rtld.c (VALIDX): Likewise.
71152         (ADDRIDX): Likewise.
71153         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
71154         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
71155         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
71156         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
71157         (VALIDX): Likewise.
71158         (ADDRIDX): Likewise.
71159
71160 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71161
71162         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
71163
71164 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
71165
71166         [BZ #11438]
71167         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
71168         to global scope.
71169         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
71170         addresses are in the same scope as 192.0.2/24.
71171         * posix/gai.conf: Document new scope table defaults.
71172
71173 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71174
71175         [BZ #5298]
71176         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
71177         for ftell.  Compute offsets from write pointers instead.
71178         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71179
71180 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71181
71182         [BZ #14543]
71183         * libio/Makefile (tests): New test case tst-fseek.
71184         * libio/tst-fseek.c: New test case to verify that fseek/ftell
71185         combination works in wide mode.
71186         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
71187         state when the external buffer state changes.
71188
71189 2012-09-27  David S. Miller  <davem@davemloft.net>
71190
71191         [BZ #14376]
71192         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
71193         pass reloc->r_addend in as the 'high' argument to
71194         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
71195
71196         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71197
71198 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71199
71200         * rt/tst-aio2.c: Include <pthread.h>.
71201         * rt/tst-aio3.c: Likewise.
71202
71203 2012-09-27  Steve Ellcey  <sellcey@mips.com>
71204
71205         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
71206
71207 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
71208
71209         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
71210         contents on [SHARED].
71211
71212 2012-09-26  Marek Polacek  <polacek@redhat.com>
71213
71214         [BZ #14530]
71215         [BZ #13741]
71216         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
71217         for C++ and GCC <4.3 as well as for non GCC compilers.
71218
71219 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
71220
71221         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71222
71223 2012-09-25  Roland McGrath  <roland@hack.frob.com>
71224
71225         * Makefile.in (all, install): Declare with .PHONY.
71226         Reported by Michael Hope <michael.hope@linaro.org>.
71227
71228 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
71229
71230         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
71231         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
71232         system header.
71233         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
71234         Likewise.
71235         (sydep_routines): Add the new and the internal functions.
71236         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
71237         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
71238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
71239         (GLIBC_2.17): Add the new function.
71240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
71241         (GLIBC_2.17): Likewise.
71242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
71243         (GLIBC_2.17): Likewise.
71244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
71245         (GLIBC_2.17): Likewise.
71246         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
71247
71248 2012-09-25  Alan Modra  <amodra@gmail.com>
71249
71250         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
71251         Add release barrier before setting once_control to say
71252         initialisation is done.  Add hints on lwarx.  Use macro in
71253         place of isync.
71254         (clear_once_control): Add release barrier.
71255
71256 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71257
71258         [BZ #13629]
71259         * math/s_clog.c (__clog): Handle more values close to |z| = 1
71260         specially.
71261         * math/s_clog10.c (__clog10): Likewise.
71262         * math/s_clog10f.c (__clog10f): Likewise.
71263         * math/s_clog10l.c (__clog10l): Likewise.
71264         * math/s_clogf.c (__clogf): Likewise.
71265         * math/s_clogl.c (__clogl): Likewise.
71266         * math/Makefile (libm-calls): Add x2y2m1.
71267         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
71268         (__x2y2m1): Likewise.
71269         (__x2y2m1l): Likewise.
71270         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
71271         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
71272         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
71273         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
71274         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
71275         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
71276         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
71277         * sysdeps/i386/fpu/libm-test-ulps: Update.
71278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71279
71280         [BZ #14621]
71281         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
71282         int as type of variable DEPTH.
71283         (glob): Use size_t instead of int as type of variables NEWCOUNT
71284         and OLD_PATHC.
71285
71286 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71287
71288         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71289         Add s_sincosf-sse2.
71290         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
71291         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
71292         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
71293         macros for using routine as __sincosf_ia32.
71294         Use macro for function declaration and weak_alias.
71295         * sysdeps/i386/fpu/libm-test-ulps: Update.
71296
71297         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
71298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71299
71300         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
71301         subnormal argument.
71302         * math/s_cexpf.c (__cexpf): Likewise.
71303         * math/s_csinf.c (__csinf): Likewise.
71304         * math/s_csinhf.c (__csinhf): Likewise.
71305         * math/s_ctanf.c (__ctanf): Likewise.
71306         * math/s_ctanhf.c (__ctanhf): Likewise.
71307         * math/s_ccosh.c (__ccoshf): Likewise.
71308         * math/s_cexp.c (__cexpl): Likewise.
71309         * math/s_csin.c (__csin): Likewise.
71310         * math/s_csinh.c (__csinh): Likewise.
71311         * math/s_ctan.c (__ctan): Likewise.
71312         * math/s_ctanh.c (ctanh): Likewise.
71313         * math/s_ccoshl.c (__ccoshl): Likewise.
71314         * math/s_cexpl.c (__cexpl): Likewise.
71315         * math/s_csinl.c (__csinl): Likewise.
71316         * math/s_csinhl.c (__csinhl): Likewise.
71317         * math/s_ctanl.c (__ctanl): Likewise.
71318         * math/s_ctanhl.c (__ctanhl): Likewise.
71319
71320 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71321
71322         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
71323         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
71324         (_IO_off_t): Define to __off_t, not _G_off_t.
71325         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
71326         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
71327         (_IO_wint_t): Define to wint_t, not _G_wint_t.
71328         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
71329         type of __dummy and __dummy2 fields.
71330         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
71331         (_G_ssize_t): Likewise.
71332         (_G_off_t): Likewise.
71333         (_G_pid_t): Likewise.
71334         (_G_uid_t): Likewise.
71335         (_G_wchar_t): Likewise.
71336         (_G_wint_t): Likewise.
71337         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
71338         (_G_ssize_t): Likewise.
71339         (_G_off_t): Likewise.
71340         (_G_pid_t): Likewise.
71341         (_G_uid_t): Likewise.
71342         (_G_wchar_t): Likewise.
71343         (_G_wint_t): Likewise.
71344         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
71345         (_G_ssize_t): Likewise.
71346         (_G_off_t): Likewise.
71347         (_G_pid_t): Likewise.
71348         (_G_uid_t): Likewise.
71349         (_G_wchar_t): Likewise.
71350         (_G_wint_t): Likewise.
71351
71352 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71353
71354         * malloc/arena.c: Include malloc-sysdep.h.
71355         (shrink_heap): Use check_may_shrink_heap to decide if madvise
71356         is sufficient to shrink the heap or an unmap is needed.
71357         * sysdeps/generic/malloc-sysdep.h: New file.  Define
71358         new function check_may_shrink_heap.
71359         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
71360         new function check_may_shrink_heap.
71361
71362 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71363
71364         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
71365         comments.
71366
71367 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
71368
71369         * catgets/test-gencat.sh: Add "set -e".
71370         * elf/tst-pathopt.sh: Likewise.
71371         * grp/tst_fgetgrent.sh: Likewise.
71372         * iconvdata/run-iconv-test.sh: Likewise.
71373         * intl/tst-gettext.sh: Likewise.
71374         * intl/tst-gettext2.sh: Likewise.
71375         * intl/tst-gettext4.sh: Likewise.
71376         * intl/tst-gettext6.sh: Likewise.
71377         * intl/tst-translit.sh: Likewise.
71378         * io/ftwtest-sh: Likewise.
71379         * libio/test-freopen.sh: Likewise.
71380         * malloc/tst-mtrace.sh: Likewise.
71381         * posix/globtest.sh: Likewise.
71382         * posix/tst-getconf.sh: Likewise.
71383         * posix/wordexp-tst.sh: Likewise.
71384         * stdio-common/tst-printf.sh: Likewise.
71385         * stdio-common/tst-unbputc.sh: Likewise.
71386         * stdlib/tst-fmtmsg.sh: Likewise.
71387         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71388         * catgets/Makefile: Do not specify -e option when running
71389         testsuite shell scripts.
71390         * elf/Makefile: Likewise.
71391         * grp/Makefile: Likewise.
71392         * iconvdata/Makefile: Likewise.
71393         * intl/Makefile: Likewise.
71394         * io/Makefile: Likewise.
71395         * libio/Makefile: Likewise.
71396         * malloc/Makefile: Likewise.
71397         * posix/Makefile: Likewise.
71398         * stdio-common/Makefile: Likewise.
71399         * stdlib/Makefile: Likewise.
71400         * sysdeps/x86_64/Makefile: Likewise.
71401
71402         * io/ftwtest-sh: Add copyright header.
71403         * posix/globtest.sh: Likewise.
71404         * posix/tst-getconf.sh: Likewise.
71405         * posix/wordexp-tst.sh: Likewise.
71406         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71407
71408 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
71409
71410         [BZ #13679]
71411         * Makeconfig (+link): Defined as $(+link-static) if
71412         $(build-shared) isn't yes.
71413         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
71414         isn't yes.
71415         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
71416
71417         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
71418
71419         [BZ #14562]
71420         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
71421         new chunk size with MALLOC_ALIGN_MASK.
71422
71423 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
71424
71425         [BZ #5044]
71426         * stdio-common/printf_fphex.c: Include <stdbool.h> and
71427         <rounding-mode.h>.
71428         (__printf_fphex): Determine rounding using get_rounding_mode and
71429         round_away.
71430         * stdio-common/tst-printf-round.c (struct hex_test): New
71431         structure.
71432         (hex_tests): New variable.
71433         (test_hex_in_one_mode): New function.
71434         (do_test): Also run tests for hex float output.
71435
71436 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
71437
71438         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71439         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71440         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
71441         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71442         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71443         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
71444         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71445         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71446
71447 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
71448
71449         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
71450         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
71451         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
71452         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
71453
71454 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
71455
71456         [BZ #14579]
71457         * elf/rtld.c (dl_main): Limit the check for self loading to normal
71458         mode only.
71459         * elf/tst-rtld-load-self.sh: New test.
71460         * elf/Makefile: Run it.
71461
71462 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
71463
71464         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
71465         (tst-writev-ENV): Remove.
71466         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
71467
71468 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
71469
71470         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
71471
71472 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
71473
71474         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
71475         unconditional.
71476         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
71477         Likewise.
71478         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
71479         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
71480         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
71481         Likewise.
71482
71483 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
71484
71485         [BZ #14587]
71486         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71487         * config.make.in (have-cpp-asm-debuginfo): Removed.
71488         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
71489         * configure: Regenerated.
71490
71491 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
71492
71493         [BZ #5044]
71494         * stdio-common/printf_fp.c: Include <stdbool.h> and
71495         <rounding-mode.h>.
71496         (___printf_fp): Determine rounding using get_rounding_mode and
71497         round_away.
71498         * stdio-common/tst-printf-round.c: New file.
71499         * stdio-common/Makefile (tests): Add tst-printf-round.
71500         (link-libm): New variable.
71501         ($(objpfx)tst-printf-round): Depend in $(link-libm).
71502
71503 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
71504
71505         [BZ #14576]
71506         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
71507         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
71508         Likewise.
71509         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
71510         Likewise.
71511
71512 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
71513
71514         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
71515         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71516         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71517         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71518
71519 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
71520
71521         [BZ #14518]
71522         * include/rounding-mode.h: New file.
71523         * sysdeps/generic/get-rounding-mode.h: Likewise.
71524         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
71525         * stdlib/strtod_l.c: Include <rounding-mode.h>.
71526         (MAX_VALUE): New macro.
71527         (MIN_VALUE): Likewise.
71528         (overflow_value): New function.
71529         (underflow_value): Likewise.
71530         (round_and_return): Use overflow_value and underflow_value to
71531         determine return values in overflow and underflow cases.  Use
71532         round_away to determine rounding depending on rounding mode.
71533         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
71534         determine return values in overflow and underflow cases.
71535         * stdlib/tst-strtod-round.c: Include <fenv.h>.
71536         (struct test_results): New structure.
71537         (struct test): Use struct test_results to store expected results
71538         for all rounding modes.
71539         (TEST): Include expected results for all rounding modes.
71540         (test_in_one_mode): New function.
71541         (do_test): Use test_in_one_mode to compute and check results.
71542         Check results for all rounding modes.
71543         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
71544         $(link-libm).
71545
71546 2012-12-09  Allan McRae  <allan@archlinux.org>
71547
71548         * sysdeps/i386/fpu/libm-test-ulps: Update
71549
71550 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
71551
71552         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
71553         (_G_int32_t): Likewise.
71554         (_G_uint16_t): Likewise.
71555         (_G_uint32_t): Likewise.
71556         (_G_HAVE_BOOL): Likewise.
71557         (_G_HAVE_ATEXIT): Likewise.
71558         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71559         (_G_HAVE_IO_FILE_OPEN): Likewise.
71560         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
71561         (_G_int32_t): Likewise.
71562         (_G_uint16_t): Likewise.
71563         (_G_uint32_t): Likewise.
71564         (_G_HAVE_BOOL): Likewise.
71565         (_G_HAVE_ATEXIT): Likewise.
71566         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71567         (_G_HAVE_IO_FILE_OPEN): Likewise.
71568         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
71569         (_G_int32_t): Likewise.
71570         (_G_uint16_t): Likewise.
71571         (_G_uint32_t): Likewise.
71572         (_G_HAVE_BOOL): Likewise.
71573         (_G_HAVE_ATEXIT): Likewise.
71574         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71575         (_G_HAVE_IO_FILE_OPEN): Likewise.
71576
71577 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
71578
71579         * csu/libc-tls.c: Update copyright years.
71580
71581 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
71582
71583         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
71584         [!_G_USING_THUNKS]: Remove conditional code.
71585         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
71586         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
71587
71588         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
71589         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
71590         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71591         (_G_VTABLE_LABEL_PREFIX): Likewise.
71592         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71593         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71594         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71595         (_G_VTABLE_LABEL_PREFIX): Likewise.
71596         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71597         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71598         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71599         (_G_VTABLE_LABEL_PREFIX): Likewise.
71600         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71601
71602 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
71603
71604         * libio/Makefile: Include ../Makeconfig before tests.
71605         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
71606         only if $(build-shared) is yes.
71607
71608         * iconv/gconv_db.c: Update copyright years.
71609
71610 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71611
71612         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
71613         unwind info if defined PIC. Fix special cases description.
71614         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
71615
71616         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
71617         DP_HI_MASK entry.
71618         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
71619
71620 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
71621
71622         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
71623
71624         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
71625         is NULL.
71626
71627         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
71628         (LDLIBS-tst-chk4): This.
71629         (LDFLAGS-tst-chk5): Renamed to ...
71630         (LDLIBS-tst-chk5): This.
71631         (LDFLAGS-tst-chk6): Renamed to ...
71632         (LDLIBS-tst-chk6): This.
71633         (LDFLAGS-tst-lfschk4): Renamed to ...
71634         (LDLIBS-tst-lfschk4): This.
71635         (LDFLAGS-tst-lfschk5): Renamed to ...
71636         (LDLIBS-tst-lfschk5): This.
71637         (LDFLAGS-tst-lfschk6): Renamed to ...
71638         (LDLIBS-tst-lfschk6): This.
71639
71640         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
71641         on $(common-objpfx)soversions.mk.
71642
71643 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
71644
71645         [BZ #10014]
71646         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
71647         example host name.
71648
71649 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
71650
71651         * malloc/arena.c (arena_get_retry): New function that gets
71652         another arena for the caller to try its request on.
71653         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
71654         current arena cannot fulfill the request.
71655         (__libc_memalign): Likewise.
71656         (__libc_memalign): Likewise.
71657         (__libc_pvalloc): Likewise.
71658         (__libc_calloc): Likewise.
71659
71660 2012-09-05  John Tobey  <john.tobey@gmail.com>
71661
71662         [BZ #13542]
71663         * manual/arith.texi (Operations on Complex): Fix description
71664         of carg branch cut.
71665
71666 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71667
71668         [BZ #10014]
71669         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
71670         host name.
71671
71672         [BZ #10038]
71673         * manual/memory.texi (Memory): Make order of menu items match
71674         order of sections.
71675
71676 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71677
71678         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
71679         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
71680         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
71681
71682 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71683
71684         * csu/libc-tls.c (static_dtv): Renamed to ...
71685         (_dl_static_dtv): This.  Make it global.
71686         (_dl_initial_dtv): Removed.
71687         (__libc_setup_tls): Updated.
71688         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
71689         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
71690         DL_INITIAL_DTV.
71691
71692 2012-09-06  Petr Machata  <pmachata@redhat.com>
71693
71694         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
71695         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
71696         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
71697         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
71698
71699 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71700
71701         [BZ #14545]
71702         * csu/libc-tls.c (_dl_initial_dtv): New variable.
71703         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
71704         freeing dtv[-1].
71705
71706 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71707
71708         [BZ #14544]
71709         * Makeconfig (link-static-before-libc): Replace $(+prector)
71710         with $(+prectorT).
71711         (link-static-after-libc): Replace $(+postctor) with
71712         $(+postctorT).
71713         (link-bounded): Replace $(+prector)/$(+postctor) with
71714         $(+prectorT)/$(+postctorT).
71715         (+prectorT): New macro.
71716         (+postctorT): Likewise.
71717
71718 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71719
71720         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
71721         (round_str): Handle values above the maximum for IBM long double
71722         as inexact.
71723         * stdlib/tst-strtod-round.c (tests): Regenerated.
71724
71725 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71726
71727         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
71728         assembler flag.
71729         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
71730         zarch_nohighgprs around the zarch optimized routines.
71731         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
71732         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
71733         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
71734         for zarch.
71735
71736 2012-09-05  David S. Miller  <davem@davemloft.net>
71737
71738         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71739
71740         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
71741         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
71742         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
71743         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
71744         entries.
71745
71746 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71747
71748         * malloc/arena.c: Fold copyright years.
71749         * malloc/mcheck.c, malloc/memusage.c: Likewise.
71750
71751 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71752
71753         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
71754
71755 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71756
71757         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
71758
71759 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71760
71761         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
71762         change internal state upon failure.
71763
71764 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71765
71766         * malloc/mcheck.c (mcheck_check_all): Fix typo.
71767         * malloc/memusage.c (mmap): Likewise.
71768         (mmap64, mremap): Likewise.  Adjust name in comment.
71769
71770 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71771
71772         * libio/fileops.c: Fix typos in comments.
71773         * libio/oldfileops.c: Likewise.
71774         * libio/wfileops.c: Likewise.
71775
71776 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71777
71778         [BZ #1349]
71779         * malloc/Makefile (tests): Add tst-malloc-usable test case.
71780         (tst-malloc-usable-ENV): Set environment for test case.
71781         * malloc/hooks.c (malloc_check_get_size): New function to get
71782         requested size.
71783         * malloc/malloc.c (musable): Use malloc_check_get_size.
71784         * malloc/tst-malloc-usable.c: New test case.
71785
71786 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71787
71788         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
71789
71790 2012-09-05  Allan McRae  <allan@archlinux.org>
71791
71792         [BZ #13966]
71793         * configure.in (CXX_SYSINCLUDES): Use compiler output to
71794         determine header location.
71795         * configure: Regenerated.
71796
71797 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71798
71799         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
71800         float format.
71801         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
71802         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
71803         format.
71804         (test): Regenerate.
71805
71806 2012-09-04  David S. Miller  <davem@davemloft.net>
71807
71808         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
71809         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
71810         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
71811
71812 2012-09-04  Florian Weimer  <fweimer@redhat.com>
71813
71814         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
71815         failures.
71816
71817         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
71818
71819 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
71820
71821         [BZ #9914]
71822         * libio/iogetdelim.c: Include <limits.h>.
71823         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
71824         + len + 1 would overflow.
71825
71826 2012-09-03  Andreas Jaeger  <aj@suse.de>
71827
71828         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71829         * sysdeps/i386/fpu/libm-test-ulps: Update.
71830
71831 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71832
71833         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71834         Add s_sinf-sse2, s_conf-sse2.
71835
71836         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
71837         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
71838         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
71839         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
71840
71841         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
71842         for using routine as __sinf_ia32.
71843         Use macro for function declaration and weak_alias.
71844         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
71845         for using routine as __cosf_ia32.
71846         Use macro for function declaration and weak_alias.
71847
71848         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
71849         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
71850
71851         * sysdeps/x86_64/fpu/s_sinf.S: New file.
71852         * sysdeps/x86_64/fpu/s_cosf.S: New file.
71853         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71854
71855         * math/libm-test.inc (cos_test): Add more test cases.
71856         (sin_test): Likewise.
71857         (sincos_test): Likewise.
71858
71859 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71860
71861         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
71862         (IFUNC_RESOLVE): Make pointers to the specialized implementations
71863         hidden.
71864         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
71865
71866 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
71867
71868         [BZ #14538]
71869         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
71870         first element of the GOT.
71871         (elf_machine_load_address): Return the difference between
71872         the runtime address of _DYNAMIC and elf_machine_dynamic ().
71873
71874 2012-09-01  Allan McRae  <allan@archlinux.org>
71875
71876         [BZ #13412]
71877         * configure.in (AWK): Require gawk version 3.0 or later.
71878         * configure: Regenerated.
71879
71880 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
71881
71882         * sysdeps/unix/sysv/linux/kernel-features.h
71883         (__ASSUME_POSIX_CPU_TIMERS): Remove.
71884         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
71885         [__NR_clock_getres]: Make code unconditional.
71886         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
71887         (clock_getcpuclockid): Remove code left unreachable by removal of
71888         conditionals.
71889         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
71890         code unconditional.
71891         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71892         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71893         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
71894         Make code unconditional.
71895         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71896         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71897         * sysdeps/unix/sysv/linux/clock_settime.c
71898         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
71899         conditional code.
71900         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
71901         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71902
71903 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
71904
71905         [BZ #14476]
71906         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
71907         scripts/test-installation.pl.
71908
71909         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
71910         and $ld_so_version if it is set.
71911
71912 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
71913
71914         [BZ #14516]
71915         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
71916         failure if reading from procfs failed.
71917         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
71918
71919 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71920
71921         * sysdeps/unix/sysv/linux/kernel-features.h
71922         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
71923         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71924         Remove conditional code.
71925         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71926         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
71927         Remove conditional code.
71928         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71929         * sysdeps/unix/sysv/linux/i386/fxstat.c
71930         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71931         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71932         * sysdeps/unix/sysv/linux/i386/fxstatat.c
71933         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71934         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71935         * sysdeps/unix/sysv/linux/i386/lxstat.c
71936         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71937         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71938         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
71939         Remove conditional code.
71940         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71941         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71942         Remove conditional code.
71943         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71944         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
71945         <kernel-features.h>.
71946         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
71947         Remove.
71948         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
71949         Remove conditional code.
71950         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71951         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
71952         Remove conditional.
71953
71954 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
71955
71956         [BZ #5400]
71957         * NEWS: Add fixed bug number.
71958
71959 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71960
71961         [BZ #14519]
71962         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
71963         underflowing exponent in case of negative sign.
71964         * stdlib/tst-strtod-round-data: Add more tests.
71965         * stdlib/tst-strtod-round.c (tests): Regenerated.
71966
71967         [BZ #3479]
71968         * stdlib/strtod_l.c (NDIG): Remove.
71969         (HEXNDIG): Likewise.
71970         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
71971         smallest representable value.
71972         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
71973         lie within an exact representation of 1/2 ulp of the result.
71974         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
71975         unconditionally.
71976         (TENS_P9_IDX): Define unconditionally.
71977         (TENS_P9_SIZE): Likewise.
71978         (TENS_P10_IDX): Likewise.
71979         (TENS_P10_SIZE): Likewise.
71980         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
71981         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
71982         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
71983         entries for 10^2^13 and 10^2^14.
71984         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
71985         (TENS_P13_IDX): Define.
71986         (TENS_P13_SIZE): Likewise.
71987         (TENS_P14_IDX): Likewise.
71988         (TENS_P14_SIZE): Likewise.
71989         (_fpioconst_pow10): Change array size to
71990         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
71991         unconditional.
71992         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
71993         1024]: Add entries for 10^2^13 and 10^2^14.
71994         [LAST_POW10 > _LAST_POW10]: Remove #error.
71995         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
71996         (_fpioconst_pow10): Change array size to
71997         FPIOCONST_POW10_ARRAY_SIZE.
71998         * stdlib/gen-fpioconst.c: New file.
71999         * stdlib/gen-tst-strtod-round.c: Likewise.
72000         * stdlib/tst-strtod-round-data: Likewise.
72001         * stdlib/tst-strtod-round.c: Likewise.
72002         * stdlib/Makefile (tests): Add tst-strtod-round.
72003
72004         [BZ #14459]
72005         * stdlib/strtod_l.c: Include <stdint.h>.
72006         (NDEBUG): Do not define.
72007         (round_and_return): Change EXPONENT parameter to type intmax_t.
72008         Rearrange calculations to avoid internal overflow possibilities.
72009         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
72010         Rearrange calculations to avoid internal overflow possibilities.
72011         Assert that number fits inside MPNSIZE limbs.
72012         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
72013         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
72014         calculations and add assertions to avoid internal overflow
72015         possibilities.  Add casts to avoid signed/unsigned operations.
72016         * stdlib/tst-strtod-overflow.c: New file.
72017         * stdlib/Makefile (tests): Add tst-strtod-overflow.
72018
72019 2012-08-25  Marek Polacek  <polacek@redhat.com>
72020
72021         * time/time.h: Fix some typos in comments.
72022
72023 2012-08-23  Roland McGrath  <roland@hack.frob.com>
72024
72025         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
72026         * posix/tst-rfc3484-2.c: Likewise.
72027         * posix/tst-rfc3484-3.c: Likewise.
72028
72029 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
72030
72031         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
72032         (EF_ARM_ABI_FLOAT_HARD): Likewise.
72033
72034 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
72035
72036         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
72037         #include of fxstatat64.c.
72038
72039 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72040
72041         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
72042         * shadow/getspent_r.c: Likewise.
72043         * shadow/getspnam.c: Likewise.
72044         * shadow/getspnam_r.c: Likewise.
72045         * gshadow/getsgent.c: Likewise.
72046         * gshadow/getsgent_r.c: Likewise.
72047         * gshadow/getsgnam.c: Likewise.
72048         * gshadow/getsgnam_r.c: Likewise.
72049         * inet/getnetbyad.c: Likewise.
72050         * inet/getnetbyad_r.c: Likewise.
72051         * inet/getnetbynm.c: Likewise.
72052         * inet/getnetbynm_r.c: Likewise.
72053         * inet/getnetent.c: Likewise.
72054         * inet/getnetent_r.c: Likewise.
72055         * inet/getproto.c: Likewise.
72056         * inet/getproto_r.c: Likewise.
72057         * inet/getprtent.c: Likewise.
72058         * inet/getprtent_r.c: Likewise.
72059         * inet/getprtname.c: Likewise.
72060         * inet/getprtname_r.c: Likewise.
72061         * inet/getrpcbyname.c: Likewise.
72062         * inet/getrpcbyname_r.c: Likewise.
72063         * inet/getrpcbynumber.c: Likewise.
72064         * inet/getrpcbynumber_r.c: Likewise.
72065         * inet/getrpcent.c: Likewise.
72066         * inet/getrpcent_r.c: Likewise.
72067         * inet/getaliasent.c: Likewise.
72068         * inet/getaliasent_r.c: Likewise.
72069         * inet/getaliasname.c: Likewise.
72070         * inet/getaliasname_r.c: Likewise.
72071         * nscd/getgrgid_r.c: Likewise.
72072         * nscd/getgrnam_r.c: Likewise.
72073         * nscd/gethstbyad_r.c: Likewise.
72074         * nscd/gethstbynm3_r.c: Likewise.
72075         * nscd/getpwnam_r.c: Likewise.
72076         * nscd/getpwuid_r.c: Likewise.
72077         * nscd/getsrvbynm_r.c: Likewise.
72078         * nscd/getsrvbypt_r.c: Likewise.
72079         * nscd/gai.c: Likewise.
72080
72081         * configure.in (build_nscd): New substituted variable, set
72082         by --disable-build-nscd and defaults to $use_nscd.
72083         * configure: Regenerated.
72084         * config.make.in (build-nscd): New substituted variable.
72085         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
72086         Change conditional to require [$(build-nscd) = yes] as well.
72087         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
72088
72089         [BZ #13696]
72090         * configure.in (use_nscd): New substituted variable, set by
72091         --disable-nscd.  If enabled, define USE_NSCD.
72092         * configure: Regenerated.
72093         * config.h.in: Add USE_NSCD.
72094         * config.make.in (use-nscd): New substituted variable.
72095         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
72096         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
72097         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
72098         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
72099         (CFLAGS-getgrnam_r.c): Likewise.
72100         (CFLAGS-initgroups.c): Likewise.
72101         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
72102         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
72103         Variables removed.
72104         * inet/getnetgrent_r.c
72105         (nscd_setnetgrent): New function, broken out of ...
72106         (setnetgrent): ... here.  Call it.
72107         (innetgr): Conditionalize nscd bits on [USE_NSCD].
72108         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
72109         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
72110         * nscd/Makefile (routines, aux): Move definitions after include of
72111         Makeconfig.  Conditionalize on [$(use-nscd) != no].
72112         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
72113         Conditionalize on [USE_NSCD].
72114         (is_nscd, nscd_init_cb): Likewise.
72115         (nss_load_library): Conditionalize init callback on [USE_NSCD].
72116         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
72117         * nss/nss_db/db-init.c: Likewise.
72118         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
72119         [USE_NSCD].
72120         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
72121         (make_request): Use it.
72122         (cache_valid_p): New function.
72123         (__check_pf): Use it.
72124         * NEWS: Add item for --disable-nscd.
72125
72126 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
72127
72128         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
72129         to support sed >= 4.2.1-20-ga9bf076.
72130         * configure: Regenerated.
72131
72132 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72133
72134         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
72135         Conditionalize whole body on [IREL].
72136
72137 2012-08-22  Jeff Law <law@redhat.com>
72138
72139         [BZ #14505]
72140         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
72141         if the family is PF_UNSPEC.
72142
72143 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
72144
72145         * Makerules (lib-version): Rename from V.
72146         (install-lib-nosubdir): Change V to lib-version.
72147
72148 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
72149
72150         [BZ #14252]
72151         * powerpc32/power6/wcschr.c: New file.
72152         * powerpc32/power6/wcscpy.c: New file.
72153         * powerpc32/power6/wcsrchr.c: New file.
72154         * powerpc64/power6/wcschr.c: New file.
72155         * powerpc64/power6/wcscpy.c: New file.
72156         * powerpc64/power6/wcsrchr.c: New file.
72157
72158 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72159
72160         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
72161         (two_way_short_needle): Use it.
72162         * string/strstr.c (AVAILABLE1_USES_J): Define.
72163         * string/strcasestr.c: Likewise.
72164
72165         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
72166         array references.
72167         * string/strcasestr.c (TOLOWER): Make side-effect safe.
72168
72169         [BZ #11607]
72170         * NEWS: Add an entry.
72171         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
72172         define their defaults.
72173         (two_way_short_needle): Detect end-of-string on-the-fly.
72174         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
72175         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
72176         * string/bug-strcasestr1.c: New test.
72177         * string/Makefile: Run it.
72178
72179 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72180
72181         [BZ #11607]
72182         * string/str-two-way.h (two_way_short_needle): Optimize matching of
72183         the first character.
72184
72185 2012-08-21  Roland McGrath  <roland@hack.frob.com>
72186
72187         * csu/elf-init.c (__libc_csu_irel): Function removed.
72188         * csu/libc-start.c (apply_irel): New function.
72189         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
72190
72191 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
72192
72193         * sysdeps/unix/sysv/linux/kernel-features.h
72194         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
72195         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
72196         <kernel-features.h>.
72197         [__NR_fadvise64_64]: Make code unconditional.
72198         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
72199         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72200         !__NR_fadvise64_64)]: Likewise.
72201         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72202         !__NR_fadvise64_64))]: Likewise.
72203         [__NR_fadvise64]: Make code unconditional.
72204         [!__NR_fadvise64]: Remove conditional code.
72205         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
72206         <kernel-features.h>.
72207         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72208         unconditional.
72209         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72210         conditional code.
72211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
72212         not include <kernel-features.h>.
72213         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72214         unconditional.
72215         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72216         conditional code.
72217         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
72218         include <kernel-features.h>.
72219         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72220         unconditional.
72221         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72222         conditional code.
72223
72224 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
72225
72226         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
72227         slight instruction rearrangements per scrollpipe analysis.
72228         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
72229
72230 2012-08-20  Roland McGrath  <roland@hack.frob.com>
72231
72232         * manual/syslog.texi (syslog; vsyslog, closelog):
72233         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
72234         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
72235
72236         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
72237         DSOCAPS to match condition on defining it.
72238
72239 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
72240
72241         * sysdeps/unix/sysv/linux/kernel-features.h
72242         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
72243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
72244         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72245         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
72247         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72248         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
72250         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72251         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72252
72253         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
72254         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
72255
72256         * sysdeps/unix/sysv/linux/kernel-features.h
72257         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
72258         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
72259         unconditional.
72260         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72261         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
72262         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72263         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72264         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
72265         Make code unconditional.
72266         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72267         (__mmap64) [!__NR_mmap2]: Likewise.
72268         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
72269         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72270         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72271         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
72272         [__NR_mmap2]: Make code unconditional.
72273         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72274         (__mmap64) [!__NR_mmap2]: Likewise.
72275
72276 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72277
72278         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
72279
72280 2012-08-18  Andreas Jaeger  <aj@suse.de>
72281
72282         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
72283
72284 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72285
72286         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
72287         * include/unistd.h (__have_sock_cloexec): Likewise.
72288         (__have_pipe2): Likewise.
72289         (__have_dup3): Likewise.
72290
72291 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72292
72293         [BZ #9685]
72294         * include/unistd.h (__have_pipe2): Change define into an extern int.
72295         (__have_dup3): Likewise.
72296         * socket/have_sock_cloexec.c: Include fcntl.h.
72297         (__have_pipe2): New variable.
72298         (__have_dup3): Likewise.
72299
72300 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
72301
72302         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
72303
72304 2012-08-17  Marek Polacek  <polacek@redhat.com>
72305
72306         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
72307         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
72308
72309 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72310
72311         * configure.in: Add AC_SUBST for sysheaders.
72312         * configure: Regenerated.
72313         * config.make.in (sysheaders): New substituted variable.
72314
72315         * sysdeps/unix/mkfifo.c: Moved ...
72316         * sysdeps/posix/mkfifo.c: ... here.
72317         * sysdeps/unix/mkfifoat.c: Moved ...
72318         * sysdeps/posix/mkfifoat.c: ... here.
72319
72320         * sysdeps/unix/utime.c: Moved ...
72321         * sysdeps/posix/utime.c: ... here.
72322
72323         * sysdeps/unix/time.c: Moved ...
72324         * sysdeps/posix/time.c: ... here.
72325         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
72326         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
72327
72328         * sysdeps/unix/nice.c: Moved ...
72329         * sysdeps/posix/nice.c: ... here.
72330
72331         * sysdeps/unix/alarm.c: Moved ...
72332         * sysdeps/posix/alarm.c: ... here.
72333
72334         * intl/Makefile ($(codeset_mo)): Depend on the input file.
72335
72336 2012-08-17  Jeff Law <law@redhat.com>
72337
72338         * intl/Makefile (codeset_mo): New variable.
72339         ($(codeset_mo)): New target.
72340         (tst-codeset.out): Depend on that.  Remove explicit rule.
72341         (tst-gettext3.out, tst-gettext5.out): Likewise.
72342         (LOCPATH-ENV, tst-codeset-ENV): New variables.
72343         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
72344         * intl/tst-codeset.sh: Remove.
72345         * intl/tst-gettext3.sh: Likewise.
72346         * intl/tst-gettext5.sh: Likewise.
72347
72348 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72349
72350         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
72351         * sysdeps/unix/syscalls.list: ... here.
72352
72353         * sysdeps/posix/getaddrinfo.c
72354         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
72355         (gaiconf_init, gaiconf_reload): Use them.
72356         [!_STATBUF_ST_NSEC]
72357         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
72358         Define using time_t rather than struct timespec.
72359
72360         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
72361         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
72362         Macros removed.
72363         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
72364         [!NO_THREADS].
72365         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
72366         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
72367         Likewise.
72368
72369         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
72370         __libc_cleanup_push argument.
72371
72372         * bits/param.h: New file.
72373         * misc/sys/param.h: New file.
72374         * include/sys/param.h: New file.
72375         * misc/Makefile (headers): Add bits/param.h.
72376         * sysdeps/generic/sys/param.h: File removed.
72377         * sysdeps/unix/sysv/linux/bits/param.h: New file.
72378         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
72379         * sysdeps/mach/hurd/bits/param.h: New file.
72380         * sysdeps/mach/hurd/sys/param.h: File removed.
72381
72382         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
72383         last change.
72384
72385         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
72386         [_IO_MTSAFE_IO].
72387         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
72388         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
72389         New macros.
72390
72391         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
72392         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
72393         rather than -D_IO_MTSAFE_IO conditionally.
72394         * stdio-common/Makefile (CPPFLAGS): Likewise.
72395         * wcsmbs/Makefile (CPPFLAGS): Likewise.
72396         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
72397         Use $(libio-mtsafe).
72398         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
72399         of -D_IO_MTSAFE_IO.
72400         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
72401         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
72402         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
72403         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
72404         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
72405         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
72406         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
72407         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
72408         (CFLAGS-fread_u_chk.c): Likewise.
72409         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
72410         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
72411         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
72412         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
72413         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
72414         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
72415         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
72416         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
72417         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
72418
72419         * libio/Makefile: Test [$(libc-reentrant) = yes]
72420         instead of [$(filter %REENTRANT, $(defines)) nonempty].
72421
72422         * Makeconfig
72423         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
72424         * sysdeps/pthread/configure: File removed.
72425         * sysdeps/pthread/Makeconfig: New file.
72426         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
72427         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
72428
72429 2012-08-16  Gary Benson  <gbenson@redhat.com>
72430
72431         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
72432         unmapping the first object in a namespace.
72433
72434 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72435
72436         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
72437         (__internal_setnetgrent): ... this.  Add internal_function to
72438         definition.  Add libc_hidden_def.
72439         (setnetgrent): Update caller.
72440         (internal_endnetgrent): Renamed to ...
72441         (__internal_endnetgrent): ... this.  Add internal_function to
72442         definition.  Add libc_hidden_def.
72443         (endnetgrent): Update caller.
72444         (internal_getnetgrent_r): Renamed to ...
72445         (__internal_getnetgrent_r): ... this.  Add internal_function to
72446         definition.  Add libc_hidden_def.
72447         (__getnetgrent_r): Update caller.
72448         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
72449
72450 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72451
72452         * stdlib/longlong.h: Update from GCC.
72453
72454 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72455
72456         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
72457         on _QL, which is set by umul_ppmm but never used.
72458         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
72459         variables, which are set by GMP macros but never used.
72460         * stdio-common/_itowa.c (_itowa): Likewise.
72461         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
72462         * stdlib/mod_1.c (mpn_mod_1): Likewise.
72463
72464 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
72465
72466         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
72467         struct La_sh_regs is not constant.
72468         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
72469         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
72470         and struct La_sparc64_regs are not constant.
72471
72472 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72473
72474         * sysdeps/unix/sysv/linux/kernel-features.h
72475         (__ASSUME_POSIX_TIMERS): Remove.
72476         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72477         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72478         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
72479         Make code unconditional.
72480         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72481         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
72482         Make code unconditional.
72483         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72484         * sysdeps/unix/sysv/linux/clock_nanosleep.c
72485         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
72486         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72487         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
72488         Make code unconditional.
72489         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72490         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
72491         (__libc_missing_posix_timers): Remove.
72492
72493 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72494
72495         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
72496         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
72497
72498         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
72499
72500         * elf/dl-sym.c: Include <stdlib.h>.
72501
72502         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
72503         constants, which avoids warnings in 32-bit builds.
72504
72505         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
72506         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
72507
72508         * misc/lseek.c: File moved to ...
72509         * io/lseek.c: ... here.
72510
72511         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
72512
72513         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
72514         shifting LEN more than 31 bits at once.
72515
72516 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72517
72518         [BZ #14195]
72519         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
72520         segmentation fault for a case of two empty input strings.
72521         * string/test-strncasecmp.c (check1): Renamed to...
72522         (bz12205): ...this.
72523         (bz14195): Add new testcase for two empty input strings and N > 0.
72524         (test_main): Call new testcase, adapt for renamed function.
72525
72526 2012-08-15  Andreas Jaeger  <aj@suse.de>
72527
72528         [BZ #14090]
72529         * crypt/md5test2.c: New test, based on test supplied by Serge
72530         Belyshev <belyshev@depni.sinp.msu.ru>.
72531         * crypt/Makefile (xtests): Add md5test-giant..
72532         * crypt/Makefile ($(objpfx)md5test-giant): Add.
72533
72534 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         [BZ #14090]
72537         * crypt/md5.c (md5_process_block): Don't assume the buffer
72538         length is less than 2**32.
72539         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
72540         length is less than 2**64.
72541
72542 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72543
72544         * string/str-two-way.h: Include <sys/param.h>.
72545         (MAX): Macro removed.
72546
72547         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
72548         Move #define and #undef of memmove to just before and after
72549         including <string.h>.
72550
72551         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
72552         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
72553         and after including <string.h>.  Move declarations of
72554         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
72555         to before #include "string/memmove.c".
72556
72557         * include/dirent.h: Declare __getdirentries.
72558
72559         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
72560         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
72561
72562 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
72563
72564         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
72565         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
72566         * sysdeps/i386/configure: Regenerated.
72567         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
72568         STABS_CURRENT_FILE, and STABS_FUN.
72569         (END): Remove call to STABS_FUN_END.
72570         (STABS_CURRENT_FILE1): Delete.
72571         (STABS_CURRENT_FILE): Likewise.
72572         (STABS_FUN): Likewise.
72573         (STABS_FUN_END): Likewise.
72574         (STABS_FUN2): Likewise.
72575         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
72576         * sysdeps/x86_64/configure: Regenerated.
72577
72578 2012-08-14  Roland McGrath  <roland@hack.frob.com>
72579
72580         * elf/dl-open.c: Include <atomic.h>.
72581         * elf/dl-lookup.c: Likewise.
72582
72583 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
72584
72585         * sysdeps/unix/sysv/linux/kernel-features.h
72586         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
72587         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
72588         unconditionally.
72589         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
72590         unconditionally.
72591         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
72592         condition on __ASSUME_CLONE_THREAD_FLAGS.
72593
72594 2012-08-14  Andreas Jaeger  <aj@suse.de>
72595
72596         * sysdeps/i386/fpu/libm-test-ulps: Update.
72597
72598 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
72599
72600         * include/atomic.h (atomic_exchange_and_add): Split into ...
72601         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
72602         New atomic macros.
72603
72604 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
72605
72606         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72607
72608 2012-08-13  Jeff Law <law@redhat.com>
72609
72610         * manual/stdio.texi (snprintf): Clarify handling of the trailing
72611         null byte in the output string.
72612
72613 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
72614
72615         * sysdeps/unix/sysv/linux/kernel-features.h
72616         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
72617         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
72618         (__ASSUME_ARG_MAX_STACK_BASED): Define.
72619         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
72620         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
72621         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
72622         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
72623
72624 2012-08-09  Jeff Law <law@redhat.com>
72625
72626         [BZ #13939]
72627         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
72628         When avoid_arena is set, don't retry in the that arena.  Pick the
72629         next one, whatever it might be.
72630         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
72631         (arena_lock): Pass in new parameter to arena_get2.
72632         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
72633         arena_get2.
72634         (__libc_malloc): Unify retrying after main arena failure with
72635         __libc_memalign version.
72636         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
72637
72638 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
72639
72640         [BZ #14166]
72641         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
72642         to __redirect_strstr.
72643         (__strstr_sse42): Use typeof __redirect_strstr.
72644         (__strstr_ia32): Likewise.
72645         (__libc_strstr): New prototype.
72646         (strstr): Renamed to ...
72647         (__libc_strstr): This.
72648         (strstr): New strong alias of __libc_strstr.
72649         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
72650         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
72651         __redirect_time.
72652         Include <time.h>.
72653         (__libc_time): New prototype.
72654         (time_ifunc): Replace time with __libc_time.
72655         (time): New strong alias and hidden definition of __libc_time.
72656         (__GI_time): Remove strong alias.
72657         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
72658         Include <stddef.h>.
72659         (memmove): Redefined to __redirect_memmove.
72660         (__memmove_sse2): Use typeof __redirect_memmove.
72661         (__memmove_ssse3): Likewise.
72662         (__memmove_ssse3_back): Likewise.
72663         (__libc_memmove): New prototype.
72664         (memmove): Renamed to ...
72665         (__libc_memmove): This.
72666         (memmove): New strong alias of __libc_memmove.
72667
72668 2012-08-08  Mark Salter  <msalter@redhat.com>
72669
72670         * elf/elf.h
72671         (R_MN10300_TLS_GD): Define.
72672         (R_MN10300_TLS_LD): Likewise.
72673         (R_MN10300_TLS_LDO): Likewise.
72674         (R_MN10300_TLS_GOTIE): Likewise.
72675         (R_MN10300_TLS_IE): Likewise.
72676         (R_MN10300_TLS_LE): Likewise.
72677         (R_MN10300_TLS_DTPMOD): Likewise.
72678         (R_MN10300_TLS_DTPOFF): Likewise.
72679         (R_MN10300_TLS_TPOFF): Likewise.
72680         (R_MN10300_SYM_DIFF): Likewise.
72681         (R_MN10300_ALIGN): Likewise.
72682         (R_MN10300_NUM): Update.
72683
72684 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
72685
72686         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
72687         Remove.
72688
72689 2012-08-08  Roland McGrath  <roland@hack.frob.com>
72690
72691         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
72692
72693         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
72694         sysdeps/unix -> sysdeps/posix move.
72695         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
72696
72697 2012-08-07      Allan McRae     <allan@archlinux.org>
72698
72699         [BZ #14303]
72700         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
72701         (SUNOS_CPP): Likewise.
72702         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
72703         not found.
72704         (open_input): Call CPP using execvp.
72705
72706 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72707
72708         * sysdeps/unix/sysv/linux/kernel-features.h
72709         (__ASSUME_PROT_GROWSUPDOWN): Remove.
72710         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72711         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72712         (__ASSUME_WAITID_SYSCALL): Likewise.
72713         * sysdeps/unix/sysv/linux/dl-execstack.c
72714         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
72715         code unconditional.
72716         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
72717         conditional code.
72718         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
72719         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
72720         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
72721         code.
72722         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
72723         unconditional.
72724         [__ASSUME_WAITID_SYSCALL]: Likewise.
72725         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
72726
72727 2012-08-07  Roland McGrath  <roland@hack.frob.com>
72728
72729         * sysdeps/unix/closedir.c: Renamed to ...
72730         * sysdeps/posix/closedir.c: ... here.
72731         * sysdeps/unix/dirfd.c: Renamed to ...
72732         * sysdeps/posix/dirfd.c: ... here.
72733         * sysdeps/unix/dirstream.h: Renamed to ...
72734         * sysdeps/posix/dirstream.h: ... here.
72735         * sysdeps/unix/fdopendir.c: Renamed to ...
72736         * sysdeps/posix/fdopendir.c: ... here.
72737         * sysdeps/unix/opendir.c: Renamed to ...
72738         * sysdeps/posix/opendir.c: ... here.
72739         * sysdeps/unix/readdir.c: Renamed to ...
72740         * sysdeps/posix/readdir.c: ... here.
72741         * sysdeps/unix/readdir_r.c: Renamed to ...
72742         * sysdeps/posix/readdir_r.c: ... here.
72743         * sysdeps/unix/rewinddir.c: Renamed to ...
72744         * sysdeps/posix/rewinddir.c: ... here.
72745         * sysdeps/unix/seekdir.c: Renamed to ...
72746         * sysdeps/posix/seekdir.c: ... here.
72747         * sysdeps/unix/telldir.c: Renamed to ...
72748         * sysdeps/posix/telldir.c: ... here.
72749         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
72750         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
72751         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
72752         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
72753
72754         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
72755         * bits/fcntl.h: ... here.
72756
72757         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
72758         not 0.
72759         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
72760         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
72761         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
72762         (struct flock): Move l_start, l_len to the beginning.
72763         Use __pid_t for l_pid.
72764         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
72765         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
72766         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
72767         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
72768         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
72769         [__USE_LARGEFILE64] (struct flock64): New type.
72770         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
72771
72772         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
72773         * bits/dirent.h: ... here.
72774
72775         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
72776         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
72777
72778 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72779
72780         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72781         Change from 2.6.0 to 2.6.16.
72782         * sysdeps/unix/sysv/linux/configure: Regenerated.
72783         * sysdeps/unix/sysv/linux/kernel-features.h
72784         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
72785         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
72786         version.
72787         (__ASSUME_UTIMES): Likewise.
72788         (__ASSUME_CLONE_STOPPED): Remove.
72789         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
72790         architectures, not kernel version.
72791         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
72792         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72793         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72794         (__ASSUME_WAITID_SYSCALL): Likewise.
72795         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
72796         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
72797         * README: State 2.6.16 as minimum Linux kernel version.  Do not
72798         refer to older versions.
72799
72800 2012-08-06  Roland McGrath  <roland@hack.frob.com>
72801
72802         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
72803         Define alphasort64 as an alias.
72804         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
72805         Define versionsort64 as an alias.
72806         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
72807         Define scandir64 as an alias.
72808         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
72809         Define scandirat64 as an alias.
72810         * dirent/alphasort64.c (alphasort64):
72811         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
72812         * dirent/versionsort64.c: Likewise.
72813         * dirent/scandir64.c: Likewise.
72814         * dirent/scandirat64.c: Likewise.
72815         * sysdeps/wordsize-64/alphasort.c: File removed.
72816         * sysdeps/wordsize-64/alphasort64.c: File removed.
72817         * sysdeps/wordsize-64/scandir.c: File removed.
72818         * sysdeps/wordsize-64/scandir64.c: File removed.
72819         * sysdeps/wordsize-64/scandirat.c: File removed.
72820         * sysdeps/wordsize-64/scandirat64.c: File removed.
72821         * sysdeps/wordsize-64/versionsort.c: File removed.
72822         * sysdeps/wordsize-64/versionsort64.c: File removed.
72823         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
72824         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
72825         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
72826         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
72827         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
72828         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
72829         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
72830         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
72831
72832         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
72833         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72834         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
72835         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72836         [defined __arch64__ || defined __sparcv9]
72837         (__INO_T_MATCHES_INO64_T): New macro.
72838         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72839         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
72840         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
72841         * sysdeps/unix/sysv/linux/bits/dirent.h
72842         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
72843         (_DIRENT_MATCHES_DIRENT64): New macro.
72844
72845         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
72846         Define lockf64 as an alias.
72847         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
72848         Define fseeko64 as an alias.
72849         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
72850         Define ftello64 as an alias.
72851         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
72852         Define _IO_fgetpos64 and fgetpos64 as aliases.
72853         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
72854         Define _IO_fsetpos64 and fsetpos64 as aliases.
72855         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
72856         Conditionalize body on this.
72857         * libio/fseeko64.c: Likewise.
72858         * libio/ftello64.c: Likewise.
72859         * libio/iofgetpos64.c: Likewise.
72860         * libio/iofsetpos64.c: Likewise.
72861         * sysdeps/wordsize-64/lockf.c: File removed.
72862         * sysdeps/wordsize-64/lockf64.c: File removed.
72863         * sysdeps/wordsize-64/fseeko.c: File removed.
72864         * sysdeps/wordsize-64/fseeko64.c: File removed.
72865         * sysdeps/wordsize-64/ftello.c: File removed.
72866         * sysdeps/wordsize-64/ftello64.c: File removed.
72867         * sysdeps/wordsize-64/iofgetpos.c: File removed.
72868         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
72869         * sysdeps/wordsize-64/iofsetpos.c: File removed.
72870         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
72871         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
72872         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
72873         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
72874         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
72875         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
72876         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
72877         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
72878         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
72879         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
72880         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
72881
72882         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72883         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72884         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
72885         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72886         [defined __arch64__ || defined __sparcv9]
72887         (__OFF_T_MATCHES_OFF64_T): New macro.
72888         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72889         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72890         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
72891         (__OFF_T_MATCHES_OFF64_T): New macro.
72892
72893 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72894
72895         * stdlib/secure-getenv.c (__secure_getenv): Replace
72896         GLIBC_2_16 with GLIBC_2_17.
72897
72898 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72899
72900         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
72901         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
72902
72903 2012-08-03  David S. Miller  <davem@davemloft.net>
72904
72905         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72906
72907 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72908
72909         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
72910         Remove.
72911         (__ASSUME_CORRECT_SI_PID): Likewise.
72912         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
72913         (__ASSUME_TMPFS_NAME): Likewise.
72914         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
72915         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
72916         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
72917         (HAVE_AUX_SECURE): Make definition unconditional.
72918         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
72919         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
72920
72921 2012-08-03  Roland McGrath  <roland@hack.frob.com>
72922
72923         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
72924         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
72925         * sysdeps/mach/hurd/eloop-threshold.h: New file.
72926         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
72927         __eloop_threshold instead of SYMLOOP_MAX.
72928
72929         * sysdeps/generic/eloop-threshold.h: New file.
72930         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
72931         of MAXSYMLINKS.
72932         * elf/chroot_canon.c (chroot_canon): Likewise.
72933
72934 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72935
72936         [BZ #13717]
72937         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72938         Change to 2.6.0 everywhere.
72939         * sysdeps/unix/sysv/linux/configure: Regenerated.
72940         * sysdeps/unix/sysv/linux/kernel-features.h
72941         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
72942         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
72943         kernel versions.
72944         (__ASSUME_POSIX_TIMERS): Define unconditionally.
72945         (__ASSUME_FUTEX_REQUEUE): Remove.
72946         (__ASSUME_STATFS64): Define unconditionally.
72947         (__ASSUME_AT_SECURE): Likewise.
72948         (__ASSUME_CORRECT_SI_PID): Likewise.
72949         (__ASSUME_TGKILL): Define without depending on kernel version for
72950         i386.
72951         (__ASSUME_UTIMES): Likewise.
72952         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
72953         kernel version.
72954         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
72955         (__ASSUME_TMPFS_NAME): Likewise.
72956         * README: Update reference to Linux kernel versions.
72957
72958 2012-08-02  Marek Polacek  <polacek@redhat.com>
72959
72960         [BZ #14150]
72961         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
72962         libc_cv_asm_type_prefix with %.
72963         * configure: Regenerated.
72964         * include/libc-symbols.h: Remove comment about
72965         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72966         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
72967         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
72968         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
72969         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
72970         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72971         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
72972         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
72973         * elf/tst-unique2mod1.c: Likewise.
72974         * elf/tst-unique1mod2.c: Likewise.
72975         * elf/tst-unique1mod1.c: Likewise.
72976         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
72977         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
72978         Replace ASM_TYPE_DIRECTIVE with .type.
72979         * sysdeps/s390/s390-64/sysdep.h: Likewise.
72980         * sysdeps/i386/sysdep.h: Likewise.
72981         * sysdeps/x86_64/sysdep.h: Likewise.
72982         * sysdeps/sh/sysdep.h: Likewise.
72983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
72984         Do not define ASM_TYPE_DIRECTIVE.
72985         * sysdeps/powerpc/sysdep.h: Likewise.
72986         * sysdeps/powerpc/powerpc32/sysdep.h:
72987         Replace ASM_TYPE_DIRECTIVE with .type.
72988         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
72989         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
72990         * sysdeps/i386/fpu/e_powf.S: Likewise.
72991         * sysdeps/i386/fpu/e_expl.S: Likewise.
72992         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72993         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72994         * sysdeps/i386/fpu/e_pow.S: Likewise.
72995         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72996         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72997         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72998         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72999         * sysdeps/i386/fpu/e_log2.S: Likewise.
73000         * sysdeps/i386/fpu/e_log2l.S: Likewise.
73001         * sysdeps/i386/fpu/e_scalb.S: Likewise.
73002         * sysdeps/i386/fpu/e_powl.S: Likewise.
73003         * sysdeps/i386/fpu/e_log10f.S: Likewise.
73004         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
73005         * sysdeps/i386/fpu/e_logl.S: Likewise.
73006         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
73007         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
73008         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
73009         * sysdeps/i386/fpu/e_log2f.S: Likewise.
73010         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
73011         * sysdeps/i386/fpu/e_log.S: Likewise.
73012         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
73013         * sysdeps/i386/fpu/e_logf.S: Likewise.
73014         * sysdeps/i386/fpu/e_log10l.S: Likewise.
73015         * sysdeps/i386/fpu/e_atanh.S: Likewise.
73016         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
73017         * sysdeps/i386/fpu/e_log10.S: Likewise.
73018         * sysdeps/i386/fpu/s_frexp.S: Likewise.
73019         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
73020         * sysdeps/i386/fpu/s_asinh.S: Likewise.
73021         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
73022         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
73023         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
73024         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
73025         * sysdeps/i386/i686/strtok.S: Likewise.
73026         * sysdeps/i386/i386-mcount.S: Likewise.
73027         * sysdeps/i386/strtok.S: Likewise.
73028         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
73029         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
73030         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
73031         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
73032         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73033         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
73034         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
73035         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
73036         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
73037         * sysdeps/x86_64/_mcount.S: Likewise.
73038         * sysdeps/x86_64/strtok.S: Likewise.
73039         * sysdeps/sh/_mcount.S: Likewise.
73040
73041 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73042
73043         * libio/iofopen.c: Include <fcntl.h>.
73044         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
73045         (_IO_fopen64, fopen64): Define as aliases.
73046         * libio/iofopen64.c: Include <fcntl.h>.
73047         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
73048         Conditionalize body on this.
73049         * sysdeps/wordsize-64/iofopen.c: File removed.
73050         * sysdeps/wordsize-64/iofopen64.c: File removed.
73051
73052 2012-08-01  Marek Polacek  <polacek@redhat.com>
73053
73054         * libc/Makeconfig: Use elf in place of binfmt-subdir.
73055         Use dlfcn directly instead of a variable.
73056         (binfmt-subdir): Do not define.
73057         (dlfcn): Likewise.
73058
73059 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
73060
73061         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
73062         Remove all definitions.
73063         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
73064         <kernel-features.h>.
73065         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
73066         (miss_F_GETOWN_EX): Remove all definitions.
73067         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
73068         macro definition.
73069         [!__ASSUME_FCNTL64]: Remove conditional code.
73070         [__ASSUME_FCNTL64]: Make code unconditional.
73071         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
73072         <kernel-features.h>.
73073         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
73074         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
73075         (lockf64) [__NR_fcntl64]: Make code unconditional.
73076         (lockf64) [__ASSUME_FCNTL64]: Likewise.
73077
73078         * sysdeps/unix/sysv/linux/kernel-features.h
73079         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
73080         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
73081         Make code unconditional.
73082         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73083         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
73085         [__NR_vfork]: Make code unconditional.
73086         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73087         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
73089         [__NR_vfork]: Make code unconditional.
73090         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73091         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73092
73093 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73094
73095         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
73096         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
73097
73098         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73099         Define mkstemp64 as an alias.
73100         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73101         Define mkstemps64 as an alias.
73102         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73103         Define mkostemp64 as an alias.
73104         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73105         Define mkostemps64 as an alias.
73106         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
73107         Conditionalize body on this.
73108         * misc/mkostemp64.c: Likewise.
73109         * misc/mkostemps64.c: Likewise.
73110         * misc/mkstemps64.c: Likewise.
73111         * sysdeps/wordsize-64/mkstemp64.c: File removed.
73112         * sysdeps/wordsize-64/mkostemp64.c: File removed.
73113         * sysdeps/wordsize-64/mkostemp.c: File removed.
73114         * sysdeps/wordsize-64/mkstemp.c: File removed.
73115         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
73116         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
73117         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
73118         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
73119
73120         [BZ #14138]
73121         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
73122         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
73123         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
73124         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
73125
73126         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
73127         compat_symbol macros from <shlib-compat.h> rather than the underlying
73128         default_symbol_version and symbol_version macros, so that DEFAULT
73129         lines in shlib-versions are respected.
73130         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
73131
73132 2012-08-01  Florian Weimer  <fweimer@redhat.com>
73133
73134         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
73135         Declare with warn_unused_result.
73136         (setgid, setregid, setegid, setresgid): Likewise.
73137         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
73138         Likewise.
73139         * WUR-REPORT: Remove set*id functions.
73140
73141 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
73142
73143         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
73144
73145 2012-07-31  Roland McGrath  <roland@hack.frob.com>
73146
73147         [BZ #10191]
73148         * include/sys/socket.h (__libc_accept, __libc_accept4):
73149         Add attribute_hidden.
73150         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
73151
73152         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
73153         use of PTR_MANGLE.
73154         * inet/getnetgrent_r.c (setup): Likewise.
73155
73156         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
73157
73158 2012-07-31  David S. Miller  <davem@davemloft.net>
73159
73160         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73161
73162 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
73163
73164         [BZ #13629]
73165         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
73166         value between 1.0 and 2.0 and smaller part has absolute value less
73167         than 1.0.
73168         * math/s_clog10.c (__clog10): Likewise.
73169         * math/s_clog10f.c (__clog10f): Likewise.
73170         * math/s_clog10l.c (__clog10l): Likewise.
73171         * math/s_clogf.c (__clogf): Likewise.
73172         * math/s_clogl.c (__clogl): Likewise.
73173         * math/libm-test.inc (clog_test): Add more tests.
73174         (clog10_test): Likewise.
73175         * sysdeps/i386/fpu/libm-test-ulps: Update.
73176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73177
73178 2012-07-31  Florian Weimer  <fweimer@redhat.com>
73179
73180         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
73181         Exit with zero in case no suitable GID is found, and write a
73182         message to standard error.
73183
73184 2012-07-30  Roland McGrath  <roland@hack.frob.com>
73185
73186         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
73187         rather than to 1.
73188         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
73189         (MAXPATHLEN): Removed.
73190         (NOGROUP, NODEV): New macros.
73191         (setbit, clrbit, isset, isclr): New macros.
73192         (howmany, roundup, powerof2): New macros.
73193         (DEV_BSIZE): New macro.
73194
73195         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
73196         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
73197
73198         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
73199         definition on [!__NO_LONG_DOUBLE_MATH].
73200
73201         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
73202         PTR_MANGLE and PTR_DEMANGLE.
73203
73204         * socket/accept4.c (accept4): Rename to __libc_accept4.
73205         Define accept4 as a weak alias.
73206
73207         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
73208         on [_DIRENT_HAVE_D_TYPE].
73209         * io/ftw.c (ftw_dir): Likewise.
73210
73211         * io/xmknod.c (__xmknod): Don't check PATH for being null.
73212
73213         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
73214
73215         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
73216         Use the BSD numbers rather than the arbitrary ones we had.
73217         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
73218         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
73219         (SIGXCPU, SIGXFSZ): New macros.
73220         (_NSIG): Now 32.
73221
73222         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
73223         initializer on [_LIBC_REENTRANT].
73224
73225         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
73226         definitions inside [_POSIX_MAPPED_FILES].
73227
73228         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
73229
73230         * dirent/opendir.c: Include <fcntl.h>.
73231
73232         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
73233         (__libc_getspecific): Likewise.
73234         (__libc_key_create): Likewise.
73235
73236         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
73237         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
73238         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
73239         (tmpfile64): Define as alias.
73240         * sysdeps/wordsize-64/tmpfile.c: File removed.
73241         * sysdeps/wordsize-64/tmpfile64.c: File removed.
73242         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
73243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
73244
73245         * stdio-common/vfscanf.c: Include <stdbool.h>.
73246         * nss/makedb.c: Likewise.
73247         * stdio-common/_i18n_number.h: Likewise.
73248         * argp/argp-help.c: Likewise.
73249         * posix/wordexp.c: Likewise.
73250         * sysdeps/posix/spawni.c: Likewise.
73251         * nss/nss_files/files-initgroups.c: Likewise.
73252         * stdio-common/reg-modifier.c: Include <stdlib.h>.
73253         * nss/nss_files/files-initgroups.c: Likewise.
73254         * nss/nss_db/db-netgrp.c: Likewise.
73255         * nss/nss_db/db-initgroups.c: Likewise.
73256         * io/fchmodat.c: Include <sys/stat.h>.
73257
73258         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
73259         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
73260
73261         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
73262         [HAVE_MMAP].
73263
73264         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
73265         Add multiple inclusion protection.
73266
73267 2012-07-27  David S. Miller  <davem@davemloft.net>
73268
73269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73270
73271 2012-07-27  Gary Benson  <gbenson@redhat.com>
73272
73273         [BZ #14298]
73274         * elf/rtld.c: Include <stap-probe.h>.
73275         (dl_main): Added static probes "init_start" and "init_complete".
73276         * elf/dl-load.c: Include <stap-probe.h>.
73277         (lose): Take new parameter "nsid".
73278         Added static probe "map_failed".
73279         (_dl_map_object_from_fd): Pass namespace id to lose.
73280         Added static probe "map_start".
73281         (open_verify): Pass namespace id to lose.
73282         * elf/dl-open.c: Include <stap-probe.h>.
73283         (dl_open_worker) Added static probes "map_complete", "reloc_start"
73284         and "reloc_complete".
73285         * elf/dl-close.c: Include <stap-probe.h>.
73286         (_dl_close_worker): Added static probes "unmap_start" and
73287         "unmap_complete".
73288         * elf/rtld-debugger-interface.txt: New file documenting the above.
73289
73290 2012-07-26  Roland McGrath  <roland@hack.frob.com>
73291
73292         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
73293         rather than a string variable.
73294         * sunrpc/rpc_main.c (h_output): Likewise.
73295         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
73296
73297 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
73298
73299         * inet/check_native.c: New file.
73300
73301 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
73302
73303         [BZ #13629]
73304         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
73305         if larger part has absolute value 1.0.
73306         * math/s_clog10.c (__clog10): Likewise.
73307         * math/s_clog10f.c (__clog10f): Likewise.
73308         * math/s_clog10l.c (__clog10l): Likewise.
73309         * math/s_clogf.c (__clogf): Likewise.
73310         * math/s_clogl.c (__clogl): Likewise.
73311         * math/libm-test.inc (clog_test): Add more tests.
73312         (clog10_test): Likewise.
73313         * sysdeps/i386/fpu/libm-test-ulps: Update.
73314         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73315
73316         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
73317         (pltexit): Likewise.
73318         (La_regs): Likewise.
73319         (La_retval): Likewise.
73320         (int_retval): Likewise.
73321         Update #error for removed macros to refer only to definitions in
73322         tst-audit.h.
73323         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
73324         macro.
73325         (pltexit): Likewise.
73326         (La_regs): Likewise.
73327         (La_retval): Likewise.
73328         (int_retval): Likewise.
73329         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
73330         macro.
73331         (pltexit): Likewise.
73332         (La_regs): Likewise.
73333         (La_retval): Likewise.
73334         (int_retval): Likewise.
73335         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
73336         macro.
73337         (pltexit): Likewise.
73338         (La_regs): Likewise.
73339         (La_retval): Likewise.
73340         (int_retval): Likewise.
73341         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
73342         macro.
73343         (pltexit): Likewise.
73344         (La_regs): Likewise.
73345         (La_retval): Likewise.
73346         (int_retval): Likewise.
73347         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
73348         macro.
73349         (pltexit): Likewise.
73350         (La_regs): Likewise.
73351         (La_retval): Likewise.
73352         (int_retval): Likewise.
73353         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
73354         macro.
73355         (pltexit): Likewise.
73356         (La_regs): Likewise.
73357         (La_retval): Likewise.
73358         (int_retval): Likewise.
73359         * sysdeps/generic/tst-audit.h: Update comment to refer only to
73360         macro definitions in tst-audit.h.
73361         * sysdeps/i386/tst-audit.h: New file.
73362         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
73363         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
73364         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
73365         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
73366         * sysdeps/sh/tst-audit.h: Likewise.
73367         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
73368         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
73369         * sysdeps/x86_64/tst-audit.h: Likewise.
73370
73371 2012-07-26  Andreas Jaeger  <aj@suse.de>
73372
73373         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
73374         ptrace.
73375
73376         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
73377         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
73378         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
73379         PTRACE_O_MASK.
73380         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
73381         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
73382         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
73383
73384         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
73385         value.
73386
73387         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
73388         _sigsys.
73389         (si_call_addr, si_syscall, si_arch): Define new macro.
73390         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
73391         _sigsys.
73392         (si_call_addr, si_syscall, si_arch): Define new marcro.
73393         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
73394         _sigsys.
73395         (si_call_addr, si_syscall, si_arch): Define new macro.
73396         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
73397         _sigsys.
73398         (si_call_addr, si_syscall, si_arch): Define new macro.
73399
73400 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73401
73402         [BZ #13717]
73403         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73404         Change to 2.4.21 where previously 2.4.1.
73405         * sysdeps/unix/sysv/linux/configure: Regenerated.
73406         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
73407         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
73408         Linux kernel version.
73409         (__ASSUME_STD_AUXV): Remove.
73410         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
73411         kernel version.
73412         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
73413         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
73414         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
73415         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
73416         (__ASSUME_NETLINK_SUPPORT): Likewise.
73417         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
73418         (__no_netlink_support): Remove conditional definition.
73419         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
73420         Remove.
73421         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73422         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
73423         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
73424         (if_nameindex_ioctl): Remove.
73425         (if_nameindex_netlink): Do not handle __no_netlink_support.
73426         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73427         code.
73428         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
73429         Remove conditional code.
73430         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73431         code.
73432         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
73433         unconditional.
73434         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73435         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
73436         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
73437         Remove.
73438         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
73439         [!__ASSUME_STD_AUXV]: Remove conditional code.
73440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
73441         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
73442         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
73443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
73444         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
73445         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73446         code.
73447         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
73449         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
73450         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73451         conditional code.
73452         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
73454         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73455         code.
73456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
73457         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73458         conditional code.
73459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
73460         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73461         code unconditional.
73462         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73463         conditional code.
73464         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73465         unconditional.
73466         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73467         conditional code.
73468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
73469         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73470         unconditional.
73471         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73472         conditional code.
73473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
73474         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73475         code unconditional.
73476         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73477         conditional code.
73478         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73479         unconditional.
73480         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73481         conditional code.
73482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
73483         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73484         code unconditional.
73485         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73486         conditional code.
73487         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73488         unconditional.
73489         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73490         conditional code.
73491
73492 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
73493
73494         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
73495         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
73496         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
73497         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
73498         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
73499         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
73500         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
73501         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
73502         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
73503         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
73504         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
73505         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
73506         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
73507         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
73508         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
73509         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
73510         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
73511         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
73512         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
73513         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
73514         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
73515         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
73516         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
73517
73518 2012-07-25  Florian Weimer  <fweimer@redhat.com>
73519
73520         * Versions.def: Add GLIBC_2.17.
73521         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
73522         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
73523         Introduce __libc_secure_getenv.
73524         * stdlib/Versions (2.17): Add secure_getenv
73525         (GLIBC_PRIVATE): Add __libc_secure_getenv.
73526         * stdlib/secure-getenv.c: Rename __secure_getenv to
73527         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
73528         symbol __secure_getenv for GLIBC_2.0.
73529         * stdlib/tst-secure-getenv.c: New.
73530         * stdlib/Makefile (tests): Add testcase.
73531         * manual/startup.texi (Environment Access): Document
73532         secure_getenv.
73533         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
73534         __libc_secure_getenv.
73535         * inet/ruserpass.c (ruserpass): Likewise.
73536         * malloc/mtrace.c (mtrace): Likewise.
73537         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
73538         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
73539         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
73540         * sysdeps/posix/tempname.c: Likewise.  Evaluate
73541         HAVE_SECURE_GETENV.
73542         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
73543         __secure_getenv to __libc_secure_getenv.
73544         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
73545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73546         Likewise.
73547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73548         Likewise.
73549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73550         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73551         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73553         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73554         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73555         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73556
73557 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73558
73559         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
73560         (struct La_i86_retval): Likewise.
73561         (struct La_x86_64_regs): Likewise.
73562         (struct La_x86_64_retval): Likewise.
73563         (struct La_x32_regs): Likewise.
73564         (struct La_x32_retval): Likewise.
73565         (struct La_ppc32_regs): Likewise.
73566         (struct La_ppc32_retval): Likewise.
73567         (struct La_ppc64_regs): Likewise.
73568         (struct La_ppc64_retval): Likewise.
73569         (struct La_sh_regs): Likewise.
73570         (struct La_sh_retval): Likewise.
73571         (struct La_s390_32_regs): Likewise.
73572         (struct La_s390_32_retval): Likewise.
73573         (struct La_s390_64_regs): Likewise.
73574         (struct La_s390_64_retval): Likewise.
73575         (struct La_sparc32_regs): Likewise.
73576         (struct La_sparc32_retval): Likewise.
73577         (struct La_sparc64_regs): Likewise.
73578         (struct La_sparc64_retval): Likewise.
73579         (struct audit_ifaces): Remove architecture-specific pltenter and
73580         pltexit members.
73581         * sysdeps/i386/ldsodefs.h: New file.
73582         * sysdeps/powerpc/ldsodefs.h: Likewise.
73583         * sysdeps/s390/ldsodefs.h: Likewise.
73584         * sysdeps/sh/ldsodefs.h: Likewise.
73585         * sysdeps/sparc/ldsodefs.h: Likewise.
73586         * sysdeps/x86_64/ldsodefs.h: Likewise.
73587
73588 2012-07-25  Marek Polacek  <polacek@redhat.com>
73589
73590         [BZ #6808]
73591         * math/libm-test.inc (yn_test): Add another test.
73592         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
73593         to ERANGE when the result is +-Inf.
73594         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
73595         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
73596         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
73597         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
73598
73599 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
73600
73601         * conform/data/time.h-data (NULL): Use macro-constant.  Require
73602         equal to 0.
73603         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
73604         clock_t.
73605         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
73606
73607 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
73608
73609         * configure.in <sysdeps resolving>: Correct printing
73610         Implies_before.
73611         * configure: Regenerate.
73612
73613 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
73614
73615         * math/w_ilogb.c: Include <limits.h>.
73616         * math/w_ilogbl.c: Likewise.
73617
73618 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73619
73620         * manual/lang.texi (__va_copy): Document primarily as ISO C99
73621         va_copy.  Document allowing for unavailable va_copy only as
73622         pre-C99 compatibility.
73623         * manual/string.texi (Copying and Concatenation): Use va_copy
73624         instead of __va_copy in concat example.
73625
73626 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
73627
73628         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
73629         (__sendto): Use create_address_port.  Initialize APORT and deallocate
73630         it if not null.
73631
73632         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
73633         with O_NOLINK passed to __file_name_lookup.
73634
73635         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
73636         with O_NOLINK passed to __file_name_lookup.
73637
73638         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
73639         negative N or less than NGIDS.
73640
73641         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
73642         type to string_t.  Set ERANGE as errno and return it if NAME is not big
73643         enough.  Use memcpy instead of strncpy.
73644
73645 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73646
73647         * elf/Makefile (check-data): Remove.
73648         (localplt.data): New vpath directive.
73649         ($(objpfx)check-localplt.out): Use localplt.data from vpath
73650         instead of $(check-data).
73651         * scripts/data/localplt-generic.data: Move to ...
73652         * sysdeps/generic/localplt.data: ... here.
73653         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
73654         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
73655         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
73656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
73657         ... here.
73658         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
73659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
73660         ... here.
73661         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
73662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
73663         ... here.
73664         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
73665         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
73666         ... here.
73667         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
73668         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
73669         ... here.
73670         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
73671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
73672         ... here.
73673
73674 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73675
73676         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
73677         PPC32 and PPC64 files.
73678         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
73679         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
73680
73681 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73682
73683         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
73684         __makecontext_ret to ...
73685         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
73686         ... here and call exit if uc_link is NULL.  New file.
73687         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
73688         __makecontext_ret.S.
73689         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
73690         __makecontext_ret to ...
73691         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
73692         ... here and call exit if uc_link is NULL.  New file.
73693         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
73694         __makecontext_ret.S.
73695
73696 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73697
73698         * elf/elf.h (R_390_IRELATIVE): New definition.
73699         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
73700         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
73701         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
73702         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
73703         (elf_machine_lazy_rel): Likewise.
73704         * sysdeps/s390/dl-irel.h: New file.
73705         * sysdeps/s390/s390-64/memcpy.S: New asm code.
73706         * sysdeps/s390/s390-64/memset.S: New asm code.
73707         * sysdeps/s390/s390-64/memcmp.S: New asm code.
73708         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
73709         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
73710         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
73711         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
73712         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
73713         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
73714         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
73715         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
73716         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
73717         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
73718         * sysdeps/s390/s390-32/memcpy.S: New asm code.
73719         * sysdeps/s390/s390-32/memset.S: New asm code.
73720         * sysdeps/s390/s390-32/memcmp.S: New asm code.
73721
73722 2012-07-17  Marek Polacek  <polacek@redhat.com>
73723
73724         [BZ #14349]
73725         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
73726         * sysdeps/s390/s390-64/configure.in: Likewise.
73727         * sysdeps/sparc/configure.in: Likewise.
73728         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
73729         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
73730         * sysdeps/i386/configure.in: Likewise.
73731         * sysdeps/x86_64/configure.in: Likewise.
73732         * sysdeps/sh/configure.in: Likewise.
73733         * sysdeps/s390/s390-32/configure: Regenerated.
73734         * sysdeps/s390/s390-64/configure: Likewise.
73735         * sysdeps/x86_64/configure: Likewise.
73736         * sysdeps/sh/configure: Likewise.
73737         * sysdeps/powerpc/powerpc64/configure: Likewise.
73738         * sysdeps/powerpc/powerpc32/configure: Likewise.
73739         * sysdeps/sparc/configure: Likewise.
73740         * sysdeps/i386/configure: Likewise.
73741
73742         * elf/dl-open.c: Comment fixes.
73743
73744 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
73745
73746         * Makefile [CXX] (check-data): Remove.
73747         [CXX] (c++-types.data): New vpath directive.
73748         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
73749         vpath.  Do not allow for C++ type data being missing.
73750         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
73751         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
73752         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
73753         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
73754         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
73755         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
73756         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
73757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
73758         ... here.
73759         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
73760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
73761         ... here.
73762         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
73763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
73764         ... here.
73765         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
73766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
73767         ... here.
73768         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
73769         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
73770         ... here.
73771         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
73772         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
73773         ... here.
73774         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
73775         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
73776         ... here.
73777         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
73778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
73779
73780         * elf/tls-macros.h (TLS_LE): Move architecture-specific
73781         definitions to architecture-specific files.
73782         (TLS_IE): Likewise.
73783         (TLS_LD): Likewise.
73784         (TLS_GD): Likewise.
73785         * sysdeps/i386/tls-macros.h: New file.
73786         * sysdeps/powerpc/tls-macros.h: Likewise.
73787         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
73788         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
73789         * sysdeps/sh/tls-macros.h: Likewise.
73790         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
73791         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
73792         * sysdeps/x86_64/tls-macros.h: Likewise.
73793
73794 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73795
73796         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
73797         zero value for regular exit case.
73798
73799         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
73800         (__start_context): Preserve zero value for regular exit case.
73801
73802 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73803             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73804
73805         * manual/setjmp.texi (setcontext): Clarify normal process
73806         termination when uc_link is the null pointer.
73807         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
73808         exit call.
73809
73810 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
73811
73812         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
73813         preprocessor.  Test for each exception mask separately.
73814
73815 2012-07-16  Andreas Jaeger  <aj@suse.de>
73816
73817         * po/ru.po: Update from translation team.
73818
73819 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
73820
73821         * conform/data/string.h-data (NULL): Use macro-constant.  Require
73822         equal to 0.
73823         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
73824         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
73825         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
73826         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
73827         [ISO || ISO99 || ISO11] (*_t): Do not allow.
73828
73829 2012-07-13  Andreas Jaeger  <aj@suse.de>
73830
73831         * po/fr.po: Update from translation team.
73832
73833 2012-07-12  Marek Polacek  <polacek@redhat.com>
73834
73835         [BZ #14173]
73836         * math/libm-test.inc (yn_test): Add test for BZ #14173.
73837         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
73838         loop condition.
73839
73840 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
73841
73842         [BZ #13717]
73843         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73844         Change to 2.4.1 where previously 2.4.0.
73845         * sysdeps/unix/sysv/linux/configure: Regenerated.
73846         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
73847         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
73848         version.
73849         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
73850         (__ASSUME_AT_CLKTCK): Remove.
73851         (__ASSUME_AT_PAGESIZE): Likewise.
73852         (__ASSUME_AT_XID): Likewise.
73853         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
73854         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
73855         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
73856         unconditionally.
73857         (HAVE_AUX_PAGESIZE): Likewise.
73858         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
73859         [__ASSUME_AT_CLKTCK]: Make code unconditional.
73860         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
73861
73862 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
73863
73864         [BZ #14307]
73865         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
73866         the temporary buffer used to invoke __gethostbyname2_r,
73867         __gethostbyaddr_r and gethostbyname4_r to make room for struct
73868         host_data / struct gaih_addrtuple.
73869         * resolv/nss_dns/dns-host.c (global scope): Move definition of
73870         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
73871         header file nss/nsswitch.h.
73872         * nss/nsswitch.h (global scope): Add definition of implementation
73873         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
73874         resolv/nss_dns/dns-host.c).
73875
73876 2012-07-11  Andreas Jaeger  <aj@suse.de>
73877
73878         * po/fr.po: Update from translation team.
73879
73880         * po/sv.po: Update from translation team
73881         * po/fr.po: Another update from translation team.
73882
73883 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73884
73885         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
73886         for subnormals or multiply small sinh result by itself.
73887         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73888         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73889
73890 2012-07-11  David S. Miller  <davem@davemloft.net>
73891
73892         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73893
73894 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
73895
73896         [BZ #14347]
73897         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
73898         (INTERNAL_MARK): Shift it here.
73899
73900 2012-07-10  Marek Polacek  <polacek@redhat.com>
73901
73902         [BZ #14151]
73903         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
73904         libc_cv_asm_global_directive with .globl.
73905         * configure: Regenerated.
73906         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
73907         with .globl.
73908         * sysdeps/i386/configure: Regenerated.
73909         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
73910         with .globl.
73911         * sysdeps/x86_64/configure: Regenerated.
73912         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
73913         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
73914         * elf/tst-unique2mod2.c: Likewise.
73915         * elf/tst-unique2mod1.c: Likewise.
73916         * elf/tst-unique1mod2.c: Likewise.
73917         * elf/tst-unique1mod1.c: Likewise.
73918         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73919         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73920         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73921         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73922         * sysdeps/mach/sysdep.h: Likewise.
73923         * sysdeps/i386/sysdep.h: Likewise.
73924         * sysdeps/i386/i386-mcount.S: Likewise.
73925         * sysdeps/x86_64/_mcount.S: Likewise.
73926         * sysdeps/x86_64/sysdep.h: Likewise.
73927         * sysdeps/sh/_mcount.S: Likewise.
73928         * sysdeps/sh/sysdep.h: Likewise.
73929         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
73930         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
73931         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
73932         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
73933         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
73934         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
73935         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
73936         * locale/localeinfo.h: Likewise.
73937         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
73938         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
73939
73940 2012-07-09  Roland McGrath  <roland@hack.frob.com>
73941
73942         [BZ #14336]
73943         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
73944         system".
73945         * manual/message.texi (The Uniforum approach): Likewise.
73946         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
73947         (glibc iconv Implementation): Likewise.
73948
73949 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
73950
73951         [BZ #14337]
73952         * math/s_clog.c (__clog): Avoid scaling a value down where that
73953         could result in underflow.
73954         * math/s_clog10.c (__clog10): Likewise.
73955         * math/s_clog10f.c (__clog10f): Likewise.
73956         * math/s_clog10l.c (__clog10l): Likewise.
73957         * math/s_clogf.c (__clogf): Likewise.
73958         * math/s_clogl.c (__clogl): Likewise.
73959         * math/libm-test.inc (clog_test): Add more tests.
73960         (clog10_test): Likewise.
73961         * sysdeps/i386/fpu/libm-test-ulps: Update.
73962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73963
73964 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
73965
73966         [BZ #14283]
73967         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
73968         by 7 not 8 to examine high bit of fractional part.
73969
73970         [BZ #14042]
73971         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
73972         for call to __mcount_internal.
73973         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
73974         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
73975         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
73976
73977 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
73978
73979         [BZ #14154]
73980         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
73981         approximation for values within 0x1p-13f of an odd multiple of
73982         pi/4.
73983         * math/libm-test.inc (tan_test): Do not allow spurious underflow
73984         exception.  Add more tests.
73985         * sysdeps/i386/fpu/libm-test-ulps: Update.
73986
73987         [BZ #6778]
73988         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
73989         inputs and return -1 for them.  Do not check for +Inf in case not
73990         reachable for +Inf.
73991         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
73992         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
73993         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73994         and return -1 for them.  Do not check for +Inf in case not
73995         reachable for +Inf.
73996         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
73997         define.
73998         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73999         and return -1 for them.  Do not check for +Inf in case not
74000         reachable for +Inf.
74001         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
74002         spurious underflow.
74003         * sysdeps/i386/fpu/libm-test-ulps: Update.
74004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74005
74006 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
74007
74008         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
74009
74010 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
74011
74012         [BZ #14157]
74013         [BZ #14331]
74014         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
74015         could result in spurious underflow.  Scale down values above
74016         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
74017         * math/s_csqrtf.c (__csqrtf): Likewise.
74018         * math/s_csqrtl.c (__csqrtl): Likewise.
74019         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
74020         spurious underflow.
74021         * sysdeps/i386/fpu/libm-test-ulps: Update.
74022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74023
74024 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
74025
74026         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
74027         xopen-msg.sed.
74028         * catgets/xopen-msg.awk: New file.
74029         * catgets/xopen-msg.sed: Removed.
74030
74031         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
74032         po2text.sed.
74033         * intl/po2test.awk: New file.
74034         * intl/po2test.sed: Removed.
74035
74036 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
74037
74038         [BZ #14328]
74039         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
74040         or multiply small sinh result by itself.
74041         * math/s_ctanf.c (__ctanf): Likewise.
74042         * math/s_ctanh.c (__ctanh): Likewise.
74043         * math/s_ctanhf.c (__ctanhf): Likewise.
74044         * math/s_ctanhl.c (__ctanhl): Likewise.
74045         * math/s_ctanl.c (__ctanl): Likewise.
74046         * math/libm-test.inc (ctan_test_tonearest): New function.
74047         (ctan_test_towardzero): Likewise.
74048         (ctan_test_downward): Likewise.
74049         (ctan_test_upward): Likewise.
74050         (ctanh_test_tonearest): Likewise.
74051         (ctanh_test_towardzero): Likewise.
74052         (ctanh_test_downward): Likewise.
74053         (ctanh_test_upward): Likewise.
74054         (main): Call these new functions.
74055         * sysdeps/i386/fpu/libm-test-ulps: Update.
74056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74057
74058 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
74059
74060         * .gitignore: Delete /ports entry.
74061
74062 2012-07-03  Andreas Jaeger  <aj@suse.de>
74063
74064         * po/bg.po: Update from translation team.
74065         * po/cs.po: Likewise.
74066         * po/de.po: Likewise.
74067         * po/hr.po: Likewise.
74068         * po/nl.pl: Likewise.
74069         * po/pl.po: Likewise.
74070         * po/vi.po: Likewise.
74071
74072 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
74073
74074         * Makeconfig [!+link] (+link-before-libc): New variable.
74075         [!+link] (+link-after-libc): Likewise.
74076         [!+link] (+link-tests): Likewise.
74077         [!+link] (+link): Define in terms of $(+link-before-libc) and
74078         $(+link-after-libc).
74079         [!+link-static] (+link-static-before-libc): New variable.
74080         [!+link-static] (+link-static-after-libc): Likewise.
74081         [!+link-static] (+link-static-tests): Likewise.
74082         [!+link-static] (+link-static): Define in terms of
74083         $(+link-static-before-libc) and $(+link-static-after-libc).
74084         [build-shared] (link-libc-before-gnulib): New variable.
74085         [build-shared] (link-libc-tests): Likewise.
74086         [build-shared] (link-libc): Define in terms of
74087         $(link-libc-before-gnulib).
74088         [!build-shared] (link-libc-tests): New variable.
74089         (link-libc-static-tests): New variable.
74090         [!gnulib] (gnulib-arch): New variable.
74091         [!gnulib] (gnulib-tests): Likewise.
74092         [!gnulib] (static-gnulib-arch): Likewise.
74093         [!gnulib] (static-gnulib-tests): Likewise.
74094         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
74095         Define with "=" instead of ":=".
74096         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
74097         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
74098         * Rules (binaries-all-notests): New variable.
74099         (binaries-all-tests): Likewise.
74100         (binaries-static-notests): Likewise.
74101         (binaries-static-tests): Likewise.
74102         (binaries-all): Define using $(binaries-all-notests) and
74103         $(binaries-all-tests).
74104         (binaries-static): Define using $(binaries-static-notests) and
74105         $(binaries-static-tests).
74106         (binaries-shared-tests): New variable.
74107         (binaries-shared-notests): Likewise.
74108         (binaries-shared): Remove variable.
74109         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
74110         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
74111         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
74112         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
74113         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
74114         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
74115         * elf/Makefile (sln-modules): New variable.
74116         (extra-objs): Add $(sln-modules:=.o).
74117         (ldconfig-modules): Add static-stubs.
74118         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
74119         * elf/static-stubs.c: New file.
74120
74121         [BZ #14283]
74122         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
74123         by 7 not 8 to examine high bit of fractional part.  Use volatile
74124         variables when splitting into final array of floats if
74125         __FLT_EVAL_METHOD__ != 0.
74126         * math/libm-test.inc (cos_test): Add another test.
74127         (sin_test): Likewise.
74128         * sysdeps/i386/fpu/libm-test-ulps: Update.
74129
74130         [BZ #14273]
74131         * math/libm-test.inc (cosh_test): Add more tests.
74132
74133         * version.h (RELEASE): Set to "development".
74134         (VERSION): Set to "2.16.90".
74135
74136 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
74137
74138         * NEWS: Update copyright. Remove last-updated date.
74139         Mention math library bug fixes and timezone data changes.
74140         * README: Mention GNU/Hurd, x32, and HPPA support status.
74141
74142 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
74143
74144         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
74145
74146 2012-06-27  Andreas Jaeger  <aj@suse.de>
74147
74148         * manual/contrib.texi (Contributors): Add Samuel Thibault.
74149
74150 2012-06-25  Andreas Jaeger  <aj@suse.de>
74151
74152         * sysdeps/s390/fpu/libm-test-ulps: Update.
74153
74154 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
74155             Thomas Schwinge  <thomas@codesourcery.com>
74156
74157         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
74158         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
74159         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
74160         fanotify_mark.
74161
74162 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
74163
74164         * sysdeps/mach/start.c: Remove file.
74165         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
74166         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
74167         * sysdeps/sh/init-first.c: Likewise.
74168
74169         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
74170         registers for frame unwinding purposes, add CFI directives.
74171         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74172         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
74173         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
74174         Likewise.
74175
74176         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
74177         __fortify_fail returning.
74178         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74179
74180         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
74181         sysdeps/sh/____longjmp_chk.S.
74182         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
74183         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
74184         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
74185         (gen-as-const-headers): Append sigaltstack-offsets.sym.
74186
74187         * sysdeps/sh/abort-instr.h: New file.
74188         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
74189         process in case exit returns.
74190
74191         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
74192         initialize the GOT register before use.
74193
74194         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
74195         calculation of ARGC > 4.
74196
74197         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
74198         meaningful names to some local labels.
74199
74200 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
74201             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74202
74203         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
74204         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
74205         (__arch_compare_and_exchange_val_16_acq): Likewise.
74206         (__arch_compare_and_exchange_val_32_acq): Likewise.
74207         (atomic_exchange_and_add): Fix gUSA sequence.
74208         (atomic_add): Likewise.
74209         (atomic_add_negative): Likewise.
74210         (atomic_add_zero): Likewise.
74211         (atomic_bit_test_set): Likewise.
74212
74213 2012-06-22  Andreas Schwab  <schwab@redhat.com>
74214
74215         [BZ #13579]
74216         * include/link.h (struct link_map): Add l_free_initfini.
74217         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
74218         l_initfini.
74219         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
74220         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
74221         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
74222         set.
74223
74224 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
74225
74226         * configure.in: Use AC_LANG_SOURCE.
74227         * configure: Regenerate.
74228
74229 2012-06-22  Roland McGrath  <roland@hack.frob.com>
74230
74231         * configure.in (libc_cv_localstatedir): New substituted variable.
74232         * configure: Regenerated.
74233         * config.make.in (localstatedir): New variable, substituted from
74234         libc_cv_localstatedir.
74235         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
74236         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
74237         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
74238         * sysdeps/gnu/configure: Regenerated.
74239
74240 2012-06-21  Jeff Law  <law@redhat.com>
74241
74242         [BZ #14277]
74243         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
74244         free.  Simplify list management for _LIBC case.
74245
74246 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
74247
74248         [BZ #14273]
74249         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
74250         Clear sign bit of 64-bit integer value before comparing against
74251         overflow value.
74252
74253         * sysdeps/mach/configure: Regenerated.
74254
74255 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
74256
74257         [BZ #14278]
74258         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
74259
74260 2012-06-21  Jeff Law  <law@redhat.com>
74261
74262         [BZ #13882]
74263         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
74264         uint16_t for elements in the "seen" array to avoid char overflows.
74265         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74266         * elf/dl-open.c (dl_open_worker): Likewise.
74267
74268 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
74269
74270         * scripts/list-sources.sh: Scan PORTS for translations.
74271         * po/libc.pot: Regenerated.
74272
74273 2012-06-21  Andreas Jaeger  <aj@suse.de>
74274
74275         [BZ #12194]
74276         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
74277         warning.
74278         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
74279         * bits/byteswap-16.h (__bswap_16): Likewise.
74280         * bits/byteswap.h (__bswap_constant_16): Likewise.
74281
74282 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
74283
74284         [BZ #14117]
74285         * sysdeps/i386/fpu_control.h: Removed.
74286         * sysdeps/x86_64/fpu_control.h: Moved to ...
74287         * sysdeps/x86/fpu_control.h: Here.
74288
74289         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
74290         (_FPU_SETCW): Likewise.
74291
74292 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
74293
74294         [BZ #14117]
74295         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
74296         * sysdeps/x86/fpu/bits/mathinline.h: This.
74297         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
74298
74299         [BZ #14050]
74300         [BZ #14117]
74301         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
74302         functions if __x86_64__ is defined.
74303
74304 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
74305
74306         * string/endian.h: Add !__ASSEMBLER__ condition for including
74307         conversion interfaces.
74308
74309 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
74310
74311         [BZ #14241]
74312         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
74313         of ABS(x) in calculating zero to negative powers other than odd
74314         integers.
74315         * math/libm-test.inc (pow_test): Add more tests.
74316
74317 2012-06-15  Andreas Jaeger  <aj@suse.de>
74318
74319         * manual/contrib.texi (Contributors): Update entry of Liubov
74320         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
74321         Machado Filho.
74322
74323 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
74324
74325         * string/string.h: Add __wur to GNU version of strerror_r.
74326
74327 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74328
74329         [BZ #14229]
74330         * string/Makefile (tests): Add tst-strtok_r.
74331         * string/tst-strtok_r.c: New file.
74332         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
74333         RAX_LP/RDX_LP on SAVE_PTR.
74334
74335 2012-06-14  Roland McGrath  <roland@hack.frob.com>
74336
74337         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
74338
74339 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
74340
74341         * libm_test.inc (csqrt_test): Allow more spurious underflow
74342         exceptions.
74343         (j0_test): Likewise.
74344         (j1_test): Likewise.
74345         (y0_test): Likewise.
74346         (y1_test): Likewise.
74347
74348 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
74349
74350         * po/Makefile (libc.pot): Use UTF-8 charset.
74351
74352 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
74353
74354         [BZ #14210]
74355         Suppress sign-conversion warning from FD_SET.
74356         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
74357         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
74358         not unsigned long int.
74359         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
74360
74361 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
74362
74363         [BZ #14050]
74364         [BZ #14117]
74365         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
74366         __extern_always_inline instead of __extern_inline.
74367         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
74368         (__signbit): Likewise.
74369         (__signbitl): Support C++ namespace.
74370         (lrintf): New inline function.
74371         (lrint): Likewise.
74372         (llrintf): Likewise.
74373         (llrint): Likewise.
74374         (fmaxf): Likewise.
74375         (fmax): Likewise.
74376         (fminf): Likewise.
74377         (fmin): Likewise.
74378         (rint): Likewise.
74379         (rintf): Likewise.
74380         (ceil): Likewise.
74381         (ceilf): Likewise.
74382         (floor): Likewise.
74383         (floorf): Likewise.
74384         (nearbyint): Likewise.
74385         (nearbyintf): Likewise.
74386
74387 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
74388
74389         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
74390         non-default versions.
74391
74392 2012-06-11  Roland McGrath  <roland@hack.frob.com>
74393
74394         [BZ #14218]
74395         * manual/argp.texi (Argp): Reword argp_parse description slightly.
74396
74397 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
74398
74399         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
74400         (FE_UPWARD, FE_DOWNWARD): Don't define.
74401         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
74402         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74403
74404         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
74405         reading it.
74406         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74407         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74408
74409 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74410
74411         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
74412         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
74413         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
74414         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
74415
74416 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
74417
74418         [BZ #14117]
74419         * sysdeps/i386/fpu/bits/fenv.h: Removed.
74420         * sysdeps/i386/fpu/Implies: New file.
74421         * sysdeps/x86_64/fpu/Implies: Likewise.
74422         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
74423         * sysdeps/x86/fpu/bits/fenv.h: This.
74424
74425         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
74426         __SSE_MATH__.
74427
74428 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
74429
74430         [BZ #14134]
74431         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
74432         character 0xffff that matches the last element of the
74433         conversion table.
74434
74435 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74436
74437         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
74438         fmodl commit.
74439
74440 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74441
74442         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
74443         values higher than 25.6283.
74444
74445 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74446
74447         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
74448         subnormal exponent extraction and add some __builtin_expect.
74449         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
74450         Fix for subnormal mantissa calculation.
74451
74452 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
74453
74454         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
74455         cpu2 is -1 and errno is not ENOSYS.
74456
74457 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
74458
74459         [BZ #14117]
74460         * sysdeps/i386/i486/bits/string.h: Renamed to ...
74461         * sysdeps/x86/bits/string.h: This.
74462         * sysdeps/x86_64/bits/string.h: Removed.
74463
74464         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74465         if not compiling for x86-64, but compiling for >= i486.
74466
74467         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
74468         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
74469
74470         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
74471         New macro from Linux kernel 3.4.0.
74472         (FP_XSTATE_MAGIC2): Likewise.
74473         (FP_XSTATE_MAGIC2_SIZE): Likewise.
74474         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
74475         (struct _fpx_sw_bytes): New struct.
74476         (struct _xsave_hdr): Likewise.
74477         (struct _ymmh_state): Likewise.
74478         (struct _xstate): Likewise.
74479
74480         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
74481         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
74482         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
74483         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
74484         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
74485         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
74486
74487         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
74488         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
74489         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
74490         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
74491         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
74492         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
74493
74494 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74495
74496         [BZ #13743]
74497         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
74498         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
74499         (sysdep_headers): Include sys/platform/ppc.h.
74500         * sysdeps/powerpc/test-gettimebase.c: Test for
74501         __ppc_get_timebase() to catch future ISA opcode/insn changes.
74502         * manual/Makefile (appendices): Include platform.texi.
74503         * manual/contrib.texi (Contributors): Update @node pointers.
74504         * manual/maint.texi (Maintenance): Likewise.
74505         (Platform): New node.
74506         * manual/platform.texi: New file.  Document the new features.
74507
74508 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
74509             Jakub Jelinek  <jakub@redhat.com>
74510
74511         [BZ #14188]
74512         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
74513         where __builtin_expect is unavailable.
74514
74515 2012-06-03  David S. Miller  <davem@davemloft.net>
74516
74517         * stdlib/longlong.h: Updated from GCC.
74518
74519 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
74520
74521         [BZ #14042]
74522         * sysdeps/powerpc/powerpc32/mcount.c: New file.
74523         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
74524         __mcount_internal.
74525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74526         (GLIBC_2.16): Likewise.
74527
74528 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74529
74530         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
74531
74532 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74533
74534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
74535         (default-abi): New variable.
74536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
74537         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
74538         variable.
74539         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
74540         Likewise.
74541         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
74542         Likewise.
74543         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
74544         Likewise.
74545
74546         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
74547         definition.  Document in comment.
74548
74549 2012-06-01  David S. Miller  <davem@davemloft.net>
74550
74551         * stdlib/longlong.h: Updated from GCC.
74552
74553 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74554
74555         [BZ #14117]
74556         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
74557         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
74558         sys/debugreg.h sys/io.h here.
74559         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
74560         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
74561         sys/io.h.
74562         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
74563         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
74564         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
74565         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
74566         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
74567         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
74568
74569         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
74570         Define only if __x86_64__ is defined.
74571
74572 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74573
74574         [BZ #14048]
74575         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
74576         Use int64_t for variable i.
74577         * math/libm-test.inc (fmod_test): Add more tests.
74578
74579         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
74580         z computation is not scheduled after fetestexcept.
74581         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
74582         Use math_force_eval instead of asm to ensure calculation scheduled
74583         before exception test.
74584         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
74585         Ensure a1 + u.d computation is not scheduled after fetestexcept.
74586
74587 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
74588
74589         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
74590         computation is not scheduled after fetestexcept.
74591
74592 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74593
74594         [BZ #14117]
74595         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
74596         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
74597
74598 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74599
74600         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
74601         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74602
74603 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74604
74605         [BZ #14117]
74606         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
74607         <bits/wordsize.h>.
74608         (__WCHAR_MIN): Support __WORDSIZE == 64.
74609         (__WCHAR_MAX): Likewise.
74610
74611         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
74612         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
74613
74614         [BZ #14183]
74615         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
74616         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
74617
74618         [BZ #14117]
74619         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
74620         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
74621
74622         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
74623         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
74624
74625         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
74626         Defined to 1 if __x86_64__ isn't defined.
74627         (_STAT_VER_LINUX_OLD): New.
74628         (st_atime): Remove duplicate.
74629         (st_mtime): Likewise.
74630         (st_ctime): Likewise.
74631
74632 2012-05-31  David S. Miller  <davem@davemloft.net>
74633
74634         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
74635         entries.
74636
74637 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
74638
74639         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
74640         gen-libm-test.pl.
74641
74642         [BZ #14132]
74643         * elf/dl-reloc.c: Include <_itoa.h>.
74644         (_dl_reloc_bad_type): Remove use of INTUSE.
74645         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
74646         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
74647         * stdio-common/psiginfo.c (psiginfo): Likewise.
74648         * stdio-common/psignal.c (psignal): Likewise.
74649         * string/strsignal.c (strsignal): Likewise.
74650         * include/signal.h (_sys_siglist): Declare hidden proto.
74651         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
74652         INTVARDEF with libc_hidden_data_def.
74653         * stdio-common/itoa-udigits.c: Likewise.
74654         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
74655         (_itoa_lower_digits_internal): Remove declaration.
74656         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
74657         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
74658         (_sys_sigabbrev_internal): Remove aliases.
74659         (_sys_siglist): Define hidden alias.
74660
74661 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
74662
74663         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74664         bits/sysctl.h.
74665
74666 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74667
74668         [BZ #14117]
74669         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
74670         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
74671
74672         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
74673         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
74674         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
74675         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
74676         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
74677         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
74678
74679         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
74680         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
74681         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
74682
74683         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
74684         with __addr.
74685         (insw): Likewise.
74686         (insl): Likewise.
74687         (outsb): Likewise.
74688         (outsw): Likewise.
74689         (outsl): Likewise.
74690
74691         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
74692         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
74693         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
74694
74695         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
74696         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
74697         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
74698         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
74699         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
74700         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
74701
74702         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
74703         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
74704
74705         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
74706         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
74707
74708         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
74709         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
74710         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
74711
74712         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
74713         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
74714         to ...
74715         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
74716
74717         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
74718         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
74719         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
74720
74721         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
74722         for x86-64.
74723         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
74724
74725 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
74726
74727         * math/math.h (M_El): Use two more decimal places.
74728         (M_LOG2El): Likewise.
74729         (M_LOG10El): Likewise.
74730         (M_LN2l): Likewise.
74731         (M_LN10l): Likewise.
74732         (M_PIl): Likewise.
74733         (M_PI_2l): Likewise.
74734         (M_PI_4l): Likewise.
74735         (M_1_PIl): Likewise.
74736         (M_2_PIl): Likewise.
74737         (M_2_SQRTPIl): Likewise.
74738         (M_SQRT2l): Likewise.
74739         (M_SQRT1_2l): Likewise.
74740
74741 2012-05-31  David S. Miller  <davem@davemloft.net>
74742
74743         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
74744         values between float registers.
74745         * sysdeps/sparc/sparc64/memset.S: Likewise.
74746         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
74747
74748 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
74749
74750         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
74751         -D_FORTIFY_SOURCE=1.
74752         (CPPFLAGS-tst-longjmp_chk.c): Define.
74753         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
74754         (CPPFLAGS-tst-longjmp_chk2.c): Define.
74755         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
74756         CFLAGS-tst-wchar-h.c.
74757
74758 2012-05-31  Marek Polacek  <polacek@redhat.com>
74759
74760         [BZ #14132]
74761         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
74762         __endmntent_internal): Remove declaration.
74763         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
74764         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
74765         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
74766
74767 2012-05-30  David S. Miller  <davem@davemloft.net>
74768
74769         * sysdeps/sparc/sparc32/soft-fp/q_util.c
74770         (___Q_simulate_exceptions): Use real FP ops rather than writing
74771         into the %fsr.
74772         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
74773         Likewise.
74774
74775 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74776
74777         [BZ #14117]
74778         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
74779         * sysdeps/x86/bits/xtitypes.h: This.
74780
74781         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
74782         * sysdeps/x86/bits/wordsize.h: This.
74783
74784         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
74785         * sysdeps/x86/bits/huge_vall.h: This.
74786
74787         * sysdeps/i386/bits/select.h: Removed.
74788         * sysdeps/x86_64/bits/select.h: Renamed to ...
74789         * sysdeps/x86/bits/select.h: This.
74790
74791         * sysdeps/i386/bits/setjmp.h: Removed.
74792         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
74793         * sysdeps/x86/bits/setjmp.h: This.
74794
74795         * sysdeps/i386/bits/mathdef.h: Removed.
74796         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
74797         * sysdeps/x86/bits/mathdef.h: This.
74798
74799 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
74800
74801         [BZ #14132]
74802         * include/sys/socket.h (__connect_internal)
74803         (__libc_sa_len_internal): Remove declaration.
74804         (__connect, __libc_sa_len): Declare hidden_proto.
74805         (SA_LEN): Remove use of INTUSE.
74806         * socket/connect.c: Add libc_hidden_def.
74807         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
74808         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
74809         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
74810         alias.
74811         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
74812         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
74813         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
74814         of adding _internal alias.
74815
74816 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74817
74818         [BZ #14117]
74819         * sysdeps/i386/bits/link.h: Removed.
74820         * sysdeps/i386/bits/linkmap.h: Likewise.
74821         * sysdeps/x86_64/bits/link.h: Renamed to ...
74822         * sysdeps/x86/bits/link.h: This.
74823         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
74824         * sysdeps/x86/bits/linkmap.h: This.
74825
74826         * sysdeps/i386/bits/endian.h: Removed.
74827         * sysdeps/x86_64/bits/endian.h: Renamed to ...
74828         * sysdeps/x86/bits/endian.h: This.
74829
74830         * sysdeps/i386/bits/byteswap.h: Removed.
74831         * sysdeps/i386/bits/byteswap-16.h: Likewise.
74832         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
74833         * sysdeps/x86/bits/byteswap.h: This.
74834         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
74835         * sysdeps/x86/bits/byteswap-16.h: This.
74836         * sysdeps/i386/Implies: Add x86.
74837         * sysdeps/x86_64/Implies: Likewise.
74838
74839 2012-05-30  David S. Miller  <davem@davemloft.net>
74840
74841         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
74842         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
74843         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
74844         (FP_TRAPPING_EXCEPTIONS): Define.
74845         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
74846         (FP_TRAPPING_EXCEPTIONS): Define.
74847         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
74848         subnormals only when inexact has been signalled or underflow
74849         exceptions are enabled.
74850         (_FP_PACK_CANONICAL): Likewise.
74851
74852 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74853
74854         [BZ #14183]
74855         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
74856         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
74857
74858 2012-05-30  Richard Henderson  <rth@twiddle.net>
74859
74860         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
74861         with #ifndef NOT_IN_libc.
74862
74863         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
74864         marked to avoid plt entry.
74865
74866 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74867
74868         [BZ #14112]
74869         * Makeconfig (default-abi): New macro.
74870         (abi-includes): Likewise.
74871         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
74872         $(abi-$(default-abi)-lib-soname) for soname if defined.
74873         ($(common-objpfx)gnu/lib-names.stmp): Generate from
74874         abi-variants.
74875         * Makefile (installed-stubs): Likewise.
74876         * include/stubs-biarch.h: Removed.
74877         * scripts/lib-names.awk: Only handle one library at a time.
74878         * scripts/soversions.awk: Remove WORDSIZE support.
74879         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
74880         entries.
74881         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
74882         Removed.
74883         (syscall-list-default-condition): Likewise.
74884         (syscall-list-default-condition): Likewise.
74885         (syscall-list-includes): Likewise.
74886         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
74887         syscall-list-* with abi-*.  Handle undefined abi-variants.
74888         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
74889         * sysdeps/unix/sysv/linux/i386/Implies: New file.
74890         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
74891         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
74892         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
74893         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
74894         Removed.
74895         (syscall-list-32-options): Likewise.
74896         (syscall-list-32-condition): Likewise.
74897         (syscall-list-64-options): Likewise.
74898         (syscall-list-64-condition): Likewise.
74899         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
74900         macro.
74901         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
74902         Renamed to ...
74903         (abi-*): This.
74904         (abi-64-ld-soname): New macro.
74905         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
74906         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
74907         Renamed to ...
74908         (abi-*): This.
74909         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
74910         * sysdeps/x86_64/x32/shlib-versions: Likewise.
74911
74912 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
74913
74914         * sysdeps/unix/sysv/linux/kernel-features.h
74915         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
74916         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
74917         include <kernel-features.h>.
74918         [!__NR_ftruncate64]: Remove conditional code.
74919         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74920         [__NR_ftruncate64]: Make code unconditional.
74921         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74922         * sysdeps/unix/sysv/linux/truncate64.c: Do not
74923         include <kernel-features.h>.
74924         [!__NR_ftruncate64]: Remove conditional code.
74925         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74926         [__NR_ftruncate64]: Make code unconditional.
74927         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
74929         include <kernel-features.h>.
74930         [!__NR_ftruncate64]: Remove conditional code.
74931         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74932         [__NR_ftruncate64]: Make code unconditional.
74933         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
74935         include <kernel-features.h>.
74936         [!__NR_ftruncate64]: Remove conditional code.
74937         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74938         [__NR_ftruncate64]: Make code unconditional.
74939         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74940
74941         * configure.in (libc_cv_fpie): Weaken to a compile test using
74942         LIBC_TRY_CC_OPTION.
74943         * configure: Regenerated.
74944
74945 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74946
74947         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
74948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
74949         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
74950         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
74951         Refreshed.
74952         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
74953         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
74954         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
74955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
74956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
74957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
74958         Refreshed.
74959
74960 2012-05-27  David S. Miller  <davem@davemloft.net>
74961
74962         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
74963         (___Q_zero): New.
74964         (__Q_simulate_exceptions): Return void.  Change to simulate
74965         exceptions by writing into the %fsr.
74966         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
74967         (__Qp_handle_exceptions): Likewise.
74968         (numbers): Delete.
74969         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
74970         __Qp_handle_exceptions.
74971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
74972         __Qp_handle_exceptions.
74973         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74974         as unused and give dummy FP_RND_NEAREST initializer.
74975         (FP_INHIBIT_RESULTS): Define.
74976         (___Q_simulate_exceptions): Update declaration.
74977         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
74978         formatting.
74979         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74980         as unused and give dummy FP_RND_NEAREST initializer.
74981         (__Qp_handle_exceptions): Update declaration.
74982         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
74983         formatting.
74984
74985 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
74986
74987         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
74988         the temporary FPU control word.
74989         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
74990         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
74991         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
74992         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74993         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
74994         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
74995         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
74996         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74997         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
74998         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
74999         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75000
75001 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75002
75003         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
75004         fields.
75005
75006 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
75007
75008         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
75009         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
75010         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
75011         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
75012         Likewise.
75013         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
75014         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
75015         Likewise.
75016
75017 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
75018
75019         * po/h.po: Update from translation team.
75020
75021 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
75022
75023         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
75024
75025         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
75026         handling of denormals.
75027         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
75028         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
75029         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
75030         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
75031         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
75032         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
75033         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
75034         Likewise.
75035
75036 2012-05-26  Marek Polacek  <polacek@redhat.com>
75037
75038         [BZ #14152]
75039         * math/libm-test.inc (fma_test): Don't always expect underflow
75040         exception.
75041
75042 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
75043
75044         [BZ #12416]
75045         * elf/tst-execstack.c: Include stackinfo.h.
75046         (do_test): Adjust test case to ensure that pthread_getattr_np
75047         behaviour remains the same after marking stack executable.
75048
75049 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75050
75051         * sysdeps/unix/sysv/linux/kernel-features.h
75052         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
75053         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
75054         kernel-features.h.
75055         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
75056         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
75057         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
75058         kernel-features.h.
75059         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
75060         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
75061
75062 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
75063
75064         * configure.in: Define the default includes to being none.
75065         * configure: Regenerated.
75066
75067 2012-05-25  Roland McGrath  <roland@hack.frob.com>
75068
75069         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
75070         * sysdeps/x86_64/setjmp.S: Likewise.
75071         * sysdeps/i386/bsd-setjmp.S: Likewise.
75072         * sysdeps/i386/bsd-_setjmp.S: Likewise.
75073         * sysdeps/i386/setjmp.S: Likewise.
75074         * sysdeps/i386/__longjmp.S: Likewise.
75075         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75076         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
75077
75078         * include/stap-probe.h: New file.
75079         * configure.in: Handle --enable-systemtap.
75080         * configure: Regenerated.
75081         * config.h.in (USE_STAP_PROBE): New #undef.
75082         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
75083         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
75084         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
75085
75086 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75087
75088         [BZ #13717]
75089         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
75090         to 2.4.0 where earlier.
75091         * sysdeps/unix/sysv/linux/configure: Regenerated.
75092         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
75093         <kernel-features.h>.
75094         [__ASSUME_32BITUIDS]: Make code unconditional.
75095         [!__ASSUME_32BITUIDS]: Remove conditional code.
75096         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
75097         <kernel-features.h>.
75098         [__ASSUME_32BITUIDS]: Make code unconditional.
75099         [!__ASSUME_32BITUIDS]: Remove conditional code.
75100         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
75101         [__ASSUME_32BITUIDS]: Make code unconditional.
75102         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
75103         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
75104         <kernel-features.h>.
75105         [__ASSUME_32BITUIDS]: Make code unconditional.
75106         [!__ASSUME_32BITUIDS]: Remove conditional code.
75107         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
75108         <kernel-features.h>.
75109         [__ASSUME_32BITUIDS]: Make code unconditional.
75110         [!__ASSUME_32BITUIDS]: Remove conditional code.
75111         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
75112         <kernel-features.h>.
75113         [__ASSUME_32BITUIDS]: Make code unconditional.
75114         [!__ASSUME_32BITUIDS]: Remove conditional code.
75115         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
75116         <kernel-features.h>.
75117         [__ASSUME_32BITUIDS]: Make code unconditional.
75118         [!__ASSUME_32BITUIDS]: Remove conditional code.
75119         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
75120         <kernel-features.h>.
75121         [__ASSUME_32BITUIDS]: Make code unconditional.
75122         [!__ASSUME_32BITUIDS]: Remove conditional code.
75123         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
75124         <kernel-features.h>.
75125         [__ASSUME_32BITUIDS]: Make code unconditional.
75126         [!__ASSUME_32BITUIDS]: Remove conditional code.
75127         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
75128         <kernel-features.h>.
75129         [__ASSUME_32BITUIDS]: Make code unconditional.
75130         [!__ASSUME_32BITUIDS]: Remove conditional code.
75131         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
75132         <kernel-features.h>.
75133         [__ASSUME_32BITUIDS]: Make code unconditional.
75134         [!__ASSUME_32BITUIDS]: Remove conditional code.
75135         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
75136         <kernel-features.h>.
75137         [__ASSUME_32BITUIDS]: Make code unconditional.
75138         [!__ASSUME_32BITUIDS]: Remove conditional code.
75139         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
75140         <kernel-features.h>.
75141         [__ASSUME_32BITUIDS]: Make code unconditional.
75142         [!__ASSUME_32BITUIDS]: Remove conditional code.
75143         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
75144         <kernel-features.h>.
75145         [__NR_setresgid] (__setresgid): Do not declare.
75146         [__ASSUME_32BITUIDS]: Make code unconditional.
75147         [!__ASSUME_32BITUIDS]: Remove conditional code.
75148         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
75149         <kernel-features.h>.
75150         [__NR_setresuid] (__setresuid): Do not declare.
75151         [__ASSUME_32BITUIDS]: Make code unconditional.
75152         [!__ASSUME_32BITUIDS]: Remove conditional code.
75153         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
75154         <kernel-features.h>.
75155         [__ASSUME_32BITUIDS]: Make code unconditional.
75156         [!__ASSUME_32BITUIDS]: Remove conditional code.
75157         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
75158         <kernel-features.h>.
75159         [__ASSUME_32BITUIDS]: Make code unconditional.
75160         [!__ASSUME_32BITUIDS]: Remove conditional code.
75161         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
75162         <kernel-features.h>.
75163         [__ASSUME_32BITUIDS]: Make code unconditional.
75164         [!__ASSUME_32BITUIDS]: Remove conditional code.
75165         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
75166         <kernel-features.h>.
75167         [__ASSUME_32BITUIDS]: Make code unconditional.
75168         [!__ASSUME_32BITUIDS]: Remove conditional code.
75169         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
75170         <kernel-features.h>.
75171         [__ASSUME_32BITUIDS]: Make code unconditional.
75172         [!__ASSUME_32BITUIDS]: Remove conditional code.
75173         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
75174         <kernel-features.h>.
75175         [__ASSUME_32BITUIDS]: Make code unconditional.
75176         [!__ASSUME_32BITUIDS]: Remove conditional code.
75177         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
75178         <kernel-features.h>.
75179         [__ASSUME_32BITUIDS]: Make code unconditional.
75180         [!__ASSUME_32BITUIDS]: Remove conditional code.
75181         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
75182         <kernel-features.h>.
75183         [__ASSUME_32BITUIDS]: Make code unconditional.
75184         [!__ASSUME_32BITUIDS]: Remove conditional code.
75185         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
75186         <kernel-features.h>.
75187         [__ASSUME_32BITUIDS]: Make code unconditional.
75188         [!__ASSUME_32BITUIDS]: Remove conditional code.
75189         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
75190         <kernel-features.h>.
75191         [__ASSUME_32BITUIDS]: Make code unconditional.
75192         [!__ASSUME_32BITUIDS]: Remove conditional code.
75193         * sysdeps/unix/sysv/linux/kernel-features.h
75194         (__ASSUME_SETRESUID_SYSCALL): Remove.
75195         (__ASSUME_SETRESGID_SYSCALL): Likewise.
75196         (__ASSUME_32BITUIDS): Likewise.
75197         (__ASSUME_LDT_WORKS): Likewise.
75198         (__ASSUME_O_DIRECTORY): Likewise.
75199         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
75200         architecture but not kernel version.
75201         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
75202         (__ASSUME_MMAP2_SYSCALL): Likewise.
75203         (__ASSUME_STAT64_SYSCALL): Likewise.
75204         (__ASSUME_IPC64): Likewise.
75205         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
75206         <kernel-features.h>.
75207         [__ASSUME_32BITUIDS]: Make code unconditional.
75208         [!__ASSUME_32BITUIDS]: Remove conditional code.
75209         * sysdeps/unix/sysv/linux/opendir.c: Do not include
75210         <kernel-features.h>.
75211         [__ASSUME_O_DIRECTORY]: Make code unconditional.
75212         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
75213         132096]: Remove conditional code.
75214         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
75215         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
75216         <kernel-features.h>.
75217         [__ASSUME_32BITUIDS]: Make code unconditional.
75218         [!__ASSUME_32BITUIDS]: Remove conditional code.
75219         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
75220         <kernel-features.h>.
75221         [__ASSUME_32BITUIDS]: Make code unconditional.
75222         [!__ASSUME_32BITUIDS]: Remove conditional code.
75223         * sysdeps/unix/sysv/linux/setegid.c: Do not include
75224         <kernel-features.h>.
75225         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
75226         unconditional.
75227         (__setresgid): Do not declare.
75228         [__ASSUME_32BITUIDS]: Make code unconditional.
75229         [!__ASSUME_32BITUIDS]: Remove conditional code.
75230         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
75231         <kernel-features.h>.
75232         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
75233         unconditional.
75234         (__setresuid): Do not declare.
75235         [__ASSUME_32BITUIDS]: Make code unconditional.
75236         [!__ASSUME_32BITUIDS]: Remove conditional code.
75237         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
75238         <kernel-features.h>.
75239         [__ASSUME_32BITUIDS]: Make code unconditional.
75240         [!__ASSUME_32BITUIDS]: Remove conditional code.
75241         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
75242         <kernel-features.h>.
75243         [__ASSUME_32BITUIDS]: Make code unconditional.
75244         [!__ASSUME_32BITUIDS]: Remove conditional code.
75245
75246 2012-05-25  Richard Henderson  <rth@twiddle.net>
75247
75248         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
75249         dl_hwcap to ifunc resolver.
75250         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
75251         elf_ifunc_invoke.
75252         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
75253         dl_hwcap to ifunc resolver.
75254         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
75255
75256 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75257
75258         [BZ #14153]
75259         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
75260         for |x| <= 2**-26, not 2**-57.
75261         * math/libm-test.inc (acos_test): Do not allow spurious underflow
75262         exception.
75263
75264 2012-05-24  Jeff Law  <law@redhat.com>
75265
75266         * stdio-common/Makefile (tests): Add bug25.
75267         * stdio-common/bug25.c: New test.
75268
75269 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75270
75271         [BZ #13576]
75272         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
75273         multiple of MALLOC_ALIGNMENT in size.
75274         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
75275
75276 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75277
75278         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
75279         Require >= 256.
75280         (FILENAME_MAX): Use macro-int-constant.
75281         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
75282         (_IOFBF): Use macro-int-constant.
75283         (_IOLBF): Likewise.
75284         (_IONBF): Likewise.
75285         (SEEK_CUR): Likewise.
75286         (SEEK_END): Likewise.
75287         (SEEK_SET): Likewise.
75288         (TMP_MAX): Likewise.
75289         (EOF): Use macro-int-constant.  Require < 0.
75290         (NULL): Use macro-constant.  Require == 0.
75291         (stdin): Require type to be FILE *.
75292         (stdout): Likewise.
75293         (stderr): Likewise.
75294         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
75295         macro-int-constant.
75296         (EXIT_SUCCESS): Likewise.
75297         (NULL): Use macro-constant.  Require == 0.
75298         (RAND_MAX): Use macro-int-constant.
75299         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
75300         [C99-based standards] (strtof): Require function.
75301         [C99-based standards] (strtold): Likewise.
75302         [C99-based standards] (strtoll): Likewise.
75303         [C99-based standards] (strtoull): Likewise.
75304         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
75305         [ISO || ISO99 || ISO11] (limits.h): Likewise.
75306         [ISO || ISO99 || ISO11] (math.h): Likewise.
75307         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
75308         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
75309         [ISO || ISO99 || ISO11] (*_t): Do not allow.
75310
75311 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
75312
75313         [BZ #14132]
75314         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
75315         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
75316         * intl/dgettext.c (DCGETTEXT): Likewise.
75317         * intl/gettext.c (DCGETTEXT): Likewise.
75318         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
75319         * posix/regex_internal.h (gettext): Likewise.
75320         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
75321         Remove declaration.
75322         * include/argz.h (__argz_count_internal)
75323         (__argz_stringify_internal): Remove declaration.
75324         (__argz_count, __argz_stringify): Declare hidden proto.
75325         * intl/dcgettext.c: Remove use of INTDEF.
75326         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
75327         * string/argz-stringify.c: Likewise.
75328         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75329         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75330         Declare hidden proto.
75331         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75332         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75333         Declare hidden proto.
75334         * include/stdio.h (__asprintf_internal): Don't declare.
75335         (__asprintf): Don't define as macro.  Declare hidden proto.
75336         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
75337         (__fsetlocking): Declare hidden proto.
75338         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
75339         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
75340         hidden proto.
75341         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
75342         (_IO_setlinebuf): Remove use of INTUSE.
75343         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
75344         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
75345         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
75346         Remove declaration.
75347         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
75348         (_IO_do_flush): Remove use of INTUSE.
75349         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
75350         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
75351         (_IO_adjust_column, _IO_least_wmarker)
75352         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
75353         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
75354         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
75355         (_IO_default_doallocate, _IO_wdefault_doallocate)
75356         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
75357         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
75358         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
75359         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
75360         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
75361         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
75362         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
75363         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
75364         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
75365         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
75366         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
75367         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
75368         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
75369         proto.
75370         (_IO_flush_all_internal, _IO_adjust_column_internal)
75371         (_IO_default_uflow_internal, _IO_default_finish_internal)
75372         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
75373         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
75374         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
75375         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
75376         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
75377         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
75378         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
75379         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
75380         (_IO_file_close_internal, _IO_file_close_it_internal)
75381         (_IO_file_underflow_internal, _IO_file_overflow_internal)
75382         (_IO_file_init_internal, _IO_file_attach_internal)
75383         (_IO_file_fopen_internal, _IO_file_read_internal)
75384         (_IO_file_sync_internal, _IO_file_seek_internal)
75385         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
75386         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
75387         (_IO_str_underflow_internal, _IO_str_overflow_internal)
75388         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
75389         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
75390         (_IO_list_all_internal, _IO_link_in_internal)
75391         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
75392         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
75393         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
75394         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
75395         (_IO_do_write_internal, _IO_padn_internal)
75396         (_IO_getline_info_internal, _IO_getline_internal)
75397         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
75398         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
75399         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
75400         (_IO_vfscanf_internal, _IO_vfprintf_internal)
75401         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
75402         (_IO_init_internal, _IO_un_link_internal): Don't declare.
75403         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
75404         with libc_hidden_ver, remove use of INTUSE.
75405         * libio/genops.c: Likewise.
75406         * libio/freopen.c: Likewise.
75407         * libio/freopen64.c: Likewise.
75408         * libio/iofclose.c: Likewise.
75409         * libio/iofdopen.c: Likewise.
75410         * libio/iofflush.c: Likewise.
75411         * libio/iofflush_u.c: Likewise.
75412         * libio/iofgets.c: Likewise.
75413         * libio/iofgets_u.c: Likewise.
75414         * libio/iofopen.c: Likewise.
75415         * libio/iofopncook.c: Likewise.
75416         * libio/iofread.c: Likewise.
75417         * libio/iofread_u.c: Likewise.
75418         * libio/ioftell.c: Likewise.
75419         * libio/iofwrite.c: Likewise.
75420         * libio/iogetline.c: Likewise.
75421         * libio/iogets.c: Likewise.
75422         * libio/iogetwline.c: Likewise.
75423         * libio/iopadn.c: Likewise.
75424         * libio/iopopen.c: Likewise.
75425         * libio/ioseekoff.c: Likewise.
75426         * libio/ioseekpos.c: Likewise.
75427         * libio/iosetbuffer.c: Likewise.
75428         * libio/iosetvbuf.c: Likewise.
75429         * libio/ioungetc.c: Likewise.
75430         * libio/ioungetwc.c: Likewise.
75431         * libio/iovdprintf.c: Likewise.
75432         * libio/iovsprintf.c: Likewise.
75433         * libio/iovsscanf.c: Likewise.
75434         * libio/memstream.c: Likewise.
75435         * libio/obprintf.c: Likewise.
75436         * libio/oldfileops.c: Likewise.
75437         * libio/oldiofclose.c: Likewise.
75438         * libio/oldiofdopen.c: Likewise.
75439         * libio/oldiofopen.c: Likewise.
75440         * libio/oldiopopen.c: Likewise.
75441         * libio/oldstdfiles.c: Likewise.
75442         * libio/putc.c: Likewise.
75443         * libio/setbuf.c: Likewise.
75444         * libio/setlinebuf.c: Likewise.
75445         * libio/stdfiles.c: Likewise.
75446         * libio/strops.c: Likewise.
75447         * libio/vasprintf.c: Likewise.
75448         * libio/vscanf.c: Likewise.
75449         * libio/vsnprintf.c: Likewise.
75450         * libio/vswprintf.c: Likewise.
75451         * libio/wfiledoalloc.c: Likewise.
75452         * libio/wfileops.c: Likewise.
75453         * libio/wgenops.c: Likewise.
75454         * libio/wmemstream.c: Likewise.
75455         * libio/wstrops.c: Likewise.
75456         * libio/__fpurge.c: Likewise.
75457         * libio/__fsetlocking.c: Likewise.
75458         * assert/assert.c: Likewise.
75459         * debug/fgets_chk.c: Likewise.
75460         * debug/fgets_u_chk.c: Likewise.
75461         * debug/fread_chk.c: Likewise.
75462         * debug/fread_u_chk.c: Likewise.
75463         * debug/gets_chk.c: Likewise.
75464         * debug/obprintf_chk.c: Likewise.
75465         * debug/vasprintf_chk.c: Likewise.
75466         * debug/vdprintf_chk.c: Likewise.
75467         * debug/vsnprintf_chk.c: Likewise.
75468         * debug/vsprintf_chk.c: Likewise.
75469         * malloc/mtrace.c: Likewise.
75470         * misc/error.c: Likewise.
75471         * misc/syslog.c: Likewise.
75472         * stdio-common/asprintf.c: Likewise.
75473         * stdio-common/fxprintf.c: Likewise.
75474         * stdio-common/getw.c: Likewise.
75475         * stdio-common/isoc99_fscanf.c: Likewise.
75476         * stdio-common/isoc99_scanf.c: Likewise.
75477         * stdio-common/isoc99_vfscanf.c: Likewise.
75478         * stdio-common/isoc99_vscanf.c: Likewise.
75479         * stdio-common/isoc99_vsscanf.c: Likewise.
75480         * stdio-common/printf-prs.c: Likewise.
75481         * stdio-common/printf_fp.c: Likewise.
75482         * stdio-common/printf_fphex.c: Likewise.
75483         * stdio-common/printf_size.c: Likewise.
75484         * stdio-common/putw.c: Likewise.
75485         * stdio-common/scanf.c: Likewise.
75486         * stdio-common/sprintf.c: Likewise.
75487         * stdio-common/tmpfile.c: Likewise.
75488         * stdio-common/vfprintf.c: Likewise.
75489         * stdio-common/vfscanf.c: Likewise.
75490         * stdlib/strfmon_l.c: Likewise.
75491         * sunrpc/openchild.c: Likewise.
75492         * sunrpc/xdr_stdio.c: Likewise.
75493         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
75494         * sysdeps/mach/hurd/tmpfile.c: Likewise.
75495
75496 2012-05-24  Roland McGrath  <roland@hack.frob.com>
75497
75498         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75499
75500         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
75501         in the third column, to generate for the shared library an IFUNC
75502         that uses _dl_vdso_vsym.
75503         * Makerules (COMPILE.c, compile-stdin.c): New variables.
75504         * Makeconfig (object-suffixes-noshared): New variable.
75505
75506         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
75507         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
75508         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
75509         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
75510
75511         [BZ #14132]
75512         * include/sys/time.h (__gettimeofday): Remove macro.
75513         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
75514         * time/gettimeofday.c (__gettimeofday): Remove #undef.
75515         Remove INTDEF.
75516         (__gettimeofday): Add libc_hidden_def.
75517         (gettimeofday): Add libc_hidden_weak.
75518         * sysdeps/mach/gettimeofday.c: Likewise.
75519         * sysdeps/posix/gettimeofday.c: Likewise.
75520         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
75521         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
75522         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
75523         (__gettimeofday_internal): Remove strong_alias.
75524         (__gettimeofday): Add libc_hidden_def.
75525         (gettimeofday): Add libc_hidden_weak.
75526         * sysdeps/unix/syscalls.list (gettimeofday):
75527         Remove __gettimeofday_internal alias.
75528
75529 2012-05-24  Daniel Jacobowitz  <drow@false.org>
75530             H.J. Lu  <hongjiu.lu@intel.com>
75531
75532         [BZ #12495]
75533         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
75534         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
75535         (largebin_index_32_big): New.
75536         (largebin_index): Use it for 16-byte alignment.
75537         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
75538         correction with front_misalign.
75539
75540 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75541
75542         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
75543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
75544         Likewise.
75545         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
75546         Likewise.
75547         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
75548         Likewise.
75549         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
75550         Likewise.
75551         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
75552         Likewise.
75553         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
75554         Likewise.
75555         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
75556         Likewise.
75557         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
75558         Likewise.
75559         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
75560         Likewise.
75561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
75562         Likewise.
75563         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
75564         Likewise.
75565         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
75566         Likewise.
75567
75568         * scripts/data/c++-types-x32-linux-gnu.data: New file.
75569         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
75570
75571 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75572
75573         [BZ #10846]
75574         [BZ #14036]
75575         * math/libm-test.inc (exp_test): Add test from bug 14036.
75576         (pow_test): Add test from bug 10846.
75577
75578         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
75579         and other flags.
75580         (special_function): Do not include flags in test name.
75581         (parse_args): Likewise.
75582         * sysdeps/i386/fpu/libm-test-ulps: Update.
75583         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75584         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
75585         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
75586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75587
75588         * math/gen-libm-test.pl (%beautify): Add entries for underflow
75589         exceptions.
75590         * math/libm-test.inc ("Philosophy"): Update comment about
75591         exception testing.
75592         (UNDERFLOW_EXCEPTION): New macro.
75593         (UNDERFLOW_EXCEPTION_OK): Likewise.
75594         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
75595         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
75596         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
75597         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
75598         (INVALID_EXCEPTION_OK): Update value.
75599         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
75600         (OVERFLOW_EXCEPTION_OK): Likewise.
75601         (IGNORE_ZERO_INF_SIGN): Likewise.
75602         (test_exceptions): Handle underflow exceptions.
75603         (acos_test): Update for underflow exception expectations.
75604         (cexp_test): Likewise.
75605         (clog_test): Likewise.
75606         (clog10_test): Likewise.
75607         (csqrt_test): Likewise.
75608         (ctan_test): Likewise.
75609         (ctanh_test): Likewise.
75610         (exp_test): Likewise.
75611         (exp10_test): Likewise.
75612         (exp2_test): Likewise.
75613         (expm1_test): Likewise.
75614         (fma_test): Likewise.
75615         (j0_test): Likewise.
75616         (jn_test): Likewise.
75617         (nexttoward_test): Likewise.
75618         (pow_test): Likewise.
75619         (scalbn_test): Likewise.
75620         (scalbln_test): Likewise.
75621         (tan_test): Likewise.
75622         (y1_test): Likewise.
75623         * sysdeps/i386/fpu/libm-test-ulps: Update.
75624         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75625
75626 2012-05-23  David S. Miller  <davem@davemloft.net>
75627
75628         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
75629         (__libc_sigaction): Remove unused local variables.
75630
75631 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75632
75633         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
75634
75635 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         mktime: avoid signed integer overflow
75638         * time/mktime.c (__mktime_internal): Do not mishandle the case
75639         where diff == INT_MIN.
75640
75641         mktime: simplify computation of average
75642         * time/mktime.c (ranged_convert): Use new time_t_avg function
75643         instead of rolling our own (probably-slower) code.
75644
75645         mktime: do not assume signed right shift propagates sign bit
75646         * time/mktime.c (isdst_differ): New static function.
75647         (__mktime_internal): No need to normalize tm_isdst now.
75648         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
75649         tm_isdst values.
75650
75651         mktime: merge another wrapv change from gnulib
75652         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
75653         from some compilers.
75654
75655         mktime: remove incorrect attempt at unusual arithmetics
75656         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
75657         The code didn't really work on such machines anyway.
75658         (TYPE_MINIMUM): Assume two's complement.
75659         (twos_complement_arithmetic): Verify that long_int and time_t
75660         are two's complement (or unsigned, in the latter case).
75661
75662         mktime: check signed shifts on long_int and time_t, too
75663         * time/mktime.c (SHR): Check that shifts work as desired
75664         on the types long_int and time_t too, as SHR is used on
75665         such types.
75666
75667         mktime: do not assume 'long' is wide enough
75668         * time/mktime.c (verify): Move decl up.
75669         (long_int): New type.
75670         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
75671         to remove assumption in the code that 'long' is wide enough to
75672         store year values.  This assumption is not true on x32 and on
75673         some non-glibc platforms.
75674
75675         mktime: merge wrapv change from gnulib
75676         * time/mktime.c (WRAPV): New macro.
75677         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
75678         (guess_time_tm, __mktime_internal): Do not assume that signed
75679         integer overflow wraps around; modern compilers generate code
75680         where this assumption is no longer valid.
75681
75682 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75683
75684         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75685         Replace "jmp L(pseudo_end)" with "ret".
75686         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
75687         Likewise.
75688
75689 2012-05-23  Andreas Jaeger  <aj@suse.de>
75690
75691         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
75692         * sysdeps/unix/sysv/linux/poll.c: Remove file.
75693
75694 2012-05-23  Andreas Jaeger  <aj@suse.de>
75695             Maximilian Attems  <max@stro.at>
75696
75697         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
75698         New macros.
75699
75700 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75701
75702         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
75703         code so that pseudo_end is just ret and the stack pointer is
75704         correct also for static library in error case.
75705
75706 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
75707
75708         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
75709         move to syscalls.list.
75710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
75711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
75712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
75713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
75714
75715         * manual/install.texi (Running make install): Do not mention Linux
75716         kernel version for which pt_chown is not needed.
75717         (Linux): Do not mention problems with nscd with 2.0 kernels.
75718         * INSTALL: Regenerated.
75719
75720 2012-05-23  Andreas Jaeger  <aj@suse.de>
75721
75722         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
75723         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
75724         macro.
75725         * sysdeps/unix/sysv/linux/s390/bits/mman.h
75726         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75727         * sysdeps/unix/sysv/linux/sh/bits/mman.h
75728         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75729         * sysdeps/unix/sysv/linux/i386/bits/mman.h
75730         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75731         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
75732         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75733         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
75734         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75735         * sysdeps/unix/sysv/linux/bits/in.h
75736         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
75737
75738 2012-05-22  Roland McGrath  <roland@hack.frob.com>
75739
75740         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
75741         (PREPARE_VERSION): Just use assert instead, it will be elided
75742         under [NDEBUG] anyway.
75743
75744 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75745
75746         * sysdeps/unix/sysv/linux/Makefile: Include
75747         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
75748         (sysdep_routines): Remove sysctl.
75749         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
75750         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
75751         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
75752         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
75753         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
75754
75755 2012-05-22  Andreas Jaeger  <aj@suse.de>
75756
75757         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
75758         that pseudo_end is just ret and the stack pointer is correct also
75759         for static library in error case.
75760
75761 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
75762
75763         [BZ #14122]
75764         * nss/nsswitch.c (defconfig_entries): New variable.
75765         (__nss_database_lookup): Don't leak defconfig entries.
75766         (nss_parse_service_list): Don't leak on error paths.
75767         (free_database_entries): New function.
75768         (free_defconfig): New function.
75769         (free_mem): Move common code to free_database_entries.
75770
75771 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75772
75773         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
75774         Add arch_prctl.
75775         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
75776
75777         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
75778         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
75779         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
75780         New macro.
75781         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
75782         (INTERNAL_SYSCALL_TYPES): Likewise.
75783         (LOAD_ARGS_TYPES_[1-6]): Likewise.
75784         (LOAD_REGS_TYPES_[1-6]): Likewise.
75785         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
75786         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
75787
75788 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75789
75790         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
75791         copysignl for GLIBC_2_0.
75792         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
75793         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
75794         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
75795         logbl for GLIBC_2_0.
75796         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
75797         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
75798
75799 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75800
75801         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
75802         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
75803
75804         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75805         Use "neg %eax".
75806
75807         * time/mktime.c: Update copyright years.
75808
75809 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         mktime: merge comment-quoting-style change from gnulib
75812         * time/mktime.c: Quote 'like this' in comments.
75813         The GNU coding standards suggest that we no longer quote `like this',
75814         as "`" and "'" are typically rendered asymmetrically nowadays.
75815         The typical gnulib style is to quote 'like this' when quoting
75816         code, and "like this" when quoting English.
75817
75818         * time/mktime.c (compile-command): Add "-I.".
75819
75820         mktime: merge mktime-internal.h change from gnulib
75821         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
75822
75823         mktime: merge time_r change from gnulib
75824         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
75825
75826         mktime: merge DEBUG change from gnulib
75827         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
75828         case system <time.h> has a #define.
75829
75830         mktime: merge <sys/types.h> change from gnulib
75831         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
75832         since <time.t> is now guaranteed to define time_t.
75833
75834         mktime: merge HAVE_CONFIG_H change from gnulib
75835         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
75836
75837 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75838
75839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75840         Use "neg %eax".
75841
75842         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
75843         __rlim_t cast.
75844         (struct rusage): Use anonymous union to pad each field to
75845         __syscall_slong_t.
75846
75847 2012-05-21  David S. Miller  <davem@davemloft.net>
75848
75849         * Makefules (o-iterator): Remove .s cases.
75850         (compile-command.s): Delete.
75851         (COMPILE.s): Delete.
75852         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
75853
75854 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
75855
75856         * configure.in (libc_cv_predef_stack_protector): Only consider
75857         "foobar" and "__stack_chk_fail" lines in libc_undefs.
75858         * configure: Regenerated.
75859
75860 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75861
75862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75863         New macro.  Use R*LP on int and pointer.
75864         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
75865         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
75866         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
75867         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
75868
75869         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
75870         [__WORDSIZE_TIME64_COMPAT32] instead of
75871         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
75872         (struct utmp): Likewise.
75873         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
75874         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
75875         Renamed to ...
75876         (__WORDSIZE_TIME64_COMPAT32): This.
75877         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
75878         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
75879         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
75880         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
75881         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
75882         (__WORDSIZE_TIME64_COMPAT32): New macro.
75883
75884 2012-05-21  Andreas Jaeger  <aj@suse.de>
75885
75886         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
75887         only if [SHARED]. Add prototype for __wcschr_ia32.
75888
75889 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75890
75891         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
75892         of %rbp unmolested in the jmp_buf while mangling the low bits.
75893         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
75894         unmolested high bits of %rbp while demangling the low bits.
75895         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75896
75897 2012-05-21  Andreas Jaeger  <aj@suse.de>
75898
75899         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
75900         * sunrpc/svc_simple.c: Use it for registerrpc.
75901         * sunrpc/xcrypt.c: Use it for passwd2des.
75902
75903         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
75904
75905 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75906
75907         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
75908         Don't define if [__SYSCALL_WORDSIZE != 32].
75909         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
75910         New macro.
75911
75912 2012-05-21  Bruno Haible  <bruno@clisp.org>
75913             Andreas Jaeger  <aj@suse.de>
75914
75915         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
75916         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
75917         inptr and inend for must_buffer_ch.
75918         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
75919         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
75920         * stdio-common/Makefile (tests): Remove bug15.
75921         (bug15-ENV): Remove macro.
75922         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
75923         anymore.
75924
75925 2012-05-19  Andreas Jaeger  <aj@suse.de>
75926             Roland McGrath  <roland@hack.frob.com>
75927
75928         * manual/contrib.texi: Completely rewritten. It contains now an
75929         alphabetical list of contributors and their contributions.
75930
75931 2012-05-21  Richard Henderson  <rth@twiddle.net>
75932
75933         * misc/getauxval.c (__getauxval): Use unsigned long int.
75934         * misc/sys/auxv.h: Include <sys/cdefs.h>.
75935         (getauxval): Use unsigned long int.
75936
75937 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75938
75939         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75940
75941 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75942
75943         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
75944         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
75945         __alignof__ (long double).
75946
75947 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75948
75949         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75950
75951 2012-05-20  Richard Henderson  <rth@twiddle.net>
75952
75953         * misc/getauxval.c: New file.
75954         * misc/sys/auxv.h: New file.
75955         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
75956         (routines): Add getauxval.
75957         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
75958         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
75959         * elf/dl-sysdep.c (_dl_auxv): Remove.
75960         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
75961         * elf/dl-support.c (_dl_auxv): New variable.
75962         (_dl_aux_init): Initialize it.
75963         * manual/startup.texi (Auxiliary Vector): New node.
75964         * sysdeps/generic/bits/hwcap.h: New file.
75965         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
75966         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
75967         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
75968         * sysdeps/sparc/sysdep.h: ... here.  Include it.
75969         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
75970         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
75971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
75972         Update.
75973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
75974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
75975         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
75976         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
75977         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
75980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
75981
75982 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75983
75984         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75985
75986 2012-05-19  David S. Miller  <davem@davemloft.net>
75987
75988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75989
75990 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75991
75992         [BZ #14123]
75993         * math/s_ccosh.c: Include <float.h>
75994         (__ccosh): Avoid internal overflow calculating sinh and cosh
75995         values before multiplying by sin and cos values.
75996         * math/s_ccoshf.c: Likewise.
75997         * math/s_ccoshl.c: Likewise.
75998         * math/s_csin.c: Likewise.
75999         * math/s_csinf.c: Likewise.
76000         * math/s_csinl.c: Likewise.
76001         * math/s_csinh.c: Likewise.
76002         * math/s_csinhf.c: Likewise.
76003         * math/s_csinhl.c: Likewise.
76004         * math/libm-test.inc (ccos_test): Add more tests.
76005         (ccosh_test): Likewise.
76006         (csin_test): Likewise.
76007         (csinh_test): Likewise.
76008         * sysdeps/i386/fpu/libm-test-ulps: Update.
76009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76010
76011 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
76012
76013         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
76014         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
76015
76016         * sysdeps/x86_64/x32/_itoa.h: Add comment.
76017
76018 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
76019
76020         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
76021         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
76022         * sysdeps/powerpc/soft-fp/Versions: Likewise.
76023         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
76024         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
76025         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
76026         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
76027         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
76028         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
76029         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
76030         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
76031         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
76032         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
76033         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
76034         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
76035         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
76036         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
76037         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
76038         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
76039         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
76040         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
76041         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
76042         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
76043         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
76044         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
76045         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
76046         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
76047         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
76048         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
76049         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
76050         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
76051
76052 2012-05-18  Andreas Jaeger  <aj@suse.de>
76053
76054         * csu/.gitignore: Delete.
76055
76056 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76057
76058         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
76059         (timex): Use __syscall_slong_t.
76060
76061 2012-05-18  Andreas Jaeger  <aj@suse.de>
76062             Carlos O'Donell  <carlos_odonell@mentor.com>
76063
76064         * manual/install.texi (Configuring and compiling): Update
76065         description about files modified in the source directory.
76066         * INSTALL: Regenerated.
76067
76068 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76069
76070         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
76071         value.  Use "or" to set return value to -1.
76072         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
76073         negate return value.
76074
76075 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
76076
76077         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
76078         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
76079         failure if the compiler has Graphite support disabled.
76080         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
76081         Likewise.
76082         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
76083         (CFLAGS-memmove.c): Likewise.
76084         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
76085         Likewise.
76086
76087 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76088
76089         * sysdeps/x86_64/x32/_itoa.h: New file.
76090
76091         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
76092         getdents system call only if kernel and user dirents have the
76093         same d_ino and d_off.
76094
76095         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
76096         LLONG_MAX != LONG_MAX.
76097         (_itoa_word): Use _ITOA_WORD_TYPE on value.
76098         (_fitoa_word): Likewise.
76099
76100         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
76101         years.
76102         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
76103         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
76104         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
76105
76106         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
76107         include <bits/wordsize.h>.  Check __x86_64__ instead of
76108         __WORDSIZE.
76109         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
76110         if __x86_64__ is defined.  Use anonymous union on fpstate.
76111
76112         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
76113         anonymous union.
76114
76115 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
76116
76117         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
76118         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
76119         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
76120         Refer to _rtld_local_ro instead of _rtld_global_ro.
76121         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
76122         Likewise.
76123         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
76124         Likewise.
76125         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
76126         Likewise.
76127         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
76128         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
76129         of _rtld_global, and rtld_progname instead of _dl_argv[0].
76130
76131         [BZ #10882]
76132         * sysdeps/powerpc/powerpc32/dl-machine.c
76133         (__elf_machine_runtime_setup) [PROF]: Don't reference
76134         _dl_prof_resolve.
76135
76136 2012-05-18  Andreas Jaeger  <aj@suse.de>
76137
76138         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
76139         function only available for GCCs before 3.4 since GCC 3.4
76140         introduced a builtin.
76141         (lrint): Likewise.
76142         (llrintf): Likewise.
76143         (llrint): Likewise.
76144         (fmaxf): Likewise.
76145         (fmax): Likewise.
76146         (fminf): Likewise.
76147         (fmin): Likewise.
76148         (rint): Likewise.
76149         (rintf): Likewise.
76150         (nearbyint): Likewise.
76151         (nearbyintf): Likewise.
76152         (ceil): Likewise.
76153         (ceilf): Likewise.
76154         (floor): Likewise.
76155         (floorf): Likewise.
76156
76157 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76158
76159         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
76160         on both fields and cast pointer to __syscall_ulong_t.
76161
76162         * bits/types.h (__fsword_t): New type.
76163         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
76164         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
76165         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76166         (__FSWORD_T_TYPE): Likewise.
76167         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76168         (__FSWORD_T_TYPE): Likewise.
76169         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76170         (__FSWORD_T_TYPE): Likewise.
76171         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
76172         (__FSWORD_T_TYPE): Likewise.
76173         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
76174         __SWORD_TYPE with __fsword_t.
76175         (statfs64): Likewise.
76176
76177 2012-05-17  David S. Miller  <davem@davemloft.net>
76178
76179         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
76180
76181 2012-05-17  Andreas Jaeger  <aj@suse.de>
76182
76183         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
76184         warning.
76185
76186 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76187
76188         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
76189
76190 2012-05-17  Andreas Jaeger  <aj@suse.de>
76191
76192         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
76193         when it is used.
76194
76195 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76196
76197         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
76198
76199 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76200
76201         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
76202         * sysdeps/x86_64/tst-mallocalign1.c: New file.
76203
76204 2012-05-17  Andreas Jaeger  <aj@suse.de>
76205             Carlos O'Donell  <carlos_odonell@mentor.com>
76206
76207         [BZ #14059]
76208         * sysdeps/x86_64/multiarch/init-arch.h
76209         (bit_YMM_Usable): Rename to...
76210         (bit_AVX_Usable): ... this.
76211         (bit_FMA4_Usable): New macro.
76212         (bit_XMM_state): New macro.
76213         (bit_YMM_state): New macro.
76214         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
76215         [__ASSEMBLER__] (index_AVX_Usable): ... this.
76216         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
76217         (CPUID_OSXSAVE): New macro.
76218         (CPUID_AVX): New macro.
76219         (CPUID_FMA4): New macro.
76220         (index_YMM_Usable): Rename to...
76221         (index_AVX_Usable): ... this.
76222         (HAS_AVX): Use HAS_ARCH_FEATURE.
76223         (HAS_FMA4): Likewise.
76224         (HAS_YMM_USABLE): Remove.
76225         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76226         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
76227         are present.
76228         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
76229         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
76230         * sysdeps/x86_64/multiarch/Makefile: Likewise.
76231         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
76232         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
76233
76234 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76235
76236         * math/libm-test.c: Support platforms without multiple rounding modes.
76237         * math/bug-nextafter.c: Support platforms without FP exceptions.
76238         * math/bug-nexttoward.c: Likewise.
76239         * math/test-fenv.c: Likewise.
76240         * math/test-misc.c: Likewise.
76241         * stdlib/bug-getcontext.c: Likewise.
76242
76243 2012-05-17  Andreas Jaeger  <aj@suse.de>
76244
76245         * manual/examples/search.c (critter_cmp): Change signature to
76246         avoid warnings.
76247         * manual/string.texi (Collation Functions): Likewise.
76248
76249 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76250
76251         * bits/types.h: Fold copyright years.
76252         * bits/typesizes.h: Likewise.
76253         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
76254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
76255         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
76256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
76257         * time/time.h: Likewise.
76258
76259 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
76260
76261         [BZ #208]
76262         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
76263         in instead of returning them.  Return void.
76264         (__libc_mallinfo): Accumulate over all arenas.
76265         (__malloc_stats): Adjust for change in int_mallinfo interface.
76266
76267 2012-05-16  Roland McGrath  <roland@hack.frob.com>
76268
76269         [BZ #10375]
76270         * configure.in (NM): Add AC_CHECK_TOOL for it.
76271         (libc_extra_cflags): New substituted variable.
76272         Check for -fstack-protector being used implicitly.
76273         * configure: Regenerated.
76274         * config.make.in (config-extra-cflags): New variable,
76275         gets @libc_extra_cflags@.
76276         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
76277
76278         [BZ #10375]
76279         * configure.in: Check for _FORTIFY_SOURCE being predefined.
76280         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
76281         * configure: Regenerated.
76282         * config.make.in (CPPUNDEFS): New substituted variable.
76283         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
76284         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
76285         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
76286
76287 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76288
76289         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
76290         (mq_attr): Use __syscall_slong_t.
76291
76292 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76293
76294         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
76295         Check __x86_64__ instead of __WORDSIZE.
76296         (_STAT_VER_LINUX): Likewise.
76297         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
76298         __syscall_ulong_t and __syscall_slong_t.
76299         (stat64): Likewise.
76300
76301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76302
76303         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
76304
76305 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76306
76307         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
76308
76309 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76310
76311         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
76312         __syscall_ulong_t.
76313
76314         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
76315         include <bits/wordsize.h>.  Check __x86_64__ instead of
76316         __WORDSIZE.
76317         (greg_t): Use "__extension__ long long int" if __x86_64__ is
76318         defined.
76319         (mcontext_t): Replace "unsigned long" with "unsigned long long".
76320
76321         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
76322         include <bits/wordsize.h>.  Check __x86_64__ instead of
76323         __WORDSIZE.
76324         (user_regs_struct): Use "__extension__ unsigned long long"
76325         instead of "unsigned long" if __x86_64__ is defined.
76326         (user): Likewise.  Pad after pointer field if __ILP32__ is
76327         defined.
76328
76329 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
76330
76331         * configure.in (makeinfo): Require version 4.5 or later.  Allow
76332         versions 5 to 9.
76333         * configure: Regenerated.
76334         * manual/install.texi (texinfo): Increase version requirement to
76335         4.5 or later.
76336         * INSTALL: Regenerated.
76337
76338         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
76339
76340 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76341
76342         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
76343
76344         * sysdeps/x86_64/x32/ffs.c: New file.
76345
76346         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
76347         __syscall_ulong_t.
76348         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
76349         defined.  Use __syscall_ulong_t.
76350         (shminfo): Use __syscall_ulong_t.
76351         (shm_info): Likewise.
76352
76353         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
76354         __syscall_ulong_t.
76355
76356         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
76357         <bits/wordsize.h>.
76358         (msgqnum_t): Use __syscall_ulong_t.
76359         (msglen_t): Likewise.
76360         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
76361         __syscall_ulong_t.
76362
76363         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
76364         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76365
76366         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
76367
76368         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
76369         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
76370
76371         * sysvipc/sys/msg.h (msgbuf): Replace long int with
76372         __syscall_slong_t.
76373
76374         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
76375         include <bits/wordsize.h>.  Check __x86_64__ instead of
76376         __WORDSIZE.
76377
76378         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
76379         "unsigned long long int" if __x86_64__ is defined.
76380         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
76381
76382         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
76383         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76384         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
76385
76386         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
76387         <stdint.h>.
76388         (GET_PC): Cast to uintptr_t first.
76389         (GET_FRAME): Likewise.
76390         (GET_STACK): Likewise.
76391
76392         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
76393         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
76394         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
76395         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
76396         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
76397         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
76398         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
76399         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
76400         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
76401         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
76402         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
76403         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
76404         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76405         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
76406         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
76407         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
76408         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
76409         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
76410         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
76411         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
76412         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
76413         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
76414         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
76415         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
76416         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
76417         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
76418         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
76419         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
76420         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
76421
76422 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
76423
76424         * Makerules (+depfiles): Also collect depfiles from .oS in
76425         $(extra-objs).
76426         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
76427         .oS, $(libnldbl-routines)).
76428
76429         * Makerules (native-compile-mkdep-flags): Define.
76430         * sunrpc/Makefile (extra-objs): Add $(addprefix
76431         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
76432         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
76433         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
76434         calling $(make-target-directory).
76435
76436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76437
76438         * bits/types.h (__snseconds_t): Removed.
76439         * time/time.h (struct timespec): Replace __snseconds_t with
76440         __syscall_slong_t.
76441         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
76442         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
76443         Likewise.
76444         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76445         (__SNSECONDS_T_TYPE): Likewise.
76446         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76447         (__SNSECONDS_T_TYPE): Likewise.
76448         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76449         (__SNSECONDS_T_TYPE): Likewise.
76450
76451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76452
76453         * sysdeps/mach/hurd/bits/typesizes.h
76454         (__SYSCALL_SLONG_TYPE): New macro.
76455         (__SYSCALL_ULONG_TYPE): Likewise.
76456
76457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76458
76459         * bits/types.h (__syscall_slong_t): New type.
76460         (__syscall_ulong_t): Likewise.
76461
76462         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
76463         (__SYSCALL_ULONG_TYPE): Likewise.
76464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76465         (__SYSCALL_SLONG_TYPE): Likewise.
76466         (__SYSCALL_ULONG_TYPE): Likewise.
76467         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76468         (__SYSCALL_SLONG_TYPE): Likewise.
76469         (__SYSCALL_ULONG_TYPE): Likewise.
76470         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76471         (__SYSCALL_SLONG_TYPE): Likewise.
76472         (__SYSCALL_ULONG_TYPE): Likewise.
76473
76474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76475
76476         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
76477         Add sigaltstack-offsets.sym.
76478         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
76479         <sigaltstack-offsets.h>.
76480         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
76481         longjmp_msg pointer.
76482         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
76483         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
76484         signal stack.
76485         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
76486
76487 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76488
76489         * elf/stackguard-macros.h: Remove file.
76490         * sysdeps/generic/stackguard-macros.h: New file.
76491         * sysdeps/i386/stackguard-macros.h: Likewise.
76492         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
76493         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
76494         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
76495         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
76496         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
76497         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
76498         * sysdeps/x86_64/stackguard-macros.h: Likewise.
76499         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
76500         <elf/stackguard-macros.h>.
76501
76502         [BZ #14109]
76503         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
76504         __aligned__ in attribute.
76505         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
76506         (gregset_t): Likewise.
76507
76508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76509
76510         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
76511         * sysdeps/x86_64/64/Implies-after: Here.  New file.
76512         * sysdeps/x86_64/x32/Implies-after: New file.
76513
76514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76515
76516         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
76517         and access return value for _dl_profile_fixup.  Use R10_LP to
76518         load frame size.
76519
76520 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76521
76522         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
76523
76524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76525
76526         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
76527         * sysdeps/x86_64/x32/sysdep.h: New file.
76528
76529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76530
76531         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
76532         * sysdeps/x86_64/setjmp.S: Likewise.
76533
76534 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76535
76536         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
76537         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
76538         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
76539         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
76540         remove unused global constant.
76541
76542 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
76543
76544         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
76545         include of <not-cancel.h>.
76546
76547 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76548
76549         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
76550
76551 2012-05-15  Jeff Law  <law@redhat.com>
76552             Andreas Jaeger  <aj@suse.de>
76553
76554         [BZ #13594]
76555         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
76556         out from...
76557         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
76558         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
76559         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
76560         code changing __hst_map_handle.map.
76561
76562 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76563
76564         * configure.in (sysnames): Look for Implies-before and Implies-after
76565         files.
76566         * configure: Regenerated.
76567
76568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76569
76570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
76571         8-byte data alignment with LP_SIZE alignment.
76572
76573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76574
76575         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
76576         into R10_LP.
76577
76578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76579
76580         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
76581
76582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76583
76584         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
76585         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
76586         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
76587         Likewise.
76588         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
76589
76590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76591
76592         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
76593         (stackinfo_sub_sp): Likewise.
76594
76595 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76596
76597         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
76598         RAX_LP.
76599
76600 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76601
76602         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
76603         into R*_LP.
76604
76605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76606
76607         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
76608         sizes into R*_LP.
76609
76610 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76611
76612         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
76613
76614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76615
76616         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
76617         into R11_LP and load __x86_64_shared_cache_size_half into
76618         R8_LP.
76619
76620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76621
76622         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
76623         R8_LP.
76624
76625 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76626
76627         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
76628         logb for POWER7.
76629         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
76630         logbf for POWER7.
76631         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
76632         logbl for POWER7.
76633         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
76634         powerpc32/power7/fpu/s_logb.c via #include.
76635         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
76636         powerpc32/power7/fpu/s_logbf.c via #include.
76637         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
76638         powerpc32/power7/fpu/s_logbl.c via #include.
76639
76640 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76641
76642         * README.libm: Remove file.
76643
76644 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76645
76646         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
76647         count for x32.  Use R*_LP and omit operand-size suffix.
76648
76649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76650
76651         * shlib-versions: Move x86_64-.*-linux.* entries to ...
76652         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
76653         * sysdeps/x86_64/x32/shlib-versions: New file.
76654
76655 2012-05-14  Roland McGrath  <roland@hack.frob.com>
76656
76657         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
76658         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
76659         Use _dl_fatal_printf instead.
76660
76661 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76662
76663         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
76664         set if not set by the user.  Do not allow for being unset.
76665         * sysdeps/unix/sysv/linux/configure: Regenerated.
76666
76667 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76668
76669         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
76670         the `q' suffix from lea and replace .quad with ASM_ADDR.
76671
76672 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76673
76674         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
76675         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
76676         instead of $17.
76677         (PTR_DEMANGLE): Likewise.
76678
76679 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76680
76681         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
76682         (LP_OP): Likewise.
76683         (ASM_ADDR): Likewise.
76684         (RAX_LP): Likewise.
76685         (RBP_LP): Likewise.
76686         (RBX_LP): Likewise.
76687         (RCX_LP): Likewise.
76688         (RDI_LP): Likewise.
76689         (RSI_LP): Likewise.
76690         (RSP_LP): Likewise.
76691         (R8_LP): Likewise.
76692         (R9_LP): Likewise.
76693         (R10_LP): Likewise.
76694         (R10_LP): Likewise.
76695         (R11_LP): Likewise.
76696         (R12_LP): Likewise.
76697         (R13_LP): Likewise.
76698         (R14_LP): Likewise.
76699         (R15_LP): Likewise.
76700
76701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76702
76703         * sysdeps/x86_64/x32/dl-machine.h: New file.
76704
76705 2012-05-14  Andreas Jaeger  <aj@suse.de>
76706
76707         * manual/Makefile (subdir): Remove export of subdir.
76708         (all): Remove target.
76709         (.PHONY): Remove all from list.
76710         (mkinstalldirs): Remove.
76711         (.PHONY): Remove installdirs from list.
76712         ($(inst_infodir)/libc.info): Use make-target-directory.
76713         (installdirs): Remove.
76714         (subdir_%): Remove.
76715         (glibc-targets): Remove.
76716         (lib): Remove.
76717         (stubs): Remove.
76718         ($(objpfx)stubs ../po/manual.pot): Remove.
76719         ($(objpfx)stamp%): Remove.
76720         (make-target-directory): Remove.
76721         (subdir_install): Remove.
76722         (routines): Remove.
76723         (aux): Remove.
76724         (sources): Remove.
76725         (objects): Remove.
76726         (headers): Remove.
76727
76728         [BZ #13750]
76729         * manual/.gitignore: Remove, it's not needed anymore.
76730         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
76731         all files in it.
76732         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
76733         directory.
76734         (texis): Renamed to $(objpfx)texis.
76735         (texis-path): New, contains path to generated files.
76736         (chapters.%): Use texis-path for complete path, add extra argument
76737         libc-texinfo.sh.
76738         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
76739         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
76740         (summary,texi, stamp-summary): Use complete path of
76741         files. Generate files in build dir.
76742         (dir-add.texi): Build in build dir.
76743         (libm-err.texi,stamp-libm-err): Likewise.
76744         (version.texi, stamp-version): Likewise.
76745         (.%c.texi): Likewise.
76746         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
76747         (mostlyclean): Remove target.
76748         (realclean): Remove target.
76749         (generated): Add new variable with contents from mostlyclean and
76750         realclean, remove entries duplicated in common-mostlyclean, add
76751         stamp-libm-err and stamp-version.
76752         (generated-dirs): Add libc directory.
76753         ($(inst_infodir)/libc.info): Install files from build dir.
76754
76755         * manual/install.texi (Configuring and compiling): Adjust since
76756         the info files are not part of the tar ball anymore.
76757
76758 2012-05-14  Andreas Jaeger  <aj@suse.de>
76759
76760         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
76761         variable.
76762
76763 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76764
76765         [BZ #13717]
76766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
76767         to 2.2.0 where earlier.
76768         * sysdeps/unix/sysv/linux/configure: Regenerated.
76769         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
76770         Remove conditional code.
76771         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
76772         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
76773         Remove conditional code.
76774         [!__NR_lchown]: Likewise.
76775         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76776         [__NR_lchown]: Likewise.
76777         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
76778         comment referencing __ASSUME_LCHOWN_SYSCALL.
76779         * sysdeps/unix/sysv/linux/i386/sigaction.c
76780         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76781         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76782         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
76783         Remove conditional code.
76784         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
76785         (__protocol_available): Remove #if 0 code.
76786         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
76787         conditional code.
76788         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
76789         * sysdeps/unix/sysv/linux/kernel-features.h
76790         (__ASSUME_GETCWD_SYSCALL): Don't define.
76791         (__ASSUME_REALTIME_SIGNALS): Likewise.
76792         (__ASSUME_PREAD_SYSCALL): Likewise.
76793         (__ASSUME_PWRITE_SYSCALL): Likewise.
76794         (__ASSUME_POLL_SYSCALL): Likewise.
76795         (__ASSUME_LCHOWN_SYSCALL): Likewise.
76796         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
76797         non-SPARC.
76798         (__ASSUME_SIOCGIFNAME): Don't define.
76799         (__ASSUME_MSG_NOSIGNAL): Likewise.
76800         (__ASSUME_SENDFILE): Define unconditionally.
76801         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
76802         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
76803         conditional code.
76804         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
76805         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
76806         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76807         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76808         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
76809         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76810         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
76812         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
76815         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76816         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
76818         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76819         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
76821         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76822         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
76824         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76825         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
76827         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76828         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
76830         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
76833         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76834         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76835         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
76836         Remove conditional code.
76837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76838         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76839         Remove conditional code.
76840         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76841         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
76842         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
76843         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76844         Remove conditional code.
76845         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76846         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
76847         Remove conditional code.
76848         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76849         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
76850         Remove conditional code.
76851         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76852         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76853         Remove conditional code.
76854         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76855         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76856         Remove conditional code.
76857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76858         * sysdeps/unix/sysv/linux/sh/pwrite64.c
76859         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76860         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76861         * sysdeps/unix/sysv/linux/sigaction.c
76862         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76863         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76864         * sysdeps/unix/sysv/linux/sigpending.c
76865         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76866         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76867         * sysdeps/unix/sysv/linux/sigprocmask.c
76868         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76869         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76870         * sysdeps/unix/sysv/linux/sigsuspend.c
76871         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76872         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76873         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
76874         (__libc_missing_rt_sigs): Remove.
76875         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
76876         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
76877         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
76878         Remove conditional code.
76879         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
76880         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
76881         return 1.
76882         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
76883         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
76884         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
76885         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
76886
76887 2012-05-14  Andreas Jaeger  <aj@suse.de>
76888
76889         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
76890         it's not used in glibc.
76891         (__coshm1): Likewise.
76892         (__acosh1p): Likewise.
76893         (__sgn): Likewise.
76894
76895         * manual/string.texi (Copying and Concatenation): Add missing
76896         variable in concat example.
76897         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
76898
76899 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76900
76901         [BZ #14103]
76902         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
76903         __builtin_clzl with __builtin_clzll.
76904
76905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76906
76907         [BZ #14104]
76908         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
76909         libc_freeres_ptr.
76910
76911 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76912
76913         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
76914         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
76915         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
76916         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
76917
76918 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
76919
76920         * NEWS: Update ia64 info.
76921
76922 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
76923
76924         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
76925         used as bcopy.
76926
76927 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
76928
76929         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
76930         * sysdeps/unix/syscalls.list (dup3): Likewise.
76931         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
76932         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
76933
76934 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76935
76936         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
76937         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
76938
76939 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76940
76941         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
76942         thread pointer.
76943         (TLS_IE): Use mov/add instead of movq/addq to load thread
76944         pointer.
76945         (TLS_GD_PREFIX): New.
76946         (TLS_GD): Use it.
76947
76948 2012-05-11  David S. Miller  <davem@davemloft.net>
76949
76950         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
76951         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
76952         (_FPU_SETCW): Likewise.
76953
76954 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76955
76956         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
76957         is 32-byte aligned.
76958
76959 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
76960
76961         [BZ #11837]
76962         * iconvdata/gb18030.c: Update tables.
76963         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
76964         characters specially.
76965         (BODY for TO_LOOP): Add encoding of missing ranges.
76966
76967 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
76968
76969         [BZ #13673]
76970         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
76971         * sysdeps/mach/hurd/dup3.c: Likewise.
76972         * sysdeps/mach/hurd/readlinkat.c: Likewise.
76973         * sysdeps/powerpc/memmove.c:: Likewise.
76974
76975 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76976
76977         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
76978         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
76979
76980 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76981
76982         * elf/elf.h (R_X86_64_RELATIVE64): New.
76983         (R_X86_64_NUM): Updated.
76984         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
76985         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
76986         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
76987         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
76988         tst-quad1pie tst-quad2pie
76989         (modules-names): Add tst-quadmod1 tst-quadmod2.
76990         ($(objpfx)tst-quad1): New dependency.
76991         ($(objpfx)tst-quad2): Likewise.
76992         ($(objpfx)tst-quad1pie): Likewise.
76993         ($(objpfx)tst-quad2pie): Likewise.
76994         * sysdeps/x86_64/tst-quad1.c: New file.
76995         * sysdeps/x86_64/tst-quad1pie.c: New file.
76996         * sysdeps/x86_64/tst-quad2.c: Likewise.
76997         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
76998         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
76999         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
77000         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
77001         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
77002
77003 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77004
77005         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
77006         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
77007         * streams/stropts.h (t_scalar_t): Define type.
77008
77009         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
77010         (_PATH_PRESERVE): Set to "/var/lib".
77011         (_PATH_RWHODIR): Set to "/var/spool/rwho".
77012
77013         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
77014         instead of int.
77015
77016         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
77017         if __dir_mkfile succeeded.
77018
77019         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
77020         checking for _hurd_dtablesize.  Unlock it right after having
77021         finished _hurd_dtable allocation.
77022
77023 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77024
77025         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
77026         * sysdeps/mach/hurd/configure: Regenerated.
77027         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
77028         special-casing to...
77029         * sysdeps/gnu/configure.in: ... this new file.
77030         * sysdeps/unix/sysv/linux/configure: Regenerated.
77031         * sysdeps/gnu/configure: New generated file.
77032
77033         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
77034         for Linux: use nsec instead of usec, as well as:
77035         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
77036         members of type struct timespec.
77037         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
77038         New macros.
77039         (struct stat64): Likewise.
77040         (_STATBUF_ST_NSEC): New macro.
77041         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
77042
77043         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
77044         __strtoul_internal rather than strtoul.
77045
77046 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77047
77048         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
77049         and reject them.
77050
77051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77052
77053         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
77054         which preserves existing values.
77055         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
77056
77057 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77058
77059         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
77060         TIMEOUT values.  Return EINVAL for NFDS values either negative or
77061         greater than FD_SETSIZE.
77062
77063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77064
77065         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
77066         allocated, call __vm_protect to finish enabling the existing space, and
77067         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
77068         allocate the remainder.
77069
77070 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77071
77072         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
77073         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
77074
77075 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77076
77077         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
77078         sysdeps/mach/hurd/readlink.c.
77079
77080         * posix/tst-sysconf.c (posix_options): Only use
77081         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
77082         _POSIX_SYNCHRONIZED_IO when they are defined
77083         * sysdeps/mach/hurd/bits/posix_opt.h:
77084         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
77085         (_XOPEN_REALTIME): Undefine macro.
77086         (_XOPEN_REALTIME_THREADS): Undefine macro.
77087         (_XOPEN_SHM): Undefine macro.
77088         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
77089         macro to -1.
77090         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
77091         macro to -1.
77092         (_POSIX_ASYNC_IO): Undefine macro.
77093         (_POSIX_PRIORITIZED_IO): Undefine macro.
77094         (_POSIX_SPIN_LOCKS): Define macro to -1.
77095
77096         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
77097         SA_NODEFER, SA_RESETHAND.
77098         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
77099         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
77100         F_DUPFD_CLOEXEC.
77101
77102 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77103
77104         * elf/Makefile (pldd-modules): Define unconditionally.
77105
77106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77107
77108         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
77109
77110 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77111
77112         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
77113         Return ENOENT when name is empty.
77114         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
77115
77116 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77117
77118         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
77119
77120         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
77121
77122 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77123
77124         Fix mlock in all cases except non-readable pages.
77125         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
77126         instead of VM_PROT_ALL as parameter to __vm_wire function.
77127
77128         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
77129         (__mkdir): When path is `/', just fail with EEXIST.
77130         * sysdeps/mach/hurd/mkdirat.c: Likewise.
77131
77132 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77133
77134         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
77135         <sys/uio.h> (for writev).
77136         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
77137         and <sys/param.h> (for MIN).
77138
77139 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77140
77141         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
77142         REQUESTED_TIME.  Properly set the remaining time and return EINTR
77143         if interrupted.
77144
77145 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77146
77147         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
77148         Depend on against $(link-rpcuserlibs).
77149
77150 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77151
77152         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
77153         (__libc_stack_end): Do not use attribute_relro.
77154         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
77155         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
77156         to libthread-provided value.
77157         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
77158         attribute_relro.
77159
77160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77161
77162         [BZ #3748]
77163         * bits/libc-lock.h (__libc_once_get): New macro.
77164         * sysdeps/mach/bits/libc-lock.h: Likewise.
77165         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
77166         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
77167         instead of using implementation details.
77168
77169         * libio/fileops.c: Unconditionally include <kernel-features.h>.
77170         * libio/freopen.c: Likewise.
77171         * libio/freopen64.c: Likewise.
77172         * misc/syslog.c: Likewise.
77173         * nscd/connections.c: Likewise.
77174         * nscd/netgroupcache.c: Likewise.
77175         * sysdeps/posix/getcwd.c: Likewise.
77176
77177 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77178
77179         * math/w_ilogbf.c: Add #include <limits.h>.
77180
77181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77182
77183         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
77184         path instead of returning without unlocking.
77185
77186         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
77187         immediate-write ioctls.
77188         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
77189
77190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77191
77192         * sysdeps/mach/hurd/i386/init-first.c (init): Use
77193         __builtin_frame_address instead of making assumptions about the
77194         location of the return address relative to DATA.  Force early load of
77195         the return address.
77196         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
77197         __builtin_frame_address.
77198
77199         dup3 for GNU Hurd.
77200         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
77201         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
77202         implement dup3 and do some further code clean-ups.
77203         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
77204         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
77205
77206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77207
77208         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
77209
77210         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
77211         HURD_CRITICAL_END around holding _hurd_dtable_lock.
77212         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
77213         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
77214         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
77215         d->port.lock.
77216
77217         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
77218         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
77219         when handler == SIG_ERR, not when handler != SIG_ERR.
77220
77221 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77222
77223         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
77224         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
77225         definitions.
77226
77227         accept4 for GNU Hurd.
77228         * include/sys/socket.h (__libc_accept4): New prototype.
77229         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
77230         to implement __libc_accept4.
77231         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
77232         __libc_accept4.
77233         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
77234
77235         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
77236         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
77237         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
77238         signal-defines.sym.
77239
77240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77241
77242         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
77243
77244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77245
77246         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
77247         assertion on O_CLOEXEC flag.
77248         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
77249         * hurd/intern-fd.c: Likewise.
77250         * hurd/port2fd.c: Likewise.
77251
77252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77253
77254         [BZ #3906]
77255         * bits/in.h (IPV6_PKTINFO): Define new macro.
77256         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
77257
77258 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77259
77260         [BZ #13954]
77261         [BZ #13955]
77262         [BZ #13956]
77263         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
77264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
77265         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
77266         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
77267         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
77268         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
77269         * math/libm-test.inc (logb_test) : Additional logb tests.
77270
77271 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
77272             Andreas Jaeger  <aj@suse.de>
77273
77274         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
77275         * configure: Regenerated.
77276         * config.h.in (LINK_OBSOLETE_RPC): New macro.
77277         * config.make.in (link-obsolete-rpc): New substituted variable.
77278         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
77279         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
77280         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77281         (shared-only-routines): Don't set it under [link-obsolete-rpc],
77282         so that libc.a contains the symbols.
77283         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77284         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
77285         * sunrpc/auth_none.c: Likewise.
77286         * sunrpc/auth_unix.c: Likewise.
77287         * sunrpc/authdes_prot.c: Likewise.
77288         * sunrpc/authuxprot.c: Likewise.
77289         * sunrpc/clnt_gen.c: Likewise.
77290         * sunrpc/clnt_perr.c: Likewise.
77291         * sunrpc/clnt_raw.c: Likewise.
77292         * sunrpc/clnt_simp.c: Likewise.
77293         * sunrpc/clnt_tcp.c: Likewise.
77294         * sunrpc/clnt_udp.c: Likewise.
77295         * sunrpc/clnt_unix.c: Likewise.
77296         * sunrpc/des_crypt.c: Likewise.
77297         * sunrpc/des_soft.c: Likewise.
77298         * sunrpc/get_myaddr.c: Likewise.
77299         * sunrpc/key_call.c: Likewise.
77300         * sunrpc/key_prot.c: Likewise.
77301         * sunrpc/netname.c: Likewise.
77302         * sunrpc/pm_getmaps.c: Likewise.
77303         * sunrpc/pm_getport.c: Likewise.
77304         * sunrpc/pmap_clnt.c: Likewise.
77305         * sunrpc/pmap_prot.c: Likewise.
77306         * sunrpc/pmap_prot2.c: Likewise.
77307         * sunrpc/pmap_rmt.c: Likewise.
77308         * sunrpc/publickey.c: Likewise.
77309         * sunrpc/rpc_cmsg.c: Likewise.
77310         * sunrpc/rpc_common.c: Likewise.
77311         * sunrpc/rpc_dtable.c: Likewise.
77312         * sunrpc/rpc_prot.c: Likewise.
77313         * sunrpc/rpc_thread.c: Likewise.
77314         * sunrpc/rtime.c: Likewise.
77315         * sunrpc/svc.c: Likewise.
77316         * sunrpc/svc_auth.c: Likewise.
77317         * sunrpc/svc_raw.c: Likewise.
77318         * sunrpc/svc_run.c: Likewise.
77319         * sunrpc/svc_tcp.c: Likewise.
77320         * sunrpc/svc_udp.c: Likewise.
77321         * sunrpc/svc_unix.c: Likewise.
77322         * sunrpc/svcauth_des.c: Likewise.
77323         * sunrpc/xcrypt.c: Likewise.
77324         * sunrpc/xdr.c: Likewise.
77325         * sunrpc/xdr_array.c: Likewise.
77326         * sunrpc/xdr_float.c: Likewise.
77327         * sunrpc/xdr_intXX_t.c: Likewise.
77328         * sunrpc/xdr_mem.c: Likewise.
77329         * sunrpc/xdr_rec.c: Likewise.
77330         * sunrpc/xdr_ref.c: Likewise.
77331         * sunrpc/xdr_sizeof.c: Likewise.
77332         * sunrpc/xdr_stdio.c: Likewise.
77333
77334 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77335
77336         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
77337         change.  Update copyright years.
77338
77339 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77340
77341         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
77342
77343 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
77344             Joseph Myers  <joseph@codesourcery.com>
77345             Paul Pluzhnikov  <ppluzhnikov@google.com>
77346
77347         [BZ #14012]
77348         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
77349         requiring rpcgen.
77350         [cross-compiling] (extra-libs): Likewise.
77351         [cross-compiling] (extra-libs-others): Likewise.
77352         [cross-compiling] (librpcsvc-routines): Likewise.
77353         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
77354         [cross-compiling] (omit-deps): Likewise.
77355         (sunrpc-CPPFLAGS): New variable.
77356         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
77357         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
77358         (cross-rpcgen-objs): New variable.
77359         (extra-objs): Append $(cross-rpcgen-objs).
77360         ($(cross-rpcgen-objs)): New rule.
77361         ($(objpfx)cross-rpcgen): Likewise.
77362         (rpcgen-cmd): Define to use $(built-program-file).  Expand
77363         comment.
77364         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
77365         ($(objpfx)x%.stmp): Likewise.
77366         * sunrpc/proto.h [IS_IN_build] (_): Define.
77367         [IS_IN_build] (_libc_intl_domainname): Likewise.
77368
77369 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77370
77371         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
77372         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
77373         and R_X86_64_TPOFF64.
77374
77375 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77376
77377         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
77378         sysdeps/unix/sysv/syscalls.list.
77379         (stime): Likewise.
77380         (utime): Likewise.
77381         * sysdeps/unix/sysv/syscalls.list: Remove file.
77382
77383 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         [BZ #3440]
77386         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
77387         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
77388         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
77389         (__LC_IDENTIFICATION): Make these macros useful in #if
77390         expressions, as required by C99.
77391
77392 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
77393
77394         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
77395         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
77396         after this.
77397
77398 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
77399
77400         * stdlib/longlong.h: Updated from GCC.
77401
77402 2012-05-09  Andreas Jaeger  <aj@suse.de>
77403
77404         * nscd/nscd.c (run_modes): Make named enum, reorder so that
77405         default is first entry.
77406         (run_mode): Set type.
77407         (main): Remove informal message about syslog.
77408         (options): Fix typo.
77409
77410         [BZ #14053]
77411         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
77412         to asm.
77413         (lrint): Likewise.
77414         (llrintf): Likewise.
77415         (llrint): Likewise.
77416         (rint): Likewise.
77417         (rintf): Likewise.
77418         (nearbyint): Likewise.
77419         (nearbyintf): Likewise.
77420
77421 2012-05-09  Andreas Jaeger  <aj@suse.de>
77422             Pedro Alves  <palves@redhat.com>
77423
77424         * nscd/nscd.c (run_mode): Use enum.
77425         (main): Cleanup coding style issue.
77426
77427 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
77428             Andreas Jaeger  <aj@suse.de>
77429
77430         * nscd/nscd.c (go_background): Replaced with...
77431         (run_mode): ... this.
77432         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
77433         (options): Add -F --foreground.
77434         (main): Implement it.
77435         (parse_opt): Parse it.
77436
77437 2012-05-09  Andreas Jaeger  <aj@suse.de>
77438
77439         [BZ #14083]
77440         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
77441         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
77442         -Wconversion warning.
77443         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
77444         Likewise.
77445
77446 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
77447
77448         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
77449         == 0.
77450         (LC_ALL): Use macro-int-constant.
77451         (LC_COLLATE): Likewise.
77452         (LC_CTYPE): Likewise.
77453         (LC_MESSAGES): Likewise.
77454         (LC_MONETARY): Likewise.
77455         (LC_NUMERIC): Likewise.
77456         (LC_TIME): Likewise.
77457         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
77458         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77459         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77460         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
77461         Specify type.
77462         [C99-based standards] (float_t): Expect type.
77463         [C99-based standards] (double_t): Expect type.
77464         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
77465         type.
77466         [C99-based standards] (HUGE_VALL): Likewise.
77467         [C99-based standards] (INFINITY): Likewise.
77468         [C99-based standards] (NAN): Likewise.
77469         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
77470         [C99-based standards] (FP_NAN): Likewise.
77471         [C99-based standards] (FP_NORMAL): Likewise.
77472         [C99-based standards] (FP_SUBNORMAL): Likewise.
77473         [C99-based standards] (FP_ZERO): Likewise.
77474         [C99-based standards] (FP_FAST_FMA): Use
77475         optional-macro-int-constant.  Specify type.  Require == 1.
77476         [C99-based standards] (FP_FAST_FMAF): Likewise.
77477         [C99-based standards] (FP_FAST_FMAL): Likewise.
77478         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
77479         [C99-based standards] (FP_ILOGBNAN): Likewise.
77480         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
77481         Specify type.
77482         [C99-based standards] (MATH_ERREXCEPT): Likewise.
77483         [C99-based standards] (math_errhandling): Specify type.
77484         [ISO99 || ISO11] (signgam): Do not allow.
77485         [non-C99-based standards] (copysignf): Do not allow.
77486         [non-C99-based standards] (exp2f): Likewise.
77487         [non-C99-based standards] (log2f): Likewise.
77488         [non-C99-based standards] (modff): Allow.
77489         [non-C99-based standards] (erff): Do not allow.
77490         [non-C99-based standards] (erfcf): Likewise.
77491         [non-C99-based standards] (gammaf): Likewise.
77492         [non-C99-based standards] (hypotf): Likewise.
77493         [non-C99-based standards] (j0f): Likewise.
77494         [non-C99-based standards] (j1f): Likewise.
77495         [non-C99-based standards] (jnf): Likewise.
77496         [non-C99-based standards] (lgammaf): Likewise.
77497         [non-C99-based standards] (tgammaf): Likewise.
77498         [non-C99-based standards] (y0f): Likewise.
77499         [non-C99-based standards] (y1f): Likewise.
77500         [non-C99-based standards] (ynf): Likewise.
77501         [non-C99-based standards] (isnanf): Likewise.
77502         [non-C99-based standards] (acoshf): Likewise.
77503         [non-C99-based standards] (asinhf): Likewise.
77504         [non-C99-based standards] (atanhf): Likewise.
77505         [non-C99-based standards] (cbrtf): Likewise.
77506         [non-C99-based standards] (expm1f): Likewise.
77507         [non-C99-based standards] (ilogbf): Likewise.
77508         [non-C99-based standards] (log1pf): Likewise.
77509         [non-C99-based standards] (logbf): Likewise.
77510         [non-C99-based standards] (nextafterf): Likewise.
77511         [non-C99-based standards] (remainderf): Likewise.
77512         [non-C99-based standards] (rintf): Likewise.
77513         [non-C99-based standards] (scalbf): Likewise.
77514         [non-C99-based standards] (copysignl): Likewise.
77515         [non-C99-based standards] (exp2l): Likewise.
77516         [non-C99-based standards] (log2l): Likewise.
77517         [non-C99-based standards] (modfl): Allow.
77518         [non-C99-based standards] (erfl): Do not allow.
77519         [non-C99-based standards] (erfcl): Likewise.
77520         [non-C99-based standards] (gammal): Likewise.
77521         [non-C99-based standards] (hypotl): Likewise.
77522         [non-C99-based standards] (j0l): Likewise.
77523         [non-C99-based standards] (j1l): Likewise.
77524         [non-C99-based standards] (jnl): Likewise.
77525         [non-C99-based standards] (lgammal): Likewise.
77526         [non-C99-based standards] (tgammal): Likewise.
77527         [non-C99-based standards] (y0l): Likewise.
77528         [non-C99-based standards] (y1l): Likewise.
77529         [non-C99-based standards] (ynl): Likewise.
77530         [non-C99-based standards] (isnanl): Likewise.
77531         [non-C99-based standards] (acoshl): Likewise.
77532         [non-C99-based standards] (asinhl): Likewise.
77533         [non-C99-based standards] (atanhl): Likewise.
77534         [non-C99-based standards] (cbrtl): Likewise.
77535         [non-C99-based standards] (expm1l): Likewise.
77536         [non-C99-based standards] (ilogbl): Likewise.
77537         [non-C99-based standards] (log1pl): Likewise.
77538         [non-C99-based standards] (logbl): Likewise.
77539         [non-C99-based standards] (nextafterl): Likewise.
77540         [non-C99-based standards] (remainderl): Likewise.
77541         [non-C99-based standards] (rintl): Likewise.
77542         [non-C99-based standards] (scalbl): Likewise.
77543         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77544         [non-C99-based standards] (FP_*): Do not allow.
77545         [C99-based standards] (FP_*): Change to
77546         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77547         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77548         allow.
77549         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
77550         (SIG_ERR): Likewise.
77551         [X/Open-based standards] (SIG_HOLD): Likewise.
77552         (SIG_IGN): Likewise.
77553         (SIGABRT): Use macro-int-constant.  Specify type.  Require
77554         positive value.
77555         (SIGFPE): Likewise.
77556         (SIGILL): Likewise.
77557         (SIGINT): Likewise.
77558         (SIGSEGV): Likewise.
77559         (SIGTER): Likewise.
77560         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
77561         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
77562         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
77563         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
77564         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
77565         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
77566         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
77567         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
77568         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
77569         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
77570         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
77571         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
77572         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
77573         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
77574         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
77575         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
77576         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
77577         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
77578         [X/Open-based standards] (SIGTRAP): Likewise.
77579         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
77580         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
77581         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
77582         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
77583         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77584         allow.
77585
77586 2012-05-08  Ian Wienand  <ianw@vmware.com>
77587
77588         [BZ #14080]
77589         * time/tzset.c (__tzset_parse_tz): Update default rules for
77590         daylight time changes in the Energy Policy Act of 2005.
77591
77592 2012-05-09  Andreas Jaeger  <aj@suse.de>
77593
77594         [BZ #13983]
77595         * elf/ldconfig.c (parse_conf): Change string to make clear that
77596         ldconfig only issued a warning if ld.so.conf does not exist.
77597
77598 2012-05-08  David S. Miller  <davem@davemloft.net>
77599
77600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
77601         movxtod instead of popping the value on the stack.
77602
77603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77604
77605 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
77606
77607         * config.h.in: Add HAVE_ARM_PCS_VFP.
77608
77609 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
77610
77611         [BZ #13979]
77612         * include/features.h: Warn if user requests __FORTIFY_SOURCE
77613         checking but the checks are disabled for any reason.
77614
77615 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
77616
77617         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
77618         and ELF64_R_TYPE with ELFW(R_TYPE).
77619
77620 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
77621
77622         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
77623         (ulimit): Likewise.
77624
77625         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
77626         (settimeofday): Likewise.
77627
77628 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
77629
77630         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
77631         a struct th_u2 inside the union, and move tu_block/tu_code into
77632         a new th_u3 union of tu_block/tu_code inside of that.  Move
77633         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
77634         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
77635         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
77636         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
77637         (th_stuff): Change to th_u1.tu_stuff.
77638         (th_data): Define.
77639         (th_msg): Change to th_u1.th_u2.tu_data.
77640
77641 2012-05-07  David S. Miller  <davem@davemloft.net>
77642
77643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77644
77645         [BZ #14074]
77646         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
77647         (SETUP_PIC_REG): Use it.
77648         (SETUP_PIC_REG_LEAF): Use it.
77649
77650 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
77651
77652         [BZ #13885]
77653         [BZ #13923]
77654         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77655         USE_AS_EXPM1L.
77656         (EXPL_FINITE): Likewise.
77657         (FLDLOG): Likewise.
77658         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77659         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77660         e_expl.S.
77661         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77662         USE_AS_EXPM1L.
77663         (EXPL_FINITE): Likewise.
77664         (FLDLOG): Likewise.
77665         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77666         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77667         e_expl.S.
77668         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
77669         test of -max_value argument for long double.
77670         * sysdeps/i386/fpu/libm-test-ulps: Update.
77671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77672
77673 2012-05-06  David S. Miller  <davem@davemloft.net>
77674
77675         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
77676         quad soft-float symbols whose references which are compiler
77677         generated.
77678         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
77679
77680 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
77681
77682         [BZ #13884]
77683         [BZ #13914]
77684         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77685         USE_AS_EXP10L.
77686         (EXPL_FINITE): Likewise.
77687         (FLDLOG): Likewise.
77688         (c0): Likewise.
77689         (c1): Likewise.
77690         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77691         Adjust comments for base varying.
77692         (__expl_finite): Change alias to EXPL_FINITE.
77693         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
77694         e_expl.S.
77695         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
77696         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
77697         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
77698         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
77699         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77700         USE_AS_EXP10L.
77701         (EXPL_FINITE): Likewise.
77702         (FLDLOG): Likewise.
77703         (c0): Likewise.
77704         (c1): Likewise.
77705         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77706         Adjust comments for base varying.
77707         (__expl_finite): Change alias to EXPL_FINITE.
77708         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
77709         tests for bugs.
77710         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77711
77712         [BZ #14064]
77713         * math/libm-test.inc (check_float_internal): Correct ulp
77714         calculation for subnormal expected results.
77715
77716 2012-05-06  Andreas Jaeger  <aj@suse.de>
77717
77718         * Makeconfig (+math-flags): New, set to -frounding-math.
77719         (+cflags): Add +math-flags so that all of glibc gets compiled with
77720         it.
77721
77722         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
77723
77724 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
77725
77726         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
77727         Disable one test.
77728
77729         [BZ #13787]
77730         [BZ #13922]
77731         [BZ #14036]
77732         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
77733         (__ieee754_expl): Allow for and saturate large arguments.
77734         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
77735         (u_threshold): Likewise.
77736         (__exp): Call __ieee754_exp before checking for overflow and
77737         underflow.
77738         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
77739         (u_threshold): Likewise.
77740         (__expf): Call __ieee754_expf before checking for overflow and
77741         underflow.
77742         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
77743         (u_threshold): Likewise.
77744         (__expl): Call __ieee754_expl before checking for overflow and
77745         underflow.
77746         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
77747         (__ieee754_expl): Allow for and saturate large arguments.
77748         * math/libm-test.inc (exp_test): Add another test.  Do not allow
77749         missing overflow exception on overflow.
77750         (expm1_test): Do not allow missing overflow exception on overflow.
77751
77752         * sysdeps/i386/fpu/e_expl.c: Move to ...
77753         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
77754         rather than using inline asm.
77755         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
77756         * sysdeps/x86_64/fpu/e_expl.S: Copy from
77757         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
77758
77759         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
77760         (nice): Likewise.
77761         (poll): Likewise.
77762         (signal): Likewise.
77763         (time): Likewise.
77764         (times): Likewise.
77765
77766 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77767
77768         * sysdeps/unix/syscalls.list (adjtime): Add entry from
77769         sysdeps/unix/common/syscalls.list.
77770         (fchmod): Likewise.
77771         (fchown): Likewise.
77772         (ftruncate): Likewise.
77773         (getrusage): Likewise.
77774         (gettimeofday): Likewise.
77775         (setpgid): Likewise.
77776         (setregid): Likewise.
77777         (setreuid): Likewise.
77778         (sigaction): Likewise.
77779         (truncate): Likewise.
77780         (vhangup): Likewise.
77781         * sysdeps/unix/common/syscalls.list: Remove file.
77782         * sysdeps/unix/bsd/Implies: Don't include unix/common.
77783         * sysdeps/unix/sysv/linux/Implies: Likewise.
77784
77785 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
77786
77787         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
77788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
77789         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
77790         Moved to ...
77791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
77792         Here.
77793         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
77794         to ...
77795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
77796         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
77797         to ...
77798         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
77799         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
77800         to ...
77801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
77802         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
77803         to ...
77804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
77805         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
77806         to ...
77807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
77808         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
77809         to ...
77810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
77811         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
77812         to ...
77813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
77814         Here.
77815         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
77816         to ...
77817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
77818         Here.
77819         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
77820         to ...
77821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
77822         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
77823         Moved to ...
77824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
77825         Here.
77826         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
77827         to ...
77828         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
77829
77830 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77831
77832         * sysdeps/unix/common/bits/dirent.h: Remove file.
77833         * sysdeps/unix/common/bits/fcntl.h: Likewise.
77834
77835         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
77836         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
77837         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
77838         * sysdeps/unix/bsd/isatty.c: Likewise.
77839         * sysdeps/unix/bsd/tcdrain.c: Likewise.
77840         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
77841         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
77842
77843 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77844
77845         [BZ #13563]
77846         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
77847         long double comparison inaccuracies.
77848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
77849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
77850
77851 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
77852
77853         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
77854         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
77855
77856 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77857
77858         [BZ #14049]
77859         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
77860         nonzero digits before rounding a hex value.
77861         * stdlib/tst-strtod.c (tests): Add another test.
77862
77863 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77864
77865         * sysdeps/s390/fpu/libm-test-ulps: Update.
77866
77867 2012-05-03  Andreas Jaeger  <aj@suse.de>
77868
77869         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
77870         does not get optimized out.
77871         (malloc_opt_barrier): New.
77872
77873 2012-05-03  Andreas Jaeger  <aj@suse.de>
77874             Roland McGrath  <roland@hack.frob.com>
77875
77876         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
77877         intermediate file deletion.
77878         (generated): Add .symlist files.
77879
77880 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
77881
77882         [BZ #13775]
77883         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
77884         Redirect under this condition.
77885         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77886         [__USE_GNU] (__dprintf_chk): Not under this condition.
77887         [__USE_GNU] (__vdprintf_chk): Likewise.
77888         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
77889         under this condition.
77890         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77891         [__USE_XOPEN2K8] (dprintf): Define under this condition.
77892         [__USE_XOPEN2K8] (vdprintf): Likewise.
77893         [__USE_GNU] (__dprintf_chk): Not under this condition.
77894         [__USE_GNU] (__vdprintf_chk): Likewise.
77895         [__USE_GNU] (dprintf): Likewise.
77896         [__USE_GNU] (vdprintf): Likewise.
77897
77898 2012-05-03  Roland McGrath  <roland@hack.frob.com>
77899
77900         * elf/Makefile (common-generated): Set this instead of generated for
77901         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
77902         $(all-built-dso)-derived lists.
77903
77904 2012-05-03  Andreas Jaeger  <aj@suse.de>
77905
77906         * sysdeps/i386/fpu/libm-test-ulps: Update.
77907
77908         * FAQ: Removed.
77909         * FAQ.in: Likewise.
77910         * scripts/gen-FAQ.pl: Likewise.
77911         * manual/install.texi (Installation): Point to online location of
77912         FAQ.
77913         * Makefile (files-for-dist): Remove FAQ.
77914         (FAQ): Remove.
77915
77916 2012-05-02  Allan McRae  <allan@archlinux.org>
77917
77918         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
77919         (LDFLAGS-reldepmod5.so): Likewise.
77920         (LDFLAGS-reldep6mod1.so): Likewise.
77921         (LDFLAGS-reldep6mod4.so): Likewise.
77922         (LDFLAGS-reldep8mod3.so): Likewise.
77923         (LDFLAGS-unload4mod1.so): Likewise.
77924         (LDFLAGS-unload4mod2.so): Likewise.
77925         (LDFLAGS-tst-initorder): Likewise.
77926         (LDFLAGS-tst-initordera2.so): Likewise.
77927         (LDFLAGS-tst-initordera3.so): Likewise.
77928         (LDFLAGS-tst-initordera4.so): Likewise.
77929         (LDFLAGS-tst-initorderb2.so): Likewise.
77930         (LDFLAGS-noload): Likewise.
77931         (LDFLAGS-next): Likewise.
77932         (LDFLAGS-order2mod1.so): Likewise.
77933         (LDFLAGS-order2mod2.so): Likewise.
77934         (LDFLAGS-tst-initorder2): Likewise.
77935         (LDFLAGS-tst-initorder2a.so): Likewise.
77936         (LDFLAGS-tst-initorder2b.so): Likewise.
77937         (LDFLAGS-tst-initorder2c.so): Likewise.
77938         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
77939
77940 2012-05-02  David S. Miller  <davem@davemloft.net>
77941
77942         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77943
77944 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
77945
77946         [BZ #14055]
77947         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
77948
77949 2012-05-02  Andreas Jaeger  <aj@suse.de>
77950
77951         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
77952         since we manipulate rounding mode.
77953         (CPPFLAGS-test-idouble.c): Likewise.
77954         (CPPFLAGS-test-ifloat.c): Likewise.
77955         (CFLAGS-test-ldouble.c): Likewise.
77956         (CFLAGS-test-double.c): Likewise.
77957         (CFLAGS-test-float.c): Likewise.
77958         (CFLAGS-test-misc.c): Likewise.
77959         (CFLAGS-test-test-fenv.c): Likewise.
77960
77961 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77962
77963         [BZ #2550]
77964         [BZ #2570]
77965         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
77966         comparisons to determine direction to adjust input.
77967
77968 2012-05-01  Roland McGrath  <roland@hack.frob.com>
77969
77970         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
77971         output to the target.
77972
77973         * scripts/localplt.awk: New file.
77974         * elf/Makefile ($(objpfx)check-localplt): Target removed.
77975         (check-localplt-CFLAGS): Variable removed.
77976         ($(all-built-dso:=.jmprel)): New static pattern rule.
77977         (generated): Add those targets.
77978         (localplt-built-dso): New variable.
77979         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
77980
77981         * elf/check-localplt.c: File removed.
77982
77983         * scripts/check-execstack.awk: New file.
77984         * elf/Makefile ($(objpfx)check-execstack): Target removed.
77985         (check-execstack-CFLAGS): Variable removed.
77986         ($(objpfx)check-execstack.h): Target removed.
77987         ($(objpfx)execstack-default): New target.
77988         (generated): Add that instead of check-execstack.h.
77989         ($(all-built-dso:=.phdr)): New static pattern rule.
77990         (generated): Add those targets.
77991         * elf/check-execstack.c: File removed.
77992
77993         * scripts/check-textrel.awk: New file.
77994         * elf/Makefile ($(objpfx)check-textrel): Target removed.
77995         (check-textrel-CFLAGS): Variable removed.
77996         (all-built-dso): Use := to define.o
77997         ($(all-built-dso:=.dyn)): New static pattern rule.
77998         (generated): Add those targets.
77999         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
78000         * config.make.in (READELF): New substituted variable.
78001         * elf/check-textrel.c: File removed.
78002
78003 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78004
78005         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
78006         allow.
78007         * conform/data/ctype.h-data [C99-based standards] (isblank):
78008         Expect function.
78009         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
78010         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
78011         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78012         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
78013         Specify type.  Require positive value.
78014         (EILSEQ): Likewise.
78015         (ERANGE): Likewise.
78016         [ISO || POSIX] (EILSEQ): Do not expect.
78017         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
78018         Specify type.  Require positive value.
78019         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
78020         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
78021         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
78022         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
78023         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
78024         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
78025         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
78026         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
78027         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
78028         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
78029         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
78030         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
78031         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
78032         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
78033         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
78034         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
78035         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
78036         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
78037         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
78038         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
78039         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
78040         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
78041         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
78042         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
78043         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
78044         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
78045         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
78046         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
78047         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
78048         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
78049         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
78050         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
78051         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
78052         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
78053         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
78054         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
78055         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
78056         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
78057         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
78058         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
78059         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
78060         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
78061         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
78062         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
78063         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
78064         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
78065         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
78066         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
78067         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
78068         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
78069         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
78070         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
78071         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
78072         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
78073         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
78074         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
78075         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
78076         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
78077         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
78078         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
78079         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
78080         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
78081         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
78082         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
78083         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
78084         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
78085         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
78086         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
78087         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
78088         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
78089         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
78090         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
78091         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
78092         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
78093         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
78094         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
78095         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
78096         Require >= 2.
78097         (FLT_ROUNDS): Expect as macro, not constant.
78098         (FLT_MANT_DIG): Use macro-int-constant.
78099         (DBL_MANT_DIG): Likewise.
78100         (LDBL_MANT_DIG): Likewise.
78101         (FLT_DIG): Likewise.
78102         (DBL_DIG): Likewise.
78103         (LDBL_DIG): Likewise.
78104         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
78105         (DBL_MIN_EXP): Likewise.
78106         (LDBL_MIN_EXP): Likewise.
78107         (FLT_MAX_EXP): Use macro-int-constant.
78108         (DBL_MAX_EXP): Likewise.
78109         (LDBL_MAX_EXP): Likewise.
78110         (FLT_MAX_10_EXP): Likewise.
78111         (DBL_MAX_10_EXP): Likewise.
78112         (LDBL_MAX_10_EXP): Likewise.
78113         (FLT_MAX): Use macro-constant.
78114         (DBL_MAX): Likewise.
78115         (LDBL_MAX): Likewise.
78116         (FLT_EPSILON): Use macro-constant.  Give upper bound.
78117         (DBL_EPSILON): Likewise.
78118         (LDBL_EPSILON): Likewise.
78119         (FLT_MIN): Likewise.
78120         (DBL_MIN): Likewise.
78121         (LDBL_MIN): Likewise.
78122         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
78123         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
78124         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
78125         [ISO11] (FLT_HAS_SUBNORM): Likewise.
78126         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
78127         [ISO11] (DBL_DECIMAL_DIG): Likewise.
78128         [ISO11] (FLT_DECIMAL_DIG): Likewise.
78129         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
78130         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
78131         [ISO11] (FLT_TRUE_MIN): Likewise.
78132         [ISO11] (LDBL_TRUE_MIN): Likewise.
78133         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78134         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
78135         (SCHAR_MIN): Use macro-int-constant.  Specify type.
78136         (SCHAR_MAX): Likewise.
78137         (UCHAR_MAX): Likewise.
78138         (CHAR_MIN): Likewise.
78139         (CHAR_MAX): Likewise.
78140         (MB_LEN_MAX): Use macro-int-constant.
78141         (SHRT_MIN): Use macro-int-constant.  Specify type.
78142         (SHRT_MAX): Likewise.
78143         (USHRT_MAX): Likewise.
78144         (INT_MAX): Likewise.
78145         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
78146         bound negative.
78147         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78148         bound with "U".
78149         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78150         bound with "L".
78151         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
78152         bound negative.  Suffix upper bound with "L".
78153         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78154         bound with "UL".
78155         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
78156         Specify type.
78157         [C99-based standards] (LLONG_MAX): Likewise.
78158         [C99-based standards] (ULLONG_MAX): Likewise.
78159         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
78160         == 0.
78161         [ISO11] (max_align_t): Require type.
78162         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78163
78164         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
78165         from $CFLAGS, without defining away __attribute__ calls.
78166         (checknamespace): Use $CFLAGS_namespace.
78167
78168         * conform/conformtest.pl (@keywords): Only include C99 keywords
78169         for standards based on C99 or C11.
78170
78171         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
78172         Disable tests.
78173         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
78174         UNIX98]: Likewise.
78175
78176         * conform/conformtest.pl: Handle "macro-int-constant" and test for
78177         usability of symbols in #if.
78178
78179         * conform/conformtest.pl: If macro or constant types start
78180         "promoted:", expect the symbol to be of the following type
78181         promoted by the integer promotions.
78182
78183         * conform/conformtest.pl: Parse all "constant" and "macro" lines
78184         in one place.  Also handle "macro-constant".
78185
78186         * conform/conformtest.pl: Only accept expected macro values with
78187         "==".  Parse all "macro" lines in one place.
78188         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
78189
78190         * conform/conformtest.pl: Handle braced types on "constant" lines
78191         instead of handling "typed-constant".
78192         * conform/data/signal.h-data: Use "constant" instead of
78193         "typed-constant".
78194
78195         * conform/conformtest.pl: Handle "optional-" at start of lines in
78196         one place rather than duplicating several cases.  Handle each
78197         format of "macro" line with initial "optional-".
78198
78199         * conform/conformtest.pl: Only accept expected constant or
78200         optional-constant values with "==".  Parse all "constant" lines in
78201         one place.  Parse all "optional-constant" lines in one place.
78202         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
78203         * conform/data/fmtmsg.h-data: Likewise.
78204         * conform/data/netinet/in.h-data: Likewise.
78205         * conform/data/tar.h-data: Likewise.
78206         * conform/data/limits.h-data: Use "==" form on "constant" and
78207         "optional-constant" lines.
78208
78209         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
78210         Use -std=c99 for XOPEN2K.
78211         (@knownproblems): Remove.
78212         (newtoken): Don't check %isknown.
78213
78214         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
78215         Do not expect macro.
78216         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
78217         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
78218         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
78219         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
78220         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
78221         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
78222         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
78223         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
78224         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
78225         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
78226         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
78227         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
78228         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
78229         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
78230         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
78231         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
78232         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
78233         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
78234         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
78235         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
78236         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
78237         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
78238         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
78239         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
78240         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
78241         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
78242         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
78243         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
78244         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
78245         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
78246         [XPG3] (acosh): Likewise.
78247         [XPG3] (asinh): Likewise.
78248         [XPG3] (atanh): Likewise.
78249         [XPG3] (cbrt): Likewise.
78250         [XPG3] (expm1): Likewise.
78251         [XPG3] (ilogb): Likewise.
78252         [XPG3] (log1p): Likewise.
78253         [XPG3] (logb): Likewise.
78254         [XPG3] (nextafter): Likewise.
78255         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
78256         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
78257         [XPG3] (remainder): Likewise.
78258         [XPG3] (rint): Likewise.
78259         [XPG3 || XPG4 || UNIX98] (round): Likewise.
78260         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
78261         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
78262         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
78263         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
78264         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
78265         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
78266         [UNIX98 || XOPEN2K] (scalb): Expect.
78267         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
78268         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
78269         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
78270         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
78271         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
78272         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
78273         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
78274         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
78275         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
78276         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
78277         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
78278         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
78279         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
78280         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
78281         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
78282         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
78283         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
78284         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
78285         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
78286         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
78287         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
78288         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
78289         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
78290         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
78291         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
78292         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
78293         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
78294         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
78295         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
78296         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
78297         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
78298         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
78299         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
78300         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
78301         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
78302         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
78303         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
78304         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
78305         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
78306         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
78307         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
78308         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
78309         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
78310         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
78311         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
78312         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
78313         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
78314         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
78315         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
78316         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
78317         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
78318         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
78319         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
78320         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
78321         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
78322         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
78323         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
78324         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
78325         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
78326         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
78327         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
78328         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
78329         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
78330         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
78331         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
78332         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
78333         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
78334         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
78335         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
78336         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
78337         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
78338         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
78339         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
78340         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
78341         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
78342         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
78343         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
78344         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
78345         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
78346         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
78347         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
78348         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
78349         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
78350         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
78351         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
78352         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
78353         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
78354         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
78355         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
78356         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
78357         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
78358         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
78359         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
78360         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
78361         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
78362         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
78363         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
78364         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
78365         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
78366         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
78367         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
78368         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
78369         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
78370         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
78371         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
78372         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
78373         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
78374         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
78375         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
78376         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
78377         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
78378         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
78379         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
78380         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
78381         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
78382         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
78383         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
78384         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
78385         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
78386         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
78387         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
78388         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
78389         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
78390         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
78391         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
78392         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
78393         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
78394         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
78395         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
78396         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
78397         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
78398         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
78399         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
78400         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
78401         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
78402         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
78403         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
78404
78405         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
78406         _XOPEN_SOURCE_EXTENDED for XPG4.
78407
78408         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
78409
78410         * Makeconfig (localtime): Remove variable.
78411         (inst_localtime-file): Likewise.
78412
78413 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78414
78415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
78416         Update.
78417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
78418         Update.
78419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
78420         Update.
78421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
78422         Update.
78423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
78424         Update.
78425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
78426         Update.
78427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
78428         Update.
78429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
78430         Update.
78431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78432         Update.
78433
78434 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78435
78436         [BZ #2550]
78437         [BZ #2570]
78438         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
78439         comparisons to determine direction to adjust input.
78440         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
78441         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
78442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
78443         Likewise.
78444         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
78445         Likewise.
78446         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
78447         Likewise.
78448         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
78449         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
78450         Likewise.
78451         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
78452         Likewise.
78453         * math/libm-test.inc (nexttoward_test): Add more tests.
78454
78455 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78456
78457         [BZ #14040]
78458         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
78459         in version GLIBC_2.1, not GLIBC_2.0.
78460         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
78461         Likewise.
78462
78463 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
78464
78465         [BZ #13942]
78466         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
78467         (1 - x) * (1 + x).
78468         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78469         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
78470         * math/libm-test.inc (acos_test): Add more tests.
78471         (asin_test): Likewise.
78472         * sysdeps/i386/fpu/libm-test-ulps: Update.
78473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78474
78475         [BZ #14034]
78476         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
78477         of square root.
78478         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
78479         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78480         * math/libm-test.inc (acos_test_tonearest): New function.
78481         (acos_test_towardzero): Likewise.
78482         (acos_test_downward): Likewise.
78483         (acos_test_upward): Likewise.
78484         (asin_test_tonearest): Likewise.
78485         (asin_test_towardzero): Likewise.
78486         (asin_test_downward): Likewise.
78487         (asin_test_upward): Likewise.
78488         (main): Call the new functions.
78489         * sysdeps/i386/fpu/libm-test-ulps: Update.
78490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78491
78492         [BZ #13884]
78493         [BZ #13924]
78494         * math/e_exp10.c: Include <float.h>.
78495         (__ieee754_exp10): Handle underflow here rather than multiplying
78496         large negative argument by M_LN10.
78497         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
78498         of __ieee754_expf.
78499         * math/e_exp10l.c: Include <float.h>.
78500         (__ieee754_exp10l): Handle underflow here rather than multiplying
78501         large negative argument by M_LN10l.
78502         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
78503         spurious overflow exception on underflow.
78504
78505 2012-04-29  Marek Polacek  <polacek@redhat.com>
78506
78507         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
78508         (__fortify_function): New macro.
78509         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
78510         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
78511         __extern_always_inline.
78512         * libio/bits/stdio2.h: Likewise.
78513         * libio/bits/stdio.h: Likewise.
78514         * string/string.h: Likewise.
78515         * string/bits/string3.h: Likewise.
78516         * include/stdio.h: Likewise.
78517         * stdlib/bits/stdlib.h: Likewise.
78518         * stdlib/stdlib.h: Likewise.
78519         * rt/bits/mqueue2.h: Likewise.
78520         * rt/mqueue.h: Likewise.
78521         * posix/bits/unistd.h: Likewise.
78522         * posix/unistd.h: Likewise.
78523         * io/bits/poll2.h: Likewise.
78524         * io/bits/fcntl2.h: Likewise.
78525         * io/fcntl.h: Likewise.
78526         * io/sys/poll.h: Likewise.
78527         * misc/bits/syslog.h: Likewise.
78528         * misc/bits/syslog-ldbl.h: Likewise.
78529         * misc/sys/syslog.h: Likewise.
78530         * socket/bits/socket2.h: Likewise.
78531         * socket/sys/socket.h: Likewise.
78532         * debug/tst-chk1.c: Likewise.
78533         * wcsmbs/bits/wchar2.h: Likewise.
78534         * wcsmbs/bits/wchar-ldbl.h: Likewise.
78535         * wcsmbs/wchar.h: Likewise.
78536
78537 2012-04-29  Andreas Jaeger  <aj@suse.de>
78538
78539         * Makerules (tests): Remove enable-check-abi protection.
78540         (check-abi-warn): Remove.
78541         (check-abi-%): Remove check-abi-warn usage.
78542
78543         * configure.in: Remove check-abi configure option.
78544         * configure: Regenerated.
78545         * config.make.in (enable-check-abi): Remove.
78546
78547 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
78548
78549         [BZ #14033]
78550         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
78551         double functions to double *_finite functions.
78552
78553         [BZ #13941]
78554         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
78555         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
78556         LDBL_MIN_EXP.
78557         * stdio-common/Makefile (tests): Add tst-sprintf3.
78558         * stdio-common/tst-sprintf3.c: New file.
78559
78560         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
78561         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
78562
78563 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78564
78565         * conform/conformtest.pl: Remove duplicate typed-constant
78566         handling.
78567
78568 2012-04-28  David S. Miller  <davem@davemloft.net>
78569
78570         * Makerules (%.abilist): Add vpath on sysdep_dirs.
78571         (check-abi-%): Remove AWK script prerequisite and explicit
78572         abilist directory.
78573         (check-abi): Rewrite to just diff the symlist with the abilist.
78574         (config-tls, config-abi-config): Delete, no longer used.
78575         (update-abi-%): Remove AWK script and explicit abilist directory.
78576         (update-abi): Rewrite to simply compare and conditionally copy the
78577         symlist and the sysdep abilist file.  Remove update-abi-config
78578         checks.
78579         * abilist/ld.abilist: Remove.
78580         * abilist/libBrokenLocale.abilist: Remove.
78581         * abilist/libanl.abilist: Remove.
78582         * abilist/libcrypt.abilist: Remove.
78583         * abilist/libdl.abilist: Remove.
78584         * abilist/librt.abilist: Remove.
78585         * abilist/libthread_db.abilist: Remove.
78586         * abilist/libutil.abilist: Remove.
78587         * scripts/extract-abilist.awk: Remove.
78588         * scripts/merge-abilist.awk: Remove.
78589         * sysdeps/generic/libcidn.abilist: New file.
78590         * sysdeps/generic/libnss_compat.abilist: New file.
78591         * sysdeps/generic/libnss_db.abilist: New file.
78592         * sysdeps/generic/libnss_dns.abilist: New file.
78593         * sysdeps/generic/libnss_files.abilist: New file.
78594         * sysdeps/generic/libnss_hesiod.abilist: New file.
78595         * sysdeps/generic/libnss_nis.abilist: New file.
78596         * sysdeps/generic/libnss_nisplus.abilist: New file.
78597         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
78598         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
78599         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
78600         file.
78601         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
78602         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
78603         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
78604         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
78605         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
78606         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
78607         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
78608         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
78609         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
78610         file.
78611         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
78612         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
78613         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
78614         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
78615         file.
78616         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
78617         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
78618         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
78619         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
78620         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
78621         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
78622         file.
78623         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
78624         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
78625         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
78626         file.
78627         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
78628         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
78629         New file.
78630         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
78631         New file.
78632         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
78633         New file.
78634         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
78635         New file.
78636         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
78637         New file.
78638         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
78639         New file.
78640         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
78641         New file.
78642         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
78643         New file.
78644         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
78645         New file.
78646         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
78647         New file.
78648         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
78649         New file.
78650         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
78651         New file.
78652         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
78653         New file.
78654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
78655         file.
78656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
78657         New file.
78658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
78659         New file.
78660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
78661         file.
78662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
78663         New file.
78664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
78665         New file.
78666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
78667         file.
78668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
78669         New file.
78670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78671         New file.
78672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
78673         New file.
78674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
78675         New file.
78676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
78677         New file.
78678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
78679         New file.
78680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
78681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
78682         file.
78683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
78684         New file.
78685         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
78686         file.
78687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
78688         file.
78689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
78690         file.
78691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
78692         file.
78693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
78694         file.
78695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
78696         New file.
78697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
78698         file.
78699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
78700         file.
78701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
78702         New file.
78703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
78704         file.
78705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
78706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
78707         file.
78708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
78709         New file.
78710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
78711         file.
78712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
78713         file.
78714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
78715         file.
78716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
78717         file.
78718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
78719         file.
78720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
78721         New file.
78722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
78723         file.
78724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
78725         file.
78726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
78727         New file.
78728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
78729         file.
78730         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
78731         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
78732         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
78733         file.
78734         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
78735         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
78736         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
78737         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
78738         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
78739         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
78740         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
78741         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
78742         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
78743         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
78744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
78745         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
78746         file.
78747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
78748         New file.
78749         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
78750         file.
78751         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
78752         file.
78753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
78754         file.
78755         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
78756         file.
78757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
78758         file.
78759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
78760         New file.
78761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
78762         New file.
78763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
78764         file.
78765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
78766         New file.
78767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
78768         file.
78769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
78770         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
78771         file.
78772         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
78773         New file.
78774         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
78775         file.
78776         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
78777         file.
78778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
78779         file.
78780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
78781         file.
78782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
78783         file.
78784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
78785         New file.
78786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
78787         New file.
78788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
78789         file.
78790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
78791         New file.
78792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
78793         file.
78794
78795 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78796
78797         * conform/conformtest.pl: Fix typo in handling typed-constant from
78798         allow-header.
78799
78800 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78801
78802         * README: Cut down references to pre-2.6 Linux kernels and
78803         Linuxthreads.  Update lists of configurations in libc and ports
78804         and sort alphabetically.  Say "or newer" with Linux kernel version
78805         requirements.
78806
78807         * config.h.in [IS_IN_build]: Allow compiling without optimization.
78808
78809 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
78810
78811         [BZ #887]
78812         * math/libm-test.inc (logb_test_downward): New test to expose
78813         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
78814         rounding mode.
78815
78816 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78817
78818         [BZ #14027]
78819         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
78820         to be done.
78821         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
78822         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
78823
78824 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
78825
78826         * sysdeps/unix/i386/brk.S: Remove file.
78827         * sysdeps/unix/i386/dl-brk.S: Likewise.
78828         * sysdeps/unix/i386/pipe.S: Likewise.
78829         * sysdeps/unix/i386/sigreturn.S: Likewise.
78830         * sysdeps/unix/i386/syscall.S: Likewise.
78831         * sysdeps/unix/i386/vfork.S: Likewise.
78832         * sysdeps/unix/i386/wait.S: Likewise.
78833
78834         * sysdeps/unix/common/tcsendbrk.c: Move to ...
78835         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
78836
78837         * configure.in (arm*-none*): Do not allow without
78838         --enable-hacker-mode.
78839         (netbsd*): Remove case setting base_os.
78840         (386bsd*): Likewise.
78841         (freebsd*): Likewise.
78842         (bsdi*): Likewise.
78843         (osf*): Likewise.
78844         (sunos*): Likewise.
78845         (ultrix*): Likewise.
78846         (newsos*): Likewise.
78847         (dynix*): Likewise.
78848         (*bsd*): Likewise.
78849         (sysv*): Likewise.
78850         (isc*): Likewise.
78851         (esix*): Likewise.
78852         (sco*): Likewise.
78853         (minix*): Likewise.
78854         (irix4*): Likewise.
78855         (irix6*): Likewise.
78856         (solaris[2-9]*): Likewise.
78857         (none): Likewise.
78858         * configure: Regenerated.
78859
78860 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78861
78862         [BZ #11521]
78863         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
78864         overflow or cancellation in calculating denominator.
78865         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
78866         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
78867         down expression to avoid unexpected rounding in newer GCCs.
78868         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
78869
78870 2012-04-26  David S. Miller  <davem@davemloft.net>
78871
78872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
78873         long-double compat symbols.
78874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
78875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
78876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
78877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
78878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
78879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
78880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
78881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
78882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
78883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
78884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
78885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
78886         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
78887
78888 2012-04-25  David S. Miller  <davem@davemloft.net>
78889
78890         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
78891         HWCAP_* values only after the memory barriers have been defined.
78892         (atomic_full_barrier): Define.
78893         (atomic_read_barrier): Define.
78894         (atomic_write_barrier): Define.
78895
78896 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
78897
78898         * shlib-versions: Add libgcc_s version information.
78899         * sysdeps/generic/libgcc_s.h: Remove.
78900         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
78901         libgcc_s.h.
78902         * sysdeps/gnu/unwind-resume.c: Likewise.
78903         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
78904
78905 2012-04-25  David S. Miller  <davem@davemloft.net>
78906
78907         * sysdeps/unix/sparc/brk.S: Delete.
78908         * sysdeps/unix/sparc/dl-brk.S: Delete.
78909         * sysdeps/unix/sparc/pipe.S: Delete.
78910         * sysdeps/unix/sparc/sysdep.S: Delete.
78911         * sysdeps/unix/sparc/sysdep.h: Delete.
78912         * sysdeps/unix/sparc/vfork.S: Delete.
78913         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
78914         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
78915         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
78916         (ret_ERRVAL, r0, r1, MOVE): Define.
78917         (JUMPTARGET): Remove.
78918         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
78919         sysdeps/unix/sparc/sysdep.h
78920         (ENTRY, END): Remove.
78921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78922
78923 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
78924
78925         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
78926         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
78927         -DIS_IN_build.
78928
78929         * timezone/README: Update upstream location and email address for
78930         tzcode and tzdata.
78931         * timezone/zdump.c: Update from tzcode 2012b.
78932         * timezone/zic.c: Likewise.
78933
78934         * configure.in (libc_cv_as_needed): Remove test.
78935         * configure: Regenerated.
78936         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
78937         conditional definition.
78938         [$(have-as-needed) != yes] (no-as-needed): Likewise.
78939         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
78940         * config.make.in (have-as-needed): Remove variable.
78941
78942 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
78943             Paul Pluzhnikov  <ppluzhnikov@google.com>
78944
78945         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
78946         strings correctly.
78947
78948 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
78949
78950         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
78951         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
78952         * sysdeps/sh/strlen.S: Likewise.
78953
78954 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78955
78956         * sysdeps/unix/fork.S: Remove file.
78957         * sysdeps/unix/i386/fork.S: Likewise.
78958         * sysdeps/unix/sparc/fork.S: Likewise.
78959
78960         * sysdeps/unix/system.c: Remove file.
78961         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
78962
78963         * sysdeps/unix/getegid.S: Remove file.
78964         * sysdeps/unix/geteuid.S: Likewise.
78965
78966 2012-04-24  Roland McGrath  <roland@hack.frob.com>
78967
78968         * scripts/check-localplt.awk: New file.
78969         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
78970         of diff.
78971         * scripts/data/localplt-generic.data: Add a comment.
78972
78973         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
78974         NODE when __dir_mkfile failed.
78975         * sysdeps/mach/hurd/symlinkat.c: Likewise.
78976         Reported by Ludovic Courtès <ludo@gnu.org>.
78977
78978 2012-04-24  Andreas Jaeger  <aj@suse.de>
78979
78980         * Makerules (common-clean): Also remove gen-as-const-headers
78981         files.
78982
78983 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78984
78985         * Makerules (native-compile): Do not change working directory for
78986         build.  Use $(OUTPUT_OPTION) in command.
78987         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
78988
78989 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78990
78991         [BZ #13886]
78992         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
78993         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
78994         * math/libm-test.inc (floor_test): Add more tests.
78995         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
78996
78997 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78998
78999         * sysdeps/unix/getdents.c: Remove file.
79000         * sysdeps/unix/sysv/getdents.c: Likewise.
79001         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
79002
79003         * sysdeps/unix/syscalls.list (madvise): Add syscall from
79004         sysdeps/unix/mman/syscalls.list.
79005         (mmap): Likewise.
79006         (mprotect): Likewise.
79007         (msync): Likewise.
79008         (munmap): Likewise.
79009         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
79010         * sysdeps/unix/mman/syscalls.list: Remove.
79011         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
79012
79013         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
79014         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
79015         * configure: Regenerated.
79016         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
79017         $(libgcc_s_suffix).
79018         * config.make.in (libgcc_s_suffix): Remove variable.
79019
79020 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
79021
79022         * sysdeps/unix/sysv/gethostname.c: Move to ...
79023         * sysdeps/posix/gethostname.c: ... here.
79024
79025         * sysdeps/unix/execve.S: Remove file.
79026
79027         * sysdeps/unix/_exit.S: Remove file.
79028
79029 2012-04-23  Andreas Jaeger  <aj@suse.de>
79030
79031         [BZ #13739]
79032         * manual/Makefile: Remove make dist support, there's no
79033         need for a stand-alone documentation tar ball.
79034         (TEXI2DVI): Define always, it's not in Makeconfig.
79035         (dist): Removed.
79036         (tar-it): Removed.
79037         (edition): Removed.
79038         (glibc-doc-$(edition).tar): Removed
79039         (%.Z): Removed.
79040         (%.gz): Removed.
79041         (%.uu): Removed.
79042         (ETAGS): Remove, it's in Makeconfig.
79043         (move-if-change): Remove, it's in Makeconfig.
79044
79045 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         [BZ #13970]
79048         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
79049         (strtod, strtof, strtold, strtol, strtoul, strtoq)
79050         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
79051         (strtod_l, strtof_l, strtold_l): Remove __wur.
79052         It is not necessarily an error to ignore strtol's return value.
79053         One can reliably look at the stored endptr to decide whether
79054         the number had valid syntax.
79055
79056 2012-04-21  Andreas Jaeger  <aj@suse.de>
79057
79058         [BZ #13739]
79059         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
79060
79061 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
79062
79063         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
79064         * sysdeps/unix/sysv/Versions: Remove file.
79065
79066 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
79067
79068         [BZ #13927]
79069         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79070
79071 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
79072
79073         [BZ #7064]
79074         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
79075         version from __vm86.
79076
79077 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
79078
79079         * sysdeps/unix/common/lxstat.c: Remove file.
79080         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
79081
79082         * sysdeps/unix/sysv/Makefile: Remove file.
79083
79084         * sysdeps/unix/sysv/direct.h: Remove file.
79085
79086         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
79087         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
79088         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
79089         * sysdeps/unix/sysv/bits/signum.h: Likewise.
79090         * sysdeps/unix/sysv/bits/stat.h: Likewise.
79091         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
79092         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
79093
79094         * sysdeps/unix/sysv/setrlimit.c: Remove file.
79095
79096         * sysdeps/unix/xmknod.c: Remove file.
79097         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
79098
79099         * sysdeps/unix/sysv/settimeofday.c: Remove file.
79100
79101         * sysdeps/unix/sysv/i386/time.S: Remove file.
79102
79103         * sysdeps/unix/fxstat.c: Remove file.
79104         * sysdeps/unix/xstat.c: Likewise.
79105         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
79106
79107         * sysdeps/unix/sysv/sigaction.c: Remove file.
79108
79109         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
79110         (sysdep_headers): Remove variable.
79111         [termio.h not in sysdep_headers] (generated): Likewise.
79112         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
79113         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
79114         * sysdeps/unix/sysv/tcdrain.c: Likewise.
79115         * sysdeps/unix/sysv/tcflow.c: Likewise.
79116         * sysdeps/unix/sysv/tcflush.c: Likewise.
79117         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
79118         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
79119         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
79120         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
79121         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
79122
79123         * sysdeps/unix/siglist.c: Remove file.
79124
79125         * sysdeps/unix/getppid.S: Remove file.
79126
79127         * sysdeps/unix/mkdir.c: Remove file.
79128         * sysdeps/unix/rmdir.c: Likewise.
79129
79130 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
79131
79132         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
79133         ERR_MAX value.
79134         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
79135         errlist-compat value.
79136
79137 2012-04-18  David S. Miller  <davem@davemloft.net>
79138
79139         * sysdeps/generic/memcopy.h (reg_char): Delete.
79140         * debug/strcat_chk.c: Use char, not reg_char.
79141         * debug/strcpy_chk.c: Likewise.
79142         * debug/strncat_chk.c: Likewise.
79143         * debug/strncpy_chk.c: Likewise.
79144         * string/memchr.c: Likewise.
79145         * string/memrchr.c: Likewise.
79146         * string/rawmemchr.c: Likewise.
79147         * string/strcat.c: Likewise.
79148         * string/strchr.c: Likewise.
79149         * string/strchrnul.c: Likewise.
79150         * string/strcmp.c: Likewise.
79151         * string/strcpy.c: Likewise.
79152         * string/strncat.c: Likewise.
79153         * string/strncmp.c: Likewise.
79154         * string/strncpy.c: Likewise.
79155
79156 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79157
79158         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
79159         __builtin_memcopy is called when src and dest ranges are known to not
79160         overlap.
79161
79162 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79163
79164         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
79165         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
79166         fwd_align_merge macro call.
79167         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
79168         bwd_align_merge macro call.
79169         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79170
79171 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79172
79173         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
79174         bwd_align_merge macros.
79175         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
79176         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
79177         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79178
79179 2012-04-18  David S. Miller  <davem@davemloft.net>
79180
79181         * sysdeps/sparc/sparc64/memcopy.h: Delete.
79182
79183 2012-04-18  Andreas Jaeger  <aj@suse.de>
79184
79185         [BZ #6794]
79186         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
79187         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
79188         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79189
79190         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
79191         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
79192         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79193
79194         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
79195         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
79196         Adjust for changed ldbl-128 files.
79197
79198         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
79199         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
79200         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79201
79202 2012-04-17  David S. Miller  <davem@davemloft.net>
79203
79204         * sysdeps/sparc/sparc32/memcopy.h: Delete.
79205
79206 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
79207
79208         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
79209         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
79210         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
79211         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
79212         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
79213         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
79214
79215 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79216
79217         [BZ #6794]
79218         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
79219         * math/libm-test.inc: Add ilogb errno and exception tests.
79220         * math/w_ilogb.c: New file: ilogb wrapper.
79221         * math/w_ilogbf.c: New file: ilogbf wrapper.
79222         * math/w_ilogbl.c: New file: ilogbl wrapper.
79223         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
79224         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
79225         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
79226         exception being thrown with 0.0 as argument.
79227         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
79228         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
79229         exception being thrown with 0.0 as argument.
79230         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
79231         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79232         exception being thrown with 0.0 as argument.
79233         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
79234         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79235         exception being thrown with 0.0 as argument.
79236         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
79237         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
79238         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
79239         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
79240         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
79241         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
79242         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
79243         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
79244         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
79245
79246 2012-04-17  Petr Baudis  <pasky@ucw.cz>
79247
79248         * include/sys/uio.h: Change __vector to __iovec to avoid clash
79249         with altivec.
79250
79251 2012-04-16  Marek Polacek  <polacek@redhat.com>
79252
79253         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
79254
79255 2012-04-16  Marek Polacek  <polacek@redhat.com>
79256
79257         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
79258         operands of fdivp instruction.
79259
79260 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79261
79262         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
79263         * elf/tst-auditmod3b.c: Likewise.
79264         * elf/tst-auditmod4b.c: Likewise.
79265         * elf/tst-auditmod5b.c: Likewise.
79266         * elf/tst-auditmod6b.c: Likewise.
79267         * elf/tst-auditmod6c.c: Likewise.
79268         * elf/tst-auditmod7b.c: Likewise.
79269         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
79270         * sysdeps/x86_64/preconfigure.in: Likewise.
79271         * sysdeps/x86_64/preconfigure: Regenerated.
79272
79273 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79274
79275         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
79276         __ILP32__.
79277
79278 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
79279
79280         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
79281         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
79282
79283 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
79284
79285         [BZ #13973]
79286         * locale/iso-639.def: Fix gl language name. Spotted by
79287         Yaron Shahrabani.
79288
79289 2012-04-12  Roland McGrath  <roland@hack.frob.com>
79290
79291         [BZ #2074]
79292         * libio/libio.h (__io_write_fn): Update comment.
79293
79294 2012-04-12  Petr Baudis  <pasky@ucw.cz>
79295
79296         [BZ #2074]
79297         * stdio.texi (Hook Functions): The user provided writer function
79298         is not allowed to return -1.
79299
79300 2012-04-11  David S. Miller  <davem@davemloft.net>
79301
79302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79303
79304 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
79305
79306         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
79307         Add a leading slash to rtkaio.
79308
79309 2012-04-11  Jim Meyering  <meyering@redhat.com>
79310
79311         [BZ #11959]
79312         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
79313         It is not necessarily an error to ignore fwrite's return
79314         value.  One can reliably use ferror to test for errors after
79315         the fact.
79316
79317 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79318
79319         * bits/types.h (__snseconds_t): New type.
79320         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
79321
79322         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
79323         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79324         (__SNSECONDS_T_TYPE): Likewise.
79325         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79326         (__SNSECONDS_T_TYPE): Likewise.
79327         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79328         (__SNSECONDS_T_TYPE): Likewise.
79329
79330 2012-04-10  Andreas Jaeger  <aj@suse.de>
79331
79332         [BZ #2636]
79333         * manual/time.texi (Processor Time): Return type of times is
79334         elapsed real time since an arbitrary point in the past.
79335         (CPU Time): Move CLK_TCK from here...
79336         (Processor Time): ...to here.  Correct description.
79337         * manual/conf.texi (Constants for Sysconf): Correct description of
79338         _SC_CLK_TCK.
79339
79340 2012-04-10  David S. Miller  <davem@davemloft.net>
79341
79342         [BZ #13967]
79343         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
79344         where the is a gap between DT_REL(A) and DT_JMPREL.
79345
79346 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79347
79348         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
79349         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79350         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79351
79352 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
79353
79354         * elf/dl-support.c (_dl_inhibit_cache): New variable.
79355         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79356         (dl_main): Handle --inhibit-cache.
79357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
79358         _dl_inhibit_cache.
79359         * elf/dl-load.c (_dl_map_object): Use it.
79360         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
79361
79362 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79363
79364         [BZ #13872]
79365         * sysdeps/i386/fpu/e_powl.S (p78): New object.
79366         (__ieee754_powl): Saturate large exponents rather than testing for
79367         overflow of y*log2(x).
79368         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79369         * math/libm-test.inc (pow_test): Do not permit spurious overflow
79370         exceptions.
79371
79372         [BZ #11521]
79373         * math/s_ctan.c: Include <float.h>.
79374         (__ctan): Avoid internal overflow or cancellation in calculating
79375         denominator.
79376         * math/s_ctanf.c: Likewise.
79377         * math/s_ctanl.c: Likewise.
79378         * math/s_ctanh.c: Likewise.
79379         * math/s_ctanhf.c: Likewise.
79380         * math/s_ctanhl.c: Likewise.
79381         * math/libm-test.inc (ctan_test): Add more tests.
79382         (ctanh_test): Likewise.
79383         * sysdeps/i386/fpu/libm-test-ulps: Update.
79384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79385
79386 2012-04-09  Andreas Jaeger  <aj@suse.de>
79387
79388         [BZ #6894]
79389         * manual/filesys.texi (Directory Entries): Mention that d_namlen
79390         is an optional BSD extension.
79391
79392         [BZ #10254]
79393         * manual/stdio.texi (Opening Streams): Document additional fopen
79394         parameters.
79395
79396 2012-04-09  Roland McGrath  <roland@hack.frob.com>
79397
79398         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
79399         %eax without telling the compiler.
79400
79401 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
79402
79403         [BZ # 13963]
79404         * manual/install.texi: Use sourceware.org.
79405
79406 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79407
79408         [BZ #13873]
79409         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
79410         (__ieee754_pow): Generate overflow and underflow using huge*huge
79411         and tiny*tiny rather than just returning constant infinity or zero
79412         for large exponents.
79413         * math/libm-test.inc (pow_test): Require overflow exceptions for
79414         applicable cases of large exponents.
79415
79416         [BZ #706]
79417         * sysdeps/i386/fpu/e_pow.S (p10): New object.
79418         (__ieee754_pow): Use iterative multiplication algorithm only for
79419         integer exponents with absolute value below 1024.  Check for odd
79420         integer exponents when using algorithm for real exponents.
79421         * math/libm-test.inc (pow_test): Add more tests.
79422         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79423
79424 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
79425
79426         [BZ #13705]
79427         * math/libm-test.inc (exp_test): Do not allow overflow exception
79428         on underflow test.
79429
79430 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
79431
79432         [BZ #13705]
79433         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
79434         instead of __kernel_standard_f.
79435
79436 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
79437
79438         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
79439         * sysdeps/x86_64/memset_chk.S: Likewise.
79440
79441 2012-04-08  Andreas Jaeger  <aj@suse.de>
79442
79443         [BZ #10153]
79444         * manual/startup.texi (Environment Access): Describe return value
79445         for putenv and setenv.
79446
79447         [BZ #6895]
79448         * manual/filesys.texi (Directory Entries): Add description for
79449         DT_LNK.
79450
79451         [BZ #6890]
79452         * manual/filesys.texi (Directory Entries): Clarify that it's file
79453         system not operating system in the description of DT_UNKNOWN.
79454
79455         [BZ #6578]
79456         * manual/syslog.texi (closelog): Fix reference, it's openlog.
79457
79458 2012-04-08  Stephen Compall  <s11@member.fsf.org>
79459
79460         [BZ #6649]
79461         * manual/llio.texi (Opening and Closing Files): Add cross
79462         reference to explain mode argument.
79463
79464 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
79465
79466         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
79467         * sysdeps/x86_64/memset_chk.S: Likewise.
79468
79469 2012-04-07  David S. Miller  <davem@davemloft.net>
79470
79471         * elf/elf.h (R_SPARC_WDISP10): Define.
79472         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
79473         R_SPARC_SIZE32.
79474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
79475         R_SPARC_SIZE64 and R_SPARC_H34.
79476
79477 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
79478
79479         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
79480         conditions and remove no longer applicable assertion.
79481
79482 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79483
79484         * bits/byteswap.h: Include <features.h>.
79485         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79486         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79487
79488 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79489
79490         * bits/byteswap.h (__bswap_16): Removed.
79491         Include <bits/byteswap-16.h> to get __bswap_16.
79492         * sysdeps/i386/bits/byteswap.h: Likewise.
79493         * sysdeps/s390/bits/byteswap.h: Likewise.
79494         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79495         * bits/byteswap-16.h: New file.
79496         * sysdeps/i386/bits/byteswap-16.h: Likewise.
79497         * sysdeps/s390/bits/byteswap-16.h: Likewise.
79498         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
79499         * string/Makefile (headers): Add bits/byteswap-16.h.
79500
79501 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
79502
79503         [BZ #13895]
79504         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
79505         extra indirection.
79506         * nss/Makefile (tests-static, tests): Add tst-nss-static.
79507         * nss/tst-nss-static.c: New.
79508
79509 2012-04-06  Robert Millan  <rmh@gnu.org>
79510
79511         [BZ #6486]
79512         * manual/llio.texi (File Position Primitive): lseek
79513         refers to WHENCE when it really means OFFSET.
79514
79515 2012-04-06  Andreas Jaeger  <aj@suse.de>
79516
79517         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
79518         strncmp declarations.
79519
79520         * abilist/libc.abilist: Add __poll and __ppoll.
79521
79522 2012-04-05  David S. Miller  <davem@davemloft.net>
79523
79524         * scripts/check-local-headers.sh: Accept a host triplet in the
79525         path matched by the exclude regexp.
79526
79527         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
79528         definition.
79529         * sysdeps/powerpc/powerpc32/dl-machine.h
79530         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
79531         * sysdeps/s390/s390-32/dl-machine.h
79532         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79533         * sysdeps/sparc/sparc32/dl-machine.h
79534         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79535         * sysdeps/sparc/sparc64/dl-machine.h
79536         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79537
79538         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
79539         lazy binding.
79540         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
79541         undefined symbol errors.
79542
79543         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
79544         DT_NEEDED entries.
79545
79546 2012-04-05  Michael Matz  <matz@suse.de>
79547
79548         [BZ #13592]
79549         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
79550
79551 2012-04-05  Andreas Jaeger  <aj@suse.de>
79552
79553         [BZ #13908]
79554         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
79555         comment.
79556
79557 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79558
79559         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
79560         which ROUND is no valid rounding mode.
79561
79562 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79563
79564         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
79565         read again.
79566         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
79567
79568 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79569
79570         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
79571         an exception using FPU order intentionally.
79572
79573 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79574
79575         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
79576         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
79577         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
79578         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
79579
79580 2012-04-05  Simon Josefsson  <simon@josefsson.org>
79581
79582         [BZ #12340]
79583         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
79584         EINVAL when BUFLEN is too smal.
79585
79586 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
79587
79588         [BZ #13553]
79589         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
79590         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
79591
79592 2012-04-03  Andreas Jaeger  <aj@suse.de>
79593
79594         [BZ #13938]
79595         * manual/setjmp.texi (System V contexts): Fix sentence.
79596
79597         [BZ #13926]
79598         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
79599         New macro for this case.
79600         [!__GNUC__] (__bswap_64): New inline function for this case.
79601         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79602         * bits/byteswap.h: Likewise.
79603         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
79604         ull, guard with __GLIBC_HAVE_LONG_LONG.
79605
79606         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
79607         __GLIBC_HAVE_LONG_LONG.
79608
79609         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
79610         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
79611
79612 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
79613
79614         [BZ #13691]
79615         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
79616         inptr and inend, rather than using last_ch.
79617
79618 2012-04-02  David S. Miller  <davem@davemloft.net>
79619
79620         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
79621         * stdio-common/printf-parse.h (read_int): Change return type to
79622         'int', return -1 on INT_MAX overflow.
79623         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
79624         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
79625         overflows INT_MAX.  Check for overflow of in-format-string precision
79626         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
79627         SIZE_MAX not INT_MAX for integer overflow test.
79628         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
79629         skip the construct in the format string but do not record anything.
79630         * stdio-common/bug22.c: Adjust to test both width/prevision
79631         INT_MAX overflow as well as total length INT_MAX overflow.  Check
79632         explicitly for proper errno values.
79633
79634 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
79635
79636         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
79637         CHAR_MAX.
79638         * string/test-strcmp.c [! WIDE]: Likewise.
79639         * time/tst-mktime2.c: Likewise for INT_MAX.
79640         * string/test-string.h: #include <sys/param.h> for MIN.
79641
79642         * csu/init-first.c (__libc_init_first): Call __ctype_init.
79643         * sysdeps/i386/init-first.c (init): Likewise.
79644         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
79645         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
79646         * sysdeps/sh/init-first.c (init): Likewise.
79647
79648 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
79649
79650         * po/ru.po: Update from translation team.
79651         * po/vi.po: Likewise.
79652
79653 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
79654
79655         * resolv/nss_dns/dns-host.c: Merge copyright years.
79656
79657 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79658
79659         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
79660         Optimize memcpy with prefetch if
79661         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
79662         src, dst pointers have unequal 16 byte alignments.
79663
79664 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
79665
79666         [BZ #13928]
79667         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
79668         from a CNAME entry and return the minimum ttl for the query.
79669         (gaih_getanswer_slice): Likewise.
79670
79671 2012-03-30  Jeff Law  <law@redhat.com>
79672
79673         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
79674         due to long keys.
79675         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
79676         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
79677
79678         * resolv/nss_dns/dns-host.c: Update copyright year.
79679
79680 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
79681
79682         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
79683         requests to save a system call.  Fix check that all bytes are sent.
79684
79685         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
79686         comments for sendmmsg.
79687
79688 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79689
79690         [BZ #13691]
79691         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
79692         with only 1 character between 0x0041 and 0x01b0.
79693         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
79694         * wcsmbs/tst-mbsnrtowcs.c: New file.
79695
79696 2012-03-29  David S. Miller  <davem@davemloft.net>
79697
79698         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
79699         small copies by hand.
79700
79701 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
79702
79703         [BZ #13761]
79704         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
79705         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
79706         group memberships.
79707
79708 2012-03-28  David S. Miller  <davem@davemloft.net>
79709
79710         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
79711         that branches into memcpy.
79712         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
79713         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
79714         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
79715         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
79716         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
79717         bits.
79718         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
79719         implementation too.
79720         * sysdeps/sparc/mempcpy.S: New file.
79721
79722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
79723         the IFUNC routine in the libc case.
79724         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
79725
79726         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
79727         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
79728         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
79729         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
79730         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
79731         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
79732         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
79733         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
79734
79735         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
79736         loop to 256 bytes instead of 64 bytes and fix test signedness.
79737
79738         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
79739         * sysdeps/sparc/sparc32/Makefile: rather than here...
79740         * sysdeps/sparc/sparc64/Makefile: and here.
79741
79742 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
79743
79744         * malloc/mallocbug.c: Avoid warnings about unused variables.
79745
79746 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
79747
79748         [BZ #13760]
79749         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
79750         in the right place. Discard and retry query if response is
79751         larger than input buffer size.
79752
79753 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
79754
79755         [BZ #369]
79756         [BZ #2678]
79757         [BZ #3866]
79758         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
79759         x for large integer exponent.
79760         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
79761         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
79762         sign of result as needed afterwards.
79763         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
79764         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
79765         result for underflowing pow the same as for overflow.
79766         (__kernel_standard_l): Handle powl overflow and underflow here
79767         rather than calling __kernel_standard.
79768         * math/libm-test.inc (pow_test): Add more tests.
79769
79770         [BZ #3868]
79771         [BZ #13879]
79772         [BZ #13910]
79773         [BZ #13911]
79774         [BZ #13912]
79775         [BZ #13913]
79776         [BZ #13915]
79777         [BZ #13916]
79778         [BZ #13917]
79779         [BZ #13918]
79780         [BZ #13919]
79781         [BZ #13920]
79782         [BZ #13921]
79783         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
79784         * sysdeps/ieee754/k_standard.c: Include <float.h>.
79785         (__kernel_standard_l): New function.
79786         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
79787         __kernel_standard.
79788         * math/w_acosl.c (__acosl): Likewise.
79789         * math/w_asinl.c (__asinl): Likewise.
79790         * math/w_atan2l.c (__atan2l): Likewise.
79791         * math/w_atanhl.c (__atanhl): Likewise.
79792         * math/w_coshl.c (__coshl): Likewise.
79793         * math/w_exp10l.c (__exp10l): Likewise.
79794         * math/w_exp2l.c (__exp2l): Likewise.
79795         * math/w_fmodl.c (__fmodl): Likewise.
79796         * math/w_hypotl.c (__hypotl): Likewise.
79797         * math/w_j0l.c (__j0l, __y0l): Likewise.
79798         * math/w_j1l.c (__j1l, __y1l): Likewise.
79799         * math/w_jnl.c (__jnl, __ynl): Likewise.
79800         * math/w_lgammal.c (__lgammal): Likewise.
79801         * math/w_log10l.c (__log10l): Likewise.
79802         * math/w_log2l.c (__log2l): Likewise.
79803         * math/w_logl.c (__logl): Likewise.
79804         * math/w_powl.c (__powl): Likewise.
79805         * math/w_remainderl.c (__remainderl): Likewise.
79806         * math/w_scalbl.c (sysv_scalbl): Likewise.
79807         * math/w_sinhl.c (__sinhl): Likewise.
79808         * math/w_sqrtl.c (__sqrtl): Likewise.
79809         * math/w_tgammal.c (__tgammal): Likewise.
79810         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
79811         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
79812         * math/libm-test.inc (acos_test): Add more tests.
79813         (acosh_test): Likewise.
79814         (asin_test): Likewise.
79815         (atanh_test): Likewise.
79816         (exp_test): Likewise.
79817         (exp10_test): Likewise.
79818         (exp2_test): Likewise.
79819         (expm1_test): Likewise.
79820         (lgamma_test): Likewise.
79821         (log_test): Likewise.
79822         (log10_test): Likewise.
79823         (log1p_test): Likewise.
79824         (log2_test): Likewise.
79825         (pow_test): Do not allow some spurious overflow exceptions.
79826         (sqrt_test): Add more tests.
79827         (tgamma_test): Likewise.
79828         (y0_test): Likewise.
79829         (y1_test): Likewise.
79830         (yn_test): Likewise.
79831
79832 2012-03-27  Anton Blanchard  <anton@samba.org>
79833
79834         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
79835         MAP_HUGETLB.
79836         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
79837         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
79838         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
79839
79840 2012-03-27  David S. Miller  <davem@davemloft.net>
79841
79842         * conform/Makefile: Run run-conformtest.sh using $(BASH).
79843
79844         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
79845         have-as-vis3 check.
79846
79847 2012-03-27  Andreas Jaeger  <aj@suse.de>
79848
79849         * sysdeps/x86_64/elf/configure.in: Moved to ...
79850         * sysdeps/x86_64/configure.in: ... here.
79851         * sysdeps/x86_64/elf/start.S: Moved to ...
79852         * sysdeps/x86_64/start.S: ... here.
79853         * sysdeps/x86_64/elf/configure: Delete.
79854
79855         * sysdeps/x86_64/configure.in: Merge contents from
79856         sysdeps/i386/configure.in (without i686 check).
79857
79858         * sysdeps/i386/elf/Versions: Merge into ...
79859         * sysdeps/i386/Versions: ... this.
79860         * sysdeps/i386/elf/Versions: Delete file.
79861         * sysdeps/i386/elf/start.S: Moved to ...
79862         * sysdeps/i386/start.S: ...here.
79863         * sysdeps/i386/elf/configure.in: Merge into...
79864         * sysdeps/i386/configure.in: ...here.
79865         * sysdeps/i386/elf/configure.in: Delete file.
79866         * sysdeps/i386/elf/configure: Delete file.
79867
79868         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
79869         * debug/backtracesyms.c: ... here.
79870         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
79871         * debug/backtracesymsfd.c: ... here.
79872         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
79873         * sysdeps/generic/ifunc-sel.h: ... here.
79874
79875         * sysdeps/unix/i386/start.c: Delete file.
79876         * sysdeps/unix/sparc/start.c: Delete file.
79877         * sysdeps/unix/start.c: Delete file.
79878
79879         * sysdeps/sh/elf/configure.in: Moved to ...
79880         * sysdeps/sh/configure.in: ... here.
79881         * sysdeps/sh/elf/start.S: Moved to ...
79882         * sysdeps/sh/start.S: ... here.
79883         * sysdeps/sh/elf/configure: Delete file.
79884
79885         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
79886         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
79887         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
79888         * sysdeps/powerpc/powerpc64/entry.h: ... here.
79889         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
79890         * sysdeps/powerpc/powerpc64/start.S: here.
79891         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
79892         * sysdeps/powerpc/powerpc64/Makefile: ... this.
79893         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
79894         * sysdeps/powerpc/powerpc64/configure.in: ... this.
79895         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
79896
79897         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
79898         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
79899         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
79900         * sysdeps/powerpc/powerpc32/start.S: ... here.
79901         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
79902         * sysdeps/powerpc/powerpc32/configure.in: ... this.
79903         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
79904
79905         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
79906         * sysdeps/powerpc/ifunc-sel.h: ... here.
79907         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
79908         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
79909
79910         * sysdeps/sparc/elf/configure.in: Moved to ...
79911         * sysdeps/sparc/configure.in: ... here.
79912         * sysdeps/sparc/elf/configure: Delete file.
79913         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
79914         * sysdeps/sparc/sparc32/start.S: ... here.
79915         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
79916         * sysdeps/sparc/sparc64/start.S: ... here.
79917         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
79918         * sysdeps/sparc/sparc32/Makefile: ... this.
79919         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
79920         * sysdeps/sparc/sparc64/Makefile: ... this.
79921
79922         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
79923         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
79924         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
79925         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
79926         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
79927         * sysdeps/s390/s390-32/setjmp.S: ... here.
79928         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
79929         * sysdeps/s390/s390-32/configure.in: ... here.
79930         * sysdeps/s390/s390-32/elf/configure: Delete file.
79931         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
79932         * sysdeps/s390/s390-32/start.S: ... here.
79933
79934         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
79935         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
79936         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
79937         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
79938         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
79939         * sysdeps/s390/s390-64/setjmp.S: ... here.
79940         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
79941         * sysdeps/s390/s390-64/configure.in: ... here
79942         * sysdeps/s390/s390-64/elf/configure: Delete file.
79943         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
79944         * sysdeps/s390/s390-64/start.S: ... here.
79945         * sysdeps/s390/s390-64/elf/configure: Delete.
79946
79947         * configure.in: Remove support for elf directories in sysdeps.
79948
79949         * configure: Regenerated.
79950         * sysdeps/i386/configure: Regenerated.
79951         * sysdeps/powerpc/powerpc32/configure: Regenerated.
79952         * sysdeps/powerpc/powerpc64/configure: Regenerated.
79953         * sysdeps/s390/s390-32/configure: Regenerated.
79954         * sysdeps/s390/s390-64/configure: Regenerated.
79955         * sysdeps/sh/configure: Regenerated.
79956         * sysdeps/sparc/configure: Regenerated.
79957         * sysdeps/x86_64/configure: Regenerated.
79958
79959 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
79960
79961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79962
79963         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
79964         denormal result into account.
79965
79966 2012-03-25  Roland McGrath  <roland@hack.frob.com>
79967
79968         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
79969         Reported by Allan McRae <allan@archlinux.org>.
79970
79971 2012-03-23  Jeff Law  <law@redhat.com>
79972
79973         * nss/getnssent.c (__nss_getent): Fix typo.
79974
79975 2012-03-23  David S. Miller  <davem@davemloft.net>
79976
79977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79978
79979 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
79980
79981         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
79982         to pad to uint64_t for each field.
79983         (dl_tls_index): Replace unsigned long with uint64_t.
79984
79985 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
79986         Paul Pluzhnikov  <ppluzhnikov@google.com>
79987
79988         [BZ #6528]
79989         * grp/Makefile (otherlibs): Don't set it.
79990         * inet/Makefile (otherlibs): Likewise.
79991         * login/Makefile (otherlibs): Likewise.
79992         * nscd/Makefile (otherlibs): Likewise.
79993         * posix/Makefile (otherlibs): Likewise.
79994         * pwd/Makefile (otherlibs): Likewise.
79995         * rt/Makefile (otherlibs): Likewise.
79996         * sunrpc/Makefile (otherlibs): Likewise.
79997         * nss/Makefile (otherlibs): Likewise.
79998         Add libnss_files to routines and static-only-routines.
79999         ($(objpfx)getent): Remove rule.
80000         * resolv/Makefile: Add libnss_dns and libresolv to routines and
80001         static-only-routines.
80002
80003 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
80004
80005         [BZ #13892]
80006         * math/s_cexp.c: Include <float.h>.
80007         (__cexp): Handle exp result overflowing not necessarily
80008         overflowing both real and imaginary parts of result.
80009         * math/s_cexpf.c: Likewise.
80010         * math/s_cexpl.c: Likewise.
80011         * math/libm-test.inc (cexp_test): Add more tests.
80012         * sysdeps/i386/fpu/libm-test-ulps: Update.
80013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80014
80015 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80016
80017         * include/link.h (ELFW): New macro.
80018         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
80019         Replace ELF64_R_TYPE with ELFW(R_TYPE).
80020
80021 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80022
80023         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
80024         with uint64_t.
80025
80026 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80027
80028         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
80029         declaration.
80030         (struct La_x32_retval): Likewise.
80031
80032 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80033
80034         * sysdeps/x86_64/preconfigure.in: New file.
80035         * sysdeps/x86_64/preconfigure: New generated file.
80036
80037 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
80038
80039         [BZ #13824]
80040         * math/e_exp2l.c: Include <float.h>.
80041         (__ieee754_exp2l): Handle overflow and underflow cases
80042         separately.  Only pass fractional part of argument to
80043         __ieee754_expl.
80044         * math/libm-test.inc (exp2_test): Add more tests.
80045
80046         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
80047         negating x to take absolute value.
80048         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
80049         Likewise.
80050         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
80051         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
80052         Likewise.
80053         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
80054         computing low part if x was negated.
80055         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
80056
80057 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80058
80059         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
80060         la_x32_gnu_pltexit.
80061         (pltexit): Cast int_retval to ptrdiff_t.
80062         * elf/tst-auditmod3b.c: Likewise.
80063         * elf/tst-auditmod4b.c: Likewise.
80064         * elf/tst-auditmod5b.c: Likewise.
80065         * elf/tst-auditmod6b.c: Likewise.
80066         * elf/tst-auditmod6c.c: Likewise.
80067         * elf/tst-auditmod7b.c: Likewise.
80068
80069         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
80070         and x32_gnu_pltexit.
80071
80072         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
80073         __ELF_NATIVE_CLASS.
80074         (La_x32_regs): New macro.
80075         (La_x32_retval): Likewise.
80076         (la_x32_gnu_pltenter): New function prototype.
80077         (la_x32_gnu_pltexit): Likewise.
80078
80079 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
80080
80081         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
80082         exponent.
80083
80084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80085
80086         * configure.in (libc_cv_cc_nofma): Check for option to disable
80087         generation of FMA instructions.
80088         * configure: Regenerate.
80089         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
80090         * sysdeps/ieee754/dbl-64/Makefile: New file.
80091         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
80092         Remove brandred-fma4.
80093         (CFLAGS-brandred-fma4.c): Remove.
80094         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
80095         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
80096         define.
80097         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
80098         define.
80099
80100 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80101
80102         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
80103         LLONG_MAX != LONG_MAX.
80104         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80105         (_fitoa_word): Likewise.
80106         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
80107         LLONG_MAX != LONG_MAX.
80108         * stdio-common/_itowa.h: Include <_itoa.h>.
80109         (_itowa_word): Use _ITOA_WORD_TYPE on value.
80110         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
80111         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
80112         only if not defined.
80113         (_ITOA_WORD_TYPE): Likewise.
80114         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80115         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
80116
80117 2012-03-21  David S. Miller  <davem@davemloft.net>
80118
80119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80120
80121 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80122
80123         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
80124         of x86_64 when setting libc_cv_slibdir, libdir and
80125         libc_cv_localedir.
80126         * sysdeps/unix/sysv/linux/configure: Regenerated.
80127
80128 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80129
80130         * manual/lang.texi (Old Varargs): Remove section.
80131         (How Variadic): Update menu.
80132         (va_start): Do not mention varargs.h.
80133
80134 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80135             Joseph Myers  <joseph@codesourcery.com>
80136
80137         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
80138         link test.
80139         * configure: Regenerated.
80140
80141 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80142
80143         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
80144         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
80145         conformtest.pl
80146
80147 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80148
80149         * NOTES: Remove.
80150         * Makefile (files-for-dist): Remove NOTES.
80151         (NOTES): Remove rule.
80152         * README: Don't refer to NOTES.
80153         * manual/creature.texi: Don't include macros.texi.
80154         * manual/intro.texi (creature.texi): Remove comment referring to
80155         NOTES.
80156
80157         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
80158         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
80159         * configure: Regenerated.
80160         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
80161         LIBC_TRY_CC_OPTION.
80162         (libc_cv_as_i686): Likewise.
80163         (libc_cv_cc_avx): Likewise.
80164         (libc_cv_cc_sse2avx): Likewise.
80165         (libc_cv_cc_fma4): Likewise.
80166         (libc_cv_cc_novzeroupper): Likewise.
80167         * sysdeps/i386/configure: Regenerated.
80168
80169         [BZ #13883]
80170         * sysdeps/i386/fpu/s_cexp.S: Remove.
80171         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
80172         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
80173         * math/libm-test.inc (cexp_test): Add more tests.
80174         * sysdeps/i386/fpu/libm-test-ulps: Update.
80175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80176
80177 2012-03-21  Allan McRae  <allan@archlinux.org>
80178
80179         * timezone/Makefile: Do not install iso3166.tab and zone.tab
80180
80181 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80182
80183         [BZ #13871]
80184         * math/w_exp2.c: Do not include <float.h>.
80185         (o_threshold, u_threshold): Remove.
80186         (__exp2): Calculate result before checking finiteness and calling
80187         __kernel_standard.
80188         * math/w_exp2f.c: Likewise.
80189         * math/w_exp2l.c: Likewise.
80190         * math/libm-test.inc (exp2_test): Require overflow exception for
80191         1e6 input.
80192
80193         [BZ #3866]
80194         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
80195         range of signed 64-bit integers before using fistpll.  Remove
80196         checks for whether integers fit in mantissa bits.
80197         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
80198         the range of signed 32-bit integers before using fistpl.  Remove
80199         checks for whether integers fit in mantissa bits.
80200         * sysdeps/i386/fpu/e_powl.S (p64): New object.
80201         (__ieee754_powl): Test for y outside the range of signed 64-bit
80202         integers before using fistpll.  Reduce 64-bit values to 63-bit
80203         ones as needed.
80204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
80205         divide-by-zero is raised for zero to large negative powers.
80206         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
80207         (__ieee754_powl): Test for y outside the range of signed 64-bit
80208         integers before using fistpll.  Reduce 64-bit values to 63-bit
80209         ones as needed.
80210         * math/libm-test.inc (pow_test): Add more tests.
80211
80212 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80213
80214         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
80215         <stdio-common/_itoa.h>.
80216         * debug/segfault.c: Likewise.
80217         * elf/dl-cache.c: Likewise.
80218         * elf/dl-minimal.c: Likewise.
80219         * elf/dl-misc.c: Likewise.
80220         * elf/dl-sysdep.c: Likewise.
80221         * elf/dl-version.c: Likewise.
80222         * elf/rtld.c: Likewise.
80223         * hurd/hurdsock.c: Likewise.
80224         * hurd/lookup-retry.c: Likewise.
80225         * malloc/malloc.c: Likewise.
80226         * malloc/mtrace.c: Likewise.
80227         * nscd/nscd_getgr_r.c: Likewise.
80228         * nscd/nscd_getpw_r.c: Likewise.
80229         * nscd/nscd_getserv_r.c: Likewise.
80230         * posix/getopt_init.c: Likewise.
80231         * posix/wordexp.c: Likewise.
80232         * stdio-common/_itoa.c: Likewise.
80233         * stdio-common/printf_fphex.c: Likewise.
80234         * stdio-common/vfprintf.c: Likewise.
80235         * string/_strerror.c: Likewise.
80236         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
80237         * sysdeps/i386/i686/hp-timing.h: Likewise.
80238         * sysdeps/mach/_strerror.c: Likewise.
80239         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
80240         * sysdeps/mach/hurd/sethostid.c: Likewise.
80241         * sysdeps/mach/hurd/xmknodat.c: Likewise.
80242         * sysdeps/mach/xpg-strerror.c: Likewise.
80243         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
80244         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
80245         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
80246         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
80247         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
80248         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
80249         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
80250         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
80251         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
80252         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
80253         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
80254         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
80255         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
80256         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
80257         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
80258         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
80259         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
80260         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
80261         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
80262         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
80263         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
80264
80265         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
80266
80267         * stdio-common/_itoa.h: Moved to ...
80268         * sysdeps/generic/_itoa.h: Here.
80269
80270         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
80271
80272         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
80273         instead of "_itoa.h" and "_itowa.h".
80274         * stdio-common/vfprintf.: Likewise.
80275
80276 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80277
80278         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
80279         <bits/wordsize.h>.
80280         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
80281         (__signbit): Likewise.
80282         (llrintf): Likewise.
80283         (llrint): Likewise.
80284
80285 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80286
80287         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
80288         __WORDSIZE != 64.
80289
80290 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
80291
80292         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
80293         OVERFLOW_EXCEPTION_OK.
80294         * math/libm-test.inc ("Philosophy"): Update comment about
80295         exception testing.
80296         (OVERFLOW_EXCEPTION): Define.
80297         (OVERFLOW_EXCEPTION_OK): Likewise.
80298         (INVALID_EXCEPTION_OK): Renumber.
80299         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
80300         (IGNORE_ZERO_INF_SIGN): Likewise.
80301         (test_exceptions): Handle FE_OVERFLOW.
80302         (exp10_test): Expect overflow exceptions.
80303         (exp2_test): Likewise.
80304         (expm1_test): Likewise.
80305         (nextafter_test): Likewise.
80306         (pow_test): Likewise.
80307         (scalbn_test): Likewise.
80308         (scalbln_test): Likewise.
80309
80310 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80311
80312         * sysdeps/x86_64/bits/atomic.h
80313         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
80314         64bit integer.
80315         (atomic_exchange_acq): Likewise.
80316         (__arch_exchange_and_add_body): Likewise.
80317         (__arch_add_body): Likewise.
80318         (atomic_add_negative): Likewise.
80319         (atomic_add_zero): Likewise.
80320
80321 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80322
80323         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
80324         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
80325
80326 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80327
80328         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
80329         Check __x86_64__ instead of __WORDSIZE.
80330
80331 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80332
80333         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
80334
80335 2012-03-19  David S. Miller  <davem@davemloft.net>
80336
80337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80338
80339         * sysdeps/sparc/fpu/fenv_private.h: New file.
80340         * sysdeps/sparc/fpu/math_private.h: Use it.
80341         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
80342         Remove.
80343         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
80344         (libc_feholdexcept_setroundl): Remove.
80345         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
80346         Remove.
80347         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
80348         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
80349
80350 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80351
80352         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
80353         int64_t instead of long int.
80354         (INSERT_WORDS64): Likewise.
80355
80356 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80357
80358         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
80359         _Unwind_GetCFA return to _Unwind_Ptr first.
80360
80361 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
80362
80363         [BZ #13629]
80364         * math/s_clog.c: Include <float.h>.
80365         (__clog): Scale large or subnormal inputs.
80366         * math/s_clogf.c: Likewise.
80367         * math/s_clogl.c: Likewise.
80368         * math/s_clog10.c: Include <float.h>.
80369         (M_LOG10_2): Define.
80370         (__clog10): Scale large or subnormal inputs.
80371         * math/s_clog10f.c: Likewise.
80372         * math/s_clog10l.c: Likewise.
80373         * math/libm-test.inc (clog_test): Add more tests.
80374         (clog10_test): Likewise.
80375         * sysdeps/i386/fpu/libm-test-ulps: Update.
80376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80377
80378         [BZ #11451]
80379         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
80380         x and y.
80381         * math/libm-test.inc (atan2_test): Add another test.
80382
80383         * Makerules (common-objdir-compile): Remove.
80384         * sysdeps/unix/Makefile (config-generated): Do not add
80385         $(unix-generated) to variable.
80386         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
80387         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
80388         Remove rule.
80389         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
80390         Likewise.
80391         [generic bits/local_lim.h] (before-compile): Do not append to
80392         variable.
80393         [generic bits/local_lim.h] (common-generated): Likewise.
80394         [generic sys/param.h] (before-compile): Do not append to variable.
80395         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
80396         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
80397         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
80398         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
80399         include.
80400         [generic sys/param.h] (sys/param.h-includes): Remove variable.
80401         [generic sys/param.h] (sys/param.h-includes): Remove rule.
80402         [generic sys/param.h] ($(addprefix
80403         $(common-objpfx),$(sys/param.h-includes))): Likewise.
80404         [generic sys/param.h] (common-generated): Do not append to
80405         variable.
80406         [generic sys/param.h] (sysdep_headers): Likewise.
80407         [generic bits/errno.h] (before-compile): Do not append to
80408         variable.
80409         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
80410         rule.
80411         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
80412         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
80413         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
80414         [generic bits/errno.h] (common-generated): Do not append to
80415         variable.
80416         [generic bits/ioctls.h] (before-compile): Do not append to
80417         variable.
80418         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
80419         rule.
80420         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
80421         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
80422         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
80423         rule.
80424         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
80425         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
80426         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
80427         [generic bits/ioctls.h] (common-generated): Do not append to
80428         variable.
80429         [generic sys/syscall.h] (syscall.h): Remove variable.
80430         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
80431         rule.
80432         [generic sys/syscall.h] (before-compile): Do not append to
80433         variable.
80434         [generic sys/syscall.h] (common-generated): Likewise.
80435         * sysdeps/unix/errnos-tmpl.c: Remove file.
80436         * sysdeps/unix/errnos.awk: Likewise.
80437         * sysdeps/unix/ioctls-tmpl.c: Likewise.
80438         * sysdeps/unix/ioctls.awk: Likewise.
80439         * sysdeps/unix/mk-local_lim.c: Likewise.
80440         * sysdeps/unix/snarf-ioctls: Likewise.
80441
80442 2012-03-19  Richard Henderson  <rth@twiddle.net>
80443
80444         * sysdeps/i386/fpu/fenv_private.h: New file.
80445         * sysdeps/i386/fpu/math_private.h: Use it.
80446         (math_opt_barrier, math_force_eval): Remove.
80447         (libc_feholdexcept_setround_53bit): Remove.
80448         (libc_feupdateenv_53bit): Remove.
80449         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80450         (math_opt_barrier, math_force_eval): Remove.
80451         (libc_feholdexcept): Remove.
80452         (libc_feholdexcept_setround): Remove.
80453         (libc_fetestexcept, libc_fesetenv): Remove.
80454         (libc_feupdateenv_test): Remove.
80455         (libc_feupdateenv, libc_feholdsetround): Remove.
80456         (libc_feresetround): Remove.
80457
80458         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
80459         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
80460
80461         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
80462         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
80463         (libc_feupdateenv_testl): New.
80464         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
80465         (libc_feupdateenv_testf): New.
80466         (libc_feupdateenv): Use libc_feupdateenv_test.
80467         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
80468         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
80469
80470         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
80471         (libc_feholdsetroundf, libc_feholdsetroundl): New.
80472         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
80473         (libc_feresetround_noex): New.
80474         (libc_feresetround_noexf): New.
80475         (libc_feresetround_noexl): New.
80476         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
80477         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
80478         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
80479         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
80480         SET_RESTORE_ROUND.
80481         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
80482         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
80483         (__cos): Likewise.
80484         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
80485         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
80486         SET_RESTORE_ROUND_NOEX.
80487         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
80488         SET_RESTORE_ROUND_NOEXF.
80489         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
80490         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
80491         (libc_feholdsetroundf): New.
80492         (libc_feresetround, libc_feresetroundf): New.
80493
80494         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
80495         (libc_feholdexcept_setround_53bit): Convert from macro to function.
80496         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
80497
80498         * sysdeps/generic/math_private.h: Include <fenv.h>.
80499         (default_libc_feholdexcept): New.
80500         (default_libc_feholdexcept_setround): New.
80501         (default_libc_fesetenv, default_libc_feupdateenv): New.
80502         (libc_feholdexcept): Only define if undefined.
80503         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
80504         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
80505         (libc_feholdexcept_setroundl): Likewise.
80506         (libc_feholdexcept_setround_53bit): Likewise.
80507         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
80508         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
80509         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
80510         (libc_feupdateenv_53bit): Likewise.
80511         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
80512         (libc_feholdexcept): Convert from macro to inline function.
80513         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
80514         (libc_fesetenv, libc_feupdateenv): Likewise.
80515
80516         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
80517         not previously defined.
80518         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
80519         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
80520         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
80521         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
80522         * sysdeps/ieee754/flt-32/math_private.h: New file.
80523         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
80524         math_private.h below SET_FLOAT_WORD.
80525         (__isnan, __isinf_ns, __finite): Remove.
80526         (__isnanf, __isinf_nsf, __finitef): Remove.
80527
80528 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
80529
80530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80531
80532 2012-03-17  David S. Miller  <davem@davemloft.net>
80533
80534         [BZ #6471]
80535         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
80536         for 2.16.
80537
80538 2012-03-16  David S. Miller  <davem@davemloft.net>
80539
80540         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
80541         warnings.
80542
80543         [BZ #6471]
80544         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
80545         properly.
80546         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
80547         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
80548         sysdep_routines when subdir is sysvipc.
80549         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
80550         __getshmlba helper.
80551
80552         * sysdeps/sparc/fpu/libm-test/ulps: Update.
80553
80554 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80555
80556         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
80557         [__LP64__].
80558
80559 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80560
80561         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
80562         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
80563         (__lround): Renamed to ...
80564         (__llround): This.  Replace long int with long long int.
80565         Define lround functions as aliases of llround functions.
80566         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
80567
80568 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80569
80570         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
80571         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
80572         adresses to uintptr_t.  Replace "long int" and "unsigned long
80573         int" with "greg_t" on va_arg.
80574
80575 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80576
80577         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
80578         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
80579
80580         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
80581         Move e_machine check before EI_CLASS check.  Handle x32
80582         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
80583         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
80584         SKIP_EM_IA_64 and include
80585         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
80586
80587         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
80588         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
80589         (add_system_dir): New macro.
80590
80591         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
80592         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
80593
80594 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80595
80596         [BZ #2551]
80597         [BZ #2552]
80598         [BZ #2553]
80599         [BZ #2554]
80600         [BZ #2562]
80601         [BZ #2563]
80602         [BZ #2565]
80603         [BZ #2566]
80604         [BZ #2576]
80605         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
80606         (y0): Likewise.
80607         * math/w_j0f.c (j0f): Likewise.
80608         (y0f): Likewise.
80609         * math/w_j0l.c (__j0l): Likewise.
80610         (__y0l): Likewise.
80611         * math/w_j1.c (j1): Likewise.
80612         (y1): Likewise.
80613         * math/w_j1f.c (j1f): Likewise.
80614         (y1f): Likewise.
80615         * math/w_j1l.c (__j1l): Likewise.
80616         (__y1l): Likewise.
80617         * math/w_jn.c (jn): Likewise.
80618         (yn): Likewise.
80619         * math/w_jnf.c (jnf): Likewise.
80620         (ynf): Likewise.
80621         * math/w_jnl.c (__jnl): Likewise.
80622         (__ynl): Likewise.
80623         * math/libm-test.inc (j0_test): Add more tests.
80624         (j1_test): Likewise.
80625         (jn_test): Likewise.  Add trailing semicolon to existing test.
80626         (y0_test): Likewise.
80627         (y1_test): Likewise.
80628         * sysdeps/i386/fpu/libm-test-ulps: Update.
80629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80630
80631         [BZ #13851]
80632         [BZ #13854]
80633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
80634         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
80635         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
80636         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
80637         (__tanl): Set errno for infinite argument.
80638         * sysdeps/i386/fpu/mptan.c: Remove.
80639         * sysdeps/i386/fpu/s_tan.S: Likewise.
80640         * sysdeps/i386/fpu/s_tanl.S: Likewise.
80641         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
80642         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
80643         * math/libm-test.inc (tan_test): Add more tests and enable more
80644         tests for double and long double.
80645         * sysdeps/i386/fpu/libm-test-ulps: Update.
80646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80647
80648 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
80649
80650         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
80651         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
80652
80653 2012-03-16  Roland McGrath  <roland@hack.frob.com>
80654
80655         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
80656         * configure.in: Use it for both main tree and add-ons.
80657         * configure: Regenerated.
80658
80659 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80660
80661         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
80662
80663 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80664
80665         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
80666         in comment.
80667
80668         [BZ #13851]
80669         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
80670         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
80671         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
80672         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
80673         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
80674         infinite argument.
80675         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
80676         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
80677         != 0 for prec == 2.
80678         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
80679         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
80680         * sysdeps/i386/fpu/s_cosl.S: Likewise.
80681         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
80682         * sysdeps/i386/fpu/s_sinl.S: Likewise.
80683         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
80684         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
80685         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
80686         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
80687         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
80688         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
80689         * math/libm-test.inc (cos_test): Add more tests and enable more
80690         tests for long double.
80691         (sin_test): Likewise.
80692         (sincos_test): Likewise.
80693         * sysdeps/i386/fpu/libm-test-ulps: Update.
80694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80695
80696 2012-03-16  David S. Miller  <davem@davemloft.net>
80697
80698         * sysdeps/sparc/fpu/math_private.h: New file.
80699
80700 2012-03-15  David S. Miller  <davem@davemloft.net>
80701
80702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
80703         file.
80704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
80705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
80706         file.
80707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
80708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
80709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
80710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
80711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
80712         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
80713         sysdep routines.
80714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80715
80716         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
80717         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
80718
80719         * sysdeps/sparc/sparc-ifunc.h: New file.
80720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
80721         sparc-ifunc.h
80722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
80723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
80724         Likewise.
80725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
80726         Likewise.
80727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
80728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
80729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
80730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
80731         Likewise.
80732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
80733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
80734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
80735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
80736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
80737         Likewise.
80738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
80739         Likewise.
80740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
80741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
80742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
80743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
80744         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
80745         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
80746         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
80747         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
80748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
80749         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
80750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
80751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
80752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
80753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
80754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
80755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
80756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
80757         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
80758         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
80759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
80760         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
80761         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
80762         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
80763         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
80764
80765 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80766
80767         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
80768         scaling.
80769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80770
80771 2012-03-15  Andreas Jaeger  <aj@suse.de>
80772
80773         [BZ #13852]
80774         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
80775         ieee754/flt-32 implementation for sin, cos and sincos.
80776         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
80777         * sysdeps/i386/fpu/s_cosf.S: Likewise.
80778         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
80779         * sysdeps/i386/fpu/s_sinf.S: Likewise.
80780         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
80781         ieee754/flt-32 implementation for tan.
80782
80783         * math/libm-test.inc (cos_test): Enable some large input tests for
80784         float as well
80785         (sin_test): Likewise.
80786         (sincos_test): Likewise.
80787         (tan_test): Add tests for large input.
80788
80789         * sysdeps/i386/fpu/libm-test-ulps: Update.
80790
80791 2012-03-15  Andreas Jaeger  <aj@suse.de>
80792
80793         [BZ #13658]
80794         * math/libm-test.inc (cos_test): Add more test cases.
80795         (sin_test): Likewise.
80796         (sincos_test): Likewise.
80797
80798 2012-03-15  Andreas Jaeger  <aj@suse.de>
80799
80800         [BZ #13837]
80801         * math/libm-test.inc (cos_test): Add a test case for large input
80802         value.
80803         (sin_test): Likewise.
80804         (sincos_test): Likewise.
80805
80806 2012-03-15  Andreas Jaeger  <aj@suse.de>
80807             Joseph Myers  <joseph@codesourcery.com>
80808
80809         [BZ #13658]
80810         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
80811         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
80812         * sysdeps/i386/fpu/branred.c: Likewise.
80813         * sysdeps/i386/fpu/dosincos.c: Likewise.
80814         * sysdeps/i386/fpu/mpa.c: Likewise.
80815         * sysdeps/i386/fpu/s_cos.S: Likewise.
80816         * sysdeps/i386/fpu/s_sin.S: Likewise.
80817         * sysdeps/i386/fpu/s_sincos.S: Likewise.
80818         * sysdeps/i386/fpu/sincos32.c: Likewise.
80819
80820         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
80821         Define.
80822         (libc_feupdateenv_53bit): Define.
80823         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
80824         Define.
80825         (libc_feupdateenv_53bit): Define.
80826
80827         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
80828         53 bit (without extend i386 double precision).
80829
80830         * math/libm-test.inc (sincos_test): Add tests for large input.
80831         (sin): Likewise.
80832         (cos): Likewise.
80833
80834         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
80835
80836 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80837
80838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80839
80840 2012-03-15  David S. Miller  <davem@davemloft.net>
80841
80842         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
80843         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
80844         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
80845         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
80846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
80847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
80848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
80849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
80850         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
80851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
80852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
80853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
80854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
80855         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
80856         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
80857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
80858         file.
80859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
80860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
80861         file.
80862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
80863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
80864         file.
80865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
80866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
80867         file.
80868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
80869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
80870         fmin/fmax sysdep routines.
80871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80872
80873 2012-03-14  David S. Miller  <davem@davemloft.net>
80874
80875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
80876         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
80877         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
80878         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
80879         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
80880         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
80881         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
80882         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
80883         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
80884         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
80885         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
80886         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
80887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
80888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
80889         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
80890         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
80891         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
80892         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
80893         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
80894         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
80895         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
80896         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
80897         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
80898         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
80899         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
80900         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
80901         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
80902         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
80903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
80904         routines.
80905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
80906         file.
80907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
80908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
80909         file.
80910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
80911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
80912         file.
80913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
80914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
80915         file.
80916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
80917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
80918         file.
80919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
80920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
80921         file.
80922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
80923         file.
80924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
80925         file.
80926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
80927         file.
80928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
80929         New file.
80930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
80931         file.
80932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
80933         file.
80934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
80935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
80936         file.
80937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
80938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
80939         file.
80940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
80941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
80942         file.
80943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
80944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
80945         VIS3 routines.
80946
80947         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
80948         New file.
80949
80950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80951
80952         * sysdeps/sparc/configure.in: New file.
80953         * sysdeps/sparc/configure: Generate.
80954         * configure.in (libc_cv_sparc_as_vis3): Substitute.
80955         * configure: Regenerate.
80956         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
80957         * config.make.in (have-as-vis3): New.
80958         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
80959         available use -Av9d instead of -Av9a.
80960         * sysdeps/sparc/sparc64/Makefile: Likewise.
80961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
80962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
80963         New file.
80964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
80965         file.
80966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
80967         New file.
80968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
80969         file.
80970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
80971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
80972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
80973         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
80974         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
80975
80976         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
80977         fzeros/fnegs to load 0x80000000 into a float register instead of
80978         using the stack.
80979         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
80980
80981 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80982
80983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
80984         bits/syscall.h.
80985         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
80986         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
80987         ($(inst_includedir)/bits/syscall.h): Remove rule.
80988         ($(objpfx)bits/syscall.d): Include instead of
80989         $(objpfx)syscall-list.d.
80990         (generated): Change syscall-list.h and syscall-list.d to
80991         bits/syscall.h and bits/syscall.d.
80992
80993 2012-03-14  Roland McGrath  <roland@hack.frob.com>
80994
80995         [BZ #13846]
80996         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
80997
80998 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80999
81000         [BZ #13841]
81001         * math/s_csqrt.c: Include <float.h>.
81002         (__csqrt): Scale large or subnormal inputs.
81003         * math/s_csqrtf.c: Likewise.
81004         * math/s_csqrtl.c: Likewise.
81005         * math/libm-test.inc (csqrt_test): Add more tests.
81006         * sysdeps/i386/fpu/libm-test-ulps: Update.
81007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81008
81009         [BZ #13840]
81010         * math/libm-test.inc (hypot_test): Add more tests.
81011
81012 2012-03-13  David S. Miller  <davem@davemloft.net>
81013
81014         [BZ #13840]
81015         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
81016         double-precision for the calculation instead of scaling.
81017
81018 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
81019
81020         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
81021         manipulate bits before adding and subtracting TWO52[sx].
81022         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
81023         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
81024         Likewise.
81025         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
81026
81027 2012-03-13  David S. Miller  <davem@davemloft.net>
81028
81029         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
81030         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
81031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
81032         rtld-global-offsets.h
81033         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
81034
81035         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
81036         large parameters.
81037
81038         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
81039
81040         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
81041         'err' in the ifdef scope in which it is actually used.
81042
81043         * nss/nss_db/db-init.c: Include string.h
81044
81045 2012-03-12  David S. Miller  <davem@davemloft.net>
81046
81047         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
81048         masking out of the most significant byte of random value used.
81049         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81050         Fix coding style in previous change.
81051
81052         * sysdeps/unix/sysv/linux/kernel-features.h
81053         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
81054         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
81055         expression.
81056         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
81057         later.
81058
81059 2012-03-11  David S. Miller  <davem@davemloft.net>
81060
81061         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
81062         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
81063         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
81064         for 'resultvar' otherwise things get truncated on 64-bit.
81065
81066         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81067         Fix masking out of the most significant byte of random value used.
81068
81069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81070
81071 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
81072
81073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81074
81075 2012-03-09  David S. Miller  <davem@davemloft.net>
81076
81077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
81078         variables with appropriate CPP guards.
81079         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
81080         from the frame pointer, not the stack pointer.  Correct layout
81081         comments.  Fix test on resulting framesize and the management of
81082         the outregs buffer for pltexit.  Preserve floating point return
81083         values across _dl_call_pltexit call.
81084         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
81085         framesize and the management of the outregs buffer for pltexit.
81086         Preserve floating point return values across _dl_call_pltexit
81087         call.
81088         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
81089         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
81090         (la_sparc64_gnu_pltexit): New functions.
81091         (print_exit): Fix format string for return register value.
81092
81093 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
81094
81095         * sunrpc/Makefile (others): Add rpcgen.
81096         ($(objpfx)rpcgen): Remove special build rule and dependency on
81097         libc.
81098         * sunrpc/rpcgen.c: New file.
81099
81100 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         [BZ #13673]
81103         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
81104         * stdio-common/bug-vfprintf-nargs.c: Likewise.
81105         * sysdeps/i386/crti.S: Likewise.
81106         * sysdeps/i386/crtn.S: Likewise.
81107         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
81108         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
81109         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
81110         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
81111         * sysdeps/sh/crti.S: Likewise.
81112         * sysdeps/sh/crtn.S: Likewise.
81113         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
81114
81115         [BZ #13673]
81116         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
81117         with URL.
81118         * locale/programs/locfile-kw.gperf: Likewise.
81119         * locale/programs/charmap-kw.h: Regenerated.
81120         * locale/programs/locfile-kw.h: Likewise.
81121
81122         [BZ #13673]
81123         * intl/plural.y: Replace FSF snail mail address with URL.
81124         * intl/plural.c: Regenerated.
81125
81126 2012-03-09  Richard Henderson  <rth@twiddle.net>
81127
81128         * include/math_private.h: Remove file.
81129         * math/math_private.h: Move file ...
81130         * sysdeps/generic/math_private.h: ... here.
81131
81132         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
81133         * sysdeps/powerpc/fpu/math_private.h: Likewise.
81134         * sysdeps/x86_64/fpu/math_private.h: Likewise.
81135
81136         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
81137         and <math_private.h>.
81138         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
81139         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
81140         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
81141         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
81142         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
81143         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
81144         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
81145         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
81146         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
81147         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
81148         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
81149         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
81150         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
81151         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
81152         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
81153         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
81154         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
81155         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
81156         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
81157         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
81158         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
81159         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
81160         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
81161         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
81162         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
81163         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
81164         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
81165         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
81166         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
81167         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
81168         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
81169         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
81170         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
81171         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
81172         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
81173         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
81174         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
81175         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
81176         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
81177         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
81178         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
81179         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
81180         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
81181         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
81182         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
81183         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
81184         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
81185         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
81186         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
81187         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
81188         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
81189         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
81190         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
81191         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
81192         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
81193         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
81194         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
81195         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
81196         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
81197         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
81198         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
81199         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
81200         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
81201         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
81202         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
81203         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
81204         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
81205         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
81206         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
81207         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
81208         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
81209         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
81210         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
81211         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
81212         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
81213         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
81214         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
81215         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
81216         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
81217         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
81218         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
81219         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
81220         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
81221         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
81222         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
81223         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
81224         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
81225         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
81226         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
81227         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
81228         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
81229         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
81230         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
81231         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
81232         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
81233         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
81234         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
81235         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
81236         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
81237         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
81238         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
81239         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
81240         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
81241         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
81242         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
81243         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
81244         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
81245         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
81246         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
81247         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
81248         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
81249         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
81250         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
81251         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
81252         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
81253         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
81254         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
81255         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
81256         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
81257         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
81258         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
81259         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
81260         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
81261         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
81262         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
81263         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
81264         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
81265         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
81266         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
81267         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
81268         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
81269         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
81270         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
81271         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
81272         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
81273         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
81274         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
81275         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
81276         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
81277         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
81278         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
81279         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
81280         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
81281         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
81282         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
81283         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
81284         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81285         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
81286         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
81287         * sysdeps/ieee754/k_standard.c: Likewise.
81288         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
81289         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
81290         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
81291         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
81292         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
81293         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
81294         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
81295         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
81296         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
81297         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
81298         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
81299         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
81300         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
81301         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
81302         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
81303         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
81304         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
81305         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
81306         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
81307         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
81308         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
81309         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
81310         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
81311         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
81312         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
81313         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
81314         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
81315         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
81316         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
81317         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
81318         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
81319         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
81320         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
81321         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
81322         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
81323         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
81324         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
81325         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
81326         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
81327         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
81328         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
81329         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
81330         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
81331         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
81332         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
81333         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
81334         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
81335         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
81336         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
81337         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
81338         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
81339         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
81340         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
81341         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
81342         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
81343         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
81344         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
81345         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
81346         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
81347         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
81348         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
81349         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
81350         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
81351         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
81352         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
81353         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
81354         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
81355         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
81356         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
81357         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
81358         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
81359         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
81360         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
81361         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
81362         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
81363         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
81364         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
81365         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
81366         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81367         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
81368         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
81369         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
81370         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
81371         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
81372         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
81373         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
81374         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
81375         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
81376         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
81377         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
81378         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
81379         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
81380         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
81381         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
81382         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
81383         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
81384         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
81385         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
81386         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
81387         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
81388         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
81389         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
81390         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
81391         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
81392         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
81393         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
81394         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
81395         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
81396         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
81397         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
81398         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
81399         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
81400         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
81401         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
81402         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
81403         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
81404         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
81405         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
81406         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
81407         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
81408         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
81409         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
81410         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
81411         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
81412         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
81413         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
81414         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
81415         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
81416         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
81417         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
81418         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
81419         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
81420         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
81421         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
81422         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
81423         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
81424         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
81425         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
81426         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
81427         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
81428         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
81429         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
81430         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
81431         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
81432         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
81433         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
81434         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
81435         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
81436         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
81437         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
81438         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
81439         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
81440         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
81441         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
81442         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
81443         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
81444         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
81445         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
81446         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
81447         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
81448         * sysdeps/ieee754/s_lib_version.c: Likewise.
81449         * sysdeps/ieee754/s_matherr.c: Likewise.
81450         * sysdeps/ieee754/s_signgam.c: Likewise.
81451         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
81452         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
81453         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
81454         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
81455         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
81456         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
81457         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
81458         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
81459         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
81460         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
81461         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
81462         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
81463         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
81464         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
81465         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
81466         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
81467         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
81468         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
81469         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
81470         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
81471         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
81472
81473 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81474
81475         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
81476         * sunrpc/rpc_main.c: Likewise.
81477         * sunrpc/rpc_svcout.c: Likewise.
81478
81479 2012-03-09  David S. Miller  <davem@davemloft.net>
81480
81481         * include/math_private.h: New file.
81482
81483 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81484
81485         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
81486         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
81487         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
81488         from <bits/socket_type.h>.
81489         (enum __socket_type): Don't define here.
81490         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
81491         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81492         bits/socket_type.h.
81493
81494         [BZ #13566]
81495         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
81496         checking __USE_GNU.
81497
81498         * Makerules ($(inst_includedir)/%.h): New rule.
81499         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
81500         (install-others): Remove variable setting.
81501         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
81502
81503 2012-03-08  Richard Henderson  <rth@twiddle.net>
81504
81505         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
81506         from macro to inline function; merge with the
81507         !__LIBC_INTERNAL_MATH_INLINES version.
81508         (__ieee754_sqrtf): Likewise.
81509
81510         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
81511         to inline function.
81512         (__rintf, __floor, __floorf): Likewise.
81513
81514         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
81515         macro to inline function.
81516         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
81517
81518         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
81519         not <math/math_private.h>.
81520
81521 2012-03-08  David S. Miller  <davem@davemloft.net>
81522
81523         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
81524         copyright year.
81525         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
81526
81527 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
81528
81529         * resolv/gai_misc.c (handle_requests): Fix struct timespec
81530         normalization.
81531         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
81532         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
81533
81534 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
81535
81536         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
81537         be defined individually, they must be defined as a block.  Define
81538         S for printing a string instead of hidint the different by using a
81539         macro for adding the 'l'.
81540         * stdio-common/tst-fphex-wide.c: Adjust.
81541
81542 2012-03-07  Marek Polacek  <polacek@redhat.com>
81543
81544         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
81545
81546 2012-03-08  Marek Polacek  <polacek@redhat.com>
81547
81548         [BZ #13806]
81549         * stdio-common/Makefile (tests): Add tst-fphex-wide.
81550         * stdio-common/tst-fphex.c: Define a few macros to make the
81551         test reusable.  Use them.
81552         * stdio-common/tst-fphex-wide.c: New file.
81553
81554 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
81555
81556         [BZ #6911]
81557         * manual/macros.texi (gnusystems): New macro.
81558         (nongnusystems): Likewise.
81559         (gnulinuxhurdsystems): Likewise.
81560         (gnuhurdsystems): Likewise..
81561         (gnulinuxsystems): Likewise.
81562         * manual/charset.texi: Use new macros or @theglibc{} to refer to
81563         variants of the GNU system, not "GNU system".
81564         * manual/conf.texi: Likewise.
81565         * manual/errno.texi: Likewise.  Update example of errno macro
81566         expansion.
81567         * manual/filesys.texi: Likewise.
81568         (getumask): Document as specific to GNU/Hurd.
81569         * manual/install.texi: Likewise.  Reword some references to
81570         GNU/Linux.
81571         * manual/intro.texi: Likewise.
81572         * manual/io.texi: Likewise.
81573         (File Name Portability): Detail which constraints are inapplicable
81574         to all GNU systems and which are only inapplicable to GNU/Hurd.
81575         * manual/job.texi: Likewise.
81576         * manual/llio.texi: Likewise.
81577         (O_NOCTTY): Document as present on GNU/Linux.
81578         * manual/maint.texi: Likewise.
81579         * manual/memory.texi: Likewise.
81580         * manual/pattern.texi: Likewise.
81581         * manual/pipe.texi: Likewise.
81582         * manual/process.texi: Likewise.
81583         * manual/resource.texi: Likewise.
81584         (RUSAGE_CHILDREN): Remove statement about specifying a particular
81585         child on GNU/Hurd.
81586         * manual/setjmp.texi: Likewise.
81587         * manual/signal.texi: Likewise.
81588         * manual/startup.texi: Likewise.
81589         * manual/stdio.texi: Likewise.
81590         * manual/terminal.texi: Likewise.
81591         (ONLCR): Document as POSIX.
81592         (OXTABS): Document availability on GNU/Linux as XTABS.
81593         (ONOEOT): Document availability separately from other bits.
81594         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
81595         * manual/time.texi: Likewise.
81596         * manual/users.texi: Likewise.
81597         * INSTALL: Regenerated.
81598         * sysdeps/gnu/errlist.c: Regenerated.
81599
81600         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
81601         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
81602         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
81603         puts.
81604         * configure: Regenerated.
81605
81606 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
81607
81608         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
81609         default includes instead of AC_HEADER_CHECK.
81610         * sysdeps/i386/configure: Regenerated.
81611
81612         [BZ #10716]
81613         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
81614         * math/s_cacoshf.c (__cacoshf): Likewise.
81615         * math/s_cacoshl.c (__cacoshl): Likewise.
81616         * math/s_casinh.c (__casinh): Set signs of result from argument.
81617         * math/s_casinhf.c (__casinhf): Likewise.
81618         * math/s_casinhl.c (__casinhl): Likewise.
81619         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
81620         (casinh_test): Add more tests.
81621         * sysdeps/i386/fpu/libm-test-ulps: Update.
81622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81623
81624 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
81625
81626         * po/zh_TW.po: Update from translation team.
81627
81628         * login/Makefile (distribute): Remove variable.
81629         * catgets/Makefile: Likewise.
81630         * mach/Makefile: Likewise.
81631         * malloc/Makefile: Likewise.
81632         * misc/Makefile: Likewise.
81633         * iconv/Makefile: Likewise.
81634         * nscd/Makefile: Likewise.
81635         * hurd/Makefile: Likewise.
81636         * manual/Makefile: Likewise.
81637         * locale/Makefile: Likewise.
81638         * intl/Makefile: Likewise.
81639         * conform/Makefile: Likewise.
81640         * nss/Makefile: Likewise.
81641         * time/Makefile: Likewise.
81642         * soft-fp/Makefile: Likewise.
81643         * dirent/Makefile: Likewise.
81644         * gmon/Makefile: Likewise.
81645         * po/Makefile: Likewise.
81646         * rt/Makefile: Likewise.
81647         * socket/Makefile: Likewise.
81648         * math/Makefile: Likewise.
81649         * signal/Makefile: Likewise.
81650         * debug/Makefile: Likewise.
81651         * elf/Makefile: Likewise.
81652         * timezone/Makefile: Likewise.
81653         * stdlib/Makefile: Likewise.
81654         * iconvdata/Makefile: Likewise.
81655         * sunrpc/Makefile: Likewise.
81656         * io/Makefile: Likewise.
81657         * argp/Makefile: Likewise.
81658         * inet/Makefile: Likewise.
81659         * hesiod/Makefile: Likewise.
81660         * grp/Makefile: Likewise.
81661         * csu/Makefile: Likewise.
81662         * wctype/Makefile: Likewise.
81663         * crypt/Makefile: Likewise.
81664         * libio/Makefile: Likewise.
81665         * string/Makefile: Likewise.
81666         * nis/Makefile: Likewise.
81667         * resolv/Makefile: Likewise.
81668         * stdio-common/Makefile: Likewise.
81669         * wcsmbs/Makefile: Likewise.
81670         * dlfcn/Makefile: Likewise.
81671         * posix/Makefile: Likewise.
81672
81673         [BZ #6959]
81674         * timezone/Makefile: Don't install timezone files, just the programs
81675         and scripts.
81676
81677 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
81678
81679         * nss/databases.def: Add missing gshadow entry.
81680
81681         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
81682
81683 2012-03-06  Marek Polacek  <polacek@redhat.com>
81684
81685         [BZ #13726]
81686         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
81687         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
81688         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
81689         * stdio-common/tst-long-dbl-fphex.c: New file.
81690
81691 2012-03-06  David S. Miller  <davem@davemloft.net>
81692
81693         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
81694         (set_obp_int): New function.
81695         (get_obp_int): New function.
81696         (__get_clockfreq_via_dev_openprom): Likewise.
81697         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
81698         Avoid unused variable warnings on 'val' and use builtin_expect.
81699         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
81700         __builtin_expect.
81701         (INLINE_CLONE_SYSCALL): Likewise.
81702
81703 2012-03-05  David S. Miller  <davem@davemloft.net>
81704
81705         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81706
81707 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
81708
81709         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81710
81711         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
81712         only for |x| >= 40.
81713         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81714
81715 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
81716
81717         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
81718         Replace gettimeofday with __vdso_gettimeofday.
81719
81720         * sysdeps/unix/sysv/linux/x86_64/init-first.c
81721         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
81722         __vdso_clock_gettime and __vdso_getcpu.
81723
81724         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
81725         time with __vdso_time.
81726
81727 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81728
81729         * manual/lang.texi (size_t): Note types to which size_t may be
81730         equivalent with the GNU C Library, but do not describe when
81731         differences between them are significant.
81732
81733 2012-03-05  Andreas Jaeger  <aj@suse.de>
81734
81735         * sysdeps/i386/fpu/libm-test-ulps: Update.
81736
81737 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81738
81739         [BZ #3976]
81740         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
81741         (__ieee754_pow): Save and restore rounding mode and use
81742         round-to-nearest for main computations.
81743         * math/libm-test.inc (pow_test_tonearest): New function.
81744         (pow_test_towardzero): Likewise.
81745         (pow_test_downward): Likewise.
81746         (pow_test_upward): Likewise.
81747         (main): Call the new functions.
81748         * sysdeps/i386/fpu/libm-test-ulps: Update.
81749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81750
81751         [BZ #3976]
81752         * math/libm-test.inc (cosh_test_tonearest): New function.
81753         (cosh_test_towardzero): Likewise.
81754         (cosh_test_downward): Likewise.
81755         (cosh_test_upward): Likewise.
81756         (sinh_test_tonearest): Likewise.
81757         (sinh_test_towardzero): Likewise.
81758         (sinh_test_downward): Likewise.
81759         (sinh_test_upward): Likewise.
81760         (main): Call the new functions.
81761         * sysdeps/i386/fpu/libm-test-ulps: Update.
81762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81763
81764 2012-03-05  Tom de Vries  <tom@codesourcery.com>
81765
81766         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
81767         default stack guard is set in last bytes.
81768         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
81769
81770 2012-03-05  Kees Cook  <keescook@chromium.org>
81771
81772         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
81773
81774         [BZ #13656]
81775         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
81776         possibly allocate from heap instead of stack.
81777         * stdio-common/bug-vfprintf-nargs.c: New file.
81778         * stdio-common/Makefile (tests): Add nargs overflow test.
81779
81780 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
81781
81782         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81783
81784 2012-03-03  Marek Polacek  <polacek@redhat.com>
81785
81786         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
81787         * math/math_private.h: Likewise.
81788         * stdlib/tst-strtod.c: Likewise.
81789         * sysdeps/i386/i486/bits/atomic.h: Likewise.
81790         * sysdeps/x86_64/bits/atomic.h: Likewise.
81791
81792 2012-03-02  David S. Miller  <davem@davemloft.net>
81793
81794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
81795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
81796         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
81797         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
81798         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
81799         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
81800         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
81801         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
81802
81803 2012-03-02  Roland McGrath  <roland@hack.frob.com>
81804
81805         [BZ #13792]
81806         * manual/examples/README: New file, says the example source files
81807         can be used under GPL>=2.
81808         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
81809         line containing just "*/".
81810         * manual/examples/add.c: Add copyright header (GPL>=2).
81811         * manual/examples/argp-ex1.c: Likewise.
81812         * manual/examples/argp-ex2.c: Likewise.
81813         * manual/examples/argp-ex3.c: Likewise.
81814         * manual/examples/argp-ex4.c: Likewise.
81815         * manual/examples/atexit.c: Likewise.
81816         * manual/examples/db.c: Likewise.
81817         * manual/examples/dir.c: Likewise.
81818         * manual/examples/dir2.c: Likewise.
81819         * manual/examples/execinfo.c: Likewise.
81820         * manual/examples/filecli.c: Likewise.
81821         * manual/examples/filesrv.c: Likewise.
81822         * manual/examples/fmtmsgexpl.c: Likewise.
81823         * manual/examples/genpass.c: Likewise.
81824         * manual/examples/inetcli.c: Likewise.
81825         * manual/examples/inetsrv.c: Likewise.
81826         * manual/examples/isockad.c: Likewise.
81827         * manual/examples/longopt.c: Likewise.
81828         * manual/examples/memopen.c: Likewise.
81829         * manual/examples/memstrm.c: Likewise.
81830         * manual/examples/mkfsock.c: Likewise.
81831         * manual/examples/mkisock.c: Likewise.
81832         * manual/examples/mygetpass.c: Likewise.
81833         * manual/examples/pipe.c: Likewise.
81834         * manual/examples/popen.c: Likewise.
81835         * manual/examples/rprintf.c: Likewise.
81836         * manual/examples/search.c: Likewise.
81837         * manual/examples/select.c: Likewise.
81838         * manual/examples/setjmp.c: Likewise.
81839         * manual/examples/sigh1.c: Likewise.
81840         * manual/examples/sigusr.c: Likewise.
81841         * manual/examples/stpcpy.c: Likewise.
81842         * manual/examples/strdupa.c: Likewise.
81843         * manual/examples/strftim.c: Likewise.
81844         * manual/examples/strncat.c: Likewise.
81845         * manual/examples/subopt.c: Likewise.
81846         * manual/examples/swapcontext.c: Likewise.
81847         * manual/examples/termios.c: Likewise.
81848         * manual/examples/testopt.c: Likewise.
81849         * manual/examples/testpass.c: Likewise.
81850         * manual/examples/timeval_subtract.c: Likewise.
81851
81852         [BZ #13792]
81853         * manual/time.texi (Elapsed Time): Move timeval_subtract example
81854         function to ...
81855         * manual/timeval_subtract.c.texi: ... here, new file.
81856
81857 2012-03-02  David S. Miller  <davem@davemloft.net>
81858
81859         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
81860
81861 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
81862
81863         [BZ #3976]
81864         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
81865         (__sin): Save and restore rounding mode and use round-to-nearest
81866         for all computations.
81867         (__cos): Save and restore rounding mode and use round-to-nearest
81868         for all computations.
81869         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
81870         <fenv.h>.
81871         (tan): Save and restore rounding mode and use round-to-nearest for
81872         all computations.
81873         * math/libm-test.inc (cos_test_tonearest): New function.
81874         (cos_test_towardzero): Likewise.
81875         (cos_test_downward): Likewise.
81876         (cos_test_upward): Likewise.
81877         (sin_test_tonearest): Likewise.
81878         (sin_test_towardzero): Likewise.
81879         (sin_test_downward): Likewise.
81880         (sin_test_upward): Likewise.
81881         (tan_test_tonearest): Likewise.
81882         (tan_test_towardzero): Likewise.
81883         (tan_test_downward): Likewise.
81884         (tan_test_upward): Likewise.
81885         (main): Call the new functions.
81886         * sysdeps/i386/fpu/libm-test-ulps: Update.
81887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81888
81889         [BZ #10135]
81890         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
81891         small n, then large n, before computing and testing k+n.
81892         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
81893         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
81894         Likewise.
81895         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
81896         Likewise.
81897         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
81898         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
81899         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
81900         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
81901         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
81902         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
81903         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
81904         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
81905         * math/libm-test.inc (scalbn_test): Add more tests.
81906         (scalbln_test): Likewise.
81907
81908         * manual/filesys.texi (mode_t): Describe constraints on size and
81909         signedness, not exact equivalence to a particular type.
81910         (ino_t): Likewise.
81911         (ino64_t): Likewise.
81912         (dev_t): Likewise.
81913         (nlink_t): Likewise.
81914         (blkcnt_t): Likewise.
81915         (blkcnt64_t): Likewise.
81916         * manual/llio.texi (off_t): Likewise.
81917
81918         [BZ #3976]
81919         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
81920         (__ieee754_exp): Save and restore rounding mode and use
81921         round-to-nearest for all computations.
81922         * math/libm-test.inc (exp_test_tonearest): New function.
81923         (exp_test_towardzero): Likewise.
81924         (exp_test_downward): Likewise.
81925         (exp_test_upward): Likewise.
81926         (main): Call the new functions.
81927         * sysdeps/i386/fpu/libm-test-ulps: Update.
81928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81929
81930 2012-03-01  Chris Demetriou  <cgd@google.com>
81931
81932         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
81933         have predictable order.
81934
81935 2012-03-01  David S. Miller  <davem@davemloft.net>
81936
81937         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
81938
81939         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
81940         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
81941         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
81942         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
81943
81944         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
81945         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
81946         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
81947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
81948         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
81949         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
81950         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
81951         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
81952         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
81953
81954         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81955
81956         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
81957         * sysdeps/sparc/fpu/libm-test-ulps: to here.
81958         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
81959
81960         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
81961         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
81962         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
81963         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
81964         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
81965         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
81966         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
81967         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
81968         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
81969         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
81970         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
81971         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81972         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
81973         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
81974         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
81975         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
81976         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
81977         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
81978         * sysdeps/sparc/elf/configure: Regenerated.
81979
81980 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
81981
81982         * configure.in (AS, LD): Require binutils 2.20 or later.
81983         * configure: Regenerated.
81984         * manual/install.texi (Tools for Compilation): Give binutils 2.20
81985         as required minimum version.
81986         * INSTALL: Regenerated.
81987
81988         [BZ #2541]
81989         [BZ #4108]
81990         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
81991         before squaring exponent.
81992         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
81993         bottom long double and 27 bits of top long double before squaring
81994         exponent.
81995         * math/libm-test.inc (erfc_test): Add more tests.
81996         * sysdeps/i386/fpu/libm-test-ulps: Update.
81997         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
81998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81999
82000 2012-03-01  Kai Tietz  <ktietz@redhat.com>
82001
82002         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
82003         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
82004         containing bit-fields.
82005         * soft-fp/extended.h (_FP_UNION_E): Likewise.
82006         * soft-fp/single.h (_FP_UNION_S): Likewise.
82007         * soft-fp/double.h (_FP_UNION_D): Likewise.
82008
82009 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
82010
82011         [BZ #13786]
82012         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
82013         not include ../strcmp.S.
82014         [USE_AS_STRNCASECMP_L]: Likewise.
82015         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
82016         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
82017         * sysdeps/i386/i686/multiarch/strncase_l-c.c
82018         (__strncasecmp_l_ia32): Define as alias to
82019         __strncasecmp_l_nonascii.
82020
82021         [BZ #5794]
82022         * math/libm-test.inc (expm1_test): Add test for bug 5794.
82023         * sysdeps/i386/fpu/libm-test-ulps: Update.
82024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82025
82026         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
82027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82028
82029 2012-02-29  Jeff Law  <law@redhat.com>
82030
82031         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
82032         out of bounds read.
82033
82034 2012-02-29  Marek Polacek  <polacek@redhat.com>
82035
82036         [BZ #13706]
82037         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
82038         * elf/Makefile: Add rules to run tst-unused-dep.out.
82039
82040 2012-02-28  David S. Miller  <davem@davemloft.net>
82041
82042         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
82043         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
82044         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
82045         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
82046         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
82047         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
82048
82049 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
82050
82051         * math/libm-test.inc (llround_test): Move one test from
82052         lround_test.  Use TEST_f_L in moved test.
82053         (lround_test): Move misplaced test to llround_test.  Add testcase
82054         from bug 2561.
82055
82056 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
82057
82058         * sysdeps/x86_64/fpu/e_expf.S: New file.
82059         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
82060
82061 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
82062
82063         [BZ #13637]
82064         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
82065         of remain_len that may cause incomplete multi-byte character and
82066         false match.
82067         * posix/bug-regex33.c: New file.
82068         * posix/Makefile (tests): Add bug-regex33.
82069
82070 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
82071
82072         * manual/macros.texi: New file.
82073         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
82074         * manual/libc.texinfo: Include macros.texi.
82075         * manual/creatute.texi: Likewise.
82076         * manual/install.texi: Likewise.
82077         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
82078         @glibcadj{} in references to the GNU C Library.
82079         * manual/charset.texi: Likewise.
82080         * manual/conf.texi: Likewise.
82081         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
82082         when not using those macros.
82083         * manual/creature.texi: Likewise.
82084         * manual/crypt.texi: Likewise.
82085         * manual/errno.texi: Likewise.
82086         * manual/filesys.texi: Likewise.
82087         * manual/header.texi: Likewise.
82088         * manual/install.texi: Likewise.
82089         * manual/intro.texi: Likewise.
82090         * manual/io.texi: Likewise.
82091         * manual/job.texi: Likewise.
82092         * manual/lang.texi: Likewise.
82093         * manual/libc.texiinfo: Likewise.
82094         * manual/llio.texi: Likewise.
82095         * manual/locale.texi: Likewise.
82096         * manual/maint.texi: Likewise.
82097         * manual/math.texi: Likewise.
82098         * manual/memory.texi: Likewise.
82099         * manual/message.texi: Likewise.
82100         * manual/nss.texi: Likewise.
82101         * manual/pattern.texi: Likewise.
82102         * manual/process.texi: Likewise.
82103         * manual/resource.texi: Likewise.
82104         * manual/search.texi: Likewise.
82105         * manual/setjmp.texi: Likewise.
82106         * manual/signal.texi: Likewise.
82107         * manual/socket.texi: Likewise.
82108         * manual/startup.texi: Likewise.
82109         * manual/stdio.texi: Likewise.
82110         * manual/string.texi: Likewise.
82111         * manual/sysinfo.texi: Likewise.
82112         * manual/syslog.texi: Likewise.
82113         * manual/terminal.texi: Likewise.
82114         * manual/time.texi: Likewise.
82115         * manual/users.texi: Likewise.
82116         * INSTALL: Regenerated.
82117         * NOTES: Regenerated.
82118         * sysdeps/gnu/errlist.c: Regenerated.
82119
82120 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
82121
82122         * include/dirent.h: Include <dirstream.h> before
82123         <dirent/dirent.h>.
82124
82125 2012-02-28  David S. Miller  <davem@davemloft.net>
82126
82127         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
82128         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
82129         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
82130         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
82131
82132 2012-02-27  David S. Miller  <davem@davemloft.net>
82133
82134         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
82135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
82136         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
82137         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
82138
82139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
82140         frame pointer instead of stack pointer relative arg slot.
82141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82142         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82143         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82144
82145 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
82146
82147         [BZ #3992]
82148         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
82149
82150 2012-02-27  David S. Miller  <davem@davemloft.net>
82151
82152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
82153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
82155         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
82156         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82157         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82158         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
82159         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
82160
82161 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82162
82163         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
82164         later.  Allow versions 5-9.
82165         * configure: Regenerated.
82166         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
82167         required minimum version and 4.6 as recommended version.  Do not
82168         mention bugs in GCC 2.7 and 2.8.
82169         * INSTALL: Regenerated.
82170
82171 2012-02-27  David S. Miller  <davem@davemloft.net>
82172
82173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
82174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
82175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
82176         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
82177         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
82178         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
82179         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
82180         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
82181
82182         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
82183         manipulate bits before adding and subtracting TWO112[sx].
82184         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
82185
82186 2012-02-27  Roland McGrath  <roland@hack.frob.com>
82187
82188         [BZ #13775]
82189         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
82190         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
82191         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
82192         being in POSIX, because they are in 1003.1-2008.
82193
82194         * rt/tst-aio.c: Include <fcntl.h>.
82195         * rt/tst-aio7.c: Likewise.
82196         * rt/tst-aio64.c: Likewise.
82197
82198         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
82199
82200 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82201
82202         * manual/install.texi (--with-headers): Describe headers as
82203         interface headers, not private headers.
82204         (Specific advice for GNU/Linux systems): Describe use of headers
82205         from "make headers_install", not private headers from older
82206         kernels.
82207         * INSTALL: Regenerated.
82208         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
82209         Change to 2.6.19.
82210         * sysdeps/unix/sysv/linux/configure: Regenerated.
82211
82212         * manual/llio.texi (fclean): Remove documentation.
82213
82214         * manual/Makefile (libc-texi-generated): New variable.  Include
82215         version.texi.
82216         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
82217         $(libc-texi-generated), not duplicated list of files.
82218         (version.texi, stamp-version): New rules.
82219         (realclean): Remove $(libc-texi-generated), not individual files
82220         from that list.  Do not remove dir-add.texinfo.
82221         * manual/libc.texinfo: Comment out uses of edition numbers and
82222         references to printed manual.  Remove last-updated dates.
82223         (EDITION): Comment out.
82224         (ISBN): Likewise.
82225         (VERSION, UPDATED): Remove.
82226         (version.texi): Include.
82227
82228 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
82229
82230         * sysdeps/posix/spawni.c: Include <signal.h>.
82231         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
82232         * sysdeps/pthread/aio_fsync.c: Likewise.
82233
82234 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
82235
82236         * conform/Makefile (tests): Run only when not cross-compiling and
82237         when fast-check is not defined.
82238
82239         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
82240         * conform/data/limits.h-data: Fixes for POSIX2008.
82241         * conform/run-conformtest.sh: Run all tests.
82242         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
82243         headers.
82244         * include/bits/dlfcn.h: Likewise.
82245         * include/langinfo.h: Likewise.
82246         * include/monetary.h: Likewise.
82247         * include/sys/poll.h: Likewise.
82248
82249         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
82250         for __USE_GNU.
82251         * posix/spawn.h: Define __need_sigset_t.
82252         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
82253         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
82254         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
82255         to get sigevent_t only.
82256         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
82257         only for __USE_GNU.
82258         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82259         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
82260         process_vm_writev only for __USE_GNU.
82261         * termios/termios.h: Declare tcgetsid also for POSIX2008.
82262
82263         * conform/Makefile: For now ignore errors from run-conformtest.
82264         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
82265         POSIX to avoid namespace pollution.  Don't prepend headers.
82266         * conform/data/aio.h-data: Fixes for POSIX testing.
82267         * conform/data/fcntl.h-data: Likewise.
82268         * conform/data/glob.h-data: Likewise.
82269         * conform/data/grp.h-data: Likewise.
82270         * conform/data/pthread.h-data: Likewise.
82271         * conform/data/pwd.h-data: Likewise.
82272         * conform/data/signal.h-data: Likewise.
82273         * conform/data/spawn.h-data: Likewise.
82274         * conform/data/stdio.h-data: Likewise.
82275         * conform/data/stdlib.h-data: Likewise.
82276         * conform/data/stropts.h-data: Likewise.
82277         * conform/data/sys/mman.h-data: Likewise.
82278         * conform/data/sys/stat.h-data: Likewise.
82279         * conform/data/sys/types.h-data: Likewise.
82280         * conform/data/sys/wait.h-data: Likewise.
82281         * conform/data/time.h-data: Likewise.
82282         * conform/data/unistd.h-data: Likewise.
82283         * conform/data/utime.h-data: Likewise.
82284
82285         * io/sys/stat.h: fchmod was always in POSIX.
82286         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
82287         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
82288         * rt/aio.h: Define __need_timespec before including <time.h>.
82289         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
82290         struct.  Add forward declaration of pthread_attr_t and use it in
82291         sigevent.
82292         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
82293         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
82294         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
82295         always remove CLK_TCK definition.
82296
82297 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
82298
82299         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
82300
82301 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
82302
82303         * conform/run-conformtest.sh: New file.
82304         * conform/Makefile: Run run-conformtest for tests.
82305         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
82306         support.
82307
82308         * conform/data/uchar.h-data: New file.
82309         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
82310         * conform/data/arpa/inet.h-data: Likewise.
82311         * conform/data/assert.h-data: Likewise.
82312         * conform/data/complex.h-data: Likewise.
82313         * conform/data/cpio.h-data: Likewise.
82314         * conform/data/ctype.h-data: Likewise.
82315         * conform/data/dirent.h-data: Likewise.
82316         * conform/data/dlfcn.h-data: Likewise.
82317         * conform/data/errno.h-data: Likewise.
82318         * conform/data/fcntl.h-data: Likewise.
82319         * conform/data/float.h-data: Likewise.
82320         * conform/data/fmtmsg.h-data: Likewise.
82321         * conform/data/fnmatch.h-data: Likewise.
82322         * conform/data/ftw.h-data: Likewise.
82323         * conform/data/glob.h-data: Likewise.
82324         * conform/data/grp.h-data: Likewise.
82325         * conform/data/iconv.h-data: Likewise.
82326         * conform/data/inttypes.h-data: Likewise.
82327         * conform/data/langinfo.h-data: Likewise.
82328         * conform/data/libgen.h-data: Likewise.
82329         * conform/data/limits.h-data: Likewise.
82330         * conform/data/locale.h-data: Likewise.
82331         * conform/data/math.h-data: Likewise.
82332         * conform/data/monetary.h-data: Likewise.
82333         * conform/data/mqueue.h-data: Likewise.
82334         * conform/data/ndbm.h-data: Likewise.
82335         * conform/data/net/if.h-data: Likewise.
82336         * conform/data/netdb.h-data: Likewise.
82337         * conform/data/netinet/in.h-data: Likewise.
82338         * conform/data/nl_types.h-data: Likewise.
82339         * conform/data/poll.h-data: Likewise.
82340         * conform/data/pthread.h-data: Likewise.
82341         * conform/data/pwd.h-data: Likewise.
82342         * conform/data/regex.h-data: Likewise.
82343         * conform/data/sched.h-data: Likewise.
82344         * conform/data/search.h-data: Likewise.
82345         * conform/data/semaphore.h-data: Likewise.
82346         * conform/data/setjmp.h-data: Likewise.
82347         * conform/data/signal.h-data: Likewise.
82348         * conform/data/spawn.h-data: Likewise.
82349         * conform/data/stdarg.h-data: Likewise.
82350         * conform/data/stdio.h-data: Likewise.
82351         * conform/data/stdlib.h-data: Likewise.
82352         * conform/data/string.h-data: Likewise.
82353         * conform/data/strings.h-data: Likewise.
82354         * conform/data/stropts.h-data: Likewise.
82355         * conform/data/sys/ipc.h-data: Likewise.
82356         * conform/data/sys/mman.h-data: Likewise.
82357         * conform/data/sys/msg.h-data: Likewise.
82358         * conform/data/sys/resource.h-data: Likewise.
82359         * conform/data/sys/select.h-data: Likewise.
82360         * conform/data/sys/sem.h-data: Likewise.
82361         * conform/data/sys/shm.h-data: Likewise.
82362         * conform/data/sys/socket.h-data: Likewise.
82363         * conform/data/sys/stat.h-data: Likewise.
82364         * conform/data/sys/statvfs.h-data: Likewise.
82365         * conform/data/sys/time.h-data: Likewise.
82366         * conform/data/sys/timeb.h-data: Likewise.
82367         * conform/data/sys/times.h-data: Likewise.
82368         * conform/data/sys/types.h-data: Likewise.
82369         * conform/data/sys/uio.h-data: Likewise.
82370         * conform/data/sys/un.h-data: Likewise.
82371         * conform/data/sys/utsname.h-data: Likewise.
82372         * conform/data/sys/wait.h-data: Likewise.
82373         * conform/data/syslog.h-data: Likewise.
82374         * conform/data/tar.h-data: Likewise.
82375         * conform/data/termios.h-data: Likewise.
82376         * conform/data/utime.h-data: Likewise.
82377         * conform/data/utmpx.h-data: Likewise.
82378         * conform/data/varargs.h-data: Likewise.
82379         * conform/data/wchar.h-data: Likewise.
82380         * conform/data/wctype.h-data: Likewise.
82381         * conform/data/wordexp.h-data: Likewise.
82382
82383         * include/stropts.h: New file.
82384         * include/uchar.h: New file.
82385         * include/aio.h: Changes to allow conformtest.pl to use the headers.
82386         * include/assert.h: Likewise.
82387         * include/ctype.h: Likewise.
82388         * include/dirent.h: Likewise.
82389         * include/dlfcn.h: Likewise.
82390         * include/fcntl.h: Likewise.
82391         * include/fnmatch.h: Likewise.
82392         * include/glob.h: Likewise.
82393         * include/grp.h: Likewise.
82394         * include/libio.h: Likewise.
82395         * include/locale.h: Likewise.
82396         * include/math.h: Likewise.
82397         * include/net/if.h: Likewise.
82398         * include/netdb.h: Likewise.
82399         * include/netinet/in.h: Likewise.
82400         * include/pthread.h: Likewise.
82401         * include/pwd.h: Likewise.
82402         * include/regex.h: Likewise.
82403         * include/sched.h: Likewise.
82404         * include/search.h: Likewise.
82405         * include/setjmp.h: Likewise.
82406         * include/signal.h: Likewise.
82407         * include/stdio.h: Likewise.
82408         * include/stdlib.h: Likewise.
82409         * include/string.h: Likewise.
82410         * include/sys/cdefs.h: Likewise.
82411         * include/sys/mman.h: Likewise.
82412         * include/sys/msg.h: Likewise.
82413         * include/sys/resource.h: Likewise.
82414         * include/sys/select.h: Likewise.
82415         * include/sys/socket.h: Likewise.
82416         * include/sys/stat.h: Likewise.
82417         * include/sys/statvfs.h: Likewise.
82418         * include/sys/time.h: Likewise.
82419         * include/sys/times.h: Likewise.
82420         * include/sys/uio.h: Likewise.
82421         * include/sys/utsname.h: Likewise.
82422         * include/sys/wait.h: Likewise.
82423         * include/termios.h: Likewise.
82424         * include/time.h: Likewise.
82425         * include/ulimit.h: Likewise.
82426         * include/unistd.h: Likewise.
82427         * include/utime.h: Likewise.
82428         * include/wchar.h: Likewise.
82429         * include/wctype.h: Likewise.
82430         * include/wordexp.h: Likewise.
82431
82432         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
82433
82434         * time/time.h: TIME_UTC must be a macro.
82435         Make timespec_get available for ISO C11 only as well.
82436
82437 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
82438
82439         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
82440         Reported by Peng Haitao <penght@cn.fujitsu.com>.
82441
82442 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82443
82444         * configure.in: Use -o not -a in test for unsupported multi-arch.
82445
82446 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82447
82448         * manual/texinfo.tex: Update to version 2012-01-19.16.
82449
82450 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82451
82452         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
82453
82454 2012-02-24  Roland McGrath  <roland@hack.frob.com>
82455
82456         [BZ #13738]
82457         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
82458         * manual/fdl-1.3.texi: New file.
82459         * manual/fdl-1.1.texi: File removed.
82460
82461         [BZ #13738]
82462         * manual/libc.texinfo (FDL_VERSION): New @set.
82463         Use it for mention of FDL in cover text.
82464         (Documentation License): Use it in @include file name.
82465
82466 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82467             Roland McGrath  <roland@hack.frob.com>
82468
82469         [BZ #5461]
82470         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
82471         (not LONG_LONG_MAX and LONG_LONG_MIN.
82472         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
82473         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
82474         name.
82475         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
82476
82477 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82478
82479         [BZ #2547]
82480         [BZ #11365]
82481         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
82482         manipulate bits before adding and subtracting TWO23[sx].
82483         * math/libm-test.inc (nearbyint_test): Add more tests.
82484
82485 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82486
82487         [BZ #2548]
82488         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
82489         bits before adding and subtracting TWO23[sx].
82490         * math/libm-test.inc (rint_test): Add more tests.
82491         (rint_test_tonearest): Likewise.
82492         (rint_test_towardzero): Likewise.
82493         (rint_test_downward): Likewise.
82494         (rint_test_upward: Likewise.
82495
82496 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82497
82498         [BZ #10110]
82499         * include/stdc-predef.h: New file.  Extracted from features.h.
82500         * include/features.h: Include stdc-predef.h.
82501         * Makefile (headers): Add stdc-predef.h.
82502         * CONFORMANCE (Compiler limitations): Update.
82503
82504 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82505
82506         * manual/libc.texinfo (VERSION, UPDATED): Revert.
82507
82508 2012-02-21  David S. Miller  <davem@davemloft.net>
82509
82510         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
82511         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82512
82513 2012-02-20  David S. Miller  <davem@davemloft.net>
82514
82515         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
82516         using a normal save/restore sequence, rather than allocating a
82517         dummy stack frame just to store a frame pointer and restore.
82518         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82519
82520 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82521
82522         * manual/install.texi: Fix stray word in line-wrapped comment.
82523
82524 2012-02-20  David S. Miller  <davem@davemloft.net>
82525
82526         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
82527         both binutils and gcc support GOTDATA.
82528
82529         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
82530         "rd %pc" in the PIC register setup sequences.
82531
82532         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
82533         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
82534         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82535         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
82536         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82537         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
82538         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
82539         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82540         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
82541         (SYSCALL_ERROR_HANDLER): Likewise.
82542         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82543         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82544         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
82545         (SYSCALL_ERROR_HANDLER): Likewise.
82546
82547         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
82548         (HAVE_GCC_GOTDATA): New.
82549         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
82550         relocation support in both binutils and gcc.
82551         * sysdeps/sparc/elf/configure: Regenerate.
82552
82553         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
82554         * sysdeps/sparc/sparc32/elf/configure: Delete.
82555         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
82556         * sysdeps/sparc/sparc64/elf/configure: Delete.
82557         * sysdeps/sparc/elf/configure.in: New file.
82558         * sysdeps/sparc/elf/configure: Generate.
82559
82560         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
82561         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
82562         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
82563         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
82564         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
82565
82566 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82567
82568         * manual/install.texi: Do not mention specific glibc version
82569         numbers.
82570         * manual/libc.texinfo (VERSION, UPDATED): Update.
82571         (@copying): Use @copyright{} and range of years.
82572
82573 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82574
82575         [BZ #13695]
82576         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
82577         [crti.S not in sysdirs] (generated): Do not append.
82578         [crti.S not in sysdirs] (omit-deps): Likewise.
82579         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
82580         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
82581         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
82582         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
82583         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
82584         Likewise.
82585         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
82586         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
82587         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
82588         * csu/defs.awk: Remove file.
82589         * sysdeps/generic/initfini.c: Likewise.
82590         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
82591         variable.
82592         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
82593         Likewise.
82594
82595 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82596
82597         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
82598         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
82599         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
82600         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
82601         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
82602         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
82603         <bits/epoll.h>.
82604         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
82605         (__EPOLL_PACKED): Define to empty if not defined by
82606         <bits/epoll.h>.
82607         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
82608         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82609         bits/epoll.h.
82610
82611 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82612
82613         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
82614         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
82615         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
82616         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
82617         <bits/timerfd.h>.
82618         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
82619         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82620         bits/timerfd.h.
82621
82622 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82623
82624         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
82625         in C locale.
82626         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82627         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
82628         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
82629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82630
82631 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
82632
82633         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82634         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82635
82636 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
82637
82638         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
82639         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
82640         defined.
82641         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
82642         Likewise.
82643         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
82644         entry for 2.16.
82645
82646 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
82647
82648         * math/w_acos.c: Use non-signaling floating-point comparisons.
82649         * math/w_acosf.c: Likewise.
82650         * math/w_acosh.c: Likewise.
82651         * math/w_acoshf.c: Likewise.
82652         * math/w_acoshl.c: Likewise.
82653         * math/w_acosl.c: Likewise.
82654         * math/w_asin.c: Likewise.
82655         * math/w_asinf.c: Likewise.
82656         * math/w_asinl.c: Likewise.
82657         * math/w_atanh.c: Likewise.
82658         * math/w_atanhf.c: Likewise.
82659         * math/w_atanhl.c: Likewise.
82660         * math/w_exp2.c: Likewise.
82661         * math/w_exp2f.c: Likewise.
82662         * math/w_exp2l.c: Likewise.
82663         * math/w_j0.c: Likewise.
82664         * math/w_j0f.c: Likewise.
82665         * math/w_j0l.c: Likewise.
82666         * math/w_j1.c: Likewise.
82667         * math/w_j1f.c: Likewise.
82668         * math/w_j1l.c: Likewise.
82669         * math/w_jn.c: Likewise.
82670         * math/w_jnf.c: Likewise.
82671         * math/w_log.c: Likewise.
82672         * math/w_log10.c: Likewise.
82673         * math/w_log10f.c: Likewise.
82674         * math/w_log10l.c: Likewise.
82675         * math/w_log2.c: Likewise.
82676         * math/w_log2f.c: Likewise.
82677         * math/w_log2l.c: Likewise.
82678         * math/w_logf.c: Likewise.
82679         * math/w_logl.c: Likewise.
82680         * math/w_sqrt.c: Likewise.
82681         * math/w_sqrtf.c: Likewise.
82682         * math/w_sqrtl.c: Likewise.
82683         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
82684         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
82685         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
82686         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
82687         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
82688
82689 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82690
82691         [BZ #9739]
82692         * manual/string.texi (strnlen): Use correct parameter name in
82693         equivalent expression.
82694
82695 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82696
82697         [BZ #11174]
82698         * manual/users.texi (seteuid): Consistently use neweuid for
82699         argument name.
82700
82701 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82702
82703         [BZ #13704]
82704         * manual/nss.texi (Services in the NSS configuration): Correct
82705         list of services in example configuration file.
82706
82707 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
82708
82709         [BZ #11322]
82710         * manual/arith.texi: Remove statements about negative zero
82711         behaving identically to zero.
82712
82713 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82714
82715         [BZ #5993]
82716         * manual/install.texi: Do not document upgrading from libc5.
82717
82718 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82719
82720         [BZ #4596]
82721         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
82722
82723 2012-02-18  David S. Miller  <davem@davemloft.net>
82724
82725         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
82726         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
82727         %o7 across the call.
82728         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
82729         instead.
82730         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
82731         SETUP_PIC_REG_LEAF.
82732         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82733         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
82734         * sysdeps/sparc/crtn.S: Likewise.
82735
82736 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
82737
82738         * aout/Makefile: Remove.
82739
82740 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
82741
82742         [BZ #13058]
82743         * manual/examples/argp-ex1.c (main): Format definition in GNU
82744         style.
82745         * manual/examples/argp-ex2.c (main): Likewise.
82746         * manual/examples/argp-ex3.c (main): Likewise.
82747         * manual/examples/argp-ex4.c (main): Likewise.
82748         * manual/examples/longopt.c (main): Use new-style prototype
82749         definition.
82750         * manual/examples/strncat.c (main): Specify return type and use
82751         (void) for arguments.
82752         * manual/examples/subopt.c (main): Use char **argv argument.
82753
82754 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82755
82756         [BZ #5077]
82757         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
82758         rounding modes.
82759
82760 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
82761
82762         [BZ #6907]
82763         * manual/string.texi (strchr): Change when strchrnul is
82764         recommended.
82765
82766 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
82767
82768         [BZ #174]
82769         * manual/locale.texi (setlocale): Document LOCPATH.
82770
82771 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82772
82773         [BZ #10210]
82774         * manual/process.texi (execle): Move @dots{} before last argument.
82775
82776 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
82777
82778         [BZ #12047]
82779         * manual/charset.texi (Generic Charset Conversion): Fix typo
82780         (LC_TYPE -> LC_CTYPE).
82781
82782 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
82783
82784         [BZ #5805]
82785         * manual/arith.texi (scalbn): Use @var{} on parameter names.
82786         (scalbnf): Likewise.
82787         (scalbnl): Likewise.
82788         (scalbln): Likewise.
82789         (scalblnf): Likewise.
82790         (scalblnl): Likewise.
82791         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
82792         (vwarnx): Likewise.
82793         (verr): Likewise.
82794         (verrx): Likewise.
82795         * manual/filesys.texi (telldir): Use braces around return type.
82796         * manual/llio.texi (mmap): Add space after comma.
82797         (mmap64): Likewise.
82798         * manual/math.texi (jn): Use @var{} on parameter names.
82799         (jnf): Likewise.
82800         (jnl): Likewise.
82801         (yn): Likewise.
82802         (ynf): Likewise.
82803         (ynl): Likewise.
82804         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
82805         line.
82806         * manual/resource.texi (ulimit): Use @dots{} instead of literal
82807         "...".
82808         (sched_get_priority_min): Remove semicolon on @deftypefun line.
82809         (sched_get_priority_max): Likewise.
82810         * manual/signal.texi (sigvec): Add space after comma.
82811         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
82812         names.
82813         (if_indextoname): Likewise.
82814         (if_freenameindex): Likewise.
82815         (sendto): Use ',' instead of '.' in prototype.
82816         * manual/startup.texi (syscall): Use @dots{} instead of literal
82817         "...".
82818         * manual/stdio.texi (__fpending): Separate initial words of
82819         paragraph from @deftypefun line.
82820         * manual/syslog.texi (syslog): Use @dots{} instead of literal
82821         "...".
82822         (vsyslog): Use @var{} on parameter names.
82823         * manual/terminal.texi (stty): Use @var{} on parameter names.
82824         * manual/users.texi (getutmp): Use @var{} on parameter names.
82825         (getutmpx): Likewise.
82826
82827 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82828
82829         [BZ #6884]
82830         * manual/stdio.texi (fopen): Fix typos in description of
82831         ",ccs=STRING".
82832
82833 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
82834
82835         [BZ #4026]
82836         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
82837         get clock_id definition.
82838
82839 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
82840
82841         [BZ #4822]
82842         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
82843         (madvise): Cast every argument to void on its own.
82844
82845 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82846
82847         [BZ #9902]
82848         * manual/startup.texi (Exit Status): Fix typo.
82849
82850 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82851
82852         [BZ #10140]
82853         * manual/examples/argp-ex1.c: Include <stdlib.h>.
82854         * manual/examples/argp-ex2.c: Likewise.
82855         * manual/examples/argp-ex3.c: Likewise.
82856
82857 2012-02-16  Richard Henderson  <rth@redhat.com>
82858
82859         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
82860         * sysdeps/s390/s390-32/initfini.c: Remove.
82861         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
82862         * sysdeps/s390/s390-64/initfini.c: Remove.
82863
82864 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
82865
82866         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
82867         compiler output for sysdeps/generic/initfini.c.
82868         * sysdeps/sh/elf/initfini.c: Remove file.
82869
82870 2012-02-16  David S. Miller  <davem@davemloft.net>
82871
82872         [BZ #11494]
82873         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
82874
82875         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
82876         * sysdeps/sparc/crti.S: New file.
82877         * sysdeps/sparc/crtn.S: New file.
82878         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
82879         * sysdeps/sparc/sparc64/Makefile: Likewise.
82880
82881 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
82882
82883         [BZ #3335]
82884         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
82885
82886 2012-02-15  Roland McGrath  <roland@hack.frob.com>
82887
82888         [BZ #4822]
82889         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
82890
82891         * mach/devstream.c (cookie_io_functions_t): Macro removed.
82892         (write, read, close): Likewise.
82893         Patch by Aurelien Jarno <aurelien@aurel32.net>.
82894
82895 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
82896
82897         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
82898         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
82899         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
82900         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
82901         <bits/signalfd.h>.
82902         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
82903         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82904         bits/signalfd.h.
82905
82906 2012-02-14  Marek Polacek  <polacek@redhat.com>
82907
82908         * sysdeps/x86_64/crti.S: New file.
82909         * sysdeps/x86_64/crtn.S: New file.
82910         * sysdeps/x86_64/elf/initfini.c: Remove file.
82911
82912 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82913
82914         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
82915         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
82916         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
82917         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
82918         <bits/inotify.h>.
82919         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
82920         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82921         bits/inotify.h.
82922
82923 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82924
82925         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
82926         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
82927         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
82928         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
82929         <bits/eventfd.h>.
82930         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
82931         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82932         bits/eventfd.h.
82933
82934 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
82935
82936         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
82937         __feraiseexcept instead of feraiseexcept.
82938
82939         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
82940         nanosleep invocations.
82941         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
82942         strings, and add error checking for a nanosleep invocations.
82943
82944 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         Replace FSF snail mail address with URLs, as per GNU coding standards.
82947         Most of the snail mail addresses were wrong anyway, and omitting
82948         them makes the source code easier to maintain.  Almost all of the
82949         changes are to license notices and to locale LC_IDENTIFICATION
82950         addresses, except for this one:
82951         * manual/libc.texinfo: In "Published by", give the FSF's URL,
82952         not its snail mail address.
82953
82954 2012-02-09  Richard Henderson  <rth@twiddle.net>
82955
82956         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
82957         of kernel-features.h.
82958
82959         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
82960
82961 2012-02-08  Marek Polacek  <polacek@redhat.com>
82962
82963         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
82964         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
82965         * sysdeps/gnu/_G_config.h: Likewise.
82966         * sysdeps/generic/_G_config.h: Likewise.
82967
82968 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
82969
82970         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
82971         tests.
82972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82973
82974         * sysdeps/powerpc/powerpc32/crti.S: New file.
82975         * sysdeps/powerpc/powerpc32/crtn.S: New file.
82976         * sysdeps/powerpc/powerpc64/crti.S: New file.
82977         * sysdeps/powerpc/powerpc64/crtn.S: New file.
82978
82979         * Makeconfig (have-initfini): Don't set.
82980         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
82981         * configure.in (nopic_initfini): Don't substitute.
82982         * config.h.in (HAVE_INITFINI): Don't #undef.
82983         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
82984         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
82985
82986 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
82987
82988         Support crti.S and crtn.S provided directly by architectures.
82989         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
82990         [crti.S in sysdirs] (omit-deps): Likewise.
82991         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
82992         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
82993         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
82994         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
82995         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
82996         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
82997         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
82998         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
82999         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
83000         compiler output for sysdeps/generic/initfini.c.
83001         * sysdeps/i386/elf/Makefile: Remove file.
83002         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
83003
83004 2012-02-07  Marek Polacek  <polacek@redhat.com>
83005
83006         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
83007         * sysdeps/gnu/_G_config.h: Likewise.
83008         * sysdeps/mach/hurd/_G_config.h: Likewise.
83009
83010 2012-02-07  Marek Polacek  <polacek@redhat.com>
83011
83012         * math/Makefile (tests): Add tst-CMPLX2.
83013         * math/tst-CMPLX2.c: New file.
83014
83015 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
83016
83017         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
83018
83019         * math/libm-test.inc (jn_test): Add missing L suffix.
83020
83021 2012-02-06  Marek Polacek  <polacek@redhat.com>
83022
83023         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
83024         * sysdeps/i386/fpu/e_powf.S: Likewise.
83025         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
83026         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
83027         * sysdeps/i386/fpu/e_acosh.S: Likewise.
83028         * sysdeps/i386/fpu/e_pow.S: Likewise.
83029         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
83030         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
83031         * sysdeps/i386/fpu/s_expm1.S: Likewise.
83032         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
83033         * sysdeps/i386/fpu/e_log2.S: Likewise.
83034         * sysdeps/i386/fpu/e_log2l.S: Likewise.
83035         * sysdeps/i386/fpu/e_scalb.S: Likewise.
83036         * sysdeps/i386/fpu/e_powl.S: Likewise.
83037         * sysdeps/i386/fpu/s_log1p.S: Likewise.
83038         * sysdeps/i386/fpu/e_log10f.S: Likewise.
83039         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
83040         * sysdeps/i386/fpu/e_logl.S: Likewise.
83041         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
83042         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
83043         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
83044         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
83045         * sysdeps/i386/fpu/e_log2f.S: Likewise.
83046         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
83047         * sysdeps/i386/fpu/e_log.S: Likewise.
83048         * sysdeps/i386/fpu/s_cexp.S: Likewise.
83049         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
83050         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
83051         * sysdeps/i386/fpu/e_logf.S: Likewise.
83052         * sysdeps/i386/fpu/e_log10l.S: Likewise.
83053         * sysdeps/i386/fpu/e_atanh.S: Likewise.
83054         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
83055         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
83056         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
83057         * sysdeps/i386/fpu/e_log10.S: Likewise.
83058         * sysdeps/i386/fpu/s_frexp.S: Likewise.
83059         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
83060         * sysdeps/i386/fpu/s_asinh.S: Likewise.
83061         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
83062         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
83063         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
83064         * sysdeps/i386/asm-syntax.h: Likewise.
83065         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
83066         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
83067         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
83068         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
83069         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
83070         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
83071         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
83072         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
83073         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
83074         * sysdeps/powerpc/sysdep.h: Likewise.
83075         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
83076         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
83077
83078 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83079
83080         [BZ #411]
83081         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
83082
83083 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83084
83085         * sysdeps/i386/sysdep.h: Include <features.h>.
83086         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
83087         version.
83088
83089 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
83090
83091         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
83092         Define.
83093         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
83094         LOAD_PIC_REG_STR.
83095
83096 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83097
83098         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
83099         (SETUP_PIC_REG): Use GET_PC_THUNK.
83100         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
83101         macro.
83102
83103 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83104
83105         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
83106         for non-PIC compilation.
83107         (SETUP_PIC_REG): Add .p2align directive.
83108         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
83109         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
83110         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
83111         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
83112         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
83113         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
83114         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
83115         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
83116         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
83117         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
83118         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
83119         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
83120         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
83121         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
83122         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
83123         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
83124         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
83125         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
83126         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
83127         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
83128         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
83129         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
83130         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
83131         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
83132         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
83133         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
83134         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
83135         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
83136         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
83137         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
83138         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
83139         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
83140         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
83141         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
83142         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
83143         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
83144         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
83145         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
83146         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
83147         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
83148         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
83149
83150 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83151
83152         * math/tst-CMPLX.c: Include <stdio.h>.
83153
83154 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
83155
83156         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
83157         float.
83158         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83159         * sysdeps/sparc/bits/mathdef.h: Likewise.
83160
83161 2012-01-31  Marek Polacek  <polacek@redhat.com>
83162
83163         * libio/libio.h: Don't define _PARAMS.
83164         * locale/programs/config.h: Don't define PARAMS.
83165         * stdlib/strtol_l.c: Likewise.
83166         (__strtol_l): Remove PARAMS from the prototype.
83167
83168 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
83169
83170         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
83171         names.  Just use the correct names.  Remove unnecessary wrapper
83172         functions.
83173         * malloc/arena.c: Likewise.
83174         * malloc/hooks.c: Likewise.
83175
83176         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
83177         ARENA_TEST says not to.  Simplify test for creation of a new arena.
83178         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
83179
83180 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
83181
83182         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
83183         into tail calls.
83184         (update_get_addr): New function.
83185         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
83186         GET_ADDR_MODULE parameter.
83187
83188 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83189
83190         * crypt/cert.c: Remove __STDC__ conditionals.
83191         * crypt/crypt-entry.c: Likewise.
83192         * crypt/crypt_util.c: Likewise.
83193         * libio/filedoalloc.c: Likewise.
83194         * libio/fileops.c: Likewise.
83195         * libio/genops.c: Likewise.
83196         * libio/iofclose.c: Likewise.
83197         * libio/iofdopen.c: Likewise.
83198         * libio/iofopen.c: Likewise.
83199         * libio/iofopen64.c: Likewise.
83200         * libio/iogetdelim.c: Likewise.
83201         * libio/iopopen.c: Likewise.
83202         * libio/obprintf.c: Likewise.
83203         * libio/oldfileops.c: Likewise.
83204         * libio/oldiofclose.c: Likewise.
83205         * libio/oldiofdopen.c: Likewise.
83206         * libio/oldiofopen.c: Likewise.
83207         * libio/oldiopopen.c: Likewise.
83208         * libio/wfiledoalloc.c: Likewise.
83209         * libio/wgenops.c: Likewise.
83210         * locale/programs/xmalloc.c: Likewise.
83211         * misc/syslog.c: Likewise.
83212         * stdio-common/xbug.c: Likewise.
83213         * string/memchr.c: Likewise.
83214         * string/memcmp.c: Likewise.
83215         * string/memrchr.c: Likewise.
83216         * string/rawmemchr.c: Likewise.
83217         * sysdeps/posix/getcwd.c: Likewise.
83218         * time/strftime_l.c: Likewise.
83219
83220 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83221
83222         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
83223         * config.make.in (config-cflags-sse2avx): Define.
83224         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
83225         Fix typo.
83226
83227 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
83228
83229         * scripts/config.guess: Update from upstream config git repository.
83230         * scripts/config.sub: Likewise.
83231
83232 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
83233
83234         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
83235         (EM_NUM): Update.
83236         (R_TILEPRO_*, R_TILEGX_*): New macros.
83237
83238         * scripts/firstversions.awk: Fix bug in version range handling.
83239
83240         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
83241
83242         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
83243
83244         * include/sys/epoll.h: New file.
83245         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
83246         libc_hidden_def.
83247
83248 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
83249
83250         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
83251         Avoid unnecessary __WORDSIZE == 64 test.
83252         (fmaxf): Use VEX format if possible.
83253         (fmax): Likewise.
83254         (fminf): Likewise.
83255         (fmin): Likewise.
83256
83257         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
83258         * math/math_private.h: Remove libc_fegetround* and
83259         libc_fesetround*.
83260         * sysdeps/i386/configure.in: Check for -msse2avx.
83261         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
83262         also if SSE2AVX is defined.
83263         Remove libc_fegetround* and libc_fesetround*.
83264         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
83265         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
83266         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
83267         of HAS_YMM_USABLE.
83268         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83269         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83270         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83271         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83272         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83273
83274         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
83275
83276 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83277
83278         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
83279         size is not set.
83280         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83281
83282 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
83283
83284         [BZ #13618]
83285         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
83286         relocation.
83287         * Makeconfig (libm): Define.
83288         * elf/Makefile: Add rules to build and run tst-relsort1.
83289         * elf/tst-relsort1.c: New file.
83290         * elf/tst-relsort1mod1.c: New file.
83291         * elf/tst-relsort1mod2.c: New file.
83292
83293 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
83294
83295         * math/s_ldexp.c: Remove __STDC__ conditionals.
83296         * math/s_ldexpf.c: Likewise.
83297         * math/s_ldexpl.c: Likewise.
83298         * math/s_nextafter.c: Likewise.
83299         * math/s_nexttowardf.c: Likewise.
83300         * math/s_significand.c: Likewise.
83301         * math/s_significandf.c: Likewise.
83302         * math/s_significandl.c: Likewise.
83303         * math/w_jnl.c: Likewise.
83304         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
83305         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
83306         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
83307         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
83308         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
83309         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
83310         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
83311         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
83312         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
83313         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
83314         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
83315         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
83316         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
83317         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
83318         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
83319         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
83320         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
83321         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
83322         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
83323         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
83324         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
83325         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
83326         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
83327         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
83328         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
83329         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
83330         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
83331         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
83332         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
83333         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
83334         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
83335         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
83336         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
83337         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
83338         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
83339         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
83340         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
83341         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
83342         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
83343         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
83344         * sysdeps/ieee754/k_standard.c: Likewise.
83345         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
83346         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
83347         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
83348         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
83349         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
83350         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
83351         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
83352         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
83353         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
83354         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
83355         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
83356         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
83357         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
83358         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
83359         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
83360         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
83361         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
83362         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
83363         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
83364         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
83365         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
83366         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
83367         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
83368         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
83369         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
83370         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
83371         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
83372         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
83373         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
83374         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
83375         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
83376         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
83377         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
83378         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
83379         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
83380         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
83381         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
83382         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
83383         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
83384         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
83385         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
83386         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
83387         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
83388         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
83389         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
83390         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
83391         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
83392         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
83393         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
83394         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
83395         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
83396         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
83397         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
83398         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
83399         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
83400         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
83401         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
83402         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
83403         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
83404         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
83405         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
83406         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
83407         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
83408         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
83409         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
83410         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
83411         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
83412         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
83413         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
83414         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
83415         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
83416         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
83417         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
83418         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
83419         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
83420         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
83421         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
83422         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
83423         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
83424         * sysdeps/ieee754/s_matherr.c: Likewise.
83425         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
83426         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
83427         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
83428         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
83429
83430 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83431
83432         * crypt/md5.h: Remove __STDC__ conditionals.
83433         * libio/libioP.h: Likewise.
83434         * locale/programs/config.h: Likewise.
83435         * sysdeps/generic/sysdep.h: Likewise.
83436         * sysdeps/i386/asm-syntax.h: Likewise.
83437         * sysdeps/s390/asm-syntax.h: Likewise.
83438         * sysdeps/unix/sysdep.h: Likewise.
83439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
83440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
83441
83442 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83443
83444         * libio/libio.h: Remove __STDC__ conditionals.
83445         * malloc/obstack.h: Likewise.
83446         * math/complex.h: Likewise.
83447         * math/math.h: Likewise.
83448         * sysdeps/generic/_G_config.h: Likewise.
83449         * sysdeps/gnu/_G_config.h: Likewise.
83450         * sysdeps/mach/hurd/_G_config.h: Likewise.
83451         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83452         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83453         * sysdeps/sparc/bits/mathdef.h: Likewise.
83454
83455 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
83456
83457         [BZ #13583]
83458         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
83459         Clean up HAS_* macros.
83460         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
83461         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
83462         possible.
83463         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
83464         HAS_AVX.
83465         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83466         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83467         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83468         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83469         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83470
83471 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
83472
83473         * elf/tst-unique3.cc (gets): Remove declaration.
83474         * elf/tst-unique3lib.cc (gets): Likewise.
83475         * elf/tst-unique3lib2.cc (gets): Likewise.
83476         * elf/tst-unique4.cc (gets): Likewise.
83477
83478 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
83479
83480         * include/stdio.h: Add C++ protection.  Add gets declarations and
83481         definitions.
83482         * debug/tst-chk1.c: Don't declare gets here.
83483         * stdio-common/tst-gets.c: Likewise.
83484
83485 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83486
83487         * posix/glob: Remove directory.
83488
83489 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83490
83491         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
83492
83493 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
83494
83495         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
83496         of the non-standard EPFNOSUPPORT.
83497
83498 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83499
83500         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
83501         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
83502         ANYWHERE set to 1 only on KERN_NO_SPACE error.
83503
83504 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
83505
83506         * wcsmbs/uchar.h: Test __STDC_VERSION__.
83507
83508 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
83509
83510         * nscd/aicache.c (addhstaiX): Do not cache negative results of
83511         transient errors.
83512         * nscd/grpcache.c (cache_addgr): Likewise.
83513         * nscd/hstcache.c (cache_addhst): Likewise.
83514         * nscd/initgrcache.c (addinitgroupsX): Likewise.
83515         * nscd/pwdcache.c (cache_addpw): Likewise.
83516         * nscd/servicescache.c (cache_addserv): Likewise.
83517
83518 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
83519
83520         * malloc/malloc.c: Various cleanups.
83521         * malloc/hooks.c: Likewise.
83522
83523         * stdlib/Makefile (tests): Add bug-fmtmsg1.
83524         * stdlib/bug-fmtmsg1.c: New file.
83525
83526         * stdlib/fmtmsg.c (init): Add missing unlock.
83527         Patch by Peng Haitao <penght@cn.fujitsu.com>.
83528
83529 2012-01-12  Marek Polacek  <polacek@redhat.com>
83530
83531         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
83532         and _GNU_SOURCE.
83533
83534 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
83535
83536         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
83537         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
83538         macro to ensure uniqueness of label name.
83539         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83540         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83541
83542 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
83543
83544         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
83545
83546         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
83547         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
83548         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
83549         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
83550
83551 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
83552
83553         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
83554
83555         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
83556         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
83557         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
83558
83559         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
83560
83561         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
83562         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
83563         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
83564         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
83565
83566         * math/bits/math-finite.h: Add ldexp support.
83567
83568 2012-01-10  Marek Polacek  <polacek@redhat.com>
83569
83570         * locale/programs/localedef.h (show_archive_content): Add noreturn
83571         attribute.
83572
83573 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
83574
83575         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
83576
83577 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83578
83579         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
83580
83581         * io/Makefile (headers): Add bits/poll2.h.
83582
83583 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
83584
83585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
83586         typo #include statement.
83587
83588 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83589
83590         * include/sys/cdefs.h: Define __attribute_alloc_size.
83591         * catgets/gencat.c: Add alloc_size attribute and apply consistently
83592         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
83593         * elf/pldd.c: Likewise.
83594         * iconv/iconv_charmap.c: Likewise.
83595         * iconv/iconvconfig.c: Likewise.
83596         * iconv/strtab.c: Likewise.
83597         * locale/programs/locale.c: Likewise.
83598         * locale/programs/localedef.h: Likewise.
83599         * locale/programs/simple-hash.c: Likewise.
83600         * nscd/nscd.h: Likewise.
83601         * nss/makedb.c: Likewise.
83602         * sysdeps/generic/ldconfig.h: Likewise.
83603         * locale/programs/localedef.c: Remove xmalloc prototype.
83604         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
83605
83606 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
83607
83608         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
83609         appropriate.
83610
83611 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83612
83613         * math/Makefile (tests): Add tst-CMPLX.
83614         * math/tst-CMPLX.c: New file.
83615
83616         * math/complex.h (CMPLXL): Fix typo.
83617
83618         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
83619         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
83620         GLIBC_2.16.
83621         * debug/tst-chk1.c: Add poll and ppoll tests.
83622         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
83623         * include/sys/poll.h: Add hidden proto for ppoll.
83624         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
83625         * sysdeps/mach/hurd/ppoll.c: Likewise.
83626         * io/ppoll.c: Likewise.
83627         * debug/poll_chk.c: New file.
83628         * debug/ppoll_chk.c: New file.
83629         * include/bits/poll2.h: New file.
83630         * io/bits/poll2.h: New file.
83631
83632         [BZ #1350]
83633         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
83634
83635         * configure.in: static is always set to yes.  Remove.
83636         * config.make.in: Don't set build-static.
83637         * Makeconfig: Remove use of build-static.
83638         * dlfcn/Makefile: Likewise.
83639         * elf/Makefile: Likewise.
83640         * math/Makefile: Likewise.
83641         * misc/Makefile: Likewise.
83642         * nptl/Makefile: Likewise.
83643         * sysdeps/mach/hurd/Makefile: Likewise.
83644
83645         * configure.in: PWD_P is not used anymore.
83646         * config.make.in: Remove PWD_P entry.
83647
83648         * configure.in: Remove last remnants of RANLIB.
83649         No need to check for signed size_t anymore.
83650         Don't set libc_commonpagesize and libc_relro_required here for Alpha
83651         and IA-64.
83652         Remove __builtin_expect test because we require at least gcc 3.4.
83653         * aclocal.m4: Likewise.
83654
83655         * wcsmbs/mbrtoc16.c: Implement using towc function.
83656         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
83657         * wcsmbs/wcsmbsload.c: Likewise.
83658         * iconv/gconv_simple.c: Likewise.
83659         * iconv/gconv_int.h: Likewise.
83660         * iconv/gconv_builtin.h: Likewise.
83661         * iconv/iconv_prog.c: Remove CHAR16 handling.
83662
83663         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
83664
83665         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
83666
83667         * configure.in: Remove --with-elf and --enable-bounded options.
83668         Dont set base_machine for ia64.  More non-ELF conditions removed.
83669         Remove testing and setting of leading underscore information.
83670         * config.make.in (build-bounded): Set to no.
83671         * config.h.in: Remove NO_UNDERSCORES entry.
83672         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
83673         them.
83674         * csu/start.c: Remove !NO_UNDERSCORE code.
83675         * locale/localeinfo.h: Likewise.
83676         * sysdeps/generic/machine-gmon.h: Likewise.
83677         * sysdeps/generic/sysdep.h: Likewise.
83678         * sysdeps/i386/sysdep.h: Likewise.
83679         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83680         * sysdeps/mach/sysdep.h: Likewise.
83681         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83682         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83683         * sysdeps/sh/sysdep.h: Likewise.
83684         * sysdeps/sparc/sparc32/alloca.S: Likewise.
83685         * sysdeps/unix/i386/sysdep.S: Likewise.
83686         * sysdeps/unix/sparc/start.c: Likewise.
83687         * sysdeps/unix/sparc/sysdep.S: Likewise.
83688         * sysdeps/unix/sparc/sysdep.h: Likewise.
83689         * sysdeps/unix/start.c: Likewise.
83690         * sysdeps/unix/x86_64/sysdep.S: Likewise.
83691         * sysdeps/x86_64/sysdep.h: Likewise.
83692
83693 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
83694
83695         [BZ #13553]
83696         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
83697         for non-gcc.
83698         * argp/argp-fmtstream.h: Use const instead __const.
83699         * argp/argp.h: Likewise.
83700         * assert/assert.h: Likewise.
83701         * bits/fenv.h: Likewise.
83702         * bits/sched.h: Likewise.
83703         * bits/sigset.h: Likewise.
83704         * bits/sigthread.h: Likewise.
83705         * catgets/nl_types.h: Likewise.
83706         * conform/data/pthread.h-data: Likewise.
83707         * crypt/crypt-private.h: Likewise.
83708         * crypt/crypt.h: Likewise.
83709         * crypt/crypt_util.c: Likewise.
83710         * ctype/ctype.h: Likewise.
83711         * debug/execinfo.h: Likewise.
83712         * debug/mbsnrtowcs_chk.c: Likewise.
83713         * debug/mbsrtowcs_chk.c: Likewise.
83714         * debug/wcsnrtombs_chk.c: Likewise.
83715         * debug/wcsrtombs_chk.c: Likewise.
83716         * debug/wcstombs_chk.c: Likewise.
83717         * dirent/dirent.h: Likewise.
83718         * dlfcn/dlfcn.h: Likewise.
83719         * elf/neededtest4.c: Likewise.
83720         * grp/grp.h: Likewise.
83721         * gshadow/gshadow.h: Likewise.
83722         * iconv/gconv.h: Likewise.
83723         * iconv/gconv_int.h: Likewise.
83724         * iconv/gconv_simple.c: Likewise.
83725         * iconv/iconv.h: Likewise.
83726         * iconv/loop.c: Likewise.
83727         * iconv/skeleton.c: Likewise.
83728         * include/aio.h: Likewise.
83729         * include/aliases.h: Likewise.
83730         * include/argz.h: Likewise.
83731         * include/arpa/inet.h: Likewise.
83732         * include/assert.h: Likewise.
83733         * include/dirent.h: Likewise.
83734         * include/dlfcn.h: Likewise.
83735         * include/execinfo.h: Likewise.
83736         * include/fcntl.h: Likewise.
83737         * include/fenv.h: Likewise.
83738         * include/glob.h: Likewise.
83739         * include/grp.h: Likewise.
83740         * include/libintl.h: Likewise.
83741         * include/mntent.h: Likewise.
83742         * include/netdb.h: Likewise.
83743         * include/pwd.h: Likewise.
83744         * include/rpc/netdb.h: Likewise.
83745         * include/sched.h: Likewise.
83746         * include/search.h: Likewise.
83747         * include/shadow.h: Likewise.
83748         * include/signal.h: Likewise.
83749         * include/stdio.h: Likewise.
83750         * include/stdlib.h: Likewise.
83751         * include/string.h: Likewise.
83752         * include/sys/socket.h: Likewise.
83753         * include/sys/stat.h: Likewise.
83754         * include/sys/statfs.h: Likewise.
83755         * include/sys/statvfs.h: Likewise.
83756         * include/sys/syslog.h: Likewise.
83757         * include/sys/time.h: Likewise.
83758         * include/sys/uio.h: Likewise.
83759         * include/time.h: Likewise.
83760         * include/unistd.h: Likewise.
83761         * include/utmp.h: Likewise.
83762         * include/wchar.h: Likewise.
83763         * include/wctype.h: Likewise.
83764         * inet/aliases.h: Likewise.
83765         * inet/arpa/inet.h: Likewise.
83766         * inet/netinet/ether.h: Likewise.
83767         * inet/netinet/in.h: Likewise.
83768         * intl/libintl.h: Likewise.
83769         * io/bits/fcntl2.h: Likewise.
83770         * io/fcntl.h: Likewise.
83771         * io/ftw.h: Likewise.
83772         * io/sys/poll.h: Likewise.
83773         * io/sys/stat.h: Likewise.
83774         * io/sys/statfs.h: Likewise.
83775         * io/sys/statvfs.h: Likewise.
83776         * io/utime.h: Likewise.
83777         * libio/bits/stdio.h: Likewise.
83778         * libio/bits/stdio2.h: Likewise.
83779         * libio/libio.h: Likewise.
83780         * libio/libioP.h: Likewise.
83781         * libio/stdio.h: Likewise.
83782         * locale/lc-ctype.c: Likewise.
83783         * locale/locale.h: Likewise.
83784         * login/utmp.h: Likewise.
83785         * malloc/arena.c: Likewise.
83786         * malloc/malloc.c: Likewise.
83787         * malloc/malloc.h: Likewise.
83788         * malloc/mcheck.c: Likewise.
83789         * malloc/mtrace.c: Likewise.
83790         * math/bits/mathcalls.h: Likewise.
83791         * math/fenv.h: Likewise.
83792         * math/math_private.h: Likewise.
83793         * misc/bits/error.h: Likewise.
83794         * misc/bits/syslog.h: Likewise.
83795         * misc/err.h: Likewise.
83796         * misc/error.h: Likewise.
83797         * misc/fstab.h: Likewise.
83798         * misc/mntent.h: Likewise.
83799         * misc/regexp.h: Likewise.
83800         * misc/search.h: Likewise.
83801         * misc/sgtty.h: Likewise.
83802         * misc/sys/mman.h: Likewise.
83803         * misc/sys/syslog.h: Likewise.
83804         * misc/sys/uio.h: Likewise.
83805         * misc/sys/xattr.h: Likewise.
83806         * misc/ttyent.h: Likewise.
83807         * nis/rpcsvc/ypclnt.h: Likewise.
83808         * nss/nss.h: Likewise.
83809         * posix/bits/unistd.h: Likewise.
83810         * posix/fnmatch.h: Likewise.
83811         * posix/glob.h: Likewise.
83812         * posix/sched.h: Likewise.
83813         * posix/spawn.h: Likewise.
83814         * posix/sys/wait.h: Likewise.
83815         * posix/unistd.h: Likewise.
83816         * posix/wordexp.h: Likewise.
83817         * pwd/pwd.h: Likewise.
83818         * resolv/netdb.h: Likewise.
83819         * resource/sys/resource.h: Likewise.
83820         * rt/aio.h: Likewise.
83821         * rt/bits/mqueue2.h: Likewise.
83822         * rt/mqueue.h: Likewise.
83823         * shadow/shadow.h: Likewise.
83824         * signal/signal.h: Likewise.
83825         * socket/send.c: Likewise.
83826         * socket/sendto.c: Likewise.
83827         * socket/sys/socket.h: Likewise.
83828         * stdio-common/printf.h: Likewise.
83829         * stdlib/bits/stdlib.h: Likewise.
83830         * stdlib/fmtmsg.h: Likewise.
83831         * stdlib/monetary.h: Likewise.
83832         * stdlib/stdlib.h: Likewise.
83833         * stdlib/ucontext.h: Likewise.
83834         * streams/stropts.h: Likewise.
83835         * string/argz.h: Likewise.
83836         * string/bits/string2.h: Likewise.
83837         * string/string.h: Likewise.
83838         * string/strings.h: Likewise.
83839         * sunrpc/rpc/auth.h: Likewise.
83840         * sunrpc/rpc/auth_des.h: Likewise.
83841         * sunrpc/rpc/clnt.h: Likewise.
83842         * sunrpc/rpc/netdb.h: Likewise.
83843         * sunrpc/rpc/pmap_clnt.h: Likewise.
83844         * sunrpc/rpc/xdr.h: Likewise.
83845         * sysdeps/generic/inttypes.h: Likewise.
83846         * sysdeps/generic/net/if.h: Likewise.
83847         * sysdeps/generic/sys/swap.h: Likewise.
83848         * sysdeps/gnu/net/if.h: Likewise.
83849         * sysdeps/gnu/utmpx.h: Likewise.
83850         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
83851         * sysdeps/i386/i486/bits/string.h: Likewise.
83852         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
83853         * sysdeps/s390/bits/string.h: Likewise.
83854         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
83855         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
83856         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
83857         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
83858         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
83859         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
83860         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
83861         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
83862         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
83863         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
83864         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
83865         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
83866         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
83867         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
83868         * sysdeps/unix/sysv/linux/readv.c: Likewise.
83869         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
83870         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
83871         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
83872         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
83873         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
83874         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
83875         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
83876         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
83877         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
83878         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
83879         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
83880         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
83881         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83882         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
83883         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
83884         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
83885         * sysvipc/sys/ipc.h: Likewise.
83886         * sysvipc/sys/msg.h: Likewise.
83887         * sysvipc/sys/sem.h: Likewise.
83888         * sysvipc/sys/shm.h: Likewise.
83889         * termios/termios.h: Likewise.
83890         * time/sys/time.h: Likewise.
83891         * time/time.h: Likewise.
83892         * wcsmbs/bits/wchar2.h: Likewise.
83893         * wcsmbs/uchar.h: Likewise.
83894         * wcsmbs/wchar.h: Likewise.
83895         * wctype/wctype.h: Likewise.
83896
83897         [BZ #13551]
83898         * Makeconfig: Remove all but ELF support including AIX support.
83899         * Makerules: Likewise.
83900         * config.h.in: Likewise.
83901         * config.make.in: Likewise.
83902         * configure: Likewise.
83903         * configure.in: Likewise.
83904         * csu/Makefile: Likewise.
83905         * csu/version.c: Likewise.
83906         * debug/Makefile: Likewise.
83907         * dlfcn/Makefile: Likewise.
83908         * elf/Makefile: Likewise.
83909         * extra-lib.mk: Likewise.
83910         * iconv/Makefile: Likewise.
83911         * include/libc-symbols.h: Likewise.
83912         * include/shlib-compat.h: Likewise.
83913         * resolv/Makefile: Likewise.
83914         * resolv/res_libc.c: Likewise.
83915         * rt/Makefile: Likewise.
83916         * sysdeps/i386/asm-syntax.h: Likewise.
83917         * sysdeps/i386/sysdep.h: Likewise.
83918         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83919         * sysdeps/mach/sysdep.h: Likewise.
83920         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
83921         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
83922         * sysdeps/s390/asm-syntax.h: Likewise.
83923         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83924         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83925         * sysdeps/sh/sysdep.h: Likewise.
83926         * sysdeps/unix/sparc/sysdep.h: Likewise.
83927         * sysdeps/wordsize-32/divdi3.c: Likewise.
83928         * sysdeps/x86_64/sysdep.h: Likewise.
83929
83930         * argp/Versions: Remove _argp_unlock_xxx.
83931
83932         [BZ #13559]
83933         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
83934         * abilist/libBrokenLocale.abilist: Likewise.
83935         * abilist/libanl.abilist: Likewise.
83936         * abilist/libc.abilist: Likewise.
83937         * abilist/libcrypt.abilist: Likewise.
83938         * abilist/libdl.abilist: Likewise.
83939         * abilist/libm.abilist: Likewise.
83940         * abilist/libnsl.abilist: Likewise.
83941         * abilist/libpthread.abilist: Likewise.
83942         * abilist/libresolv.abilist: Likewise.
83943         * abilist/librt.abilist: Likewise.
83944         * abilist/libthread_db.abilist: Likewise.
83945         * abilist/libutil.abilist: Likewise.
83946         * abilist/libnss_db.abilist: New file.
83947
83948         * scripts/abilist.awk: Add support for indirect functions.
83949
83950         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
83951
83952         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
83953
83954         * shlib-versions: Remove entries for ports architectures.
83955
83956         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
83957         files in ports.
83958         * elf/stackguard-macros.h: Remove support for IA-64.
83959         * elf/tst-auditmod1.c: Likewise.
83960         * sysdeps/generic/ldsodefs.h: Likewise.
83961
83962         * sysdeps/unix/sysv/linux/configure.in: Ports should define
83963         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
83964         configure files.
83965
83966         [BZ #13552]
83967         * configure.in: Remove --enable-omitfp support.
83968         * FAQ.in: Adjust.
83969         * config.make.in: Likewise.
83970         * Makeconfig: Likewise.
83971         * manual/install.texi: Likewise.
83972
83973         In case anyone cares, the IA-64 architecture could move to ports.
83974         * sysdeps/ia64/*: Removed.
83975         * sysdeps/unix/sysv/linux/ia64/*: Removed.
83976         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
83977
83978         [BZ #13555]
83979         * configure.in: Remove entries for unsupported architectures.
83980
83981         [BZ #13533]
83982         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
83983         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
83984         routines.
83985         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
83986         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
83987         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
83988         fall back to using wcrtomb.
83989         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
83990         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
83991         renaming.
83992         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
83993         * wcsmbs/tst-c16c32-1.c: New file.
83994
83995         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
83996         local variable.
83997
83998         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
83999
84000         * elf/tst-unique3.cc: Add explicit declaration of gets.
84001         * elf/tst-unique3lib.cc: Likewise.
84002         * elf/tst-unique3lib2.cc: Likewise.
84003         * elf/tst-unique4.cc: Likewise.
84004
84005         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
84006
84007 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
84008
84009         [BZ #13566]
84010         * assert/assert.h (static_assert): Don't define for C++.
84011         * libio/stdio.h (gets): Do declare for C++ <= C++11.
84012         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
84013
84014 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
84015
84016         * iconv/loop.c (single loop): Fix assertion in storing of
84017         remaining bytes.
84018
84019         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
84020
84021 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
84022
84023         * posix/getconf.c: Update copyright year.
84024         * nss/getent.c: Likewise.
84025         * nss/makedb.c: Likewise.
84026         * iconv/iconvconfig.c: Likewise.
84027         * iconv/iconv_prog.c: Likewise.
84028         * elf/ldconfig.c: Likewise.
84029         * elf/pldd.c: Likewise.
84030         * elf/sotruss.ksh: Likewise.
84031         * catgets/gencat.c: Likewise.
84032         * csu/version.c: Likewise.
84033         * elf/ldd.bash.in: Likewise.
84034         * elf/sprof.c (print_version): Likewise.
84035         * locale/programs/locale.c: Likewise.
84036         * locale/programs/localedef.c: Likewise.
84037         * login/programs/pt_chown.c: Likewise.
84038         * nscd/nscd.c (print_version): Likewise.
84039         * debug/xtrace.sh: Likewise.
84040         * malloc/memusage.sh: Likewise.
84041         * malloc/mtrace.pl: Likewise.
84042         * debug/catchsegv.sh: Likewise.
84043
84044 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
84045
84046         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
84047         pure attribute.
84048
84049 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
84050
84051         [BZ #13533]
84052         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
84053         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
84054         transformations.
84055         * iconv/gconv_int.h: Likewise.
84056         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
84057         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
84058         from libc for GLIBC_2.16.
84059         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
84060         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
84061         * wcsmbs/uchar.h: Really define mbstate_t.
84062         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
84063         * wcsmbs/c16rtomb.c: New file.
84064         * wcsmbs/mbrtoc16.c: New file.
84065         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
84066         for C/POSIX locale.
84067         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
84068         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
84069
84070         * wcsmbs/wchar.h: Add missing __restrict.
84071
84072 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84073
84074         [BZ #13532]
84075         * time/Makefile (routines): Add timespec_get.
84076         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
84077         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
84078         timespec for ISO C11.
84079         * time/timespec_get.c: New file.
84080         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
84081         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
84082
84083         [BZ #13531]
84084         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
84085         * stdlib/stdlib.h: Declare aligned_alloc.
84086         * Versions.def: Add GLIBC_2.16 for libc.
84087         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
84088
84089         [BZ 13527]
84090         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
84091         ISO C11.
84092
84093         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
84094         code.
84095
84096         [BZ #13528]
84097         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
84098
84099         [BZ #13529]
84100         * assert/assert.h (static_assert): Define.
84101
84102         * version.h: Update for 2.16 development version.
84103
84104         [BZ #13526]
84105         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
84106         _ISOC11_SOURCE.
84107
84108         * version.h (RELEASE): Bump for 2.15 release.
84109         * include/features.h (__GLIBC_MINOR__): Bump to 15.
84110
84111         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
84112         Patch by Marek Polacek <mpolacek@redhat.com>.
84113
84114         * bits/byteswap.h: Protect long long constants with __extension__.
84115         * sysdeps/i386/bits/byteswap.h: Likewise.
84116         * sysdeps/ia64/bits/byteswap.h: Likewise.
84117         * sysdeps/s390/bits/byteswap.h: Likewise.
84118         * sysdeps/x86_64/bits/byteswap.h: Likewise.
84119
84120 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84121
84122         [BZ #13540]
84123         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
84124         destination buffer.
84125         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
84126
84127 2011-12-23  Marek Polacek  <polacek@redhat.com>
84128
84129         * elf/dl-addr.c (determine_info): Add inline keyword.
84130         * elf/tst-auditmod4b.c (check_avx): Likewise.
84131         * elf/tst-auditmod6b.c (check_avx): Likewise.
84132         * elf/tst-auditmod6c.c (check_avx): Likewise.
84133         * elf/tst-auditmod7b.c (check_avx): Likewise.
84134
84135 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84136
84137         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
84138         !__SSE_MATH__.
84139
84140 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84141
84142         [BZ #13540]
84143         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
84144         processing for last bytes.
84145
84146 2011-08-06  Bruno Haible  <bruno@clisp.org>
84147
84148         [BZ #13061]
84149         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
84150         U+0385, not to U+1FEE.
84151
84152         [BZ #13062]
84153         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
84154         entry for U+00A5 U+0301.
84155
84156 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84157
84158         [BZ #13166]
84159         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
84160         buffer for the output is too small.
84161
84162         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
84163         optimization.
84164
84165         [BZ #13185]
84166         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
84167         SSE flags if possible.
84168
84169 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84170
84171         [BZ #13540]
84172         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
84173         processing for last bytes.
84174
84175 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
84176
84177         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
84178         (syscall-list-default-options, syscall-list-default-condition)
84179         (syscall-list-includes): Define.
84180         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
84181         list of ABIs and options and #if conditions for each ABI.  Do not
84182         handle common syscalls between ABIs specially.
84183         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
84184         Remove.
84185         (syscall-list-variants, syscall-list-32bit-options)
84186         (syscall-list-32bit-condition, syscall-list-64bit-options)
84187         (syscall-list-64bit-condition): Define.
84188         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
84189         (syscall-list-variants, syscall-list-32bit-options)
84190         (syscall-list-32bit-condition, syscall-list-64bit-options)
84191         (syscall-list-64bit-condition): Define.
84192         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
84193         Remove.
84194         (syscall-list-variants, syscall-list-32bit-options)
84195         (syscall-list-32bit-condition, syscall-list-64bit-options)
84196         (syscall-list-64bit-condition): Define.
84197         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
84198         Remove.
84199         (syscall-list-variants, syscall-list-32bit-options)
84200         (syscall-list-32bit-condition, syscall-list-64bit-options)
84201         (syscall-list-64bit-condition): Define.
84202
84203 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84204
84205         * locale/iso-639.def: Add brx entry.
84206
84207         [BZ #13328]
84208         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
84209         Proposed by Mariusz_Cukr <marcukr@op.pl>.
84210
84211         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
84212         __feraiseexcept_renamed.
84213
84214 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84215
84216         [BZ #13538]
84217         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
84218         EPOLLET with unsigned values.
84219         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84220         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84221
84222         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
84223         to large cancellation.
84224         * math/s_cacoshf.c: Likewise.
84225         * math/s_cacoshl.c: Likewise.
84226
84227 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
84228
84229         [BZ #13305]
84230         [BZ #12786]
84231         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
84232         * math/s_cacoshf.c: Likewise.
84233         * math/s_cacoshl.c: Likewise.
84234
84235 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84236
84237         [BZ #13439]
84238         * iconv/gconv.h: Define __GCONV_SWAP.
84239         * iconvdata/unicode.c: The swap bit must be stored in __flags.
84240         * iconvdata/utf-16.c: Likewise.
84241         * iconvdata/utf-32.c: Likewise.
84242
84243 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
84244
84245         [BZ #13524]
84246         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
84247         numerator after shifting it by one limb.
84248
84249 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
84250
84251         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
84252         under [__USE_EXTERN_INLINES].
84253
84254 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84255
84256         [BZ #13446]
84257         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
84258
84259 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84260
84261         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
84262         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
84263         optimized code.
84264         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
84265         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
84266         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
84267         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
84268         for strncasecmp/strncasecmp_l compilation.
84269         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
84270         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
84271
84272 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
84273
84274         [BZ #13484]
84275         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
84276         of __asm__.
84277
84278 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84279
84280         [BZ #13506]
84281         * time/tzfile.c (__tzfile_read): Check values from file header.
84282
84283 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
84284
84285         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
84286         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
84287         * powerpc/powerpc32/dl-start.S: Likewise.
84288         * powerpc/powerpc32/elf/start.S: Likewise.
84289         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
84290         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
84291         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
84292         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
84293         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
84294         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
84295         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
84296         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
84297         * powerpc/powerpc32/fpu/s_round.S: Likewise.
84298         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
84299         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
84300         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
84301         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
84302         * powerpc/powerpc32/memset.S: Likewise.
84303         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
84304         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
84305         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
84306         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
84307         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
84308         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
84309         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
84310         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
84311         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
84312         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
84313         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
84314         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
84315         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
84316
84317 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84318
84319         * math/libm-test.inc: Added more nearbyint tests.
84320         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
84321         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
84322         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
84323         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
84324
84325 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
84326
84327         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
84328         FD_CLOEXEC.
84329
84330 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84331
84332         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
84333         Add wcscpy-ssse3 wcscpy-c.
84334         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
84335         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
84336         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
84337         * sysdeps/x86_64/wcschr.S: New file.
84338         * sysdeps/x86_64/wcsrchr.S: New file.
84339         * string/test-strcmp.c: Remove checking of wcscmp function for
84340         wrong alignments.
84341         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
84342         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
84343         wcsrchr-sse2 wcsrchr-c.
84344         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
84345         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
84346         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
84347         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
84348         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
84349         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
84350         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
84351         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
84352         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
84353         * wcsmbc/wcschr.c (WCSCHR): New macro.
84354
84355 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84356
84357         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
84358         * wcsmbs/test-wcsrchr.c: New file.
84359         * string/test-strrchr.c: Add wcsrchr support.
84360         (WIDE): New macro.
84361         * wcsmbs/test-wcscpy.c: New file.
84362         * string/test-strcpy.c: Add wcscpy support.
84363         (WIDE): New macro.
84364
84365 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
84366
84367         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
84368         the inner loop.
84369
84370 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
84371
84372         [BZ #13472]
84373         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
84374
84375 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
84376
84377         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
84378         Minor optimizations.
84379
84380         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
84381         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
84382         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
84383
84384 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
84385
84386         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
84387         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
84388         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
84389         for gcc to avoid warnings.
84390         * inet/Makefile (tests): Add tst-checks.
84391         * inet/tst-checks.c: New file.
84392
84393         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
84394         warning.
84395
84396         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
84397         __wmemcmp_sse2.
84398
84399         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
84400         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
84401
84402         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
84403
84404 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
84405
84406         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
84407         problem.
84408
84409         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
84410
84411 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
84412
84413         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
84414         conditional on GCC version.
84415         (__arch_compare_and_exchange_val_8_acq)
84416         (__arch_compare_and_exchange_val_16_acq)
84417         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
84418         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
84419         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
84420
84421 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
84422
84423         * sysdeps/sh/backtrace.c: New file.
84424
84425 2011-12-02  Andreas Schwab  <schwab@redhat.com>
84426
84427         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
84428         parenthesis.
84429
84430 2011-12-01  Andreas Schwab  <schwab@redhat.com>
84431
84432         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
84433         falling back to utime.
84434
84435 2011-11-30  Andreas Schwab  <schwab@redhat.com>
84436
84437         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
84438         expectations for float.
84439
84440 2011-11-29  Andreas Schwab  <schwab@redhat.com>
84441
84442         * locale/weight.h (findidx): Add parameter len.
84443         * locale/weightwc.h (findidx): Likewise.
84444         * posix/fnmatch_loop.c (FCT): Adjust caller.
84445         * posix/regcomp.c (build_equiv_class): Likewise.
84446         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
84447         * posix/regexec.c (check_node_accept_bytes): Likewise.
84448         * string/strcoll_l.c (STRCOLL): Likewise.
84449         * string/strxfrm_l.c (STRXFRM): Likewise.
84450
84451 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
84452
84453         * Makefile.in: Remove CVSOPT handling.
84454         * configure.in: Remove use of AC_REVISION.
84455         * iconvdata/Makefile (distribute): No need to filter out CVS.
84456         * scripts/list-sources.sh: Remove CVS, subversion and monotone
84457         handling.
84458
84459 2011-11-16  Andreas Schwab  <schwab@redhat.com>
84460
84461         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
84462         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
84463         [USE_AS_STRNCASECMP_L]: Likewise.
84464         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
84465         NO_TLS_DIRECT_SEG_REFS.
84466         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
84467         Fix argument offsets for non-PIC.
84468         [USE_AS_STRNCASECMP_L]: Likewise.
84469         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
84470         NO_TLS_DIRECT_SEG_REFS.
84471
84472 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84473
84474         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
84475         O_CLOEXEC.
84476         * locale/loadlocale.c (_nl_load_locale): Likewise.
84477
84478 2011-11-15  Andreas Schwab  <schwab@redhat.com>
84479
84480         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
84481         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
84482         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
84483         (SYSCALL_GETTIME): Set errno on error.
84484
84485         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
84486         count references to noai6ai_cached.
84487
84488 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84489
84490         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
84491
84492         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
84493         FD_CLOEXEC for /proc/self/maps.
84494
84495         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
84496         FD_CLOEXEC for /proc/meminfo.
84497
84498         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
84499         gai.conf.
84500
84501         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
84502         FD_CLOEXEC for given file.
84503
84504         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
84505
84506         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
84507         FD_CLOEXEC for /etc/hosts.
84508         (_gethtent): Likewise.
84509
84510         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
84511
84512         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
84513         cancellation and set FD_CLOEXEC for /etc/netgroup.
84514
84515         * nss/nss_files/files-key.c (search): Don't allow cancellation when
84516         reading /etc/publickey.
84517
84518         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
84519         allow cancellation when reading /etc/group.
84520
84521         * nss/nss_files/files-alias.c (internal_setent): Don't allow
84522         cancellation.
84523         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
84524
84525         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
84526         when using data file.
84527
84528         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
84529
84530         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
84531         (write_nis_obj): Use "c" and "e" in fopen.
84532
84533         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
84534
84535         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
84536
84537         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
84538
84539         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
84540
84541         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
84542         locale.alias.
84543
84544         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
84545
84546         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
84547
84548         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
84549
84550         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
84551         file parsing and set FD_CLOEXEC.
84552
84553 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84554
84555         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
84556
84557 2011-11-14  Andreas Schwab  <schwab@redhat.com>
84558
84559         * malloc/arena.c (arena_get2): Don't call reused_arena when
84560         _int_new_arena failed.
84561
84562 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84563
84564         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
84565         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
84566         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
84567         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
84568         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
84569         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
84570         to compile strcasecmp and strncasecmp.
84571         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
84572         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
84573
84574         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
84575
84576 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
84577
84578         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
84579         locale-defines.sym to gen-as-const-headers.
84580         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
84581         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
84582         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
84583         to compile strcasecmp and strncasecmp.
84584         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
84585         strcasecmp_l and strncasecmp_l.
84586         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
84587         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
84588         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
84589         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
84590         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
84591         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
84592         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
84593         * sysdeps/i386/i686/multiarch/strncase.S: New file.
84594         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
84595         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
84596         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
84597
84598 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
84599
84600         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
84601         result of SYSDEP_GETTIME_CPU to retval.
84602         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
84603         parameter list to macro.  Remove trailing semicolon.  Adjust users.
84604
84605         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
84606         variable.
84607
84608         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
84609         mantissa words.
84610         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
84611
84612         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
84613         from unused variable.
84614
84615         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
84616         DWARF definitions.
84617         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
84618         for assembling.
84619
84620         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
84621         over namespaces.
84622
84623         * sunrpc/rpc_prot.c (rejected): Fix case value.
84624
84625         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
84626         unsigned long long int to avoid warnings in shift.
84627
84628         * posix/regex_internal.c (re_string_reconstruct): Actually use result
84629         of use of trans.
84630         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
84631         variable tmp.
84632
84633         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
84634         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
84635         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
84636
84637         * nis/nis_table.c (nis_list): Use variable of correct type for
84638         result of __follow_path call.
84639
84640 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84641
84642         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
84643         of math functions ceil, trunc, floor, round, and sqrt, when
84644         avaliable on the platform.
84645         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
84646         name clash.
84647         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
84648         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
84649         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
84650
84651 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
84652
84653         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
84654         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
84655
84656 2011-11-11  Roland McGrath  <roland@hack.frob.com>
84657
84658         * include/unistd.h: Fix __readlink return type.
84659         Reported by Chris Metcalf <cmetcalf@tilera.com>.
84660
84661 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
84662
84663         * stdlib/ucontext.h: Undo last change for makecontext.
84664
84665 2011-11-11  Andreas Schwab  <schwab@redhat.com>
84666
84667         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
84668
84669         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
84670         * setjmp/setjmp.h: Mark functions as non-leaf.
84671         * setjmp/bits/setjmp2.h: Likewise.
84672         * stdlib/ucontext.h: Likewise.
84673
84674 2011-11-10  Andreas Schwab  <schwab@redhat.com>
84675
84676         * malloc/arena.c (_int_new_arena): Don't increment narenas.
84677         (reused_arena): Don't check arena limit.
84678         (arena_get2): Atomically check arena limit.
84679
84680 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
84681
84682         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
84683         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
84684
84685         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
84686         instructions.
84687
84688 2011-11-07  Andreas Schwab  <schwab@redhat.com>
84689
84690         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
84691         handler when locking.
84692
84693         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
84694         Fix size of allocated buffer.
84695
84696 2011-11-04  Andreas Schwab  <schwab@redhat.com>
84697
84698         [BZ #10103]
84699         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
84700         declarations for long double functions.
84701         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
84702
84703         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
84704
84705 2011-11-03  Andreas Schwab  <schwab@redhat.com>
84706
84707         * nscd/nscd.c (main): Don't start AVC thread until credentials are
84708         installed.
84709
84710         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
84711         is disabled.
84712
84713 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
84714
84715         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
84716
84717 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
84718
84719         * include/alloca.h (stackinfo_alloca_round): Define.
84720         (extend_alloca): Use it.
84721         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
84722         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
84723         here.
84724
84725         * scripts/check-local-headers.sh: Ignore libaudit.h.
84726
84727         * nscd/Makefile (extra-objs): Make recursively expanded.
84728
84729 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
84730
84731         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
84732         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
84733
84734         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
84735         * posix/tst-rfc3484-2.c: Likewise.
84736         * posix/tst-rfc3484-3.c: Likewise.
84737
84738         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
84739         process_vm_writev.
84740         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
84741         process_vm_writev.
84742         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
84743         process_vm_writev from libc using GLIBC_2.15 version.
84744
84745         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
84746
84747 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
84748
84749         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
84750         stack usage.
84751
84752 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
84753
84754         [BZ #13367]
84755         * nss/getent.c (initgroups_keys): Show error message in case no group
84756         names are given.
84757
84758         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
84759         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
84760         __bump_nl_timestamp.
84761         * nscd/connections (nscd_init): When host database is served open
84762         netlink socket and request notification about configuration changes.
84763         (main_loop_poll): Track netlink file descriptor and bump timestamp
84764         in case data becomes available.
84765         (main_loop_epoll): Likewise.
84766         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
84767         (database_pers_head): Add extra_data fileds.
84768         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
84769         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
84770         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
84771         Adjust caller.
84772         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
84773         in6ai data, call __free_in6ai.
84774         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
84775         Add -DHAVE_NETLINK.
84776         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
84777         interface information.  Reuse previous data if netlink timestamp
84778         is not changed.
84779         (__bump_nl_timestamp): New function.
84780         (__free_in6ai): New function.
84781
84782 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
84783
84784         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
84785         close_not_cancel_no_status here.
84786         (__check_pf): Reorganize code a bit to not call close twice if OOM.
84787
84788 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84789
84790         [BZ #13276]
84791         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
84792         return value.
84793
84794         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
84795         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
84796         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
84797
84798 2011-07-03  Andreas Jaeger  <aj@suse.de>
84799
84800         [BZ #10709]
84801         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
84802         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
84803         * math/libm-test.inc (sin_test): Add test case.
84804
84805 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84806
84807         [BZ #13337]
84808         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
84809         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84810
84811         * elf/chroot_canon.c (chroot_canon): Cleanups.
84812
84813         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
84814
84815         [BZ #13335]
84816         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
84817         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84818
84819         * string/test-strchr.c: Make usable for strchrnul testing.
84820         * string/test-strchrnul.c: New file.
84821         * string/Makefile (strop-tests): Add strchrnul.
84822
84823         * po/it.po: Update from translation team.
84824         * po/es.po: Likewise.
84825
84826 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
84827
84828         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
84829         the three constants needed as parameters.  Drop the others.
84830         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
84831         __m128i_strloadu_tolower.
84832         Create and initialize variable zero and use it in all the places
84833         where _mm_setzero_si128 was used.
84834
84835         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
84836         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
84837         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
84838         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
84839         anymore.
84840         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
84841         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
84842         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
84843         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
84844         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
84845         __mpranred, __mptan.
84846         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
84847         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
84848         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
84849         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
84850         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
84851         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
84852         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
84853         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
84854         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
84855
84856 2011-10-28  Andreas Schwab  <schwab@redhat.com>
84857
84858         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
84859         redefine if SHARED.
84860         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
84861
84862         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
84863         wide char related routines to wcsmbs subdir.
84864
84865 2011-10-27  Andreas Schwab  <schwab@redhat.com>
84866
84867         [BZ #13344]
84868         * misc/sys/cdefs.h (__THROWNL): Define.
84869         * posix/unistd.h: Use __THREADNL instead of __THREAD
84870         for memory synchronization functions.
84871
84872 2011-10-26  Roland McGrath  <roland@hack.frob.com>
84873
84874         [BZ #13349]
84875         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
84876         doesn't exist.
84877         * manual/stdio.texi (Obstack Streams): Node removed.
84878
84879 2011-10-26  Andreas Schwab  <schwab@redhat.com>
84880
84881         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
84882         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84883         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84884
84885         * math/math_private.h (math_force_eval): Allow non-addressable
84886         arguments.
84887         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
84888
84889 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84890
84891         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
84892         file is not needed.
84893
84894         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
84895         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
84896         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
84897         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
84898         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
84899         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
84900         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
84901         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
84902         Add AVX variants.
84903         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
84904         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
84905         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
84906         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
84907         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
84908         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
84909         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
84910         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
84911         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
84912         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
84913         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
84914         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
84915         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
84916         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
84917         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
84918         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
84919         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
84920         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
84921         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
84922
84923         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
84924         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
84925
84926         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
84927         place.  Use VEX encoding when compiling for AVX.
84928
84929 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84930
84931         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
84932         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
84933
84934         * string/test-strchr.c (do_test): Don't generate NUL bytes.
84935
84936 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84937
84938         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
84939         useless if() expression.
84940         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84941         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
84942         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
84943         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84944         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
84945         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84946         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84947         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84948         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
84949         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84950         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84951         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84952         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
84953         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84954         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
84955         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84956         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84957         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84958         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
84959
84960         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
84961
84962 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84963
84964         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
84965         condition.
84966         * elf/dl-fini.c (_dl_sort_fini): Likewise.
84967
84968 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84969
84970         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
84971         .text section.  Avoid duplicate constants.
84972         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
84973         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84974         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84975         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84976         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84977         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84978         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84979         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84980         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
84981         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
84982         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
84983         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
84984         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
84985         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
84986         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
84987         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
84988         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
84989         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
84990         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
84991         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84992         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
84993         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
84994         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
84995         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
84996         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
84997         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
84998         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
84999         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
85000         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
85001         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
85002         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
85003         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
85004         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
85005         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
85006         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
85007         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
85008         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
85009         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
85010         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
85011         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
85012         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
85013         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
85014         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
85015         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
85016         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
85017
85018 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
85019
85020         * sysdeps/x86_64/dla.h: Move to ...
85021         * sysdeps/x86_64/fpu/dla.h: ...here.
85022         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
85023         situations.  Use __builtin_fma only for gcc 4.6 and up.
85024
85025         * config.make.in: Add have-mfma4 entry.
85026         * configure.in: Substitute libc_cv_cc_fma4.
85027         * math/Makefile (dbl-only-routines): Add sincostab.
85028         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
85029         Use __sincostab not sincos.
85030         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
85031         name is a macro.
85032         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85033         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85034         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85035         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
85036         using __copysign.
85037         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
85038         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
85039         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
85040         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
85041         and __inv.
85042         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
85043         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
85044         __copysign.
85045         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
85046         define aliases when function name is a macro.
85047         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
85048         sysdeps/ieee754/dbl-64/sincos.tbl.
85049         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
85050         fma4-enabled routines.
85051         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
85052         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
85053         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
85054         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
85055         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
85056         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
85057         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
85058         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
85059         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
85060         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
85061         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
85062         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
85063         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
85064         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
85065         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
85066         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
85067         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
85068         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
85069         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
85070         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
85071         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
85072         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
85073         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
85074         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
85075         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
85076         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
85077         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
85078         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
85079         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
85080         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
85081
85082         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
85083         rename.
85084         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85085         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85086         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85087         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85088         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85089         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85090         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85091         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85092
85093 2011-10-24  Andreas Schwab  <schwab@redhat.com>
85094
85095         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
85096
85097 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85098
85099         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
85100
85101         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
85102         prediction.
85103         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
85104
85105         * string/strnlen.c: Don't define STRNLEN, reverse logic.
85106         Remove unused variable magic_bits.
85107         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
85108
85109         * string/strnlen.c: Define and use STRNLEN macro.
85110         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
85111         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
85112         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
85113         * wcsmbs/wcslen.c: Define and use WCSLEN.
85114         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
85115         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
85116         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
85117         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
85118         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
85119         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
85120         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85121
85122 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85123
85124         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
85125         strnlen-sse2-no-bsf.
85126         Rename strlen-no-bsf to strlen-sse2-no-bsf.
85127         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
85128         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
85129         Add strnlen support.
85130         (USE_AS_STRNLEN): New macro.
85131         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
85132         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
85133         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
85134         * sysdeps/x86_64/wcslen.S: New file.
85135
85136 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
85137
85138         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
85139         XMM-moves are used for copying on small sizes.
85140
85141 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85142
85143         * wcsmbs/Makefile (strop-tests): Add wcschr.
85144         * wcsmbs/test-wcschr.c: New file.
85145         * string/test-strchr.c: Update.
85146         Add wcschr support.
85147         (WIDE): New macro.
85148
85149 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85150
85151         * wcsmbs/Makefile (strop-tests): Add wcslen.
85152         * wcsmbs/test-wcslen.c: New file.
85153         * string/test-strlen.c: Update.
85154         Add wcslen support.
85155         (WIDE): New macro.
85156
85157 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85158
85159         * po/it.po: Update from translation team.
85160
85161 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85162
85163         * sysdeps/x86_64/wcscmp.S: Update.
85164         Fix wrong comparison semantics.
85165         wcscmp shall use signed comparison not unsigned.
85166         Don't use substraction to avoid overflow bug.
85167         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
85168         * wcsmbc/wcscmp.c: Likewise.
85169         * string/test-strcmp.c: Likewise.
85170         Add new tests to check cases with negative values.
85171
85172 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85173
85174         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
85175         * sysdeps/x86_64/dla.h: ...here.  New file.
85176         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
85177         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85178         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85179         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85180         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85181         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85182         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85183         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85184         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85185
85186 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
85187
85188         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
85189         __ynl_finite aliases.
85190
85191 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85192
85193         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
85194
85195         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
85196         define DLA_FMA.
85197         [DLA_FMA] (EMULV): Use DLA_FMA.
85198         [DLA_FMA] (MUL12): Use EMULV.
85199         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
85200         that are not needed.
85201         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85202         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85203         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85204         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85205         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85206         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85207         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85208
85209 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
85210
85211         * math/s_nan.c: Undef __nan.
85212         * math/s_nanf.c: Undef __nanf.
85213         * math/s_nanl.c: Undef __nanl.
85214         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
85215         "math_private.h".
85216
85217 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85218
85219         * math/s_catan.c: Add branch predictions.
85220         * math/s_catanf.c: Likewise.
85221         * math/s_catanh.c: Likewise.
85222         * math/s_catanhf.c: Likewise.
85223         * math/s_catanhl.c: Likewise.
85224         * math/s_catanl.c: Likewise.
85225         * math/s_cexp.c: Likewise.
85226         * math/s_cexpf.c: Likewise.
85227         * math/s_cexpl.c: Likewise.
85228         * math/s_clog.c: Likewise.
85229         * math/s_clog10.c: Likewise.
85230         * math/s_clog10f.c: Likewise.
85231         * math/s_clog10l.c: Likewise.
85232         * math/s_clogf.c: Likewise.
85233         * math/s_clogl.c: Likewise.
85234         * math/s_csqrt.c: Likewise.
85235         * math/s_csqrtf.c: Likewise.
85236         * math/s_csqrtl.c: Likewise.
85237         * math/s_ctanf.c: Likewise.
85238         * math/s_ctanh.c: Likewise.
85239         * math/s_ctanhf.c: Likewise.
85240         * math/s_ctanhl.c: Likewise.
85241         * math/s_ctanl.c: Likewise.
85242
85243         * math/math_private.h: Define __nan, __nanf, __nanl.
85244         * math/s_cacosh.c: Include <math_private.h>.
85245         * math/s_cacoshl.c: Likewise.
85246         * math/s_casinh.c: Likewise.
85247         * math/s_casinhf.c: Likewise.
85248         * math/s_casinhl.c: Likewise.
85249         * math/s_ccos.c: Rely entire on ccosh.
85250         * math/s_ccosf.c: Rely entire on ccoshf.
85251         * math/s_ccosl.c: Rely entirely on ccoshl.
85252         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
85253         Remove tests for FE_INVALID.
85254         * math/s_ccoshf.c: Likewise.
85255         * math/s_ccoshl.c: Likewise.
85256         * math/s_csin.c: Likewise.
85257         * math/s_csinf.c: Likewise.
85258         * math/s_csinh.c Likewise.
85259         * math/s_csinhf.c: Likewise.
85260         * math/s_csinhl.c: Likewise.
85261         * math/s_csinl.c: Likewise.
85262         * math/s_ctan.c: Likewise.
85263         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
85264         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
85265         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
85266
85267 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
85268
85269         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
85270         compilation problems.
85271
85272         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
85273         __builtin_expect.
85274
85275 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
85276
85277         * sysdeps/i386/configure.in: Test for -mfma4 option.
85278         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
85279         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
85280         COMMON_CPUID_INDEX_80000001.
85281         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
85282         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
85283         use it if FMA3 is not supported.
85284         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
85285
85286         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
85287         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
85288
85289 2011-10-20  Andreas Schwab  <schwab@redhat.com>
85290
85291         [BZ #12892]
85292         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
85293         it would create a cycle with a link time dependency.
85294
85295 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
85296
85297         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
85298         instruction.
85299         * string/Makefile (strop-tests): Add rawmemchr.
85300         * string/test-rawmemchr.c: New file.
85301
85302         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
85303         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
85304         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
85305         when compiling str{,n}casecmp and when AVX is available.  Hook up
85306         new optimized code in initializers.
85307
85308 2011-10-19  Andreas Schwab  <schwab@redhat.com>
85309
85310         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
85311         __feraiseexcept instead of feraiseexcept.
85312
85313 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
85314
85315         * math/math_private.h: Define defaults for libc_fetestexcept and
85316         libc_feupdateenv.
85317         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
85318         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
85319         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85320         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85321         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
85322         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85323         libc_fetestexcept and libc_feupdateenv.
85324
85325         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
85326         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
85327         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
85328         * sysdeps/x86_64/fpu/math_private.h: Define special version of
85329         libc_feholdexcept_setround.
85330
85331         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
85332         Add s_nearbyint-c and s_nearbyintf-c.
85333         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
85334         nearbyintf inlines.
85335         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
85336         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
85337         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
85338         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
85339
85340         * math/math_private.h: Define defaults for libc_fegetround,
85341         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
85342         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
85343         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
85344         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
85345         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
85346         standard functions.
85347         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85348         Remove comments and hacks for old compiler versions.
85349         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85350         libc_fegetround, libc_fesetround, libc_feholdexcept, and
85351         libc_feholdexceptl.
85352
85353 2011-10-18  Andreas Schwab  <schwab@redhat.com>
85354
85355         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
85356         (__feraiseexcept_renamed): Add __NTH.
85357         (feraiseexcept): Add __NTH.  Rename local variables to fix
85358         namespace violations.
85359
85360 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
85361
85362         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
85363
85364         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
85365
85366         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
85367         recently added interfaces.
85368         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
85369
85370         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
85371         about macro parameter expansion.
85372
85373         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
85374         __NO_MATH_INLINES is defined.  Cleanups.
85375
85376         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
85377         and __floorf is target has SSE4.1.
85378         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
85379         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
85380         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
85381         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
85382
85383         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
85384         name.
85385         (floorf): Likewise.
85386
85387         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
85388
85389 2011-10-17  Andreas Schwab  <schwab@redhat.com>
85390
85391         * misc/sys/cdefs.h: Fix last change.
85392
85393         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
85394         database lookup.
85395
85396 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
85397
85398         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
85399
85400         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
85401         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85402         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
85403         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85404         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85405         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
85406         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85407         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85408         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
85409         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
85410         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
85411         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
85412         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
85413         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
85414         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
85415         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
85416         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
85417         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
85418         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
85419         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
85420         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
85421         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
85422
85423         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
85424         ceil, ceilf, floor, floorf.
85425
85426         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
85427         Perform IRELATIVE relocations last.
85428
85429         * elf/do-rel.h: Add another parameter nrelative, replacing the
85430         local variable with the same name.  Change name of the function
85431         to end in Rel or Rela (uppercase).
85432         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
85433         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
85434         elf_dynamic_do_##reloc function.
85435
85436 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85437
85438         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
85439         is sufficient, at least on modern CPUs.
85440
85441         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
85442
85443         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
85444         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
85445
85446         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
85447         __expl_finite.
85448         * math/bits/math-finite.h: Add entries for exp.
85449         * math/e_expl.c: Add __*_finite alias.
85450         * sysdeps/i386/fpu/e_exp.S: Likewise.
85451         * sysdeps/i386/fpu/e_expf.S: Likewise.
85452         * sysdeps/i386/fpu/e_expl.c: Likewise.
85453         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85454         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85455         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
85456         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
85457         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
85458         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
85459         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
85460
85461         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
85462         is sufficient, at least on modern CPUs.
85463
85464         * ctype/ctype-info.c (__ctype_init): Define.
85465         * include/ctype.h (__ctype_init): Declare.
85466         (__ctype_b_loc): The variable is always initialized.
85467         (__ctype_toupper_loc): Likewise.
85468         (__ctype_tolower_loc): Likewise.
85469         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
85470         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
85471
85472 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
85473
85474         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
85475
85476         * configure.in: Also look in $cxxmachine/include for C++ system
85477         headers.
85478
85479 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85480
85481         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
85482         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
85483         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
85484         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
85485         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
85486         (USE_AS_WMEMCMP): New macro.
85487         Fixing indents.
85488         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
85489         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
85490         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
85491         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
85492         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85493         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
85494         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
85495         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
85496         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
85497         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
85498         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
85499         (USE_AS_WMEMCMP): New macro.
85500         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
85501         * sysdeps/string/test-memcmp.c: Update.
85502         Fix simple_wmemcmp.
85503         Add new tests.
85504         * wcsmbs/wmemcmp.c: Update.
85505         (WMEMCMP): New macro.
85506         Fix overflow bug.
85507
85508 2011-10-12  Andreas Jaeger  <aj@suse.de>
85509
85510         [BZ #13268]
85511         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
85512
85513 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85514
85515         * libio/iofwide.c (do_length): Avoid warning.
85516
85517         * ctype/ctype.h (__isctype_f): Add missing __THROW.
85518
85519 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
85520
85521         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
85522
85523         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
85524         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
85525         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
85526         * sysdeps/i386/i686/fpu/e_log.S: New file.
85527         * sysdeps/i386/i686/fpu/e_logf.S: New file.
85528         * sysdeps/i386/i686/fpu/e_logl.S: New file.
85529
85530         * ctype/ctype.h: Add support for inlined isXXX functions when
85531         compiling C++ code.
85532
85533 2011-10-14  Andreas Schwab  <schwab@redhat.com>
85534
85535         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85536
85537         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
85538
85539 2011-10-13  Roland McGrath  <roland@hack.frob.com>
85540
85541         [BZ #13291]
85542         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
85543
85544 2011-10-13  Andreas Schwab  <schwab@redhat.com>
85545
85546         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
85547         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
85548         feraiseexcept.
85549
85550         * sysdeps/x86_64/memrchr.S: Check for zero size.
85551
85552         * string/stratcliff.c: Add memrchr tests.
85553
85554 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85555
85556         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85557         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
85558         rawmemchr-sse2 rawmemchr-sse2-bsf.
85559         * sysdeps/i386/i686/multiarch/memchr.S: New file.
85560         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
85561         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
85562         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
85563         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
85564         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
85565         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
85566         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
85567         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
85568         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
85569         * string/memrchr.c (MEMRCHR): New macro.
85570
85571 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
85572
85573         Add integration with gcc's -ffinite-math-only and optimize wrapper
85574         functions in libm.
85575         * Versions.def: Define GLIBC_2.15 version for libm.
85576         * math/Makefile (headers): Add bits/math-finite.h.
85577         * math/bits/math-finite.h: New file.
85578         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
85579         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
85580         * math/e_acoshl.c: Add __*_finite alias.
85581         * math/e_acosl.c: Likewise.
85582         * math/e_asinl.c: Likewise.
85583         * math/e_atan2l.c: Likewise.
85584         * math/e_atanhl.c: Likewise.
85585         * math/e_coshl.c: Likewise.
85586         * math/e_exp10.c: Likewise.
85587         * math/e_exp10f.c: Likewise.
85588         * math/e_exp10l.c: Likewise.
85589         * math/e_exp2l.c: Likewise.
85590         * math/e_fmodl.c: Likewise.
85591         * math/e_gammal_r.c: Likewise.
85592         * math/e_hypotl.c: Likewise.
85593         * math/e_j0l.c: Likewise.
85594         * math/e_j1l.c: Likewise.
85595         * math/e_jnl.c: Likewise.
85596         * math/e_lgammal_r.c: Likewise.
85597         * math/e_log10l.c: Likewise.
85598         * math/e_log2l.c: Likewise.
85599         * math/e_logl.c: Likewise.
85600         * math/e_powl.c: Likewise.
85601         * math/e_sinhl.c: Likewise.
85602         * math/e_sqrtl.c: Likewise.
85603         * math/e_scalb.c: Completely rewritten and optimized.
85604         * math/e_scalbf.c: Likewise.
85605         * math/e_scalbl.c: Likewise.
85606         * math/w_acos.c: Likewise.
85607         * math/w_acosf.c: Likewise.
85608         * math/w_acosl.c: Likewise.
85609         * math/w_acosh.c: Likewise.
85610         * math/w_acoshf.c: Likewise.
85611         * math/w_acoshl.c: Likewise.
85612         * math/w_asin.c: Likewise.
85613         * math/w_asinf.c: Likewise.
85614         * math/w_asinl.c: Likewise.
85615         * math/w_atan2.c: Likewise.
85616         * math/w_atan2f.c: Likewise.
85617         * math/w_atan2l.c: Likewise.
85618         * math/w_atanh.c: Likewise.
85619         * math/w_atanhf.c: Likewise.
85620         * math/w_atanhl.c: Likewise.
85621         * math/w_exp10.c: Likewise.
85622         * math/w_exp10f.c: Likewise.
85623         * math/w_exp10l.c: Likewise.
85624         * math/w_fmod.c: Likewise.
85625         * math/w_fmodf.c: Likewise.
85626         * math/w_fmodl.c: Likewise.
85627         * math/w_j0.c: Likewise.
85628         * math/w_j0f.c: Likewise.
85629         * math/w_j0l.c: Likewise.
85630         * math/w_j1.c: Likewise.
85631         * math/w_j1f.c: Likewise.
85632         * math/w_j1l.c: Likewise.
85633         * math/w_jn.c: Likewise.
85634         * math/w_jnf.c: Likewise.
85635         * math/w_log.c: Likewise.
85636         * math/w_logf.c: Likewise.
85637         * math/w_logl.c: Likewise.
85638         * math/w_log10.c: Likewise.
85639         * math/w_log10f.c: Likewise.
85640         * math/w_log10l.c: Likewise.
85641         * math/w_log2.c: Likewise.
85642         * math/w_log2f.c: Likewise.
85643         * math/w_log2l.c: Likewise.
85644         * math/w_pow.c: Likewise.
85645         * math/w_powf.c: Likewise.
85646         * math/w_powl.c: Likewise.
85647         * math/w_remainder.c: Likewise.
85648         * math/w_remainderf.c: Likewise.
85649         * math/w_remainderl.c: Likewise.
85650         * math/w_scalb.c: Likewise.
85651         * math/w_scalbf.c: Likewise.
85652         * math/w_scalbl.c: Likewise.
85653         * math/w_sqrt.c: Likewise.
85654         * math/w_sqrtf.c: Likewise.
85655         * math/w_sqrtl.c: Likewise.
85656         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
85657         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
85658         used.
85659         * math/math_private.h: Declare __kernel_standard_f.
85660         * math/w_cosh.c: Remove cruft and optimize a bit.
85661         * math/w_coshf.c: Likewise.
85662         * math/w_coshl.c: Likewise.
85663         * math/w_exp2.c: Likewise.
85664         * math/w_exp2f.c: Likewise.
85665         * math/w_exp2l.c: Likewise.
85666         * math/w_hypot.c: Likewise.
85667         * math/w_hypotf.c: Likewise.
85668         * math/w_hypotl.c: Likewise.
85669         * math/w_lgamma.c: Likewise.
85670         * math/w_lgamma_r.c: Likewise.
85671         * math/w_lgammaf.c: Likewise.
85672         * math/w_lgammaf_r.c: Likewise.
85673         * math/w_lgammal.c: Likewise.
85674         * math/w_lgammal_r.c: Likewise.
85675         * math/w_sinh.c: Likewise.
85676         * math/w_sinhf.c: Likewise.
85677         * math/w_sinhl.c: Likewise.
85678         * math/w_tgamma.c: Likewise.
85679         * math/w_tgammaf.c: Likewise.
85680         * math/w_tgammal.c: Likewise.
85681         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
85682         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85683         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
85684         Minor optimizations.  Pretty printing.  Remove cruft.
85685         * sysdeps/i386/fpu/e_acosf.S: Likewise.
85686         * sysdeps/i386/fpu/e_acosh.S: Likewise.
85687         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
85688         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
85689         * sysdeps/i386/fpu/e_acosl.c: Likewise.
85690         * sysdeps/i386/fpu/e_asin.S: Likewise.
85691         * sysdeps/i386/fpu/e_asinf.S: Likewise.
85692         * sysdeps/i386/fpu/e_atan2.S: Likewise.
85693         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
85694         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
85695         * sysdeps/i386/fpu/e_atanh.S: Likewise.
85696         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
85697         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
85698         * sysdeps/i386/fpu/e_exp10.S: Likewise.
85699         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
85700         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
85701         * sysdeps/i386/fpu/e_exp2.S: Likewise.
85702         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
85703         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
85704         * sysdeps/i386/fpu/e_fmod.S: Likewise.
85705         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
85706         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
85707         * sysdeps/i386/fpu/e_hypot.S: Likewise.
85708         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
85709         * sysdeps/i386/fpu/e_log.S: Likewise.
85710         * sysdeps/i386/fpu/e_log10.S: Likewise.
85711         * sysdeps/i386/fpu/e_log10f.S: Likewise.
85712         * sysdeps/i386/fpu/e_log10l.S: Likewise.
85713         * sysdeps/i386/fpu/e_log2.S: Likewise.
85714         * sysdeps/i386/fpu/e_log2f.S: Likewise.
85715         * sysdeps/i386/fpu/e_log2l.S: Likewise.
85716         * sysdeps/i386/fpu/e_logf.S: Likewise.
85717         * sysdeps/i386/fpu/e_logl.S: Likewise.
85718         * sysdeps/i386/fpu/e_pow.S: Likewise.
85719         * sysdeps/i386/fpu/e_powf.S: Likewise.
85720         * sysdeps/i386/fpu/e_powl.S: Likewise.
85721         * sysdeps/i386/fpu/e_remainder.S: Likewise.
85722         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
85723         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
85724         * sysdeps/i386/fpu/e_scalb.S: Likewise.
85725         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
85726         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
85727         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
85728         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
85729         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
85730         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
85731         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85732         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85733         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
85734         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85735         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
85736         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
85737         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
85738         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85739         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
85740         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
85741         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
85742         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85743         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
85744         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
85745         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85746         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
85747         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
85748         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85749         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85750         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
85751         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
85752         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
85753         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
85754         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
85755         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
85756         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85757         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
85758         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
85759         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
85760         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85761         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
85762         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
85763         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
85764         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
85765         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
85766         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
85767         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
85768         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
85769         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
85770         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
85771         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
85772         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
85773         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
85774         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
85775         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
85776         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
85777         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
85778         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
85779         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
85780         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
85781         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
85782         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
85783         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
85784         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
85785         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
85786         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
85787         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
85788         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
85789         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
85790         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
85791         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
85792         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
85793         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
85794         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
85795         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
85796         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
85797         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
85798         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
85799         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
85800         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
85801         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
85802         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
85803         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
85804         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
85805         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
85806         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
85807         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
85808         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
85809         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
85810         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
85811         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
85812         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
85813         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
85814         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
85815         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
85816         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
85817         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
85818         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
85819         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
85820         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
85821         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
85822         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
85823         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
85824         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
85825         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
85826         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
85827         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
85828         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
85829         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
85830         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
85831         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
85832         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
85833         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
85834         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
85835         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
85836         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
85837         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
85838         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
85839         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
85840         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
85841         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
85842         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
85843         (__isnanf): Likewise.
85844         (__isinf_ns): Likewise.
85845         (__isinf_nsf): Likewise.
85846         (__finite): Likewise.
85847         (__finitef): Likewise.
85848         (__ieee754_sqrt): Define as macro.
85849         (__ieee754_sqrtf): Define as macro.
85850         (__ieee754_sqrtl): Define as macro.
85851         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
85852         inlined copy.
85853         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
85854         __FINITE_MATH_ONLY__ consistent.
85855         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
85856
85857 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
85858
85859         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
85860         of rawmemchr.
85861
85862         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
85863
85864 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
85865
85866         * po/ja.po: Update from translation team.
85867
85868 2011-10-08  Roland McGrath  <roland@hack.frob.com>
85869
85870         * locale/programs/locarchive.c (prepare_address_space): New function.
85871         (create_archive, enlarge_archive, open_archive): Use it.
85872
85873         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
85874         inside [SHARED], where it is used.
85875
85876         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
85877
85878         * nss/getent.c (netgroup_keys): Remove unused variable.
85879         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
85880
85881 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
85882
85883         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
85884         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
85885         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
85886         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
85887         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
85888         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
85889         * math/Makefile (libm-calls): Add s_isinf_ns.
85890         * math/divtc3.c: Use __isinf_nsl instead of isinf.
85891         * math/multc3.c: Likewise.
85892         * math/s_casin.c: Likewise.
85893         * math/s_casinf.c: Likewise.
85894         * math/s_casinl.c: Likewise.
85895         * math/s_ccos.c: Likewise.
85896         * math/s_ccosf.c: Likewise.
85897         * math/s_ccosl.c: Likewise.
85898         * math/s_ctan.c: Likewise.
85899         * math/s_ctanf.c: Likewise.
85900         * math/s_ctanh.c: Likewise.
85901         * math/s_ctanhf.c: Likewise.
85902         * math/s_ctanhl.c: Likewise.
85903         * math/s_ctanl.c: Likewise.
85904         * math/w_fmod.c: Likewise.
85905         * math/w_fmodf.c: Likewise.
85906         * math/w_fmodl.c: Likewise.
85907         * math/w_remainder.c: Likewise.
85908         * math/w_remainderf.c: Likewise.
85909         * math/w_remainderl.c: Likewise.
85910         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
85911         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
85912         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
85913         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
85914         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
85915         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
85916         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
85917         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
85918
85919         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
85920         of the number.
85921         * stdio-common/printf_fphex.c: Likewise.
85922         * stdio-common/printf_size.c: Likewise.
85923
85924         * math/e_exp10.c: Include math_private.h using <...> not "...".
85925         * math/e_exp10f.c: Likewise.
85926         * math/e_exp10l.c: Likewise.
85927         * math/e_exp2l.c: Likewise.
85928         * math/e_j0l.c: Likewise.
85929         * math/e_j1l.c: Likewise.
85930         * math/e_jnl.c: Likewise.
85931         * math/e_lgammal_r.c: Likewise.
85932         * math/e_rem_pio2l.c: Likewise.
85933         * math/e_scalb.c: Likewise.
85934         * math/e_scalbf.c: Likewise.
85935         * math/e_scalbl.c: Likewise.
85936         * math/k_cosl.c: Likewise.
85937         * math/k_sinl.c: Likewise.
85938         * math/k_tanl.c: Likewise.
85939         * math/s_cacoshf.c: Likewise.
85940         * math/s_catan.c: Likewise.
85941         * math/s_catanf.c: Likewise.
85942         * math/s_catanh.c: Likewise.
85943         * math/s_catanhf.c: Likewise.
85944         * math/s_catanhl.c: Likewise.
85945         * math/s_catanl.c: Likewise.
85946         * math/s_ccosh.c: Likewise.
85947         * math/s_ccoshf.c: Likewise.
85948         * math/s_ccoshl.c: Likewise.
85949         * math/s_cexp.c: Likewise.
85950         * math/s_cexpf.c: Likewise.
85951         * math/s_cexpl.c: Likewise.
85952         * math/s_clog.c: Likewise.
85953         * math/s_clog10.c: Likewise.
85954         * math/s_clog10f.c: Likewise.
85955         * math/s_clog10l.c: Likewise.
85956         * math/s_clogf.c: Likewise.
85957         * math/s_clogl.c: Likewise.
85958         * math/s_csin.c: Likewise.
85959         * math/s_csinf.c: Likewise.
85960         * math/s_csinh.c: Likewise.
85961         * math/s_csinhf.c: Likewise.
85962         * math/s_csinhl.c: Likewise.
85963         * math/s_csinl.c: Likewise.
85964         * math/s_csqrt.c: Likewise.
85965         * math/s_csqrtf.c: Likewise.
85966         * math/s_csqrtl.c: Likewise.
85967         * math/s_ctan.c: Likewise.
85968         * math/s_ctanf.c: Likewise.
85969         * math/s_ctanh.c: Likewise.
85970         * math/s_ctanhf.c: Likewise.
85971         * math/s_ctanhl.c: Likewise.
85972         * math/s_ctanl.c: Likewise.
85973         * math/s_ldexp.c: Likewise.
85974         * math/s_ldexpf.c: Likewise.
85975         * math/s_ldexpl.c: Likewise.
85976         * math/s_significand.c: Likewise.
85977         * math/s_significandf.c: Likewise.
85978         * math/s_significandl.c: Likewise.
85979         * math/w_acos.c: Likewise.
85980         * math/w_acosf.c: Likewise.
85981         * math/w_acosh.c: Likewise.
85982         * math/w_acoshf.c: Likewise.
85983         * math/w_acoshl.c: Likewise.
85984         * math/w_acosl.c: Likewise.
85985         * math/w_asin.c: Likewise.
85986         * math/w_asinf.c: Likewise.
85987         * math/w_asinl.c: Likewise.
85988         * math/w_atan2.c: Likewise.
85989         * math/w_atan2f.c: Likewise.
85990         * math/w_atan2l.c: Likewise.
85991         * math/w_atanh.c: Likewise.
85992         * math/w_atanhf.c: Likewise.
85993         * math/w_atanhl.c: Likewise.
85994         * math/w_cosh.c: Likewise.
85995         * math/w_coshf.c: Likewise.
85996         * math/w_coshl.c: Likewise.
85997         * math/w_dremf.c: Likewise.
85998         * math/w_exp10.c: Likewise.
85999         * math/w_exp10f.c: Likewise.
86000         * math/w_exp10l.c: Likewise.
86001         * math/w_exp2.c: Likewise.
86002         * math/w_exp2f.c: Likewise.
86003         * math/w_fmod.c: Likewise.
86004         * math/w_fmodf.c: Likewise.
86005         * math/w_fmodl.c: Likewise.
86006         * math/w_hypot.c: Likewise.
86007         * math/w_hypotf.c: Likewise.
86008         * math/w_hypotl.c: Likewise.
86009         * math/w_j0.c: Likewise.
86010         * math/w_j0f.c: Likewise.
86011         * math/w_j0l.c: Likewise.
86012         * math/w_j1.c: Likewise.
86013         * math/w_j1f.c: Likewise.
86014         * math/w_j1l.c: Likewise.
86015         * math/w_jn.c: Likewise.
86016         * math/w_jnf.c: Likewise.
86017         * math/w_jnl.c: Likewise.
86018         * math/w_lgamma.c: Likewise.
86019         * math/w_lgamma_r.c: Likewise.
86020         * math/w_lgammaf.c: Likewise.
86021         * math/w_lgammaf_r.c: Likewise.
86022         * math/w_lgammal.c: Likewise.
86023         * math/w_lgammal_r.c: Likewise.
86024         * math/w_log.c: Likewise.
86025         * math/w_log10.c: Likewise.
86026         * math/w_log10f.c: Likewise.
86027         * math/w_log10l.c: Likewise.
86028         * math/w_log2.c: Likewise.
86029         * math/w_log2f.c: Likewise.
86030         * math/w_log2l.c: Likewise.
86031         * math/w_logf.c: Likewise.
86032         * math/w_logl.c: Likewise.
86033         * math/w_pow.c: Likewise.
86034         * math/w_powf.c: Likewise.
86035         * math/w_powl.c: Likewise.
86036         * math/w_remainder.c: Likewise.
86037         * math/w_remainderf.c: Likewise.
86038         * math/w_remainderl.c: Likewise.
86039         * math/w_scalb.c: Likewise.
86040         * math/w_scalbf.c: Likewise.
86041         * math/w_scalbl.c: Likewise.
86042         * math/w_sinh.c: Likewise.
86043         * math/w_sinhf.c: Likewise.
86044         * math/w_sinhl.c: Likewise.
86045         * math/w_sqrt.c: Likewise.
86046         * math/w_sqrtf.c: Likewise.
86047         * math/w_sqrtl.c: Likewise.
86048         * math/w_tgamma.c: Likewise.
86049         * math/w_tgammaf.c: Likewise.
86050         * math/w_tgammal.c: Likewise.
86051
86052         * po/ja.po: Update from translation team.
86053
86054 2011-09-29  Andreas Jaeger  <aj@suse.de>
86055
86056         [BZ #13179]
86057         * sunrpc/netname.c (netname2host): Fix logic.
86058
86059         [BZ #6779]
86060         [BZ #6783]
86061         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
86062         correctly.
86063         * math/w_remainder.c (__remainder): Likewise.
86064         * math/w_remainderf.c (__remainderf): Likewise.
86065         * math/libm-test.inc (remainder_test): Add test cases.
86066
86067 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
86068
86069         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
86070         sdiv_qrnnd.
86071
86072 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86073
86074         * string/test-memcmp.c: Avoid unncessary #defines.
86075         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
86076
86077 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86078
86079         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
86080         Use new sse2 version for core i3 - i7 as it's faster
86081         than sse42 version.
86082         (bit_Prefer_PMINUB_for_stringop): New.
86083         * sysdeps/x86_64/rawmemchr.S: Update.
86084         Replace with faster SSE2 version.
86085         * sysdeps/x86_64/memrchr.S: New file.
86086         * sysdeps/x86_64/memchr.S: Update.
86087         Replace with faster SSE2 version.
86088
86089 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
86090
86091         * elf/dl-load.c (lose): Add cast to avoid warning.
86092
86093 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86094
86095         * po/ca.po: Update from translation team.
86096
86097         * inet/getnetgrent_r.c: Hook up nscd.
86098         * nscd/Makefile (routines): Add nscd_netgroup.
86099         (nscd-modules): Add netgroupcache.
86100         (CFLAGS-netgroupcache.c): Define.
86101         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
86102         (cache_search): Add const to second parameter.
86103         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
86104         INNETGR.
86105         (dbs): Add netgrdb entry.
86106         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
86107         (verify_persistent_db): Handle netgrdb.
86108         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
86109         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
86110         GETFDNETGR.
86111         (netgroup_response_header): Define.
86112         (innetgroup_response_header): Define.
86113         (datahead): Add netgroup_response_header and innetgroup_response_header
86114         elements.
86115         * nscd/nscd.conf: Add entries for netgroup cache.
86116         * nscd/nscd.h (dbtype): Add netgrdb.
86117         (_PATH_NSCD_NETGROUP_DB): Define.
86118         (netgroup_iov_disabled): Declare.
86119         (xmalloc, xcalloc, xrealloc): Move declarations here.
86120         (cache_search): Adjust prototype.
86121         Add netgroup-related prototypes.
86122         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
86123         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
86124         (__nscd_innetgr): Declare.
86125         * nscd/selinux.c (perms): Use access_vector_t as element type and
86126         add netgroup-related initializers.
86127         * nscd/netgroupcache.c: New file.
86128         * nscd/nscd_netgroup.c: New file.
86129         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
86130         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
86131         For four parameters use innetgr.
86132         * nss/nss_files/files-init.c: Add definition and callback for netgr.
86133         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
86134         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
86135         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
86136
86137         * nscd/connections.c (register_traced_file): Don't register file
86138         for disabled databases.
86139
86140 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
86141
86142         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
86143
86144         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
86145         from tree and freeing node.
86146
86147 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
86148
86149         * nss/nsswitch.c (__nss_database_lookup): Handle
86150         nss_parse_service_list out of memory case.
86151
86152 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
86153
86154         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
86155         out of memory case.
86156
86157 2011-10-04  Andreas Schwab  <schwab@redhat.com>
86158
86159         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
86160         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
86161         pass it down.
86162         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
86163         elf_machine_rela, elf_machine_lazy_rel.
86164         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
86165         (ELF_DYNAMIC_DO_REL): Likewise.
86166         (ELF_DYNAMIC_DO_RELA): Likewise.
86167         (ELF_DYNAMIC_RELOCATE): Likewise.
86168         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
86169         to ELF_DYNAMIC_DO_REL.
86170         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
86171         (dl_main): In trace mode always set __RTLD_NOIFUNC.
86172         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
86173         elf_machine_rela.
86174         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
86175         skip_ifunc, don't call ifunc function if non-zero.
86176         (elf_machine_rela): Likewise.
86177         (elf_machine_lazy_rel): Likewise.
86178         (elf_machine_lazy_rela): Likewise.
86179         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
86180         (elf_machine_lazy_rel): Likewise.
86181         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
86182         Likewise.
86183         (elf_machine_lazy_rel): Likewise.
86184         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86185         Likewise.
86186         (elf_machine_lazy_rel): Likewise.
86187         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
86188         (elf_machine_lazy_rel): Likewise.
86189         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
86190         (elf_machine_lazy_rel): Likewise.
86191         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
86192         (elf_machine_lazy_rel): Likewise.
86193         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
86194         (elf_machine_lazy_rel): Likewise.
86195         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
86196         (elf_machine_lazy_rel): Likewise.
86197         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
86198         (elf_machine_lazy_rel): Likewise.
86199
86200 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
86201
86202         * nss/nss_files/files-init.c (_nss_files_init): Use static
86203         initialization for all the *_traced_file variables.
86204
86205 2011-09-28  Andreas Schwab  <schwab@redhat.com>
86206
86207         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86208
86209 2011-09-27  Roland McGrath  <roland@hack.frob.com>
86210
86211         [BZ #13226]
86212         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
86213
86214 2011-09-27  Andreas Schwab  <schwab@redhat.com>
86215
86216         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
86217         Reread the line before reparsing it.
86218
86219 2011-09-26  Andreas Schwab  <schwab@redhat.com>
86220
86221         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
86222
86223 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
86224             Maxim Kuvyrkov  <maxim@codesourcery.com>
86225             Joseph Myers  <joseph@codesourcery.com>
86226
86227         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
86228         if needed for __stack_chk_guard.
86229
86230 2011-09-19  Roland McGrath  <roland@hack.frob.com>
86231
86232         * sysdeps/posix/spawni.c (script_execute): Always define it.
86233         It will be optimized away if unused.
86234         (maybe_script_execute): New function.
86235         (__spawni): Call it.
86236
86237         * Makerules: Don't include tls.make.
86238         (config-tls): Always set to thread.
86239         * tls.make.c: File removed.
86240
86241 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
86242
86243         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
86244         * config.make.in (CPPFLAGS-config): New substituted variable.
86245
86246 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86247
86248         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
86249
86250         [BZ #13192]
86251         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
86252         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
86253
86254 2011-09-15  Roland McGrath  <roland@hack.frob.com>
86255
86256         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
86257         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
86258         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
86259         (CALL_FAIL): Likewise.
86260         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
86261         (CALL_FAIL): Macro removed.
86262         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
86263
86264 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86265
86266         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
86267         for __FINITE_MATH_ONLY__ == 1.
86268
86269 2011-09-15  Andreas Schwab  <schwab@redhat.com>
86270
86271         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
86272         __ieee754_sqrt instead of sqrt.
86273         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
86274         __ieee754_sqrtf instead of sqrtf.
86275         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
86276         __floorf instead of floorf.
86277         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
86278         __floorf, __truncf instead of floorf, truncf.
86279
86280 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
86281
86282         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
86283
86284         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
86285         __extern_always_inline.
86286         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
86287         32-bit.
86288
86289 2011-09-14  Andreas Schwab  <schwab@redhat.com>
86290
86291         * elf/rtld.c (dl_main): Also relocate in dependency order when
86292         doing symbol dependency testing.
86293
86294 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
86295
86296         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86297         Always define `refsym'.
86298
86299 2011-09-13  Andreas Schwab  <schwab@redhat.com>
86300
86301         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
86302         (__FD_ELT): Renamed from __FDELT.
86303         * misc/bits/select2.h (__FD_ELT): Likewise.
86304         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
86305         __FD_MASK instead of __FDELT, __FDMASK.
86306         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86307         Likewise.
86308         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86309         Likewise.
86310
86311         * elf/Makefile (gen-ldd): Fix pattern.
86312
86313         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
86314         (init_tls): Likewise.
86315
86316 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
86317
86318         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
86319
86320 2011-09-12  Andreas Schwab  <schwab@redhat.com>
86321
86322         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
86323         `struct cmsghdr *' instead of `void *'.
86324         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
86325         Likewise.
86326
86327 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
86328
86329         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
86330         if non-absolute.
86331         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
86332         ldd_rewrite_script.
86333
86334 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
86335
86336         * configure.in: Remove --with-tls option.
86337         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
86338         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
86339         out in case it is missing.
86340         * sysdeps/ia64/elf/configure.in: Likewise.
86341         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
86342         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
86343         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
86344         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
86345         * sysdeps/sh/elf/configure.in: Likewise.
86346         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
86347         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
86348         * sysdeps/x86_64/elf/configure.in: Likewise.
86349         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
86350         * sysdeps/mach/hurd/tls.h: Likewise.
86351
86352         [BZ #13067]
86353         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
86354
86355         [BZ #13090]
86356         * configure.in: Fix use of AC_INIT.
86357
86358         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
86359
86360 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
86361
86362         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
86363         __set_errno.
86364         * malloc/hooks.c: Likewise.
86365
86366         [BZ #11929]
86367         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
86368         variables statically.
86369         (narenas): Initialize.
86370         (list_lock): Initialize.
86371         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
86372         initializtion of main_arena and list_lock.  Small cleanups.
86373         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
86374         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
86375         Add initializers to main_arena and mp_.
86376         (malloc_state): Remove pagesize member.  Change all users to use
86377         GLRO(dl_pagesize).
86378
86379         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
86380         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
86381         is always initialized.
86382
86383         * malloc/malloc.c: Removed unused configurations and dead code.
86384         * malloc/arena.c: Likewise.
86385         * malloc/hooks.c: Likewise.
86386         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
86387
86388         * include/tls.h: Removed.  USE___THREAD must always be defined.
86389         * bits/libc-tsd.h: Don't handle !USE___THREAD.
86390         * elf/dl-libc.c: Likewise.
86391         * elf/dl-tsd.c: Likewise.
86392         * include/errno.h: Likewise.
86393         * include/netdb.h: Likewise.
86394         * include/resolv.h: Likewise.
86395         * inet/herrno-loc.c: Likewise.
86396         * inet/herrno.c: Likewise.
86397         * malloc/arena.c: Likewise.
86398         * malloc/hooks.c: Likewise.
86399         * malloc/malloc.c: Likewise.
86400         * resolv/res-state.c: Likewise.
86401         * resolv/res_libc.c: Likewise.
86402         * sysdeps/i386/dl-machine.h: Likewise.
86403         * sysdeps/ia64/dl-machine.h: Likewise.
86404         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
86405         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
86406         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
86407         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
86408         * sysdeps/sh/dl-machine.h: Likewise.
86409         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
86410         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
86411         * sysdeps/unix/i386/sysdep.S: Likewise.
86412         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
86413         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
86414         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
86415         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
86416         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
86417         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
86418         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
86419         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
86420         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86421         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
86422         * sysdeps/unix/x86_64/sysdep.S: Likewise.
86423         * sysdeps/x86_64/dl-machine.h: Likewise.
86424         * tls.make.c: Likewise.
86425
86426         * configure.in: Remove --with-__thread option.  Make tests for
86427         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
86428         tls_model attribute fail if no support is available.  Remove
86429         USE_IN_LIBIO.
86430         * Makeconfig: Adjust for dropped configure option.  All features are
86431         now mandatory.
86432         * Makerules: Likewise.
86433         * Versions.def: Likewise.
86434         * argp/argp-fmtstream.c: Likewise.
86435         * argp/argp-fmtstream.h: Likewise.
86436         * argp/argp-help.c: Likewise.
86437         * assert/assert.c: Likewise.
86438         * config.h.in: Likewise.
86439         * config.make.in: Likewise.
86440         * configure: Likewise.
86441         * configure.in: Likewise.
86442         * csu/Versions: Likewise.
86443         * csu/init.c: Likewise.
86444         * elf/tst-audit2.c: Likewise.
86445         * elf/tst-tls10.c: Likewise.
86446         * elf/tst-tls10.h: Likewise.
86447         * elf/tst-tls11.c: Likewise.
86448         * elf/tst-tls12.c: Likewise.
86449         * elf/tst-tls14.c: Likewise.
86450         * elf/tst-tlsmod11.c: Likewise.
86451         * elf/tst-tlsmod12.c: Likewise.
86452         * elf/tst-tlsmod13.c: Likewise.
86453         * elf/tst-tlsmod13a.c: Likewise.
86454         * elf/tst-tlsmod14a.c: Likewise.
86455         * elf/tst-tlsmod15b.c: Likewise.
86456         * elf/tst-tlsmod16a.c: Likewise.
86457         * elf/tst-tlsmod16b.c: Likewise.
86458         * elf/tst-tlsmod7.c: Likewise.
86459         * elf/tst-tlsmod8.c: Likewise.
86460         * elf/tst-tlsmod9.c: Likewise.
86461         * gmon/gmon.c: Likewise.
86462         * grp/fgetgrent_r.c: Likewise.
86463         * grp/putgrent.c: Likewise.
86464         * hurd/fopenport.c: Likewise.
86465         * include/libc-symbols.h: Likewise.
86466         * include/tls.h: Likewise.
86467         * intl/gettextP.h: Likewise.
86468         * intl/loadinfo.h: Likewise.
86469         * locale/global-locale.c: Likewise.
86470         * locale/localeinfo.h: Likewise.
86471         * mach/devstream.c: Likewise.
86472         * malloc/arena.c: Likewise.
86473         * malloc/set-freeres.c: Likewise.
86474         * misc/err.c: Likewise.
86475         * misc/getttyent.c: Likewise.
86476         * misc/mntent_r.c: Likewise.
86477         * posix/getopt.c: Likewise.
86478         * posix/wordexp.c: Likewise.
86479         * pwd/fgetpwent_r.c: Likewise.
86480         * resolv/Versions: Likewise.
86481         * resolv/res_hconf.c: Likewise.
86482         * shadow/fgetspent_r.c: Likewise.
86483         * shadow/putspent.c: Likewise.
86484         * stdio-common/printf_fphex.c: Likewise.
86485         * stdio-common/tmpfile.c: Likewise.
86486         * stdlib/abort.c: Likewise.
86487         * stdlib/fmtmsg.c: Likewise.
86488         * sunrpc/auth_unix.c: Likewise.
86489         * sunrpc/clnt_perr.c: Likewise.
86490         * sunrpc/clnt_tcp.c: Likewise.
86491         * sunrpc/clnt_udp.c: Likewise.
86492         * sunrpc/clnt_unix.c: Likewise.
86493         * sunrpc/openchild.c: Likewise.
86494         * sunrpc/svc_simple.c: Likewise.
86495         * sunrpc/svc_tcp.c: Likewise.
86496         * sunrpc/svc_udp.c: Likewise.
86497         * sunrpc/svc_unix.c: Likewise.
86498         * sunrpc/xdr.c: Likewise.
86499         * sunrpc/xdr_array.c: Likewise.
86500         * sunrpc/xdr_rec.c: Likewise.
86501         * sunrpc/xdr_ref.c: Likewise.
86502         * sunrpc/xdr_stdio.c: Likewise.
86503
86504 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86505
86506         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86507
86508 2011-07-03  Andreas Jaeger  <aj@suse.de>
86509
86510         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
86511         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
86512         regenerate with gen-libm-tests.pl.
86513
86514 2010-05-12  Petr Baudis  <pasky@suse.cz>
86515
86516         [BZ #11589]
86517         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
86518         around j0() zero points by switching to j1().
86519         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86520         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86521         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86522         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86523
86524 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86525
86526         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
86527         instead of 0.
86528         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
86529         instead of 0.
86530         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
86531         Patch in part by Pavel Roskin <proski@gnu.org>.
86532
86533         [BZ #13138]
86534         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
86535         realloc.
86536         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
86537         Free memory block if necessary.
86538
86539         [BZ #12847]
86540         * libio/genops.c (INTDEF): For string streams the _lock pointer can
86541         be NULL.  Don't lock in this case.
86542
86543 2011-09-09  Roland McGrath  <roland@hack.frob.com>
86544
86545         * elf/elf.h (ELFOSABI_GNU): New macro.
86546         (ELFOSABI_LINUX): Define to that.
86547
86548 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
86549
86550         * string/strncat.c (strncat): Undef the symbol in case it has been
86551         defined in bits/string.h.
86552
86553 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86554
86555         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
86556
86557         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
86558         link map.
86559
86560 2011-08-17  Andreas Jaeger  <aj@suse.de>
86561
86562         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
86563
86564 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
86565             Ian Lance Taylor  <iant@google.com>
86566
86567         * math/libm-test.inc (lround_test): New testcase.
86568         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
86569
86570 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
86571
86572         * Makefile: Remove support for automatic cvs check-ins.
86573         * Makerules: Likewise.
86574         * config.make.in: Likewise.
86575         * configure.in: Likewise.
86576         * intl/Makefile: Likewise.
86577         * locale/Makefile: Likewise.
86578         * po/Makefile: Likewise.
86579         * posix/Makefile: Likewise.
86580         * sysdeps/gnu/Makefile: Likewise.
86581         * sysdeps/mach/hurd/Makefile: Likewise.
86582         * sysdeps/sparc/sparc32/Makefile: Likewise.
86583
86584         [BZ #13118]
86585         * posix/Makefile (bug-regex32-ENV): Define.
86586         Patch by John Stanley <jpsinthemix@verizon.net>.
86587
86588         * misc/Makefile (headers): Add bits/select2.h.
86589         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
86590         * misc/bits/select2.h: New file.
86591         * include/bits/select2.h: New file.
86592         * debug/Makefile (routines): Add fdelt_chk.
86593         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
86594         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
86595         FD_ISSET.
86596         * debug/fdelt_chk.c: New file.
86597
86598         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
86599         * wcsmbs/test-wmemcmp.c: Likewise.
86600         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
86601         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
86602
86603 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86604
86605         * string/Makefile (strop-tests): Add memcmp.
86606         * string/test-wmemcmp.c: New file.
86607         * string/test-memcmp.c: Add wmemcmp support.
86608
86609 2011-09-08  Roland McGrath  <roland@hack.frob.com>
86610
86611         [BZ #13153]
86612         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
86613         2011-07-19 change.
86614
86615         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
86616         garbage value in a __mach_port_mod_refs call in the cases of the
86617         task-self and thread-self ports.
86618
86619 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
86620
86621         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
86622
86623 2011-09-08  Andreas Schwab  <schwab@redhat.com>
86624
86625         * elf/dl-load.c (lose): Check for non-null L.
86626
86627 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86628
86629         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
86630
86631         * elf/dl-libc.c (dlerror_run): Pass back error code from
86632         dl_catch_error.
86633
86634         [BZ #13123]
86635         * elf/dl-load.c (lose): Free l_origin if it is valid.
86636
86637         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
86638         names.
86639         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
86640         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86641         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86642         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86643         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
86644         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
86645
86646 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86647
86648         * sysdeps/powerpc/fpu/e_hypot.c: New file.
86649         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
86650         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
86651         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
86652         * sysdeps/powerpc/fpu/k_cosf.c: New file.
86653         * sysdeps/powerpc/fpu/k_sinf.c: New file.
86654         * sysdeps/powerpc/fpu/s_cosf.c: New file.
86655         * sysdeps/powerpc/fpu/s_sinf.c: New file.
86656         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
86657         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
86658
86659 2011-08-15  Alan Modra  <amodra@gmail.com>
86660
86661         [BZ #13092]
86662         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
86663         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
86664         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
86665         ppc_mcount to static-only-routines.
86666         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
86667         __mcount_internal.
86668         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
86669         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
86670
86671 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
86672
86673         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
86674         for finite and infinity parameters.
86675
86676 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
86677
86678         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
86679         and add nop instructions for throughput optimization.
86680         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
86681
86682 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
86683
86684         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
86685         aligned copy for power7 with vector-scalar instructions.
86686         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
86687
86688 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
86689
86690         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
86691         AVX check.
86692
86693 2011-09-07  Andreas Schwab  <schwab@redhat.com>
86694
86695         [BZ #13144]
86696         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
86697         last change.
86698
86699 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86700
86701         * sysdeps/unix/sysv/linux/x86_64/init-first.c
86702         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
86703         syscall wrapper around clock_gettime in __vdso_clock_gettime.
86704         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
86705         clock_gettime.
86706
86707 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86708
86709         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
86710         Forgot to demangle the pointer.
86711
86712         * sysdeps/i386/sysdep.h: Define atom_text_section.
86713         * sysdeps/x86_64/sysdep.h: Likewise.
86714         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
86715         section with atom_text_section.
86716         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86717         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86718         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
86719         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
86720         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
86721
86722         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
86723         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
86724         already be defined.  Change to take two parameters and don't assign
86725         result to variable.  Adjust all users.
86726         Define INTERNAL_GETTIME if not already defined.
86727         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
86728         call.
86729         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
86730         HAVE_CLOCK_GETTIME_VSYSCALL.
86731         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
86732
86733         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
86734         gettimeofday vsyscall, just use time.
86735
86736 2011-09-06  Andreas Schwab  <schwab@redhat.com>
86737
86738         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
86739         <errno.h>.
86740
86741 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86742
86743         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
86744         syscall on x86-64.
86745         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
86746         syscall.
86747         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
86748         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
86749         syscall if possible.
86750
86751 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86752
86753         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
86754         e_ident.  Don't pass to find_mapsXX.
86755         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
86756
86757 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86758
86759         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86760         strchr-sse2-no-bsf strrchr-sse2-no-bsf
86761         * sysdeps/x86_64/multiarch/strchr.S: Update.
86762         Check bit_slow_BSF bit.
86763         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
86764         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
86765         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
86766
86767 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86768
86769         [BZ #13134]
86770         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
86771         before glibc 2.15.
86772         (tryshell): Define.
86773         (__spawni): Change last parameter to be flag.  Test
86774         SPAWN_XFLAGS_USE_PATH flag to use path or not.
86775         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
86776         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
86777         * posix/spawni.c: Likewise.
86778         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
86779         * posix/spawnp.c: Likewise.  Change normal version to use
86780         SPAWN_XFLAGS_USE_PATH.
86781         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
86782         SPAWN_XFLAGS_TRY_SHELL.
86783
86784         [BZ #13150]
86785         * posix/glob.h: Remove gcc 1.x support.
86786
86787         [BZ #13068]
86788         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
86789
86790 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86791
86792         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86793         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
86794         strrchr-sse2-bsf
86795         * sysdeps/i386/i686/multiarch/strchr.S: New file.
86796         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
86797         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
86798         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
86799         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
86800         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
86801
86802 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86803
86804         * sysdeps/x86_64/wcscmp.S: New file.
86805
86806         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
86807         wcscmp-c wcscmp-sse2
86808         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
86809         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
86810         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
86811         * wcsmbs/wcscmp.c: Allow renaming.
86812
86813 2011-09-05  David S. Miller  <davem@davemloft.net>
86814
86815         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
86816         stack slot, rather than the struct return pointer slot.
86817         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
86818         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
86819         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
86820         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
86821
86822 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86823
86824         * po/ja.po: Update from translation team.
86825
86826         [BZ #13144]
86827         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
86828         kernel in 64-bit binaries.
86829
86830 2011-09-01  David S. Miller  <davem@davemloft.net>
86831
86832         * elf/elf.h (HWCAP_SPARC_*): Move to..
86833         * sysdeps/sparc/sysdep.h: this new file and add new values.
86834         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
86835         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
86836         _DL_HWCAP_COUNT to 24.
86837         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
86838         entries.
86839         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
86840         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
86841         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
86842         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
86843         instead of magic constants.
86844         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
86845
86846 2011-08-31  David S. Miller  <davem@davemloft.net>
86847
86848         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
86849         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
86850         Reimplement to do errno handling inline.
86851         (SYSCALL_ERROR_HANDLER): New macro.
86852         (__SYSCALL_STRING): Do not do errno handling in asm.
86853         (__CLONE_SYSCALL_STRING): Delete.
86854         (__INTERNAL_SYSCALL_STRING): Delete.
86855         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
86856         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
86857         (PSEUDO): Reimplement to do errno handling inline.
86858         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
86859         (SYSCALL_ERROR_HANDLER): New macro.
86860         (__SYSCALL_STRING): Do not do errno handling in asm.
86861         (__CLONE_SYSCALL_STRING): Delete.
86862         (__INTERNAL_SYSCALL_STRING): Delete.
86863         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
86864         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
86865         i386.
86866         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
86867         (inline_syscall*): Add 'err' argument.
86868         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
86869         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
86870         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
86871         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
86872
86873         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
86874         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
86875
86876 2011-08-30  Andreas Schwab  <schwab@redhat.com>
86877
86878         * elf/rtld.c (dl_main): Relocate objects in dependency order.
86879
86880 2011-08-29  Jiri Olsa <jolsa@redhat.com>
86881
86882         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
86883         directive.
86884
86885 2011-08-24  David S. Miller  <davem@davemloft.net>
86886
86887         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
86888
86889 2011-08-24  Andreas Schwab  <schwab@redhat.com>
86890
86891         * elf/Makefile: Add rules to build and run unload8 test.
86892         * elf/unload8.c: New file.
86893         * elf/unload8mod1.c: New file.
86894         * elf/unload8mod1x.c: New file.
86895         * elf/unload8mod2.c: New file.
86896         * elf/unload8mod3.c: New file.
86897
86898         * elf/dl-close.c (_dl_close_worker): Reset private search list if
86899         it wasn't used.
86900
86901 2011-08-23  David S. Miller  <davem@davemloft.net>
86902
86903         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
86904         subtract stack bias.
86905         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
86906         %sp not %fp in calculations.
86907         (_JMPBUF_UNWINDS_ADJ): Likewise.
86908
86909         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
86910         (aio_suspend): Call it to force an exception region around the
86911         AIO_MISC_WAIT() invocation.
86912
86913 2011-08-23  Andreas Schwab  <schwab@redhat.com>
86914
86915         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
86916         backslash.
86917
86918 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
86919
86920         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
86921         protection macro.
86922         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
86923         and <dl-machine.h>.
86924         (Elf64_FuncDesc): Remove.
86925
86926 2011-08-22  David S. Miller  <davem@davemloft.net>
86927
86928         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
86929         sigaltstack check, add missing cfi directives.
86930         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
86931         missing cfi directives, and sigaltstack handling.
86932
86933 2011-08-16  Andreas Schwab  <schwab@redhat.com>
86934
86935         [BZ #11724]
86936         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
86937         object is seen twice.
86938         * elf/dl-fini.c (_dl_sort_fini): Likewise.
86939
86940         * elf/Makefile (distribute): Add tst-initorder2.c.
86941         (tests): Add tst-initorder2.
86942         (modules-names): Add tst-initorder2a tst-initorder2b
86943         tst-initorder2c tst-initorder2d.  Add rules to build them.
86944         ($(objpfx)tst-initorder2.out): New rule.
86945         * elf/tst-initorder2.c: New file.
86946         * elf/tst-initorder2.exp: New file.
86947
86948 2011-08-22  Andreas Schwab  <schwab@redhat.com>
86949
86950         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
86951
86952         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
86953         dependencies back to end of function.
86954
86955         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
86956         $(elfobjdir)/ld.so.
86957
86958 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
86959
86960         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
86961         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
86962         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
86963         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
86964         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
86965         of __vdso_gettimeofday.
86966         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
86967         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
86968         attribute_hidden.
86969         (_libc_vdso_platform_setup): Remove initialization of
86970         __vdso_gettimeofday and __vdso_time.
86971
86972 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86973
86974         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
86975         and fgetc_unlocked.
86976         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
86977         getc_unlocked.
86978
86979         * elf/dl-open.c (add_to_global): Report additions to the global scope
86980         for LD_DEBUG=scopes.
86981         (dl_open_worker): Also print scope of newly loaded dependencies.
86982         (_dl_show_scope): Indicate if there is no scope.
86983
86984         [BZ #13114]
86985         * stdio-common/Makefile (tests): Add bug24.
86986         * stdio-common/bug24.c: New file.
86987
86988 2011-08-19  Andreas Jaeger  <aj@suse.de>
86989
86990         [BZ #13114]
86991         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
86992         non-existant file when using close-on-exec mode.
86993
86994 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86995
86996         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
86997         the very first instruction.
86998
86999         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
87000         the CFI state in the end.
87001         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
87002         inclusion of dl-trampoline.h.
87003         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
87004
87005 2011-08-19  Andreas Schwab  <schwab@redhat.com>
87006
87007         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
87008         expectations for long double.
87009
87010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
87011         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
87012
87013 2011-08-14  David S. Miller  <davem@davemloft.net>
87014
87015         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
87016         artificual limit depends upon the system page size.
87017
87018 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
87019
87020         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
87021         * resolv/Makefile: Define CFLAGS-libresolv.
87022
87023 2011-08-17  Andreas Schwab  <schwab@redhat.com>
87024
87025         * nss/makedb.c (compute_tables): Make variables used in nested
87026         function static.
87027
87028 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
87029
87030         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
87031         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
87032         if buffer was too small.
87033
87034         * elf/pldd.c (main): Attach to all threads in the process.
87035         Rewrite /proc handling to use *at functions.
87036
87037 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
87038
87039         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
87040         specifies first scope to show.
87041         (dl_open_worker): Update callers.  Move printing scope of new
87042         object to before the relocation.
87043         * elf/rtld.c (dl_main): Update _dl_show_scope call.
87044         * sysdeps/generic/ldsodefs.h: Update declaration.
87045
87046         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
87047         string for the scope number.
87048
87049 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
87050
87051         * nscd/servicescache.c (cache_addserv): Make sure written is always
87052         initialized.
87053
87054 2011-08-14  Roland McGrath  <roland@hack.frob.com>
87055
87056         * sysdeps/i386/i486/bits/atomic.h
87057         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
87058         statement expression, so as to suppress "set but not used" warning.
87059         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
87060
87061         * string/strncat.c (STRNCAT): Use prototype definition.
87062
87063         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
87064         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
87065         -Iprograms here.
87066         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
87067         (localedef-modules): Add localedef.
87068         (locale-modules): Add locale.
87069
87070         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
87071         * elf/rtld.c (dl_main): Invert order of assignment in last change,
87072         to avoid a warning.
87073
87074 2011-08-14  David S. Miller  <davem@davemloft.net>
87075
87076         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
87077         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
87078
87079 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
87080
87081         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
87082         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
87083         * elf/rtld.c (dl_main): Set l_name of vDSO.
87084         Call _dl_show_scope when DL_DEBUG_SCOPES.
87085         (process_dl_debug): Recognize scopes flag and also set it for all.
87086         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
87087         Declare _dl_show_scope.
87088
87089         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
87090         (do_dlopen): Pass caller_dlopen to dl_open.
87091         (__libc_dlopen_mode): Initialize caller_dlopen.
87092
87093         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
87094         of libc.  Make tolower call locale-independent.  Optimize a bit by
87095         using isdigit instead of isalnum.
87096         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
87097
87098 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
87099
87100         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
87101         was a dependency or dynamically loaded.
87102
87103 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
87104
87105         * intl/l10nflist.c: Allow architecture-specific pop function.
87106         * sysdeps/x86_64/l10nflist.c: New file.
87107
87108         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
87109         classification.
87110
87111 2011-08-10  Andreas Schwab  <schwab@redhat.com>
87112
87113         * include/dirent.h: Add libc_hidden_proto for scandirat and
87114         scandirat64.  Don't declare __scandirat64.
87115         * dirent/scandirat.c: Add libc_hidden_def.
87116         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
87117         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
87118
87119 2011-08-10  David S. Miller  <davem@davemloft.net>
87120
87121         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
87122         enum.
87123         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87124         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87125         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87126
87127 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
87128
87129         * Versions.def [libc]: Add GLIBC_2.15.
87130         * dirent/Makefile (routines): Add scandirat and scandirat64.
87131         * dirent/Versions [libc]: Export scandirat and scandirat64 for
87132         GLIBC_2.15.
87133         * dirent/dirent.h: Declare scandirat and scandirat64.
87134         * dirent/scandirat.c: New file.
87135         * dirent/scandirat64.c: New file.
87136         * sysdeps/wordsize-64/scandirat.c: New file.
87137         * sysdeps/wordsize-64/scandirat64.c: New file.
87138         * dirent/opendir.c: Define opendirat.
87139         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
87140         using scandirat.
87141         * dirent/scandir64.c: Adjust for scandir.c change.
87142         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
87143         __scandirat64, and __scandir_cancel_handler.
87144         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
87145         additional parameter and use openat instead of open (outside of ld.so).
87146         Add new __opendir as wrapper around __opendirat.
87147         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
87148         here without requiring old scandirat implementation.
87149
87150 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
87151
87152         * dirent/scandir.c (cancel_handler): Renamed to
87153         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
87154         defined.  Adjust users.
87155         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
87156         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
87157
87158 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
87159
87160         * string/test-string.h (IMPL): Use __STRING to expand name and then
87161         stringify it.
87162
87163         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
87164         of cleanups.
87165
87166 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87167
87168         * string/Makefile: Update.
87169         (strop-tests): Append strncat.
87170         * string/test-wcscmp.c: New file.
87171         New comprehensive test for wcscmp.
87172         * string/test-strcmp.c: Update.
87173         (WIDE): New define.
87174
87175 2011-07-22  Andreas Schwab  <schwab@redhat.com>
87176
87177         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
87178         line.
87179
87180 2011-07-26  Andreas Schwab  <schwab@redhat.com>
87181
87182         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
87183         encoding to ACE if AI_IDN.
87184
87185 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
87186
87187         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
87188         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
87189
87190 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87191
87192         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
87193         Fix overflow bug in strncat.
87194         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
87195
87196         * string/test-strncat.c: Update.
87197         Add new tests for checking overflow bugs.
87198
87199 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87200
87201         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87202         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
87203         * sysdeps/i386/i686/multiarch/strcat.S: New file.
87204         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
87205         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
87206         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
87207         * sysdeps/i386/i686/multiarch/strncat.S: New file.
87208         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
87209         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
87210
87211         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
87212         (USE_AS_STRCAT): Define.
87213         Add strcat and strncat support.
87214         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
87215
87216 2011-07-25  Andreas Schwab  <schwab@redhat.com>
87217
87218         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
87219         __n bigger than INT_MAX+1.
87220         (__strncmp_g): Likewise.
87221
87222 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
87223
87224         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
87225         * libio/stido.h: Likewise.
87226
87227         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
87228         (AF_NFC): Define.
87229         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
87230         (AF_NFC): Define.
87231
87232         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
87233         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87234         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87235         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
87236         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87237
87238         [BZ #13021]
87239         * scripts/test-installation.pl: Don't expect libnss_test1 to be
87240         installed.
87241
87242         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
87243         typo.
87244         (_dl_x86_64_save_sse): Likewise.
87245
87246 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
87247
87248         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
87249         OSXSAVE.
87250         (_dl_x86_64_save_sse): Likewise.
87251
87252         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
87253
87254         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
87255
87256 2011-07-21  Andreas Schwab  <schwab@redhat.com>
87257
87258         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
87259         change.
87260         (_dl_x86_64_save_sse): Use correct AVX check.
87261
87262 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87263
87264         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
87265         bug in strncpy/strncat.
87266         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
87267
87268 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
87269
87270         * string/tester.c (test_strcat): Add tests for different alignments
87271         of source and destination.
87272         (test_strncat): Likewise.
87273
87274 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87275
87276         [BZ #12852]
87277         * posix/glob.c (glob): Check passed in values before using them in
87278         expressions to avoid some overflows.
87279         (glob_in_dir): Likewise.
87280
87281         [BZ #13007]
87282         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
87283         check for AVX enablement so that we don't crash with old kernels and
87284         new hardware.
87285         * elf/tst-audit4.c: Add same checks here.
87286         * elf/tst-audit6.c: Likewise.
87287
87288         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
87289
87290 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
87291
87292         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
87293
87294 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87295
87296         * po/cs.po: Update from translation team.
87297         * po/bg.po: Likewise.
87298
87299 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
87300
87301         * misc/sys/cdefs.h: Add support for const attribute.
87302         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
87303         to gnu_dev_{major,minor,makedev} functions.
87304
87305 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
87306
87307         * intl/dcigettext.c (get_output_charset): Add missing bracket.
87308
87309 2011-07-20  Andreas Schwab  <schwab@redhat.com>
87310
87311         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
87312         strlen results.
87313
87314 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87315
87316         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
87317         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
87318         register in order to avoid conflicts with the soft frame pointer
87319         being held in r11 when necessary.
87320         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
87321         (INTERNAL_VSYSCALL_NCS): Likewise.
87322
87323 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
87324
87325         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
87326         * elf/dl-fini.c (_dl_fini): Adjust caller.
87327         * elf/dl-close.c (_dl_close_worker): Likewise.
87328         * sysdeps/generic/ldsodefs.h: Adjust declaration.
87329
87330 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87331
87332         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
87333         "aux_cache->nlibs < 0".
87334
87335         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
87336         in the reload-count case.
87337
87338 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87339
87340         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87341         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
87342         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
87343         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
87344         * sysdeps/x86_64/multiarch/strcat.S: New file.
87345         * sysdeps/x86_64/multiarch/strncat.S: New file.
87346         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
87347         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
87348         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
87349         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
87350         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
87351         (USE_AS_STRCAT): Define.
87352         Add strcat and strncat support.
87353         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87354         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
87355         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
87356         * string/strncat.c: Update.
87357         (USE_AS_STRNCAT): Define.
87358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87359         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
87360         and i7.
87361         * sysdeps/x86_64/multiarch/init-arch.h
87362         (bit_Prefer_PMINUB_for_stringop): New.
87363         (index_Prefer_PMINUB_for_stringop): Likewise.
87364         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
87365         bit_Prefer_PMINUB_for_stringop.
87366
87367 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87368
87369         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
87370         buffer64.
87371         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
87372         of casting of buffer.
87373         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
87374         buffer32 and buffer64.
87375         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
87376         writes instead of casting of buffer.
87377         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
87378         buffer32.
87379         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
87380         casting of buffer.
87381
87382 2011-07-19  Andreas Schwab  <schwab@redhat.com>
87383
87384         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
87385
87386 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87387
87388         * nscd/nscd.c (termination_handler): Don't do anything for a database
87389         if it has not yet been initialized.
87390
87391 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87392
87393         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87394
87395 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87396
87397         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87398
87399 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87400
87401         * po/nl.po: Update from translation team.
87402         * po/sv.po: Likewise.
87403
87404 2011-07-16  Roland McGrath  <roland@hack.frob.com>
87405
87406         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
87407         now disallowed by GCC.
87408
87409         * configure.in (use-default-link): Default to yes if a test -shared
87410         link meets our qualifications.
87411         * configure: Regenerated.
87412
87413         * config.make.in (output-format): New variable.
87414         * configure.in: Check for ld --print-output-format support.
87415         * configure: Regenerated.
87416         * Makerules ($(common-objpfx)format.lds)
87417         [$(output-format) != unknown]: Just use $(output-format),
87418         instead of the linker-script munging.
87419
87420 2011-07-14  Roland McGrath  <roland@hack.frob.com>
87421
87422         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
87423         of $(common-objpfx)shlib.lds.
87424         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
87425
87426         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
87427         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
87428
87429         * configure.in (-z relro check): Adjust test code to add a large
87430         writable data section after it.
87431         * configure: Regenerated.
87432
87433 2011-07-11  Roland McGrath  <roland@hack.frob.com>
87434
87435         * configure.in (-z relro check): Fix test code to make the variable
87436         truly const.
87437         * configure: Regenerated.
87438
87439 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
87440
87441         * nscd/nscd.h (struct traced_file): Define.
87442         (struct database_dyn): Remove inotify_descr, reset_res, and filename
87443         elements.  Add traced_files.
87444         (inotify_fd): Declare.
87445         (register_traced_file): Declare.
87446         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
87447         (inotify_fd): Export.
87448         (resolv_conf_descr): Remove.
87449         (nscd_init): Move inotify descriptor creation to main.
87450         Don't register files for notification here.
87451         (register_traced_file): New function.
87452         (invalidate_cache): Don't use reset_res to determine whether to call
87453         res_init, go through the list of registered files.
87454         (main_loop_poll): The inotify descriptors are now stored in the
87455         structures for the traced files.
87456         (main_loop_epoll): Likewise.
87457         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
87458         to __nss_disable_nscd.
87459         * nscd/cache.c (prune_cache): There is no single inotify descriptor
87460         for a database anymore.  Check the records for all the registered
87461         files instead.
87462         * nss/Makefile (libnss_files-routines): Add files-init.
87463         (libnss_db-routines): Add db-init.
87464         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
87465         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
87466         * nss/nss_db/db-init.c: New file.
87467         * nss/nss_files/files-init.c: New file.
87468         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
87469         __nss_lookup_function.
87470         (__nss_lookup_function): Call nss_load_library.
87471         (nss_load_all_libraries): New function.
87472         (__nss_disable_nscd): Take parameter with callback function for files
87473         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
87474         used for the cached services.
87475         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
87476         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
87477         options for features to all the files in nscd.
87478
87479         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
87480
87481 2011-07-10  Roland McGrath  <roland@hack.frob.com>
87482
87483         * csu/elf-init.c (__libc_csu_init): Comment typo.
87484
87485 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
87486
87487         * po/pl.po: Update from translation team.
87488         * po/ja.po: Likewise.
87489         * po/ru.po: Likewise.
87490         * po/ko.po: Likewise.
87491         * po/fr.po: Likewise.
87492
87493 2011-07-09  Roland McGrath  <roland@hack.frob.com>
87494
87495         * configure.in (.ctors/.dtors header and trailer check):
87496         Use an empirical test on a built program.
87497         * configure: Regenerated.
87498
87499         * configure.in (-z relro check): Use an empirical test on a built DSO.
87500         Detect, but do not require, on ia64.
87501         * configure: Regenerated.
87502
87503         * configure.in (READELF): Find it with AC_CHECK_TOOL.
87504         Update tests that use readelf to use $READELF instead.
87505         * configure: Regenerated.
87506
87507 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
87508
87509         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
87510         if the result is not used.
87511
87512 2011-07-05  Andreas Jaeger  <aj@suse.de>
87513
87514         [BZ #9696]
87515         * stdlib/tst-strtod.c: Add testcase.
87516
87517 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
87518
87519         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
87520         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
87521         The latter has a higher limit.  Take additional parameter to pass to
87522         the new function.
87523         (__pathconf): Pass file to __statfs_link_max.
87524         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
87525         __statfs_link_max.
87526         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
87527         __statfs_link_max.
87528
87529         [BZ #12868]
87530         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
87531         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
87532         Handle Lustre.
87533         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
87534         (__statfs_filesize_max): Likewise.
87535         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
87536
87537 2011-07-05  Andreas Jaeger  <aj@suse.de>
87538
87539         * resolv/res_comp.c (dn_skipname): Remove unused variable.
87540
87541 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
87542
87543         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
87544         `status' variable.
87545         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
87546         Likewise.
87547
87548 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
87549
87550         * Makefile (strop-tests): Add strncat.
87551         * string/test-strncat.c: New file.
87552
87553 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
87554
87555         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
87556
87557 2011-06-21  Andreas Jaeger  <aj@suse.de>
87558
87559         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
87560         Copy rule from iconvdata/Makefile.
87561
87562 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87563
87564         [BZ #12922]
87565         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
87566         but no long options are defined, just return 'W'.
87567
87568 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
87569
87570         [BZ #9696]
87571         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
87572
87573 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87574
87575         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
87576         netgroups to read.
87577         (innetgr): Likewise.
87578
87579 2011-07-05  Roland McGrath  <roland@hack.frob.com>
87580
87581         * config.make.in (install_root): Default to $(DESTDIR).
87582
87583 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
87584
87585         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
87586
87587 2011-07-02  Roland McGrath  <roland@hack.frob.com>
87588
87589         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
87590
87591         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
87592         containing directory rather than embedding absolute directory names.
87593
87594         * scripts/check-local-headers.sh: Rewritten using awk.
87595         Match by word, not by line.  Print error messages for matches.
87596         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
87597
87598         * Makerules [shlib-lds-flags empty]:
87599         ($(common-objpfx)libc_pic.opts): New target.
87600         ($(common-objpfx)libc_pic.os.clean): New target.
87601         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
87602
87603         * config.make.in (OBJCOPY): New variable.
87604         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
87605         * configure: Regenerated.
87606
87607         * config.make.in (use-default-link): New variable.
87608         * configure.in (use_default_link): Grok --with-default-link to set it.
87609         * configure: Regenerated.
87610         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
87611         (shlib-lds, shlib-lds-flags): Define to empty.
87612
87613         * Makerules (shlib-lds): New variable.
87614         (shlib-lds-flags): New variable.
87615         (build-shlib, build-moduile, build-module-asneeded): Use it.
87616         ($(common-objpfx)libc.so): Use $(shlib-lds).
87617         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
87618         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
87619
87620         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
87621         DT_FLAGS/DT_FLAGS_1 with zero flags.
87622
87623         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
87624         linker script munging.
87625
87626 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
87627
87628         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
87629         as 128-bit value.
87630         * crypt/sha512.c (sha512_process_block): Perform total addition using
87631         128-bit if possible.
87632         (__sha512_finish_ctx): Likewise.
87633         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
87634         as 64-bit value.
87635         * crypt/sha256.c (SWAP64): Define.
87636         (sha256_process_block): Perform total addition using 64-bit if
87637         possible.
87638         (__sha256_finish_ctx): Likewise.
87639
87640 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
87641
87642         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
87643         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87644         * nscd/hstcache.c (cache_addhst): Likewise.
87645         * nscd/grpcache.c (cache_addgr): Likewise.
87646         * nscd/aicache.c (addhstaiX): Likewise.
87647         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
87648
87649 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
87650
87651         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
87652         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87653         * nscd/hstcache.c (cache_addhst): Likewise.
87654         * nscd/grpcache.c (cache_addgr): Likewise.
87655         * nscd/aicache.c (addhstaiX): Likewise.
87656
87657 2011-07-01  Andreas Schwab  <schwab@redhat.com>
87658
87659         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
87660         domain only when needed.
87661
87662 2011-06-30  Andreas Schwab  <schwab@redhat.com>
87663
87664         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
87665         is always restored.
87666
87667 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
87668
87669         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
87670         are re-adding the entry.
87671         * nscd/servicescache.c (cache_addserv): Likewise.
87672
87673 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
87674
87675         * sysdeps/generic/dl-irel.h: fix protection against multiple
87676         inclusions.
87677         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
87678
87679 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
87680
87681         [BZ #12935]
87682         * malloc/memusage.sh: Fix quoting in message.
87683         * debug/xtrace.sh: Likewise.
87684
87685         * configure.in: Remove support for --experimental-malloc option, make
87686         it the default.
87687         * config.make.in: Likewise.
87688         * malloc/Makefile: Likewise.
87689
87690 2011-06-27  Andreas Schwab  <schwab@redhat.com>
87691
87692         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
87693         two-byte characters.
87694
87695 2011-06-27  Roland McGrath  <roland@hack.frob.com>
87696
87697         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
87698         AC_CACHE_CHECK invocation.
87699         * configure: Regenerated.
87700
87701         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
87702
87703 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
87704
87705         [BZ #12350]
87706         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
87707         bit from old_res_options.
87708
87709         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
87710
87711         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
87712         value type for setfct.
87713
87714 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
87715
87716         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87717         __gettimeofday instead of gettimeofday.
87718
87719 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
87720
87721         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
87722
87723 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
87724
87725         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
87726
87727         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
87728         info.
87729
87730 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87731
87732         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87733         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87734         strcpy-sse2-unaligned strncpy-sse2-unaligned
87735         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
87736         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
87737         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
87738         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
87739         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
87740         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
87741         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
87742         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
87743         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
87744         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
87745         (STRCPY): Support SSE2 and SSSE3 versions.
87746
87747 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
87748
87749         [BZ #12874]
87750         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
87751         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
87752         kernels which artificially limit size of requests.
87753
87754 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87755
87756         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87757         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87758         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
87759         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
87760         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
87761         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
87762         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
87763         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
87764         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
87765         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
87766         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
87767         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
87768         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
87769         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
87770         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
87771         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87772         Enable unaligned load optimization for Intel Core i3, i5 and i7
87773         processors.
87774         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
87775         Define.
87776         (index_Fast_Unaligned_Load): Define.
87777         (HAS_FAST_UNALIGNED_LOAD): Define.
87778
87779 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
87780
87781         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
87782
87783 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87784
87785         [BZ #12907]
87786         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
87787         until it is clear that the information is realy needed.
87788         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
87789
87790 2011-06-22  Andreas Schwab  <schwab@redhat.com>
87791
87792         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
87793
87794 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87795
87796         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87797         /sys/devices/system/cpu/online if it is usable.
87798
87799         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
87800         reading the information from the /proc filesystem to once a second.
87801
87802 2011-06-21  Andreas Jaeger  <aj@suse.de>
87803
87804         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
87805         NULL after inclusion of kernel headers.
87806
87807 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
87808
87809         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
87810         calls to internal_setent.
87811
87812         [BZ #12885]
87813         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
87814         addresses using gethostbyname4_r ignore IPv4 addresses.
87815
87816         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
87817         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
87818
87819         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
87820
87821 2011-06-20  David S. Miller  <davem@davemloft.net>
87822
87823         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
87824         inclusions.
87825         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
87826
87827         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
87828         (elf_irel): Use it.
87829         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
87830         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
87831         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
87832         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
87833         * sysdeps/x86_64/dl-irel.h: Likewise.
87834
87835         * elf/dl-runtime.c: Use elf_ifunc_invoke.
87836         * elf/dl-sym.c: Likewise.
87837
87838 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87839
87840         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
87841         need to dereference resplen2.
87842
87843 2011-06-14  Andreas Schwab  <schwab@redhat.com>
87844
87845         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
87846
87847 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87848
87849         * Makeconfig: Define vardbdir and inst_vardbdir.
87850         * nss/Makefile: Add rules to install db-Makefile.
87851
87852         * nss/nss_db/db-XXX.c: Cleanup.
87853
87854         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
87855         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
87856         GLIBC_PRIVATE.
87857         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
87858         * nss/makedb.c: Implement -g option to specify that value strings
87859         are generated and should not be added to table iterated over for
87860         get*ent calls.
87861         * nss/nss_db/db-initgroups.c: New file.
87862
87863         * nss/getent.c: Add support for initgroups lookups through getgrouplist
87864         interface.
87865
87866         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
87867         (internal_getgrouplist): Adjust to name change.
87868         Update use_initgroups_entry if this is not the first call.
87869         * nss/databases.def: Add initgroups entry.
87870
87871         * nss/makedb.c (compute_tables): Check result of multiple hash table
87872         sizes to minimize maximum chain length.
87873
87874 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
87875
87876         * Versions.def: Add entry for libnss_db.
87877         * shlib-versions: Likewise.
87878         * nss/Makefile: Add rules to build libnss_db.
87879         * nss/Versions: Add libnss_db information.  Organize libnss_files
87880         entries better.
87881         * nss/db-Makefile: Add gshadow support.  Change rules for the new
87882         makedb progra.  Some minor improvements to generate smaller files.
87883         * nss/nss_db/nss_db.h: Move NSS database header data structures to
87884         here from...
87885         * nss/makedb.c: ...here.
87886         Improve database format to be smaller and require less memory at
87887         runtime.
87888         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
87889         db anymore.
87890         * nss/nss_db/db-netgrp.c: Likewise.
87891         * nss/nss_db/db-open.c: Likewise.
87892         * nss/nss_files/flies-XXX.x: Adjust comments.
87893         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
87894         * nss/nss_files/files-grp.c: Likewise.
87895         * nss/nss_files/files-hosts.c: Likewise.
87896         * nss/nss_files/files-network.c: Likewise.
87897         * nss/nss_files/files-proto.c: Likewise.
87898         * nss/nss_files/files-pwd.c: Likewise.
87899         * nss/nss_files/files-rpc.c: Likewise.
87900         * nss/nss_files/files-service.c: Likewise.
87901         * nss/nss_files/files-sgrp.c: Likewise.
87902         * nss/nss_files/files-spwd.c: Likewise.
87903         * nss/nss_db/db-alias.c: Removed.
87904         * nss/nss_db/dummy-db.h: Removed.
87905
87906 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
87907
87908         * nss/makedb.c: Rewritten to not use database library.
87909         * nss/Makefile: Update to build new makedb program.
87910
87911 2011-06-14  Andreas Jaeger  <aj@suse.de>
87912
87913         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
87914         memset declaration.
87915
87916 2011-06-10  Andreas Schwab  <schwab@redhat.com>
87917
87918         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
87919         tmpbuf.
87920
87921 2011-06-10  Roland McGrath  <roland@hack.frob.com>
87922
87923         * Makerules (shlib.lds): Fail if the linker script comes out empty.
87924         * elf/Makefile ($(objpfx)ld.so): Likewise.
87925
87926         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
87927         Don't list ld.so twice in dependencies.
87928
87929         * posix/bug-regex31.c: Include <stdlib.h>.
87930
87931         * nscd/hstcache.c (cache_addhst): Remove unused variable.
87932
87933         * nis/nss_compat/compat-spwd.c
87934         (getspent_next_nss_netgr): Remove unused variable.
87935         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
87936
87937         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
87938         nonmembers" output to use the right array.
87939
87940         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
87941
87942         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
87943
87944         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
87945         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
87946         * catgets/gencat.c (read_input_file): Likewise.
87947         * locale/programs/locarchive.c (enlarge_archive): Likewise.
87948
87949         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
87950         variable definition inside #if's controlling its use.
87951
87952         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
87953
87954         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
87955
87956         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
87957
87958         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
87959         unreachable code.
87960
87961         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
87962
87963         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
87964         * configure: Regenerated.
87965
87966         * Makerules: Revert last change.
87967         * elf/Makefile: Likewise.
87968
87969 2011-06-09  Roland McGrath  <roland@hack.frob.com>
87970
87971         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
87972         * elf/Makefile ($(objpfx)librtld.os): Likewise.
87973         (reloc-link): Likewise.
87974
87975 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
87976
87977         * elf/Makefile: Add rules to build pldd.
87978         * elf/pldd.c: New file.
87979         * elf/pldd-xx.c: New file.
87980
87981 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
87982
87983         * version.h: Update for 2.15 development version.
87984
87985 2011-06-07  David S. Miller  <davem@davemloft.net>
87986
87987         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
87988         ifuncs.
87989         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
87990         elf_machine_lazy_rel): Likewise.
87991         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
87992         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
87993         elf_machine_lazy_rel): Likewise.
87994         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
87995         dl_hwcap via passed in argument.
87996         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
87997         Likewise.
87998
87999 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88000
88001         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
88002
88003 2011-06-06  Roland McGrath  <roland@hack.frob.com>
88004
88005         [BZ #12849]
88006         * manual/fdl-1.1.texi: New file, verbatim from:
88007         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
88008         * manual/lgpl-2.1.texi: New file, verbatim from:
88009         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
88010         * manual/Makefile (licenses): New variable, list those new file names.
88011         (texis): Use it.
88012         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
88013
88014         * manual/fdl.texi: File removed.
88015         * manual/lesser.texi: File removed.
88016         * manual/libc.texinfo (Copying, Documentation License):
88017         Use new @include file names, put @appendix directive before @include.
88018
88019 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
88020
88021         [BZ #12841]
88022         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
88023         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
88024         (mq_open): Add __NTH.
88025
88026 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
88027
88028         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88029         Assume Intel Core i3/i5/i7 processor if AVX is available.
88030
88031 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
88032
88033         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
88034         typo.
88035
88036 2011-05-31  Andreas Schwab  <schwab@redhat.com>
88037
88038         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
88039         memory.  Use alloca_account.  Fix memory leak when retrying.
88040
88041 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
88042
88043         * version.h (RELEASE): Bump for 2.14 release.
88044         * include/features.h (__GLIBC_MINOR__): Bump to 14.
88045
88046         * config.make.in (RANLIB): Remove entry.
88047
88048 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
88049
88050         * po/Makefile (po-sed-cmd): Add ksh to extensions.
88051         (libc.pot): Work around missing support for .ksh extension in xgettext.
88052
88053         [BZ #12684]
88054         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
88055         if both request failed.
88056         (send_dg): In case of server errors clear resplen or *resplen2.
88057
88058         [BZ #12454]
88059         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
88060         when there are multiple maps.
88061         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
88062         (_dl_fini): Remove test here.
88063
88064         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
88065
88066 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
88067
88068         [BZ #12350]
88069         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
88070         bit from old_res_options.
88071         (gaih_inet): Likewise.
88072
88073         [BZ #11099]
88074         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
88075         as signed.
88076
88077         * resolv/res_init.c (res_setoptions): Make the code more compact.
88078
88079         [BZ #11558]
88080         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
88081         set RES_USEVC.
88082
88083         [BZ #11634]
88084         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
88085
88086         * malloc/malloc.h: Mark malloc hook variables as deprecated.
88087
88088         [BZ #11781]
88089         * malloc/malloc.h: Declare malloc hook variables as volatile.
88090
88091         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
88092         in last patch.
88093
88094         [BZ #11799]
88095         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
88096         raise in the comment.
88097         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
88098         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
88099         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
88100
88101 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
88102
88103         [BZ #12811]
88104         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
88105         grow the buffers more if it already has to be sufficient.
88106         (build_wcs_upper_buffer): Likewise.
88107         * posix/regexec.c (check_matching): Likewise.
88108         (clean_state_log_if_needed): Likewise.
88109         (extend_buffers): Don't enlarge buffers beyond size of the input
88110         buffer.
88111         Patches mostly by Emil Wojak <emil@wojak.eu>.
88112         * posix/bug-regex32.c: New file.
88113         * posix/Makefile (tests): Add bug-regex32.
88114
88115         * locale/findlocale.c (_nl_find_locale): Return right away if
88116         _nl_explode_name failed.
88117         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
88118
88119         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
88120
88121         * debug/xtrace.sh: Unify messages.
88122         * malloc/memusage.sh: Likewise.
88123
88124         [BZ #12813]
88125         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
88126         time symbol from vDSO.  Substitute with vsyscall if not available.
88127         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
88128         __vdso_time.
88129
88130         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
88131         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
88132         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
88133         Add sendmmsg and internal_sendmmsg.
88134         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
88135         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
88136         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
88137
88138         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
88139         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
88140         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
88141
88142 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
88143
88144         [BZ #12813]
88145         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
88146         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
88147         available.
88148         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
88149         __vdso_getcpu.
88150
88151         [BZ #12814]
88152         * iconvdata/Makefile (tests): Add bug-iconv9.
88153         * iconvdata/bug-iconv9.c: New file.
88154
88155 2011-05-27  Andreas Schwab  <schwab@redhat.com>
88156
88157         [BZ #12814]
88158         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
88159
88160 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
88161
88162         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88163         (struct user_regs_struct): Change intcs field back to cs.
88164
88165 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
88166
88167         * po/ja.po: Update from translation team.
88168
88169 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
88170
88171         [BZ #12795]
88172         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
88173         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
88174
88175 2011-05-20  Andreas Schwab  <schwab@redhat.com>
88176
88177         * stdlib/longlong.h: Update from GCC.
88178
88179 2011-05-23  Andreas Schwab  <schwab@redhat.com>
88180
88181         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
88182         parameter name.
88183         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
88184         Add parameter name.
88185         (__sysconf): Pass it down.
88186
88187 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
88188
88189         [BZ #12671]
88190         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
88191         some situations.
88192         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
88193         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
88194         add in in __libc_use_alloca calls.  Adjust callers.
88195         (glob): Use malloc in some situations.
88196
88197         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
88198         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
88199         pltexit.
88200
88201 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
88202
88203         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
88204         and CLOCK_BOOTTIME_ALARM.
88205
88206         [BZ #12782]
88207         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
88208         is returned.
88209
88210         * string/_strerror.c (__strerror_r): Print negative errors as signed
88211         numbers.
88212
88213         [BZ #12777]
88214         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
88215         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
88216         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
88217
88218         * configure.in: Fix typo in redirection and correct removal of test
88219         files in two cases.
88220
88221         [BZ #12788]
88222         * locale/setlocale.c (new_composite_name): Fix test to check for
88223         identical name of all categories.
88224
88225         [BZ #12792]
88226         * libio/filedoalloc.c (local_isatty): New function.
88227         (_IO_file_doallocate): Use local_isatty.
88228         * stdio-common/perror.c (perror): In case a new stream is used
88229         forward the stream error.
88230         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
88231         error flag.
88232
88233 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
88234
88235         [BZ #11884]
88236         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
88237         alloca.
88238         * include/alloca.h (extend_alloca_account): Define.
88239
88240         [BZ #11857]
88241         * posix/regex.h: Fix comments with documentation of user-accessible
88242         fields after compilation and describe correct free'ing of pattern
88243         after re_compile_pattern.
88244         Patch by Reuben Thomas <rrt@sc3d.org>.
88245
88246 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
88247
88248         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
88249         and -mno-altivec to prevent the compiler from using Altivec and/or
88250         VSX instructions when the corresponding registers are not available.
88251
88252 2011-05-19  Andreas Schwab  <schwab@redhat.com>
88253
88254         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
88255
88256 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
88257
88258         * libio/freopen.c (freopen): Use __dup2, not dup2.
88259         * libio/freopen64.c (freopen64): Likewise.
88260
88261 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
88262
88263         [BZ #12775]
88264         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
88265         * math/Makefile (tests): Add test-powl.
88266         (CFLAGS-test-powl.c): Define.
88267         * math/test-powl.c: New file.
88268
88269 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
88270
88271         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
88272
88273 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
88274
88275         [BZ #11837]
88276         * iconvdata/gb18030.c: Update to GB18020-2005.
88277
88278 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
88279
88280         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
88281         RE_SYNTAX_POSIX_AWK): Update to match recent development.
88282         Patch by Aharon Robbins <arnold@skeeve.com>.
88283
88284         [BZ #11892]
88285         * stdlib/putenv.c (putenv): Don't always create copy of the variable
88286         on the stack.
88287
88288         [BZ #11895]
88289         * misc/pselect.c (__pselect): Handle timeout value errors hidden
88290         through underflows.
88291
88292         [BZ #12766]
88293         * misc/error.c (error_at_line): Ensure file_name and old_file_name
88294         point to strings before performing equality test for error_one_per_line
88295         mode.
88296
88297         [BZ #11697]
88298         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
88299
88300         [BZ #11820]
88301         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88302         (struct user_fpregs_struct): Avoid __uint*_t types.
88303
88304         [BZ #6420]
88305         * malloc/mtrace.c (tr_where): Add additional parameter to point to
88306         symbol info.  Use it instead of calling _dl_addr locally.
88307         (lock_and_info): New function.
88308         (tr_freehook): Call lock_and_info and pass symbol info as additional
88309         parameter to tr_where.
88310         (tr_mallochook): Likewise.
88311         (tr_reallochook): Likewise.
88312         (tr_memalignhook): Likewise.
88313
88314         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
88315         used and couldn't be at all thread-safe.
88316
88317 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
88318
88319         * libio/freopen.c (freopen): Don't close old file descriptor
88320         before the new one is opened.  Instead dup the new file descriptor
88321         to the old one after the new stream is created.
88322         * libio/freopen64.c (freopen64): Likewise.
88323         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
88324         * libio/fileops.c (_IO_new_file_close_it): Handle new
88325         _IO_FLAGS2_NOCLOSE flag.
88326         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
88327         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
88328         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
88329         _IO_FLAGS2_NOCLOSE flag.
88330         * include/unistd.h: Add hidden_proto for dup3.
88331         Define __have_dup3.
88332         * io/dup3.c: Define hidden symbol.
88333         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
88334
88335         [BZ #7101]
88336         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
88337         when an incomplete long option is used.
88338         * posix/tst-getopt_long1.c: New file.
88339         * posix/Makefile (tests): Add tst-getopt_long1.
88340
88341         [BZ #10138]
88342         * scripts/config.guess: Update from autoconf-2.68.
88343         * scripts/config.sub: Likewise.
88344
88345         [BZ #10157]
88346         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
88347         tests into ...
88348         (has_cpuclock): ...this.  New function.
88349         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
88350         macro here based on has_cpuclock code.
88351
88352         [BZ #10149]
88353         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88354         First byte (not low byte) is now always NUL.
88355         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
88356
88357         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88358         Use non-cancelable interfaces.
88359
88360         [BZ #9809]
88361         * locale/iso-639.def: Add entry for Sorani.
88362
88363         [BZ #11901]
88364         * include/stdlib.h: Move include protection to the right place.
88365         Define abort_msg_s.  Declare __abort_msg with it.
88366         * stdlib/abort.c (__abort_msg): Adjust type.
88367         * assert/assert.c (__assert_fail_base): New function.  Majority
88368         of code from __assert_fail.  Allocate memory for __abort_msg with
88369         mmap.
88370         (__assert_fail): Now call __assert_fail_base.
88371         * assert/assert-perr.c: Remove bulk of implementation.  Use
88372         __assert_fail_base.
88373         * include/assert.hL Declare __assert_fail_base.
88374         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
88375         mmap.
88376         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
88377
88378 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
88379
88380         [BZ #11952]
88381         [BZ #12453]
88382         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
88383         until all modules are registered in the DTV.
88384         * elf/Makefile: Add rules to build and run tst-tls19.
88385         * elf/tst-tls19.c: New file.
88386         * elf/tst-tls19mod1.c: New file.
88387         * elf/tst-tls19mod2.c: New file.
88388         * elf/tst-tls19mod3.c: New file.
88389         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
88390
88391         [BZ #12083]
88392         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
88393         correctly.
88394
88395         [BZ #12601]
88396         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
88397         two-byte sequence errors.
88398         * iconvdata/Makefile (tests): Add bug-iconv8.
88399         * iconvdata/bug-iconv8.c: New file.
88400
88401         [BZ #12626]
88402         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
88403         buf2 definition.
88404
88405         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
88406
88407         [BZ #12432]
88408         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
88409         (dummy_getcfa): New function.
88410         (init): Get _Unwind_GetCFA address, use dummy if not found.
88411         (backtrace_helper): In recursion check, also check whether CFA changes.
88412         (__backtrace): Completely initialize arg.
88413
88414         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
88415         storing incomplete byte sequence in state object.  Avoid testing for
88416         guaranteed too small input if we know there is enough data available.
88417
88418 2011-05-11  Andreas Schwab  <schwab@redhat.com>
88419
88420         * Makeconfig (+link-pie): Indent.
88421         * Rules (binaries-pie): Define if $(have-fpie) and
88422         $(build-shared).
88423         (binaries-shared): Also filter out $(binaries-pie).
88424         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
88425         * nscd/Makefile (others-pie): Add nscd.
88426         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
88427         ($(objpfx)nscd): Remove command override.
88428         * login/Makefile (others-pie): Add pt_chown.
88429         ($(objpfx)pt_chown): Remove command override.
88430         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
88431         remove command overrides.
88432
88433 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
88434
88435         * libio/tst_putwc.c: Fix error messages.
88436
88437         [BZ #12724]
88438         * libio/fileops.c (_IO_new_file_close_it): Always flush when
88439         currently writing and seek to current position when not.
88440         * libio/Makefile (tests): Add bug-fclose1.
88441         * libio/bug-fclose1.c: New file.
88442
88443 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
88444
88445         [BZ #12511]
88446         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
88447         don't set DF_1_NODELETE here.
88448         (do_lookup_x): When entering new entry test for copy relocation
88449         and if necessary set DF_1_NODELETE flag.
88450         * elf/tst-unique4.cc: New file.
88451         * elf/tst-unique4.h: New file.
88452         * elf/tst-unique4lib.cc: New file.
88453         * elf/Makefile: Add rules to build and run tst-unique4.
88454         Patch by Piotr Bury <pbury@goahead.com>.
88455
88456 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
88457
88458         [BZ #12052]
88459         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
88460
88461         [BZ #12625]
88462         * misc/mntent_r.c (addmntent): Flush the stream after the output
88463
88464         [BZ #12393]
88465         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
88466         (is_trusted_path_normalize): Skip initial colon.  Append slash
88467         to empty buffer.  Duplicate is_trusted_path code but allow
88468         constructed patch to be prefix.
88469         (is_dst): Allow $ORIGIN followed by /.
88470         (_dl_dst_substitute): Correct clearing of check_for_trusted.
88471         Correct testing of result of is_trusted_path_normalize
88472         (decompose_rpath): Fix warning.
88473
88474 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
88475
88476         [BZ #11257]
88477         * grp/initgroups.c (internal_getgrouplist): When we found the service
88478         list through the initgroups entry in nsswitch.conf do not always
88479         continue on a successful lookup.  Don't always use the
88480         __nss_group_database value if it is set.
88481         * nss/nsswitch.conf (initgroups): Change action for successful db
88482         lookup to continue for compatibility.
88483
88484 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
88485
88486         [BZ #11532]
88487         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
88488         and CP774 modules.
88489         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
88490         and CP774 modules.
88491         * iconvdata/tst-tables.sh: Likewise.
88492         * iconvdata/cp770.c: New file.
88493         * iconvdata/cp771.c: New file.
88494         * iconvdata/cp772.c: New file.
88495         * iconvdata/cp773.c: New file.
88496         * iconvdata/cp774.c: New file.
88497         * iconvdata/testdata/CP770: New file.
88498         * iconvdata/testdata/CP770..UTF8: New file.
88499         * iconvdata/testdata/CP771: New file.
88500         * iconvdata/testdata/CP771..UTF8: New file.
88501         * iconvdata/testdata/CP772: New file.
88502         * iconvdata/testdata/CP772..UTF8: New file.
88503         * iconvdata/testdata/CP773: New file.
88504         * iconvdata/testdata/CP773..UTF8: New file.
88505         * iconvdata/testdata/CP774: New file.
88506         * iconvdata/testdata/CP774..UTF8: New file.
88507
88508         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
88509         END CHARMAP line.
88510         * iconvdata/gen-8bit-gap.sh: Likewise.
88511         * iconvdata/gen-8bit.sh: Likewise.
88512
88513         * locale/iso-639.def: Add ary entry.
88514
88515         [BZ #11258]
88516         * locale/C-translit.h.in: Add U20A1 transliteration.
88517
88518         [BZ #12178]
88519         * locale/iso-639.def: Add wae entry.
88520         Patch by Kevin Bortis <bortis@translate-wae.ch>.
88521
88522         [BZ #12545]
88523         * locale/programs/localedef.c (construct_output_path): Use ssize_t
88524         for n.
88525
88526         [BZ #12711]
88527         * locale/C-translit.h.in: Add entry for U20B9.
88528         Patch by pravin.d.s@gmail.com.
88529
88530 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
88531
88532         [BZ #12713]
88533         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
88534         ENAMETOOLONG use generic getcwd.
88535         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
88536         in rtld.  Use *stat64.
88537         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
88538         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
88539         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
88540         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
88541         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
88542         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
88543         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
88544         __fstatat64 macros.
88545         * include/dirent.h: Add libc_hidden_proto for rewinddir.
88546         * dirent/rewinddir.c: Add libc_hidden_def.
88547         * sysdeps/mach/hurd/rewinddir.c: Likewise.
88548         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
88549
88550         * include/dirent.h (__alloc_dir): Add flags parameter.
88551         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
88552         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
88553         __alloc_dir.
88554         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
88555         from fdopendir if O_CLOEXEC is already set.
88556
88557 2011-03-15  Alan Modra  <amodra@gmail.com>
88558
88559         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
88560         l_tls_firstbyte_offset non-zero.  Save padding offset in
88561         l_tls_firstbyte_offset for later use.
88562         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
88563         freeing static tls block.
88564
88565 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
88566
88567         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
88568         where #ifdef was intended.  The intent is to prevent ARG_MAX from
88569         being defined by the kernel headers.
88570
88571 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
88572
88573         [BZ #12734]
88574         * resolv/resolv.h: Define RES_NOTLDQUERY.
88575         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
88576         no-tld-query and set RES_NOTLDQUERY.
88577         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
88578         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
88579         modern BIND to search name as TLD unless forbidden.
88580
88581 2011-05-07  Petr Baudis  <pasky@suse.cz>
88582             Ulrich Drepper  <drepper@gmail.com>
88583
88584         [BZ #12393]
88585         * elf/dl-load.c (fillin_rpath): Move trusted path check...
88586         (is_trusted_path): ...to here.
88587         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
88588         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
88589         using is_trusted_path_normalize() in setuid scripts.
88590
88591 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
88592
88593         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
88594         __BEGIN/__END_DECLS.
88595
88596 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
88597
88598         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
88599         NSS_STATUS_NOTFOUND if no record was found.
88600
88601 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88602
88603         * sunrpc/Makefile (headers): Add rpc/netdb.h.
88604         (headers-not-in-tirpc): Remove rpc/netdb.h
88605         * resolv/netdb.h: Revert last change.
88606
88607 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
88608
88609         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
88610         circular dependency between libgcc.a and libc.a.
88611
88612 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88613
88614         * resolv/netdb.h: Don't include <rpc/netdb.h>.
88615         * nis/Makefile: Don't install rpcsvc/*.
88616         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
88617         instead of <rpc/types.h>.
88618         (MAXHOSTNAMELEN): Define.
88619
88620 2011-05-03  Andreas Schwab  <schwab@redhat.com>
88621
88622         * elf/ldconfig.c (add_dir): Don't crash on empty path.
88623
88624 2011-04-28  Maciej Babinski  <mbabinski@google.com>
88625
88626         [BZ #12714]
88627         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
88628         gethostbyname4_r when IPv6 results are possible.
88629
88630 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
88631
88632         [BZ #12723]
88633         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
88634         _PC_PIPE_BUF handling.
88635
88636 2011-04-30  Bruno Haible  <bruno@clisp.org>
88637
88638         [BZ #12717]
88639         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
88640         * resolv/netdb.h (getnameinfo): Change type of flags parameter
88641         to 'int'.
88642         * inet/getnameinfo.c (getnameinfo): Likewise.
88643
88644 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
88645
88646         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
88647         to groups setting in database lookup.
88648         * nss/nsswitch.conf: Add initgroups entry.
88649
88650 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
88651
88652         [BZ #12685]
88653         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
88654         mode string.
88655         Patch by Eric Blake <eblake@redhat.com>.
88656
88657 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
88658
88659         * sunrpc/Makefile (need-export-routines): Add svc_run.
88660         (routines): Remove svc_run.
88661         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
88662         * sunrpc/clnt_perr.c (clnt_perrno): Export.
88663         * sunrpc/svc_run.c (svc_run): Likewise.
88664         * sunrpc/svc_udp.c (svcudp_create): Likewise.
88665
88666 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
88667
88668         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
88669         problem in reallocation in last patch.
88670
88671 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
88672
88673         * sunrpc/Makefile: Move inclusion of Rules.
88674
88675 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88676
88677         * nss/nss_files/files-initgroups.c: New file.
88678         * nss/Makefile (libnss_files-routines): Add files-initgroups.
88679         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
88680         _nss_files_initgroups_dyn.
88681
88682 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
88683
88684         * elf/elf.h (R_ARM_IRELATIVE): Define.
88685
88686 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88687
88688         * po/ru.po: Update from translation team.
88689
88690 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88691
88692         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
88693         dependencies.
88694
88695 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
88696
88697         [BZ #12653]
88698         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
88699         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
88700         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
88701         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
88702         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
88703
88704 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
88705
88706         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
88707         differing bytes.
88708         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
88709         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
88710         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
88711
88712 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88713
88714         [BZ #12420]
88715         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
88716         storing it.
88717         * stdlib/bug-getcontext.c: New file.
88718         * stdlib/Makefile: Add rules to build and run bug-getcontext.
88719
88720 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88721
88722         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
88723         instructions into .machine "z9-109".
88724         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
88725         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
88726
88727 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88728
88729         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
88730         between environment variables and auxiliary vector.
88731
88732 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
88733
88734         * Makefile: Add rules to build linkobj/libc.so.
88735         * include/libc-symbols.h: Define libc_hidden_nolink.
88736         * include/rpc/auth.h: Mark functions which are to be hidden.
88737         * include/rpc/auth_des.h: Likewise.
88738         * include/rpc/auth_unix.h: Likewise.
88739         * include/rpc/clnt.h: Likewise.
88740         * include/rpc/des_crypt.h: Likewise.
88741         * include/rpc/key_prot.h: Likewise.
88742         * include/rpc/pmap_clnt.h: Likewise.
88743         * include/rpc/pmap_prot.h: Likewise.
88744         * include/rpc/pmap_rmt.h: Likewise.
88745         * include/rpc/rpc_msg.h: Likewise.
88746         * include/rpc/svc.h: Likewise.
88747         * include/rpc/svc_auth.h: Likewise.
88748         * include/rpc/xdr.h: Likewise.
88749         * nis/Makefile: Link all DSOs against linkobj/libc.so.
88750         * nss/Makefile: Likewise.
88751         * sunrpc/Makefile: Don't install headers.  Build library with normal
88752         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
88753         * sunrpc/auth_des.c: Hide exported symbols by default, export some
88754         for the compat linking library.  Remove use of INTDEF/INTUSE.
88755         * sunrpc/auth_none.c: Likewise.
88756         * sunrpc/auth_unix.c: Likewise.
88757         * sunrpc/authdes_prot.c: Likewise.
88758         * sunrpc/authuxprot.c: Likewise.
88759         * sunrpc/clnt_gen.c: Likewise.
88760         * sunrpc/clnt_perr.c: Likewise.
88761         * sunrpc/clnt_raw.c: Likewise.
88762         * sunrpc/clnt_simp.c: Likewise.
88763         * sunrpc/clnt_tcp.c: Likewise.
88764         * sunrpc/clnt_udp.c: Likewise.
88765         * sunrpc/clnt_unix.c: Likewise.
88766         * sunrpc/des_crypt.c: Likewise.
88767         * sunrpc/des_soft.c: Likewise.
88768         * sunrpc/get_myaddr.c: Likewise.
88769         * sunrpc/key_call.c: Likewise.
88770         * sunrpc/key_prot.c: Likewise.
88771         * sunrpc/netname.c: Likewise.
88772         * sunrpc/pm_getmaps.c: Likewise.
88773         * sunrpc/pm_getport.c: Likewise.
88774         * sunrpc/pmap_clnt.c: Likewise.
88775         * sunrpc/pmap_prot.c: Likewise.
88776         * sunrpc/pmap_prot2.c: Likewise.
88777         * sunrpc/pmap_rmt.c: Likewise.
88778         * sunrpc/publickey.c: Likewise.
88779         * sunrpc/rpc_cmsg.c: Likewise.
88780         * sunrpc/rpc_common.c: Likewise.
88781         * sunrpc/rpc_dtable.c: Likewise.
88782         * sunrpc/rpc_prot.c: Likewise.
88783         * sunrpc/rpc_thread.c: Likewise.
88784         * sunrpc/rtime.c: Likewise.
88785         * sunrpc/svc.c: Likewise.
88786         * sunrpc/svc_auth.c: Likewise.
88787         * sunrpc/svc_authux.c: Likewise.
88788         * sunrpc/svc_raw.c: Likewise.
88789         * sunrpc/svc_run.c: Likewise.
88790         * sunrpc/svc_simple.c: Likewise.
88791         * sunrpc/svc_tcp.c: Likewise.
88792         * sunrpc/svc_udp.c: Likewise.
88793         * sunrpc/svc_unix.c: Likewise.
88794         * sunrpc/svcauth_des.c: Likewise.
88795         * sunrpc/xcrypt.c: Likewise.
88796         * sunrpc/xdr.c: Likewise.
88797         * sunrpc/xdr_array.c: Likewise.
88798         * sunrpc/xdr_float.c: Likewise.
88799         * sunrpc/xdr_intXX_t.c: Likewise.
88800         * sunrpc/xdr_mem.c: Likewise.
88801         * sunrpc/xdr_rec.c: Likewise.
88802         * sunrpc/xdr_ref.c: Likewise.
88803         * sunrpc/xdr_sizeof.c: Likewise.
88804         * sunrpc/xdr_stdio.c: Likewise.
88805
88806 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
88807
88808         [BZ #12650]
88809         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
88810         * sysdeps/ia64/dl-tls.h: Likewise.
88811         * sysdeps/powerpc/dl-tls.h: Likewise.
88812         * sysdeps/s390/dl-tls.h: Likewise.
88813         * sysdeps/sh/dl-tls.h: Likewise.
88814         * sysdeps/sparc/dl-tls.h: Likewise.
88815         * sysdeps/x86_64/dl-tls.h: Likewise.
88816         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
88817
88818 2011-03-14  Andreas Schwab  <schwab@redhat.com>
88819
88820         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
88821         rpath element also skip the following colon.
88822         (expand_dynamic_string_token): Add is_path parameter and pass
88823         down to DL_DST_REQUIRED and _dl_dst_substitute.
88824         (decompose_rpath): Call expand_dynamic_string_token with
88825         non-zero is_path.  Ignore empty rpaths.
88826         (_dl_map_object_from_fd): Call expand_dynamic_string_token
88827         with zero is_path.
88828
88829 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
88830
88831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
88832         Make cancelable.
88833
88834 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
88835
88836         [BZ #12655]
88837         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
88838         Patch by Filipe David Manana <fdmanana@apache.org>.
88839
88840 2011-04-07  Andreas Schwab  <schwab@redhat.com>
88841
88842         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
88843         Maintain aligned stack.
88844         (CHECK_RSP): Remove unused macro.
88845
88846 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
88847
88848         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
88849         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
88850
88851 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
88852
88853         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
88854
88855         * include/features.h: Mention __USE_XOPEN2K8 in comment.
88856
88857 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
88858
88859         [BZ #12518]
88860         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
88861         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
88862         * sysdeps/x86_64/memmove.c: New file.
88863         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
88864         (memcpy): Renamed to ...
88865         (__new_memcpy): This.
88866         (memcpy): Provide GLIBC_2_14 memcpy.
88867         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
88868         (memcpy): Provide GLIBC_2_2_5 memcpy.
88869
88870 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88871
88872         [BZ #12631]
88873         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
88874
88875 2011-03-30  Andreas Schwab  <schwab@redhat.com>
88876
88877         * misc/syncfs.c: New file.
88878         * misc/Makefile (routines): Add syncfs.
88879         * posix/unistd.h: Declare syncfs.
88880         * sysdeps/unix/syscalls.list: Add syncfs.
88881
88882 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88883
88884         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
88885         open_by_handle_at.
88886         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
88887         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88888         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88889         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88890         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88891         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
88892         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88893
88894 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88895
88896         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
88897         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88898         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
88899         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88900         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88901         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88902         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88903
88904         * io/Makefile: Compile fallocate.c, fallocate64.c, and
88905         sync_file_range.c with -fexceptions.
88906         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
88907         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
88908         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
88909         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
88910         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
88911         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
88912         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
88913         sync_file_range as cancellation point
88914         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
88915         now a wrapper around __call_sync_file_range with cancellation handling.
88916         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
88917         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
88918         function name to __call_sync_file_range.
88919         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
88920         Add call_sync_file_range.
88921
88922 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88923
88924         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
88925         bits/timex.h.
88926
88927 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88928
88929         * iconv/iconv.h: Fix typo in comment.
88930         * io/fcntl.h: Likewise.
88931         * libio/stdio.h: Likewise.
88932         * posix/spawn.h: Likewise.
88933         * posix/unistd.h: Likewise.
88934         * stdlib/stdlib.h: Likewise.
88935         * time/time.h: Likewise.
88936         * wcsmbs/wchar.h: Likewise.
88937
88938         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
88939         open_by_handle): Add.
88940         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
88941         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
88942         Augment a few comments.
88943         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88944         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88945         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88946         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88947         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88948         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
88949         open_by_handle.
88950
88951         * io/fcntl.h (AT_EMPTY_PATH): Define.
88952
88953 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
88954
88955         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
88956         * sysdeps/unix/sysv/linux/bits/time.h: New file.
88957         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
88958         to...
88959         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
88960         * Versions.def: Add GLIBC_2.14.
88961         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
88962         Export.
88963
88964 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
88965
88966         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
88967         round counter.
88968         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88969
88970 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
88971
88972         [BZ #12597]
88973         * string/test-strncmp.c (do_page_test): New function.
88974         (check2): Likewise.
88975         (test_main): Call check2.
88976         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
88977
88978 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
88979
88980         [BZ #12587]
88981         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
88982         Handle cache information in CPU leaf 4.
88983         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88984
88985 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
88986
88987         [BZ #12583]
88988         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
88989         character representation.
88990         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
88991
88992 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
88993
88994         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
88995         END(__isnan) to END(__isnanf) to match function entry point/label
88996         EALIGN(__isnanf,...).
88997
88998 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
88999
89000         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
89001
89002 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
89003
89004         [BZ #12510]
89005         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
89006         copy from the symbol referenced in the relocation to initialize the
89007         used variable.
89008         Patch by Piotr Bury <pbury@goahead.com>.
89009         * elf/Makefile: Add rules to build and tst-unique3.
89010         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
89011         * elf/tst-unique3.cc: New file.
89012         * elf/tst-unique3.h: New file.
89013         * elf/tst-unique3lib.cc: New file.
89014         * elf/tst-unique3lib2.cc: New file.
89015
89016         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
89017
89018 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
89019
89020         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
89021         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
89022         to _start.
89023
89024 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
89025
89026         * elf/dl-load.c (_dl_map_object): If we are looking for the first
89027         to-be-loaded object along a path to loader is ld.so.
89028
89029 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
89030             Ulrich Drepper  <drepper@gmail.com>
89031
89032         * sysdeps/x86_64/memset.S: After aligning destination, code
89033         branches to different locations depending on the value of
89034         misalignment, when multiarch is enabled. Fix this.
89035
89036 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
89037
89038         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
89039         Set _x86_64_preferred_memory_instruction for AMD processsors.
89040         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89041         Set bit_Prefer_SSE_for_memop for AMD processors.
89042
89043 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
89044
89045         * libio/fmemopen.c (fmemopen): Optimize a bit.
89046
89047 2011-03-03  Andreas Schwab  <schwab@redhat.com>
89048
89049         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
89050
89051 2011-03-03  Roland McGrath  <roland@redhat.com>
89052
89053         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
89054
89055 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
89056
89057         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
89058         __bzero_ultra1 instead of __memset_ultra1.
89059
89060 2011-02-23  Andreas Schwab  <schwab@redhat.com>
89061             Ulrich Drepper  <drepper@gmail.com>
89062
89063         [BZ #12509]
89064         * include/link.h (struct link_map): Add l_orig_initfini.
89065         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
89066         returning unsuccessfully.
89067         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
89068         close of a file loaded at startup, restore the original l_initfini
89069         list.
89070         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
89071         list, store the pointer.
89072         * elf/Makefile ($(objpfx)noload-mem): New rule.
89073         (noload-ENV): Define.
89074         (tests): Add $(objpfx)noload-mem.
89075         * elf/noload.c: Include <memcheck.h>.
89076         (main): Call mtrace.  Close all opened handles.
89077
89078 2011-02-17  Andreas Schwab  <schwab@redhat.com>
89079
89080         [BZ #12454]
89081         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
89082         dependencies are missing.
89083
89084 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89085
89086         Fix __if_freereq crash: Unlike the generic version which uses free,
89087         Hurd needs munmap.
89088         * sysdeps/mach/hurd/ifreq.h: New file.
89089
89090 2011-01-27  Petr Baudis  <pasky@suse.cz>
89091             Ulrich Drepper  <drepper@gmail.com>
89092
89093         [BZ 12445]#
89094         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
89095         to extend_alloca().
89096         * stdio-common/bug23.c: New file.
89097         * stdio-common/Makefile (tests): Add bug23.
89098
89099 2010-09-28  Andreas Schwab  <schwab@redhat.com>
89100             Ulrich Drepper  <drepper@gmail.com>
89101
89102         [BZ #12489]
89103         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
89104         before performing relro protection.  At old place add assertion
89105         to make sure nothing changed.
89106
89107 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
89108             Glauber de Oliveira Costa  <glommer@gmail.com>
89109
89110         * elf/elf.h: Add new ARM TLS relocs.
89111
89112 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
89113
89114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
89115         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
89116         cast from r3.
89117         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
89118         'tests' variable.
89119         * sysdeps/wordsize-64/tst-writev.c: New file.
89120
89121 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
89122
89123         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
89124         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
89125         insns in _dl_start to prevent a TOC reference before relocs are
89126         resolved.
89127
89128 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
89129
89130         [BZ #12469]
89131         * Makeconfig: Remove RANLIB definition.
89132         * Makerules: Don't use RANLIB.
89133         * aclocal.m4: Remove ranlib test.
89134         * configure.in: No need to check for ranlib.
89135         * elf/rtld-Rules: Don't use RANLIB.
89136
89137 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89138
89139         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
89140         protection macro.
89141         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
89142         inclusion protection macro.
89143
89144         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
89145         SIGRTMIN and SIGRTMAX and print information in that case only when
89146         SIGRTMIN is defined.
89147
89148 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
89149
89150         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
89151         arginfo fn returning -1.
89152
89153         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
89154         and thousands string is zero terminated.
89155
89156 2011-02-03  Andreas Schwab  <schwab@redhat.com>
89157
89158         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
89159         sysdeps/unix/sysv/linux/bits/socket.h.
89160
89161 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89162
89163         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
89164         (__CPU_COUNT): Remove old macros.
89165         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
89166         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
89167         (__CPU_ALLOC, __CPU_FREE): Add macros.
89168         (__sched_cpualloc, __sched_cpufree): Add declarations.
89169
89170 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
89171
89172         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
89173         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
89174         * nscd/aicache.c (addhstaiX): Return timeout of added value.
89175         (readdhstai): Return value of addhstaiX call.
89176         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
89177         (addgrbyX): Return value returned by cache_addgr.
89178         (readdgrbyname): Return value returned by addgrbyX.
89179         (readdgrbygid): Likewise.
89180         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
89181         (addpwbyX): Return value returned by cache_addpw.
89182         (readdpwbyname): Return value returned by addhstbyX.
89183         (readdpwbyuid): Likewise.
89184         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
89185         (addservbyX): Return value returned by cache_addserv.
89186         (readdservbyname): Return value returned by addservbyX:
89187         (readdservbyport): Likewise.
89188         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
89189         (addhstbyX): Return value returned by cache_addhst.
89190         (readdhstbyname): Return value returned by addhstbyX.
89191         (readdhstbyaddr): Likewise.
89192         (readdhstbynamev6): Likewise.
89193         (readdhstbyaddrv6): Likewise.
89194         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
89195         (readdinitgroups): Return value returned by addinitgroupsX.
89196         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
89197         (prune_cache): Keep track of timeout value of re-added entries.
89198         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
89199         * nscd/nscd.h: Adjust prototypes of readd* functions.
89200
89201 2011-02-04  Roland McGrath  <roland@redhat.com>
89202
89203         * nis/nis_server.c (nis_servstate): Use the right name for 0.
89204         (nis_stats): Likewise.
89205         * nis/nis_modify.c (nis_modify): Likewise.
89206         * nis/nis_remove.c (nis_remove): Likewise.
89207         * nis/nis_add.c (nis_add): Likewise.
89208
89209         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
89210
89211         * posix/fnmatch_loop.c: Add some consts.
89212
89213         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
89214
89215 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
89216
89217         [BZ #12460]
89218         * config.make.in (config-cflags-novzeroupper): Define.
89219         * configure.in: Substitute libc_cv_cc_novzeroupper.
89220         * elf/Makefile (AVX-CFLAGS): Define.
89221         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
89222         (CFLAGS-tst-auditmod4a.c): Likewise.
89223         (CFLAGS-tst-auditmod4b.c): Likewise.
89224         (CFLAGS-tst-auditmod6b.c): Likewise.
89225         (CFLAGS-tst-auditmod6c.c): Likewise.
89226         (CFLAGS-tst-auditmod7b.c): Likewise.
89227         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
89228
89229 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
89230
89231         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
89232         function to the callback.
89233         Patch partly by Jiri Olsa <jolsa@redhat.com>.
89234
89235 2011-02-02  Andreas Schwab  <schwab@redhat.com>
89236
89237         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
89238         of errno.
89239
89240 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
89241
89242         [BZ #11724]
89243         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
89244         of constructors.
89245         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
89246         of destructors.
89247         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
89248
89249         [BZ #11724]
89250         * elf/Makefile: Add rules to build and run new test.
89251         * elf/tst-initorder.c: New file.
89252         * elf/tst-initorder.exp: New file.
89253         * elf/tst-initordera1.c: New file.
89254         * elf/tst-initordera2.c: New file.
89255         * elf/tst-initordera3.c: New file.
89256         * elf/tst-initordera4.c: New file.
89257         * elf/tst-initorderb1.c: New file.
89258         * elf/tst-initorderb2.c: New file.
89259         * elf/tst-order-a1.c: New file.
89260         * elf/tst-order-a2.c: New file.
89261         * elf/tst-order-a3.c: New file.
89262         * elf/tst-order-a4.c: New file.
89263         * elf/tst-order-b1.c: New file.
89264         * elf/tst-order-b2.c: New file.
89265         * elf/tst-order-main.c: New file.
89266         New test case by George Gensure <werkt0@gmail.com>.
89267
89268 2010-10-01  Andreas Schwab  <schwab@redhat.com>
89269
89270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
89271         decoding ACE if AI_CANONIDN.
89272
89273 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
89274
89275         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
89276
89277 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
89278
89279         * version.h (RELEASE): Bump for 2.13 release.
89280         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
89281
89282         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
89283
89284         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
89285         MADV_NOHUGEPAGE.
89286         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
89287         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
89288         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
89289         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
89290         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
89291         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89292
89293         * posix/getconf.c: Update copyright year.
89294         * catgets/gencat.c: Likewise.
89295         * csu/version.c: Likewise.
89296         * debug/catchsegv.sh: Likewise.
89297         * debug/xtrace.sh: Likewise.
89298         * elf/ldconfig.c: Likewise.
89299         * elf/ldd.bash.in: Likewise.
89300         * elf/sprof.c (print_version): Likewise.
89301         * iconv/iconv_prog.c: Likewise.
89302         * iconv/iconvconfig.c: Likewise.
89303         * locale/programs/locale.c: Likewise.
89304         * locale/programs/localedef.c: Likewise.
89305         * malloc/memusage.sh: Likewise.
89306         * malloc/mtrace.pl: Likewise.
89307         * nscd/nscd.c (print_version): Likewise.
89308         * nss/getent.c: Likewise.
89309
89310         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
89311         PF_CAIF, and PF_ALG.
89312         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89313
89314 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
89315
89316         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
89317         (modules-names): Use them.
89318         (ifunc-test-modules, ifunc-pie-tests): Define.
89319         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
89320         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
89321         (test-extras): Likewise.
89322         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
89323         $(compile-command.c).
89324         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
89325         (all-built-dso): Define.
89326         (check-textrel.out, check-execstack.out): Depend on it.
89327
89328         * configure.in: Don't override --enable-multi-arch.
89329
89330 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
89331
89332         [BZ #6812]
89333         * nscd/hstcache.c (tryagain): Define.
89334         (cache_addhst): Return tryagain not notfound for temporary errors.
89335         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
89336         failed.
89337
89338 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
89339
89340         [BZ #10563]
89341         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
89342         to make the syscall.
89343         * sysdeps/unix/sysv/linux/setgroups.c: New file.
89344
89345         [BZ #12378]
89346         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
89347         and fall back to matching as normal character if the string ends before
89348         the matching ']' is found.  This is what POSIX requires.
89349         * posix/testfnm.c: Adjust test result.
89350         * posix/globtest.sh: Adjust test result.  Add new test.
89351         * posix/tst-fnmatch.input: Likewise.
89352         * posix/tst-fnmatch2.c: Add new test.
89353
89354 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
89355
89356         * elf/Makefile (check-execstack): Revert last change.  Depend on
89357         check-execstack.h.
89358         (check-execstack.h): New target.
89359         (generated): Add check-execstack.h.
89360         * elf/check-execstack.c: Include "check-execstack.h".
89361         (main): Revert last change.
89362         (handle_file): Return zero if GNU_STACK is absent and
89363         DEFAULT_STACK_PERMS doesn't include PF_X.
89364
89365 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
89366
89367         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
89368         in child fails because the descriptor is already closed.
89369         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
89370         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
89371         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
89372
89373         [BZ #12397]
89374         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
89375         syscall.
89376
89377         [BZ #10484]
89378         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
89379         temporary buffer used to handle multi lookups locally.
89380         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
89381
89382 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89383
89384         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
89385         loader is ld.so.
89386
89387 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
89388
89389         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
89390         alignment for SSE2.
89391
89392 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89393
89394         [BZ #12394]
89395         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
89396         characters.  When rounding increased number of integer digits recompute
89397         number of groups.
89398         * stdio-common/tst-grouping.c: New file.
89399         * stdio-common/Makefile: Add rules to build and run tst-grouping.
89400
89401 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
89402
89403         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
89404         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
89405
89406         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
89407         void.
89408         * bits/select.h: Likewise.
89409
89410 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
89411
89412         * po/ja.po: Update from translation team.
89413
89414 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
89415
89416         [BZ #11155]
89417         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
89418         implementation just like for lxstat, fxstatat, et al.
89419
89420 2010-12-27  Jim Meyering  <meyering@redhat.com>
89421
89422         [BZ #12348]
89423         * posix/regexec.c (build_trtable): Return failure indication upon
89424         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
89425
89426 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
89427
89428         [BZ #12201]
89429         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
89430         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
89431         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
89432         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
89433
89434         [BZ #12207]
89435         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
89436
89437         [BZ #12204]
89438         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
89439         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
89440
89441 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
89442
89443         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
89444         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
89445         script has SORT_BY_INIT_PRIORITY.
89446         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
89447         NO_CTORS_DTORS_SECTIONS is defined.
89448         * elf/soinit.c: Likewise.
89449         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
89450         NO_CTORS_DTORS_SECTIONS is defined.
89451         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
89452         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
89453         * sysdeps/sh/init-first.c: Likewise.
89454         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
89455
89456 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
89457
89458         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
89459         always use the slow path.
89460
89461 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
89462
89463         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
89464         similar rule which adds the sysdep directories to the header search in
89465         order to pick up the correct platform stackinfo.h.
89466         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
89467         perform test if it is, otherwise return successfully without testing.
89468         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
89469         DEFAULT_STACK_PERMS define in stackinfo.h.
89470         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
89471         defined in stackinfo.h.
89472         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
89473         DEFAULT_STACK_PERMS defined in stackinfo.h.
89474         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
89475         * sysdeps/ia64/stackinfo.h: Likewise.
89476         * sysdeps/s390/stackinfo.h: Likewise.
89477         * sysdeps/sh/stackinfo.h: Likewise.
89478         * sysdeps/sparc/stackinfo.h: Likewise.
89479         * sysdeps/x86_64/stackinfo.h: Likewise.
89480         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
89481         PF_X for powerpc64.  Retain PF_X for powerpc32.
89482
89483 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
89484
89485         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
89486         accurately.
89487         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
89488         GETDENTS_64BIT_ALIGNED.
89489
89490 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
89491
89492         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
89493
89494 2010-12-10  Andreas Schwab  <schwab@redhat.com>
89495
89496         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
89497         _GNU_SOURCE.
89498
89499         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
89500         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
89501         Remove __restrict.
89502         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
89503         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
89504
89505 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
89506
89507         [BZ #11655]
89508         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
89509         are initialized.
89510
89511 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
89512
89513         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
89514
89515 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
89516
89517         * po/it.po: Update from translation team.
89518
89519 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
89520
89521         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
89522         unused codes.
89523
89524 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
89525
89526         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
89527
89528 2010-11-24  Andreas Schwab  <schwab@redhat.com>
89529
89530         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
89531         specially.
89532         (gaih_getanswer_slice): Likewise.
89533
89534 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
89535
89536         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
89537
89538 2010-05-31  Petr Baudis  <pasky@suse.cz>
89539
89540         [BZ #11149]
89541         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
89542         silently even in the chroot mode.
89543
89544 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
89545
89546         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
89547         last patch a bit.  Pretty printing
89548
89549 2010-05-31  Petr Baudis <pasky@suse.cz>
89550
89551         [BZ #10085]
89552         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
89553         initialization of skip_initgroups_dyn.
89554
89555 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
89556
89557         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
89558         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89559
89560 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
89561
89562         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
89563
89564 2010-11-11  Andreas Schwab  <schwab@redhat.com>
89565
89566         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
89567         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
89568         (tst-fnmatch-ENV): Set MALLOC_TRACE.
89569         ($(objpfx)tst-fnmatch-mem): New rule.
89570         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
89571         * posix/tst-fnmatch.c (main): Call mtrace.
89572
89573 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
89574
89575         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89576         Support Intel processor model 6 and model 0x2c.
89577
89578 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
89579
89580         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
89581           signed comparison.
89582
89583 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
89584
89585         [BZ #12205]
89586         * string/test-strncasecmp.c (check_result): New function.
89587         (do_one_test): Use it.
89588         (check1): New function.
89589         (test_main): Use it.
89590         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
89591         Support strcasecmp and strncasecmp.
89592
89593 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
89594
89595         [BZ #12194]
89596         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
89597         * sysdeps/x86_64/bits/byteswap.h: Likewise.
89598
89599 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
89600
89601         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
89602         IFUNC support.
89603         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89604         memset-x86-64.
89605         * sysdeps/x86_64/multiarch/bzero.S: New file.
89606         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
89607         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
89608         * sysdeps/x86_64/multiarch/memset.S: New file.
89609         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
89610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89611         Set bit_Prefer_SSE_for_memop for Intel processors.
89612         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
89613         Define.
89614         (index_Prefer_SSE_for_memop): Define.
89615         (HAS_PREFER_SSE_FOR_MEMOP): Define.
89616
89617 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
89618
89619         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
89620         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
89621
89622 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
89623
89624         [BZ #12191]
89625         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89626         (__x86_64_raw_data_cache_size_half): Likewise.
89627         (__x86_64_raw_shared_cache_size): Likewise.
89628         (__x86_64_raw_shared_cache_size_half): Likewise.
89629
89630         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89631         (__x86_64_raw_data_cache_size_half): Likewise.
89632         (__x86_64_raw_shared_cache_size): Likewise.
89633         (__x86_64_raw_shared_cache_size_half): Likewise.
89634         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
89635         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
89636         and __x86_64_raw_shared_cache_size_half.  Round
89637         __x86_64_data_cache_size_half, __x86_64_data_cache_size
89638         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
89639         to multiple of 256 bytes.
89640
89641 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
89642
89643         [BZ #12167]
89644         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
89645         of inacessible symlinks.  Verify result of symlink before returning it.
89646         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
89647         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
89648
89649 2010-10-28  Erich Ritz  <erichritz@gmail.com>
89650
89651         * math/math.h (isinf): Fix typo in comment.
89652
89653 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
89654
89655         * po/da.po: Update from translation team.
89656
89657 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
89658
89659         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
89660         is added to the list.
89661
89662 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89663             Ulrich Drepper  <drepper@gmail.com>
89664
89665         * elf/dl-object.c (_dl_new_object): Don't append the new object to
89666         the global list here.  Move code to...
89667         (_dl_add_to_namespace_list): ...here.  New function.
89668         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
89669         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
89670         * elf/dl-load.c (lose): Don't remove the element from the list.
89671         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
89672         (_dl_map_object): Likewise.
89673
89674 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
89675
89676         [BZ #12159]
89677         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
89678         into all bytes of SSE register.
89679         Patch by Richard Li <richardpku@gmail.com>.
89680
89681 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
89682
89683         [BZ #12140]
89684         * malloc/malloc.c (_int_free): Fill correct number of bytes when
89685         perturbing.
89686
89687 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
89688
89689         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
89690         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
89691         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
89692         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
89693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
89694         submachine.
89695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
89696
89697 2010-10-22  Andreas Schwab  <schwab@redhat.com>
89698
89699         * include/dlfcn.h (__RTLD_SECURE): Define.
89700         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
89701         mode & __RTLD_SECURE instead.
89702         (open_path): Rename preloaded parameter to secure.
89703         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
89704         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
89705         * elf/dl-deps.c (openaux): Likewise.
89706         * elf/rtld.c (struct map_args): Remove is_preloaded.
89707         (map_doit): Don't use it.
89708         (dl_main): Likewise.
89709         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
89710         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
89711
89712 2010-09-09  Andreas Schwab  <schwab@redhat.com>
89713
89714         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
89715         (sysd-rules-targets): Remove duplicates.
89716         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
89717         rtld-%.$o dependency.
89718
89719 2010-10-18  Andreas Schwab  <schwab@redhat.com>
89720
89721         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
89722         _dl_map_object do it.
89723
89724 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
89725
89726         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
89727         fast fma builtins, define the macros in the C99 standard.
89728         (FP_FAST_FMAF): Likewise.
89729         (FP_FAST_FMAL): Likewise.
89730         * sysdeps/x86_64/bits/mathdef.h: Likewise.
89731
89732         * bits/mathdef.h: Update copyright year.
89733         * sysdeps/powerpc/bits/mathdef.h: Likewise.
89734
89735 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
89736
89737         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
89738         builtins, define the macros in the C99 standard.
89739         (FP_FAST_FMAF): Likewise.
89740         (FP_FAST_FMAL): Likewise.
89741         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
89742         multiply/add.
89743         (FP_FAST_FMAF): Likewise.
89744
89745 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
89746
89747         [BZ #3268]
89748         * math/libm-test.inc (fma_test): Some new testcases.
89749         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
89750         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
89751         y and infinite z.  Do multiplication by C already in long double.
89752         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
89753         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
89754         y and infinite z.  Do bitwise or of inexact bit into u.d.
89755         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
89756         * sysdeps/i386/fpu/s_fmaf.S: Removed.
89757         * sysdeps/i386/fpu/s_fma.S: Removed.
89758         * sysdeps/i386/fpu/s_fmal.S: Removed.
89759
89760 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
89761
89762         [BZ #3268]
89763         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
89764         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
89765         computation is not scheduled after fetestexcept.  Fix value
89766         of minimum denormal long double.
89767
89768 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
89769
89770         [BZ #3268]
89771         * math/libm-test.inc (fma_test): Add some more tests.
89772         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
89773         correctly.
89774
89775 2010-10-15  Andreas Schwab  <schwab@redhat.com>
89776
89777         * scripts/data/localplt-s390-linux-gnu.data: New file.
89778         * scripts/data/localplt-s390x-linux-gnu.data: New file.
89779
89780 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
89781
89782         [BZ #3268]
89783         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
89784         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
89785         instead of dbl-64.
89786         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
89787         inlines.
89788         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
89789         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
89790         if one of x and y is very large and the other is subnormal.
89791         * sysdeps/s390/fpu/s_fmaf.c: New file.
89792         * sysdeps/s390/fpu/s_fma.c: New file.
89793         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
89794         * sysdeps/powerpc/fpu/s_fma.S: New file.
89795         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
89796         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
89797         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
89798
89799 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
89800
89801         [BZ #3268]
89802         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
89803         fma tests.
89804         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
89805         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
89806         * sysdeps/i386/i686/multiarch/s_fma.c: Include
89807         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
89808         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
89809         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
89810         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
89811
89812 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
89813
89814         [BZ #12078]
89815         * posix/regcomp.c (parse_branch): One more memory leak plugged.
89816         * posix/bug-regex31.input: Add test case.
89817
89818 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89819
89820         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
89821         * posix/bug-regex31.input: New file.
89822
89823         [BZ #12078]
89824         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
89825         (parse_sub_exp): Fix last change, use postorder.
89826
89827         * posix/bug-regex31.c: New file.
89828         * posix/Makefile: Add rules to build and run bug-regex31.
89829
89830         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
89831
89832         [BZ #12078]
89833         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
89834
89835         [BZ #12108]
89836         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
89837         to have entries in sys_siglist.
89838
89839         [BZ #12093]
89840         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
89841         be NULL.
89842
89843 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
89844
89845         [BZ #3268]
89846         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
89847         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
89848         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
89849         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
89850         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
89851         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
89852         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
89853         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
89854         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
89855         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
89856         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
89857         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
89858         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
89859         * math/ftestexcept.c (fetestexcept): Likewise.
89860         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
89861         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
89862         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
89863         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
89864         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
89865         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
89866         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
89867
89868 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89869
89870         [BZ #12107]
89871         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
89872         newline.
89873
89874 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
89875
89876         * string/bug-strstr1.c: New file.
89877         * string/Makefile: Add rules to build and run bug-strstr1.
89878
89879 2010-10-05  Eric Blake  <eblake@redhat.com>
89880
89881         [BZ #12092]
89882         * string/str-two-way.h (two_way_long_needle): Always clear memory
89883         when skipping input due to the shift table.
89884
89885 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
89886
89887         [BZ #12005]
89888         * malloc/mcheck.c: Handle large requests.
89889
89890         [BZ #12077]
89891         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
89892         for strncmp and strncasecmp.
89893         * string/stratcliff.c: Add tests for strcmp and strncmp.
89894         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
89895
89896 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
89897
89898         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
89899         __set_fpscr.
89900
89901 2010-09-30  Andreas Jaeger  <aj@suse.de>
89902
89903         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
89904         (CGROUP_SUPER_MAGIC): Define.
89905         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
89906         Handle btrfs and cgroup file systems.
89907         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
89908         Likewise.
89909
89910 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
89911
89912         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
89913         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
89914
89915 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89916
89917         [BZ #12067]
89918         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
89919         trying to locate the ELF header.
89920
89921 2010-09-27  Andreas Schwab  <schwab@redhat.com>
89922
89923         [BZ #11611]
89924         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
89925         Mask out sign-bit copies when constructing f_fsid.
89926
89927 2010-09-24  Petr Baudis <pasky@suse.cz>
89928
89929         * debug/stack_chk_fail_local.c: Add missing licence exception.
89930         * debug/warning-nop.c: Likewise.
89931
89932 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
89933
89934         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
89935         implementing getdents64 using getdents syscall, set d_type if
89936         __ASSUME_GETDENTS32_D_TYPE.
89937
89938 2010-09-16  Andreas Schwab  <schwab@redhat.com>
89939
89940         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
89941         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
89942
89943 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
89944
89945         [BZ #12037]
89946         * posix/unistd.h: Undo change of feature selection for ftruncate from
89947         2010-01-11.
89948
89949 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
89950
89951         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
89952         detection.
89953
89954 2010-09-20  Andreas Schwab  <schwab@redhat.com>
89955
89956         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
89957         fanotify_mark.
89958         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
89959
89960 2010-09-14  Andreas Schwab  <schwab@redhat.com>
89961
89962         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
89963         variables after CHECK_SP call.
89964         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
89965
89966 2010-09-13  Andreas Schwab  <schwab@redhat.com>
89967             Ulrich Drepper  <drepper@redhat.com>
89968
89969         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
89970         re-relocationg ld.so.
89971         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
89972         _dl_init_paths call.
89973         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
89974         here anymore.
89975
89976 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
89977
89978         * resolv/res_init.c (__res_vinit): Count the default server we added.
89979
89980 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
89981             Ulrich Drepper  <drepper@redhat.com>
89982
89983         [BZ #11968]
89984         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
89985         (____longjmp_chk): Use %ebx for saving value across system call.
89986         Add unwind info.
89987
89988 2010-09-06  Andreas Schwab  <schwab@redhat.com>
89989
89990         * manual/Makefile: Don't mix pattern rules with normal rules.
89991
89992 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
89993
89994         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
89995         operation.
89996         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
89997         * libio/iofopncook.c (_IO_cookie_init): Likewise.
89998         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
89999         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
90000         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
90001         Likewise.
90002
90003 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
90004
90005         [BZ #11979]
90006         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
90007         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
90008
90009 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
90010
90011         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
90012         * sysdeps/x86_64/addmul_1.S: Likewise.
90013         * sysdeps/x86_64/lshift.S: Likewise.
90014         * sysdeps/x86_64/mul_1.S: Likewise.
90015         * sysdeps/x86_64/rshift.S: Likewise.
90016         * sysdeps/x86_64/sub_n.S: Likewise.
90017         * sysdeps/x86_64/submul_1.S: Likewise.
90018
90019 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90020
90021         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
90022         Define __sched_param instead of SCHED_* and sched_param when
90023         <bits/sched.h> is included with __need_schedparam defined.
90024         * bits/sched.h [__need_schedparam]
90025         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
90026         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
90027         (__defined_schedparam): Define to 1.
90028         (__sched_param): New structure, identical to sched_param.
90029         (__need_schedparam): Undefine.
90030
90031 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
90032
90033         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
90034         (epoll_create1): Declare.
90035
90036         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
90037
90038 2010-08-31  Andreas Schwab  <schwab@redhat.com>
90039
90040         [BZ #7066]
90041         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
90042         shifting retval into place.
90043
90044 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
90045
90046         * nis/rpcsvc/nis.h: Update copyright notice.
90047         * nis/rpcsvc/nis.x: Likewise.
90048         * nis/rpcsvc/nis_callback.h: Likewise.
90049         * nis/rpcsvc/nis_callback.x: Likewise.
90050         * nis/rpcsvc/nis_object.x: Likewise.
90051         * nis/rpcsvc/nis_tags.h: Likewise.
90052         * nis/rpcsvc/yp.h: Likewise.
90053         * nis/rpcsvc/yp.x: Likewise.
90054         * nis/rpcsvc/ypupd.h: Likewise.
90055         * nis/yp_xdr.c: Likewise.
90056         * nis/ypupdate_xdr.c: Likewise.
90057
90058         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
90059         mainly the body of pmap_getport.  Add parameters to specify timeouts.
90060         (pmap_getport): Use __libc_rpc_getport.
90061         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
90062         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
90063         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
90064
90065 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
90066
90067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
90068         fanotify_mark.
90069
90070 2010-08-27  Roland McGrath  <roland@redhat.com>
90071
90072         * sysdeps/i386/i686/multiarch/Makefile
90073         (CFLAGS-varshift.c): New variable.
90074
90075 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
90076
90077         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
90078         * sysdeps/i386/i686/multiarch/varshift.c: New file.
90079
90080         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
90081
90082         * sysdeps/x86_64/strlen.S: Minimal code improvement.
90083
90084 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
90085
90086         * sysdeps/x86_64/strlen.S: Unroll the loop.
90087         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90088         strlen-sse2 strlen-sse2-bsf.
90089         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
90090         __strlen_no_bsf if bit_Slow_BSF is set.
90091         (__strlen_sse42): Removed.
90092         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
90093         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
90094
90095 2010-08-25  Roland McGrath  <roland@redhat.com>
90096
90097         * sysdeps/x86_64/multiarch/varshift.S: File removed.
90098         * sysdeps/x86_64/multiarch/varshift.c: New file.
90099         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
90100         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
90101         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
90102         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
90103
90104 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
90105
90106         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90107         strlen-sse2 strlen-sse2-bsf.
90108         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
90109         __strlen_sse2_bsf if bit_Slow_BSF is unset.
90110         (__strlen_sse2): Removed.
90111         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
90112         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
90113         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
90114         bit_Slow_BSF for Atom.
90115         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
90116         (index_Slow_BSF): Define.
90117         (HAS_SLOW_BSF): Define.
90118
90119 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
90120
90121         [BZ #10851]
90122         * resolv/res_init.c (__res_vinit): When no server address at all
90123         is given default to loopback.
90124
90125 2010-08-24  Roland McGrath  <roland@redhat.com>
90126
90127         * configure.in: Remove config-name.h generation.
90128         * configure: Regenerated.
90129         * config-name.in: File removed.
90130         * scripts/config-uname.sh: New file.
90131         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
90132         ($(objdir)config-name.h): New target.
90133
90134         * sunrpc/rpc_parse.h: Avoid nested comment.
90135
90136 2010-08-24  Richard Henderson  <rth@redhat.com>
90137             Ulrich Drepper  <drepper@redhat.com>
90138             H.J. Lu  <hongjiu.lu@intel.com>
90139
90140         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
90141         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
90142         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
90143         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
90144         _mm_alignr_epi8 with _mm_loadu_si128.
90145         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
90146         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
90147         (__m128i_shift_right): Removed.
90148         * sysdeps/i386/i686/multiarch/varshift.h: New file.
90149         * sysdeps/i386/i686/multiarch/varshift.S: New file.
90150         * sysdeps/x86_64/multiarch/varshift.h: New file.
90151         * sysdeps/x86_64/multiarch/varshift.S: New file.
90152
90153 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
90154
90155         * configure.in: Move assembler checks to before sysdep dir checking.
90156
90157 2010-08-20  Petr Baudis  <pasky@suse.cz>
90158
90159         * LICENSES: Sync the sunrpc license.
90160
90161 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
90162
90163         * sunrpc/auth_des.c: Update copyright notice once again.
90164         * sunrpc/auth_none.c: Likewise.
90165         * sunrpc/auth_unix.c: Likewise.
90166         * sunrpc/authdes_prot.c: Likewise.
90167         * sunrpc/authuxprot.c: Likewise.
90168         * sunrpc/bindrsvprt.c: Likewise.
90169         * sunrpc/clnt_gen.c: Likewise.
90170         * sunrpc/clnt_perr.c: Likewise.
90171         * sunrpc/clnt_raw.c: Likewise.
90172         * sunrpc/clnt_simp.c: Likewise.
90173         * sunrpc/clnt_tcp.c: Likewise.
90174         * sunrpc/clnt_udp.c: Likewise.
90175         * sunrpc/clnt_unix.c: Likewise.
90176         * sunrpc/des_crypt.c: Likewise.
90177         * sunrpc/des_soft.c: Likewise.
90178         * sunrpc/get_myaddr.c: Likewise.
90179         * sunrpc/getrpcport.c: Likewise.
90180         * sunrpc/key_call.c: Likewise.
90181         * sunrpc/key_prot.c: Likewise.
90182         * sunrpc/openchild.c: Likewise.
90183         * sunrpc/pm_getmaps.c: Likewise.
90184         * sunrpc/pm_getport.c: Likewise.
90185         * sunrpc/pmap_clnt.c: Likewise.
90186         * sunrpc/pmap_prot.c: Likewise.
90187         * sunrpc/pmap_prot2.c: Likewise.
90188         * sunrpc/pmap_rmt.c: Likewise.
90189         * sunrpc/rpc/auth.h: Likewise.
90190         * sunrpc/rpc/auth_unix.h: Likewise.
90191         * sunrpc/rpc/clnt.h: Likewise.
90192         * sunrpc/rpc/des_crypt.h: Likewise.
90193         * sunrpc/rpc/key_prot.h: Likewise.
90194         * sunrpc/rpc/netdb.h: Likewise.
90195         * sunrpc/rpc/pmap_clnt.h: Likewise.
90196         * sunrpc/rpc/pmap_prot.h: Likewise.
90197         * sunrpc/rpc/pmap_rmt.h: Likewise.
90198         * sunrpc/rpc/rpc.h: Likewise.
90199         * sunrpc/rpc/rpc_des.h: Likewise.
90200         * sunrpc/rpc/rpc_msg.h: Likewise.
90201         * sunrpc/rpc/svc.h: Likewise.
90202         * sunrpc/rpc/svc_auth.h: Likewise.
90203         * sunrpc/rpc/types.h: Likewise.
90204         * sunrpc/rpc/xdr.h: Likewise.
90205         * sunrpc/rpc_clntout.c: Likewise.
90206         * sunrpc/rpc_cmsg.c: Likewise.
90207         * sunrpc/rpc_common.c: Likewise.
90208         * sunrpc/rpc_cout.c: Likewise.
90209         * sunrpc/rpc_dtable.c: Likewise.
90210         * sunrpc/rpc_hout.c: Likewise.
90211         * sunrpc/rpc_main.c: Likewise.
90212         * sunrpc/rpc_parse.c: Likewise.
90213         * sunrpc/rpc_parse.h: Likewise.
90214         * sunrpc/rpc_prot.c: Likewise.
90215         * sunrpc/rpc_sample.c: Likewise.
90216         * sunrpc/rpc_scan.c: Likewise.
90217         * sunrpc/rpc_scan.h: Likewise.
90218         * sunrpc/rpc_svcout.c: Likewise.
90219         * sunrpc/rpc_tblout.c: Likewise.
90220         * sunrpc/rpc_util.c: Likewise.
90221         * sunrpc/rpc_util.h: Likewise.
90222         * sunrpc/rpcinfo.c: Likewise.
90223         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
90224         * sunrpc/rpcsvc/key_prot.x: Likewise.
90225         * sunrpc/rpcsvc/klm_prot.x: Likewise.
90226         * sunrpc/rpcsvc/mount.x: Likewise.
90227         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
90228         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
90229         * sunrpc/rpcsvc/rex.x: Likewise.
90230         * sunrpc/rpcsvc/rstat.x: Likewise.
90231         * sunrpc/rpcsvc/rusers.x: Likewise.
90232         * sunrpc/rpcsvc/sm_inter.x: Likewise.
90233         * sunrpc/rpcsvc/spray.x: Likewise.
90234         * sunrpc/rpcsvc/yppasswd.x: Likewise.
90235         * sunrpc/rtime.c: Likewise.
90236         * sunrpc/svc.c: Likewise.
90237         * sunrpc/svc_auth.c: Likewise.
90238         * sunrpc/svc_authux.c: Likewise.
90239         * sunrpc/svc_raw.c: Likewise.
90240         * sunrpc/svc_run.c: Likewise.
90241         * sunrpc/svc_simple.c: Likewise.
90242         * sunrpc/svc_tcp.c: Likewise.
90243         * sunrpc/svc_udp.c: Likewise.
90244         * sunrpc/svc_unix.c: Likewise.
90245         * sunrpc/svcauth_des.c: Likewise.
90246         * sunrpc/xcrypt.c: Likewise.
90247         * sunrpc/xdr.c: Likewise.
90248         * sunrpc/xdr_array.c: Likewise.
90249         * sunrpc/xdr_float.c: Likewise.
90250         * sunrpc/xdr_mem.c: Likewise.
90251         * sunrpc/xdr_rec.c: Likewise.
90252         * sunrpc/xdr_ref.c: Likewise.
90253         * sunrpc/xdr_sizeof.c: Likewise.
90254         * sunrpc/xdr_stdio.c: Likewise.
90255
90256         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
90257         handling.
90258
90259 2010-08-19  Andreas Schwab  <schwab@redhat.com>
90260
90261         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
90262
90263 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
90264
90265         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
90266         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
90267         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
90268         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
90269         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
90270         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
90271         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
90272         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
90273         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
90274         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
90275         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
90276         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
90277         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
90278         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
90279
90280 2010-07-26  Anton Blanchard  <anton@samba.org>
90281
90282         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
90283         * malloc/arena.c (heap_trim): Likewise.
90284
90285 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
90286
90287         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
90288         here.  Not...
90289         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
90290         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
90291
90292 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
90293
90294         * sysdeps/i386/elf/Makefile: New file.
90295
90296 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90297
90298         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
90299         from fanotify_init.
90300         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
90301         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90302
90303 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
90304
90305         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
90306         of strncasecmp_l.
90307         * sysdeps/multiarch/strcmp.S: Likewise.
90308
90309 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
90310
90311         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90312         strncase_l-nonascii.
90313         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90314         Add strncase_l-ssse3.
90315         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
90316         * sysdeps/x86_64/strcmp.S: Likewise.
90317         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
90318         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
90319         * sysdeps/x86_64/strncase.S: New file.
90320         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
90321         * sysdeps/x86_64/strncase_l.S: New file.
90322         * string/Makefile (strop-tests): Add strncasecmp.
90323         * string/test-strncasecmp.c: New file.
90324
90325         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
90326         warning.
90327
90328         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
90329         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
90330
90331 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90332
90333         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
90334
90335 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
90336
90337         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
90338         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
90339         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
90340
90341 2010-05-01  Alan Modra  <amodra@gmail.com>
90342
90343         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
90344         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
90345         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
90346         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
90347         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
90348         tidying.  Don't tail-call __sigjmp_save for static lib.
90349         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
90350         save location.
90351         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
90352         (CALL_MCOUNT): Add eh info, and nop after bl.
90353         (TAIL_CALL_SYSCALL_ERROR): New macro.
90354         (PSEUDO_RET): Use it.
90355         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
90356         Correct save location of integer regs and cr.
90357         (_dl_profile_resolve): Correct cr save location.  Delete nops
90358         after bl when SHARED.  Reduce cfi size a little by better
90359         placement of cfi directives.
90360         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
90361         make a stack frame.  Instead use parm save area as a temp.
90362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
90363         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
90364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
90365         Don't make a stack frame for parent, use parm save area.
90366         Increase child stack frame to 112 bytes.  Don't save unused reg,
90367         and adjust reg usage.  Set up cfi on error recovery and
90368         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
90369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
90370         (__makecontext): Add dummy nop after jump to exit.
90371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
90372         Use correct parm save area and cr save, reduce stack frame.
90373         Correct cfi for possible PSEUDO_RET frame setup.
90374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
90375         Branch to local label emitted by PSEUDO_RET rather than
90376         __syscall_error.
90377
90378 2010-08-12  Andreas Schwab  <schwab@redhat.com>
90379
90380         [BZ #11904]
90381         * locale/programs/locale.c (print_assignment): New function.
90382         (show_locale_vars): Use it.
90383
90384 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
90385
90386         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
90387         field.
90388         (struct statfs64): Likewise.
90389         (_STATFS_F_FLAGS): Define.
90390         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
90391         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90392         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
90393         (ST_VALID): Define locally.
90394         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
90395         __statvfs_getflags, use the provided value.
90396         * sysdeps/unix/sysv/linux/kernel-features.h: Define
90397         __ASSUME_STATFS_F_FLAGS.
90398
90399         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
90400
90401         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
90402         Add sys/fanotify.h.
90403         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
90404         fanotify_mask for GLIBC_2.13.
90405         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
90406         fanotify_init and fanotify_mark.
90407         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90408         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
90409
90410         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
90411         Add prlimit.
90412         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
90413         prlimit64 for GLIBC_2.13.
90414         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
90415         prlimit64.
90416         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
90417         syscall.
90418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
90419         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90420         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
90421         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
90422         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
90423         add prlimit alias.
90424         * sysdeps/unix/sysv/linux/prlimit.c: New file.
90425
90426         [BZ #11903]
90427         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
90428         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
90429
90430         * nss/Makefile: Add rules to build and run tst-nss-test1.
90431         * shlib-versions: Add entry for libnss_test1.
90432         * nss/nss_test1.c: New file.
90433         * nss/tst-nss-test1.c: New file.
90434
90435         * nss/nsswitch.c (__nss_database_custom): Define new variable.
90436         (__nss_configure_lookup): Set appropriate entry in
90437         __nss_configure_lookup to true.
90438         * nss/nsswitch.h: Define enum with indeces of databases in
90439         databases and __nss_database_custom arrays.  Declare
90440         __nss_database_custom.
90441         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
90442         to avoid using nscd when custom rules are installed.
90443         * nss/getXXbyYY_r.c: Likewise.
90444         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
90445
90446         * nss/nss_files/files-parse.c: Whitespace fixes.
90447
90448 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
90449
90450         [BZ #11883]
90451         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
90452         * posix/fnmatch_loop.c: Likewise.
90453
90454 2010-07-17  Andi Kleen  <ak@linux.intel.com>
90455
90456         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
90457         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
90458         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
90459         * Versions.def [GLIBC_2.13]: Add.
90460
90461 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
90462
90463         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90464         Also fail if tpwd after pwuid call is NULL.
90465
90466 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90467
90468         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
90469         when converting to ms.
90470
90471 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90472
90473         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
90474         EOPNOTSUPP errors with ENOTTY.
90475         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
90476         EOPNOTSUPP errors with ENOTTY.
90477
90478 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
90479
90480         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90481         Add strcasecmp_l-ssse3.
90482         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
90483         strcasecmp.
90484         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
90485         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
90486         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
90487
90488 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
90489
90490         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
90491
90492         * string/Makefile (strop-tests): Add strcasecmp.
90493         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90494         strcasecmp_l-nonascii.
90495         (gen-as-const-headers): Add locale-defines.sym.
90496         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
90497         * sysdeps/x86_64/strcasecmp.S: New file.
90498         * sysdeps/x86_64/strcasecmp_l.S: New file.
90499         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
90500         * sysdeps/x86_64/locale-defines.sym: New file.
90501         * string/test-strcasecmp.c: New file.
90502
90503         * string/test-strcasestr.c: Test both ends of the range of characters.
90504         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
90505
90506 2010-07-29  Roland McGrath  <roland@redhat.com>
90507
90508         [BZ #11856]
90509         * manual/locale.texi (Yes-or-No Questions): Fix example code.
90510
90511 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90512
90513         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
90514         for ld.so.
90515
90516 2010-07-27  Andreas Schwab  <schwab@redhat.com>
90517
90518         * manual/memory.texi (Malloc Tunable Parameters): Document
90519         M_PERTURB.
90520
90521 2010-07-26  Roland McGrath  <roland@redhat.com>
90522
90523         [BZ #11840]
90524         * configure.in (-fgnu89-inline check): Set and substitute
90525         gnu89_inline, not libc_cv_gnu89_inline.
90526         * configure: Regenerated.
90527         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
90528
90529 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
90530
90531         * string/test-strnlen.c: New file.
90532         * string/Makefile (strop-tests): Add strnlen.
90533         * string/tester.c (test_strnlen): Add a few more test cases.
90534         * string/tst-strlen.c: Better error reporting.
90535
90536         * sysdeps/x86_64/strnlen.S: New file.
90537
90538 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
90539
90540         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
90541         lower-latency instructions.
90542
90543 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
90544
90545         * string/test-strcasestr.c: New file.
90546         * string/test-strstr.c: New file.
90547         * string/Makefile (strop-tests): Add strstr and strcasestr.
90548         * string/str-two-way.h: Don't undefine MAX.
90549         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
90550
90551 2010-07-21  Andreas Schwab  <schwab@redhat.com>
90552
90553         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90554         strcasestr-nonascii.
90555         (CFLAGS-strcasestr-nonascii.c): Define.
90556         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
90557         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
90558         Remove unused attribute.
90559
90560 2010-07-20  Roland McGrath  <roland@redhat.com>
90561
90562         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
90563         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
90564         ld.so.cache was broken.  With it, there is no way to disable dsocaps
90565         like LD_HWCAP_MASK can disable hwcaps.
90566
90567 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90568
90569         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
90570
90571 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
90572
90573         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
90574         call in strcasestr.
90575         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
90576         __strcasestr_sse42_nonascii.
90577         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
90578         strcasestr-nonascii.c.
90579         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
90580
90581 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
90582
90583         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
90584         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
90585         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
90586         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
90587
90588 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
90589
90590         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
90591         fcntl.
90592
90593 2010-07-06  Andreas Schwab  <schwab@redhat.com>
90594
90595         [BZ #11577]
90596         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
90597         dl_signal_cerror.
90598
90599 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
90600
90601         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
90602         _PC_PIPE_BUF using F_GETPIPE_SZ.
90603
90604 2010-07-05  Roland McGrath  <roland@redhat.com>
90605
90606         * manual/arith.texi (Rounding Functions): Fix rint description
90607         implicit in round description.
90608
90609 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
90610
90611         * elf/Makefile: Fix linking for a few tests to make recent linker
90612         happy.
90613
90614 2010-06-30  Andreas Schwab  <schwab@redhat.com>
90615
90616         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
90617         $(common-objpfx)libc_nonshared.a.
90618
90619 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
90620
90621         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
90622         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
90623         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90624         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90625         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
90626         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
90627         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90628         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
90630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
90631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
90632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
90634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
90636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
90637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
90638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
90639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
90641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
90643         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
90644         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
90645         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
90646         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
90647         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
90648         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
90649         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
90650         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
90651         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
90652         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
90653         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
90654         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
90655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
90656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
90657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
90658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
90659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
90660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
90661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
90662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
90663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
90664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
90665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
90666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
90667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
90668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
90669
90670 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
90671
90672         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
90673         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
90674         * string/memmove.c (memmove): Renamed to ...
90675         (MEMMOVE): ...this.  Default to memmove.
90676         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
90677         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
90678         (END_CHK): Define.
90679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90680         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
90681         mempcpy-ssse3-back memmove-ssse3-back.
90682         * sysdeps/x86_64/multiarch/bcopy.S: New file .
90683         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
90684         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
90685         * sysdeps/x86_64/multiarch/memcpy.S: New file.
90686         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
90687         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
90688         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
90689         * sysdeps/x86_64/multiarch/memmove.c: New file.
90690         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
90691         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
90692         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
90693         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
90694         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
90695         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
90696         Define.
90697         (index_Fast_Copy_Backward): Define.
90698         (HAS_ARCH_FEATURE): Define.
90699         (HAS_FAST_REP_STRING): Define.
90700         (HAS_FAST_COPY_BACKWARD): Define.
90701
90702 2010-06-21  Andreas Schwab  <schwab@redhat.com>
90703
90704         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90705         Restore proper fallback handling.
90706
90707 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
90708
90709         [BZ #11701]
90710         * posix/group_member.c (__group_member): Correct checking loop.
90711
90712         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
90713         OOM in getpwuid_r correctly.  Return error number when the caller
90714         should return, otherwise -1.
90715         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
90716         call returning > 0 value.
90717         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
90718
90719 2010-06-07  Andreas Schwab  <schwab@redhat.com>
90720
90721         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
90722         libc_nonshared.a from targets in modules-names.
90723
90724 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
90725
90726         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
90727         requires it.
90728
90729 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
90730
90731         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
90732         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
90733         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
90734         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
90735
90736 2010-06-02  Andreas Schwab  <schwab@redhat.com>
90737
90738         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
90739
90740 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
90741
90742         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
90743         and F_GETPIPE_SZ.
90744         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
90745         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
90746         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
90747         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
90748         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
90749         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
90750
90751 2010-06-14  Roland McGrath  <roland@redhat.com>
90752
90753         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
90754
90755 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
90756
90757         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
90758         __REDIRECT followed by __THROW.
90759         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
90760         * posix/getopt.h (getopt): Likewise.
90761
90762 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90763
90764         * hurd/lookup-at.c (__file_name_lookup_at): Accept
90765         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
90766         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
90767         in AT_FLAGS.
90768         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
90769         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
90770
90771 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
90772
90773         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
90774
90775 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
90776
90777         [BZ #11640]
90778         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90779         Properly check family and model.
90780
90781 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
90782
90783         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
90784
90785 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
90786
90787         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
90788
90789 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
90790
90791         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
90792         symbol reference.
90793
90794 2010-05-19  Andreas Schwab  <schwab@redhat.com>
90795
90796         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
90797         symbol reference.
90798
90799 2010-05-21  Andreas Schwab  <schwab@redhat.com>
90800
90801         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
90802         and internal_recvmmsg.
90803         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
90804         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
90805         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
90806         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
90807
90808         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
90809         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
90810         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
90811
90812 2010-05-20  Andreas Schwab  <schwab@redhat.com>
90813
90814         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
90815
90816 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
90817
90818         POWER7 optimizations.
90819         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
90820         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
90821
90822 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
90823
90824         * version.h: Update for 2.13 development version.
90825
90826 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
90827
90828         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
90829         exceptions.  Return 0.
90830
90831 2010-05-07  Roland McGrath  <roland@redhat.com>
90832
90833         * elf/ldconfig.c (main): Add a const.
90834
90835 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
90836
90837         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
90838         (args_options): Add no-idn option.
90839         (ahosts_keys_int): Add idn_flags to ai_flags.
90840         (parse_option): Handle 'i' option to clear idn_flags.
90841
90842         * malloc/malloc.c (_int_free): Possible race in the most recently
90843         added check.  Only act on the data if no current modification
90844         happened.
90845
90846 See ChangeLog.17 for earlier changes.